@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f8f9fa; /* Light grey background for the body to make the white header pop */
}

/* Header Styles */
.main-header {
    background-color: #ffffff; /* White background as requested */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px; /* Max width to keep it centered on large screens */
    margin: 0 auto;
    padding: 4px 20px; /* Further reduced vertical padding for a compact header */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-govt { justify-self: start; display: flex; align-items: center; }

.header-iirm { justify-self: center; display: flex; align-items: center; }

.main-logo {
    height: 55px; /* Further reduced height for a compact look */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.03); /* Slight zoom on hover for interactivity */
}

/* Right Side IRDAI and Button */
.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 30px; /* Increased spacing between the logos and button */
}

.partner-logo {
    height: 40px; /* Further reduced height to fit shorter header */
    width: auto;
    max-width: 180px; /* Prevent SVG from stretching */
    object-fit: contain; /* Keep aspect ratio intact */
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover {
    opacity: 0.8;
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Premium Apply Now Button */
.apply-now-btn {
    display: inline-block;
    background: #ff0000; /* changed to red */
    color: #ffffff;
    padding: 10px 24px; /* Reduced button padding to match smaller header */
    border-radius: 8px; /* Rounded corners */
    text-decoration: none;
    font-weight: 600;
    font-size: 15px; /* Slightly smaller text for the button */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25); /* Colored shadow */
    animation: blink-animation 1.5s linear infinite;
}

.apply-now-btn:hover {
    background: #144C80;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 76, 128, 0.4);
    color: #ffffff;
    animation: none;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .header-right { 
        gap: 0; 
    }
    
    .apply-now-btn {
        display: none;
    }

    .main-logo {
        height: 55px; /* Increased for better visibility on mobile */
    }
    
    .partner-logo {
        height: 45px; /* Increased for better visibility on mobile */
    }
}

/* =========================================
   Hero Section Styles
   ========================================= */
.hero-section {
    background-color: #f8f9fa; 
    padding: 60px 0 120px 0; 
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1300px; /* Increased from 1200px to shift left side slightly further left */
    margin: 0 auto;
    padding: 0 20px; /* Shifted horizontal padding here to protect text on mobile */
    /* Removed position: relative so absolute children can escape to viewport */
    width: 100%;
}

/* Decorative Background Dots */
.decor-dots {
    position: absolute;
    top: 50px;
    left: 45%;
    width: 120px;
    height: 180px;
    background-image: radial-gradient(#d1d1d1 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    /* Removed position: relative so absolute children can escape to viewport */
    z-index: 1;
}

/* --- Left Side: Text --- */
.hero-text-side {
    flex: 1;
    max-width: 680px; /* Increased to ensure main heading fits on one line */
    position: relative;
    margin-left: -20px; /* Shift slightly left as requested */
}



.hero-badge {
    display: inline-block;
    background: #144C80;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(20, 76, 128, 0.15);
}

.hero-main-heading {
    font-size: 50px; /* Made slightly larger since it's now on two lines */
    line-height: 1.05; /* Reduced gap between lines */
    color: #103b66; /* Even deeper navy text for premium contrast */
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.standard-at {
    font-weight: 400;
    text-transform: lowercase;
    color: #144C80;
    font-style: italic;
    opacity: 0.9;
    font-size: 24px; /* Scaled for subheading */
    margin-right: 6px;
}

.hero-subheading {
    font-size: 20px;
    color: #144C80;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-subheading strong {
    font-weight: 700;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.program-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 12px 24px; /* Reduced vertical padding for smaller height */
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 15px rgba(20, 76, 128, 0.04); /* Very subtle shadow */
    font-size: 19px;
    font-weight: 600;
    color: #000000; /* Black color as requested */
    transition: all 0.3s ease;
    cursor: default;
}

.program-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(20, 76, 128, 0.12);
}

.program-icon {
    width: 28px;
    height: 28px;
    color: #144C80; /* Restored to navy logo color */
    margin-right: 15px;
    flex-shrink: 0;
}

.program-duration {
    font-size: 18px;
    font-weight: 500;
    color: #144C80;
    margin-bottom: 35px;
}

.hero-action {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-apply-now {
    background-color: #ff0000; /* changed to red */
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25); /* red shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    animation: blink-animation 1.5s linear infinite;
}

.btn-apply-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(20, 76, 128, 0.35);
    background-color: #144C80; /* Logo color on hover */
    color: #ffffff;
    animation: none;
}

/* --- Right Side: Image --- */
.hero-image-side {
    flex: 1;
    /* Act as a flex placeholder, but let the child position absolutely to the screen edge */
}

.image-wrapper {
    position: absolute;
    right: 0; /* Perfectly attach to the right edge of the viewport */
    top: 42%; /* Shifted slightly upwards from center */
    transform: translateY(-50%);
    width: 45vw; /* Maintain a proper size relative to the screen */
    max-width: 750px;
}

/* Background layer image */
.decor-blob {
    position: absolute;
    top: -30%; /* Shifted further up */
    left: -15%; /* Shifted further left */
    width: 120%; /* Increased width */
    height: 165%; /* Increased height significantly */
    z-index: 0;
    object-fit: fill;
}

.main-image-container {
    position: relative;
    z-index: 1;
    /* Curve top-left and bottom-left slightly, flat on the right */
    border-radius: 60px 0 0 60px;
    overflow: hidden;
    /* White border around the image, no border on the right */
    border: 8px solid #ffffff;
    border-right: none;
    box-shadow: -15px 15px 35px rgba(0,0,0,0.06);
    background-color: #fff; /* Fallback */
}

.main-hero-img,
.main-hero-video {
    width: 100%;
    height: 380px; /* Fixed decreased height */
    max-height: 50vh; /* Ensure it's not too tall on small screens */
    display: block;
    /* Inner border radius to match outer */
    border-radius: 52px 0 0 52px;
    object-fit: cover;
}

/* Floating Elements around Image */
.floating {
    animation: floatElement 4s ease-in-out infinite;
}

@keyframes floatElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Responsive Design for Small Desktop / Landscape Tablet */
@media (max-width: 1199px) {
    .hero-content {
        gap: 40px; 
        align-items: center;
    }
    .hero-text-side {
        flex: 1;
        max-width: 50%; 
        margin-left: 0; /* Remove desktop negative margin for clean alignment */
    }
    .hero-main-heading {
        font-size: 38px; 
    }
    .hero-image-side {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
    .image-wrapper {
        position: relative; /* Bring video into normal document flow to prevent overlapping below sections */
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 500px;
        opacity: 0;
        animation: heroFadeSlideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 0.4s;
    }
    .decor-blob {
        top: -10%;
        left: -10%;
        width: 120%;
        height: 120%;
    }
}

/* Responsive Design for Portrait Tablet / Mobile */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px; /* Reduce gap between text and video */
    }
    
    .hero-text-side {
        margin: 0 auto; /* Remove huge bottom margin since gap handles it */
        max-width: 100%; 
    }
    
    .form-container {
        margin-top: 0; /* Stop the form from overlapping the video */
    }
    
    .decor-squiggle {
        left: 0; 
    }
    
    .decor-blob {
        display: block;
        top: -10%;
        left: -10%;
        width: 120%;
        height: 120%;
        opacity: 1;
    }
    
    .decor-circle {
        width: 120%; 
    }
    
    .decor-arrow {
        display: none; /* Hide on mobile/tablet to reduce clutter */
    }
    
    .hero-image-side {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .image-wrapper {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 90vw;
        max-width: 100%;
        animation: heroFadeSlideUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }
    
    .main-image-container {
        border-radius: 40px; /* Full border radius on all sides for mobile */
        border: 8px solid #ffffff; /* Border all around */
    }
    
    .main-hero-img,
    .main-hero-video {
        border-radius: 32px; /* Full inner border radius */
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 5px 20px 60px 20px; /* Reduce top padding to shift content up and prevent bottom cut-off */
    }
    
    .form-container {
        padding: 20px 15px; 
    }
    
    .lead-form-section {
        padding: 40px 20px 0 20px; /* Keep padding, but form-container will overlap it */
    }

    .top-images-row { 
        flex-direction: column; /* Keep them stacked cleanly */
        gap: 15px; 
    }
    
    .top-images-row img { 
        max-width: 100%; 
        max-height: 80px; 
        object-fit: contain;
    }
    
    .section-header h2 {
        font-size: 28px; /* Globally scale down section headings on mobile */
        padding: 0 10px;
    }

    .testimonials-section .section-header h2 {
        white-space: nowrap; /* Force one line as requested */
        font-size: 26px; /* Slightly smaller to guarantee it fits without overflowing the screen */
    }
    
    .hero-main-heading {
        font-size: 28px; /* Adjusted to guarantee 2 lines */
        line-height: 1.2;
        white-space: nowrap; /* Prevents unwanted wrapping */
    }

    .hero-subheading {
        font-size: 12.5px; /* Scaled down for mobile */
        white-space: nowrap; /* Force one line */
        margin-bottom: 20px;
    }

    .program-item {
        font-size: 12px; /* Small enough to fit on one line */
        padding: 10px 12px;
        white-space: nowrap; /* Force one line */
    }

    .program-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    .hero-action {
        display: none; /* Removed the Apply Now button from hero section on mobile */
    }

    .image-wrapper {
        width: 100%; 
        margin-top: 10px; /* Reduced since hero-text-side now reliably provides 50px margin above it */
    }

    .decor-blob {
        display: none; /* Hide blue blob completely on mobile to match the final mockup */
    }
    
    .main-image-container {
        border-radius: 16px;
        border: 4px solid #ffffff;
        box-shadow: 0 15px 35px rgba(20, 76, 128, 0.15);
    }
    
    .main-hero-img,
    .main-hero-video {
        border-radius: 12px;
        height: auto; 
        aspect-ratio: 16 / 9; /* Restore widescreen ratio to save vertical space so form isn't pushed under the sticky button */
        object-fit: cover;
        background-color: #dbe4ee; /* Fallback skeleton color while video loads */
    }
}

/* =========================================
   3. Lead / Enquiry Form Block
   ========================================= */
.lead-form-section {
    background: #144C80;
    padding: 40px 20px 0 20px; /* Removed bottom padding so marquee sits flush at the bottom */
    position: relative;
    z-index: 10;
}
.form-container {
    background: #ffffff;
    padding: 25px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: -135px auto 0 auto;
}
.top-images-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}
.top-images-row img {
    max-width: 48%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}
.form-heading {
    text-align: center;
    color: #144C80;
    margin-bottom: 20px;
    font-size: 24px;
}
.enquiry-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}
.form-submit {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-color: #ff0000;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    grid-column: 1 / -1; /* Make button span full width */
    max-width: 300px;
    justify-self: center; /* Center the button nicely */
    animation: blink-animation 1.5s linear infinite;
}
.form-submit:hover { background-color: #144C80; animation: none; }

/* =========================================
   4. Stats / Marquee Strip
   ========================================= */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 25px; /* Added gap above the line */
    padding: 15px 0 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* White line above scroll */
    color: #ffffff; /* White text */
}
.marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-marquee 40s linear infinite;
}
.marquee > span {
    font-size: 17px;
    font-weight: 500;
    padding: 0 10px;
}
.marquee > span > span {
    color: #ffffff; /* White separator */
    padding: 0 15px;
}
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   5. Why Choose IIRM
   ========================================= */
