/* =========================================
   INTERNSHIP & TRAINING PAGE STYLES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --color-base: #002147;          /* Deep Navy */
    --color-accent: #00e0ff;        /* Neon Cyan */
    --color-primary: #007bff;       /* Standard Blue */
    --color-text-dark: #333;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.it-container {
    max-width: 1300px; margin: 0 auto; padding: 0 30px; width: 100%;
}

/* Animations */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.active { opacity: 1; transform: translate(0); }

/* Headers */
.it-section-header { text-align: center; margin-bottom: 60px; position: relative; }
.it-section-title { font-size: 42px; font-weight: 800; color: var(--color-base); margin-bottom: 10px; }
.it-section-subtitle { font-size: 18px; color: #666; max-width: 700px; margin: 0 auto; }
.it-section-header::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--color-accent); margin: 20px auto 0; border-radius: 2px;
}
.white-header .it-section-title { color: white; }
.white-header .it-section-subtitle { color: #ccc; }

/* HERO SECTION */
.it-hero-section {
    background: radial-gradient(circle at top right, #003366, var(--color-base));
    padding: 140px 0 100px; color: white; position: relative; overflow: hidden;
}
.it-hero-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.company-badge {
    background: rgba(255,255,255,0.1); color: var(--color-accent);
    padding: 8px 20px; border-radius: 50px; font-weight: 600;
    border: 1px solid rgba(0, 224, 255, 0.3); text-transform: uppercase; letter-spacing: 1px;
}
.it-hero-text h1 { font-size: 60px; line-height: 1.1; font-weight: 800; margin: 20px 0; }
.it-hero-text p { font-size: 18px; color: #dbe4ee; margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 20px; }
.btn {
    padding: 15px 35px; border-radius: 8px; font-weight: 700;
    text-transform: uppercase; text-decoration: none; transition: 0.3s; display: inline-block;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { transform: translateY(-5px); background: #0069d9; }
.btn-outline { border: 2px solid var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: var(--color-base); transform: translateY(-5px); }

.it-hero-image img {
    width: 100%; border-radius: 20px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    box-shadow: -20px 20px 60px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.1); transition: 0.5s;
}
.it-hero-image:hover img { transform: perspective(1000px) rotateY(0deg); }

/* --- STATS SECTION (Updated) --- */
.it-stats-section {
    padding: 80px 0; background: white; margin-top: -50px; position: relative; z-index: 10;
}
.it-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px;
}
.it-stat-item {
    background: #fff; 
    padding: 30px; 
    text-align: center; 
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); 
    border: 1px solid #f0f0f0; 
    border-bottom: 4px solid transparent; /* Hidden border initially */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect for Stats */
.it-stat-item:hover { 
    transform: translateY(-10px); 
    border-bottom-color: var(--color-accent); /* Neon Cyan border */
    box-shadow: 0 20px 50px rgba(0, 123, 255, 0.15);
}

.stat-icon {
    font-size: 30px;
    color: #cbd5e1;
    margin-bottom: 10px;
    transition: 0.3s;
}
.it-stat-item:hover .stat-icon { color: var(--color-accent); }

/* Gradient Number Text */
.it-stat-item h2 { 
    font-size: 48px; 
    font-weight: 800; 
    margin-bottom: 5px; 
    background: -webkit-linear-gradient(45deg, var(--color-base), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.it-stat-item p {
    color: #666; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: 1px;
}


/* --- PROGRAMS GRID (2x2 LAYOUT) --- */
.it-programs-section { padding: 100px 0; background: var(--color-bg-light); }

.programs-grid {
    display: grid;
    /* Forces exactly 2 columns */
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
    padding: 20px 0;
}

/* Card Styling */
.program-card {
    background: white; border-radius: 20px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid rgba(0,0,0,0.08);
    /* Smooth Transition for hover */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* General Hover Lift */
.program-card:hover { transform: translateY(-10px); }

/* Specific Colored Shadows per Theme */
.program-card.theme-blue:hover {
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}
.program-card.theme-purple:hover {
    border-color: rgba(214, 51, 132, 0.5);
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.2);
}
.program-card.theme-green:hover {
    border-color: rgba(40, 167, 69, 0.5);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.2);
}
.program-card.theme-orange:hover {
    border-color: rgba(253, 126, 20, 0.5);
    box-shadow: 0 20px 40px rgba(253, 126, 20, 0.2);
}

.p-card-body { padding: 40px 30px; flex: 1; }
.p-icon-box {
    width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: white; margin-bottom: 25px; transition: 0.4s;
}
.program-card:hover .p-icon-box { transform: scale(1.1) rotate(10deg); }

/* Icon Colors */
.p-blue { background: linear-gradient(135deg, #007bff, #00c6ff); }
.p-purple { background: linear-gradient(135deg, #d63384, #ff6b6b); }
.p-green { background: linear-gradient(135deg, #28a745, #a8ff78); }
.p-orange { background: linear-gradient(135deg, #fd7e14, #ffcc33); }

.program-card h3 { font-size: 24px; font-weight: 700; color: var(--color-base); margin-bottom: 10px; }
.program-card p { font-size: 16px; color: #666; margin-bottom: 20px; }

.p-meta { display: flex; gap: 15px; font-size: 14px; color: #555; margin-bottom: 20px; }
.p-meta i { color: var(--color-primary); }
.p-tech span {
    background: #f0f2f5; color: var(--color-base); padding: 5px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; margin-right: 5px;
}
.enroll-btn {
    display: block; width: 100%; text-align: center; padding: 18px; color: white;
    font-weight: 700; text-transform: uppercase; text-decoration: none; transition: 0.3s;
}
.enroll-btn:hover { opacity: 0.9; }
.btn-blue { background: #007bff; } .btn-purple { background: #d63384; }
.btn-green { background: #28a745; } .btn-orange { background: #fd7e14; }

/* WHY SECTION */
.it-why-section { padding: 100px 0; background: white; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-item {
    display: flex; gap: 20px; padding: 25px; border-radius: 16px;
    background: #fff; border: 1px solid #f0f0f0; transition: all 0.4s ease;
}
.why-item:hover { 
    transform: translateY(-8px); 
    border-color: #e0efff;
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.12); 
}
.w-icon {
    width: 50px; height: 50px; background: rgba(0,123,255,0.05); color: var(--color-primary);
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px;
    transition: 0.3s;
}
.why-item:hover .w-icon { background: var(--color-primary); color: white; }
.w-text h4 { font-size: 18px; margin-bottom: 5px; color: var(--color-base); }

/* SUCCESS STORIES (Glassmorphism) */
.it-success-section {
    background: var(--color-base); padding: 100px 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
}
.success-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.success-card {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; border-radius: 20px; transition: 0.4s;
}
.success-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); }
.s-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.s-avatar {
    width: 50px; height: 50px; border-radius: 50%; background: white; color: var(--color-base);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.s-header h4 { color: white; margin: 0; font-size: 18px; }
.s-header span { color: #aaa; font-size: 14px; }
.s-job { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.s-company { color: var(--color-accent); font-weight: 700; }
.s-package { color: white; font-weight: 700; }
.s-quote { color: #ddd; font-style: italic; font-size: 14px; }

/* --- CTA SECTION (FIXED) --- */
.it-cta-section {
    padding: 100px 0; /* More top/bottom padding */
    background: linear-gradient(135deg, #002147 0%, #004d99 100%);
    text-align: center; 
    color: white; 
    border-top: 4px solid var(--color-accent);
}
.cta-box {
    max-width: 800px;
    margin: 0 auto;
}
.cta-box h2 { 
    font-size: 40px; 
    margin-bottom: 15px; 
}
.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px; /* Force space between text and buttons */
}
.cta-buttons {
    display: flex;
    justify-content: center; /* Centers buttons horizontally */
    gap: 20px; /* Space between the two buttons */
    flex-wrap: wrap; /* Safe wrapping on small screens */
}
.btn-white { 
    background: white; color: var(--color-base); padding: 15px 40px; 
    border-radius: 8px; font-weight: 700; text-decoration: none; transition: 0.3s; 
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-outline-white { 
    border: 2px solid white; color: white; padding: 15px 40px; 
    border-radius: 8px; font-weight: 700; text-decoration: none; transition: 0.3s; 
}
.btn-outline-white:hover { background: white; color: var(--color-base); transform: translateY(-3px); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .programs-grid { grid-template-columns: 1fr; } /* Stack cards on mobile */
    .it-hero-row { grid-template-columns: 1fr; text-align: center; }
    .it-hero-image { margin-top: 50px; }
    .hero-buttons { justify-content: center; }
    .why-grid { grid-template-columns: 1fr; }
    .cta-box h2 { font-size: 32px; }
}