.section-padding { padding: 30px 20px; }
.section-header { margin-bottom: 20px; }
.section-header h2 { font-size: 36px; color: #144C80; margin-bottom: 10px; font-weight: 800; }
.subtitle { font-size: 18px; color: #666; }
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* Bento Grid Layout */
.why-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}
.bento-card {
    border-radius: 12px;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 180px;
}
/* Card Spans & Pastel Colors */
.card-1 { grid-column: span 1; background-color: #d8ead4; } 
.card-2 { grid-column: span 2; background-color: #e5def0; } 
.card-3 { grid-column: span 2; background-color: #ffe6cd; } 
.card-4 { grid-column: span 1; background-color: #fbf4c8; } 

/* Text Content */
.bento-content {
    position: relative;
    z-index: 2;
    max-width: 75%;
}
.bento-card h4 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}
.bento-card p {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
}

/* Decorations container */
.bento-decor {
    position: absolute;
    z-index: 1;
    right: -10px;
    bottom: -20px;
    opacity: 0.15;
}
.bento-decor svg {
    width: 150px;
    height: 150px;
}
.card-1 .bento-decor { color: #388e3c; }
.card-2 .bento-decor { color: #7b1fa2; right: 20px; top: 50%; transform: translateY(-50%); }
.card-3 .bento-decor { color: #f57c00; right: 20px; top: 50%; transform: translateY(-50%); }
.card-4 .bento-decor { color: #f57f17; }

.btn-secondary {
    background-color: transparent;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    animation: blink-animation 1.5s linear infinite;
}
.btn-secondary:hover { background-color: #144C80; color: #fff; border-color: #144C80; animation: none; }

/* =========================================
   6. Program Highlights
   ========================================= */
.bg-light { background-color: #e9ecef; }
  .dossier-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:stretch;max-width:1000px;margin:0 auto;
  }
  @media(max-width:900px){
    .dossier-grid{grid-template-columns:1fr;}
  }

  .dossier{
    position:relative;
    display:grid;grid-template-rows:160px auto 1fr;
    border:1px solid #DED8C7;background:#FFFFFF;
    border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  }

  .d-media{position:relative;min-height:160px;}
  .d-media img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0;filter:saturate(0.92) contrast(1.02);}

  .d-stat{
    background:#144C80;color:#fff;position:relative;overflow:hidden;
    display:flex;align-items:center;justify-content:space-around;
    padding:12px 20px;
  }
  .d-stat::before{
    content:attr(data-num);position:absolute;font-family:'Source Serif 4',serif;font-weight:700;
    font-size:100px;color:rgba(255,255,255,0.06);line-height:1;right:6px;top:50%;
    transform:translateY(-50%);pointer-events:none;
  }
  .d-stat .stat-block{position:relative;z-index:1;text-align:left;}
  .d-stat .figure{font-family:'IBM Plex Mono',monospace;font-weight:600;font-size:24px;line-height:1;}
  .d-stat .figure-label{font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:#f58634;margin-top:2px;}
  .d-stat .divider{width:1px;height:24px;background:rgba(255,255,255,0.2);position:relative;z-index:1;}
  .d-stat .duration{font-size:11px;color:rgba(255,255,255,0.75);}
  .d-stat .duration strong{display:block;font-family:'IBM Plex Mono',monospace;font-size:14px;color:#fff;font-weight:600;margin-bottom:2px;}

  .d-body{padding:20px 24px 20px;display:flex;flex-direction:column; height: 100%;}
  .d-body h2.program-title { 
    font-family:'Outfit',sans-serif;font-weight:700;font-size:20px;color:#144C80;
    margin:0 0 6px;line-height:1.25;
  }
  .d-body p.program-desc{color:#555;font-size:13.5px;line-height:1.5;margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid #eee;}

  .cols{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:16px;}
  .col-label{font-size:10px;letter-spacing:0.08em;text-transform:uppercase;color:#144C80;font-weight:700;margin:0 0 6px;}
  .col-text{font-size:13px;color:#444;line-height:1.5;margin:0;opacity:0.85;}

  .cta-row{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
  .cta{
    display:inline-flex;align-items:center;gap:8px;
    background:#f58634;color:#fff;text-decoration:none;font-weight:700;font-size:14px;
    padding:10px 20px;border-radius:30px;transition:background .2s ease;
  }
  .cta:hover{background:#144C80;}
  .cta svg{transition:transform .2s ease;}
  .cta:hover svg{transform:translate(3px,-3px);}
  .seats-note{font-size:12.5px;color:#666;font-style:italic;}

/* =========================================
   7. Testimonials
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: relative;
    border: 1px solid #DED8C7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.quote-icon {
    font-family: 'Source Serif 4', serif;
    font-size: 100px;
    color: rgba(245, 134, 52, 0.15); /* orange with opacity */
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
    pointer-events: none;
}
.quote-text {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.student-info { 
    display: flex; 
    align-items: center; 
    border-top: 1px solid #eee; 
    padding-top: 20px;
}
.student-avatar {
    width: 50px;
    height: 50px;
    background: #144C80;
    color: #fff;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(20, 76, 128, 0.2);
}
.student-info strong { display: block; color: #144C80; font-size: 16px; font-family: 'Outfit', sans-serif; }
.student-info span { font-size: 13px; color: #777; font-weight: 500; }
.mt-40 { margin-top: 40px; }

.btn-primary {
    display: inline-block;
    background: #ff0000; /* changed to red */
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 30px; /* Pill shape */
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25);
    transition: all 0.3s ease;
    animation: blink-animation 1.5s linear infinite;
}

.btn-primary:hover {
    background: #144C80; /* Logo color on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 76, 128, 0.35);
    color: #ffffff;
    animation: none;
}

/* =========================================
   8. Recruiters
   ========================================= */
.recruiters-section.section-padding {
    padding: 40px 20px;
}
.recruiters-section {
    background-color: #144C80;
}
.recruiters-section .section-header h2 {
    color: #ffffff;
}
.recruiters-section .btn-secondary {
    background-color: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}
.recruiters-section .btn-secondary:hover {
    background-color: #ffffff;
    color: #144C80;
    border-color: #ffffff;
}
.recruiter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
    gap: 15px;
}
.recruiter-logo {
    background: #fff;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.recruiter-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.recruiter-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* =========================================
   9. Gallery
   ========================================= */
.gallery-section.section-padding { 
    padding: 20px 20px; 
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}
.gallery-item {
    background: #ddd;
    aspect-ratio: 1/1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.zoom-text {
    background: rgba(20, 76, 128, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    z-index: 2;
}
.gallery-item:hover .zoom-text { opacity: 1; }

/* =========================================
   10. Sticky Elements
   ========================================= */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #144C80;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(20, 76, 128, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #103b66; }

.mobile-apply-sticky {
    display: none; /* Hidden by default on desktop */
}

/* =========================================
   11. Footer
   ========================================= */
.site-footer {
    background: #111;
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
}
.site-footer p {
    margin: 0;
}

/* Responsiveness for new sections */
@media (max-width: 992px) {
    .enquiry-form { grid-template-columns: 1fr; }
    
    .form-container {
        margin-top: -60px !important; /* Pull up to cover the blue background and sit on the light background */
    }
    
    .lead-form-section {
        padding-top: 40px !important; 
    }
    
    .hero-section {
        padding-bottom: 80px !important; /* Create light background space below video for the form to sit on */
    }
    
    .program-list { margin-bottom: 10px !important; }
    .program-duration { margin-bottom: 5px !important; }
    .hero-content { gap: 10px !important; }
    .image-wrapper { margin-top: 0 !important; }
    
    .top-images-row { flex-direction: column; gap: 15px; }
    .top-images-row img { max-width: 100%; }

    .dossier-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 30px; }
    .gallery-grid { grid-template-columns: 1fr 1fr 1fr; } /* 3 images per row on tablet */
    
    .why-bento-grid { grid-template-columns: 1fr; }
    .card-1, .card-2, .card-3, .card-4 { grid-column: span 1; }
    .bento-content { max-width: 100%; }

    .back-to-top { bottom: 80px; }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; } /* Force 2 columns on mobile */
    
    /* Horizontal Slider for Testimonials */
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    .testimonials-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari/Webkit */
    }
    .testimonial-card { 
        flex: 0 0 100%; /* Force cards to take up the full screen width one by one */
        scroll-snap-align: center;
        padding: 25px 20px; 
    }
    .d-stat::before { font-size: 60px; }
    .d-stat { padding: 12px 15px; }

    .mobile-apply-sticky {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 5px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .mobile-apply-sticky .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 8px; /* Slightly squarer to fit the bar style */
        margin: 0;
    }
    
    .slider-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
    .slider-pagination .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        transition: all 0.3s ease;
    }
    .slider-pagination .dot.active {
        background: #144C80;
        width: 25px;
        border-radius: 5px;
    }

    /* Push back-to-top button higher so it doesn't overlap the new bottom bar */
    .back-to-top {
        bottom: 80px; 
    }
    
    /* Ensure the footer isn't hidden behind the sticky bottom bar */
    .site-footer {
        padding-bottom: 70px; 
    }
}

/* =========================================
   Hero Section Load Animations
   ========================================= */

/* Text elements sliding up */
@keyframes heroFadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Video side sliding in from right, maintaining its Y translation */
@keyframes heroFadeSlideLeft {
    from { opacity: 0; transform: translate(40px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

/* Apply base animation state to text */
.hero-badge, 
.hero-main-heading, 
.hero-subheading, 
.program-list, 
.program-duration, 
.hero-action {
    opacity: 0; /* Hidden initially */
    animation: heroFadeSlideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; /* Slowed down to 1.2s */
}

/* Cascading delays for text elements (increased gaps for slower reveal) */
.hero-badge { animation-delay: 0.2s; }
.hero-main-heading { animation-delay: 0.4s; }
.hero-subheading { animation-delay: 0.6s; }
.program-list { animation-delay: 0.8s; }
.program-duration { animation-delay: 1.0s; }
.hero-action { animation-delay: 1.2s; }

/* Apply animation to video wrapper (Desktop Only) */
@media (min-width: 1200px) {
    .image-wrapper {
        opacity: 0;
        animation: heroFadeSlideLeft 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 0.4s;
    }
}

/* =========================================
   Image Modal Styles
   ========================================= */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    opacity: 1;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}
.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.modal-prev,
.modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    z-index: 2001;
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
}
.modal-prev {
    left: 20px;
}
.modal-next {
    right: 20px;
}
.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(0,0,0,0.8);
}

@keyframes blink-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
