/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc; /* Premium off-white background */
    overflow-x: hidden;
    color: #111827;
}

/* =========================
   NAVBAR (Premium Glass Effect)
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(237, 242, 247, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); 
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 42px;
}

nav ul li a {
    text-decoration: none;
    color: #4b5563; 
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #2684ff;
}

.nav-btn {
    text-decoration: none;
    background: #2684ff;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 132, 255, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 132, 255, 0.3);
}

/* =========================
   HERO LAYOUT
========================= */
.hero {
    position: relative; 
    min-height: 100vh;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    align-items: center;
    padding-top: 110px; 
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 80px; 
}

/* =========================
   HERO LEFT (Text & Stats)
========================= */
.hero-left {
    max-width: 650px;
}

.tagline {
    color: #2684ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.text-slider-container {
    min-height: 280px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left h1 {
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 72px; 
    line-height: 1.05;
    font-weight: 800;
    transition: opacity 0.5s ease, transform 0.5s ease;
    letter-spacing: -0.03em; /* Tighter kerning */
    color: #0b1120; /* Richer slate black */
}

.hero-left p {
    font-size: 19px; /* Slightly larger */
    line-height: 1.9; /* More breathing room */
    color: #475569; /* Softer contrast grey */
    margin-bottom: 40px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.text-gradient {
    background: linear-gradient(135deg, #2684ff 0%, #005ce6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================
   BUTTONS
========================= */
.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 50px;
}

.btn-primary {
    text-decoration: none;
    padding: 18px 34px;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.3s ease;
    color: white;
    /* Tactile Premium Button Effects */
    background: linear-gradient(180deg, #3b93ff 0%, #1e74eb 100%); 
    box-shadow: 
        0 8px 20px rgba(38, 132, 255, 0.25), 
        inset 0 1px 1px rgba(255, 255, 255, 0.3); 
    border: 1px solid #1461ce; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(38, 132, 255, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    text-decoration: none;
    border: 2px solid #e2e8f0; 
    color: #111827; 
    padding: 18px 34px;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    border-color: #2684ff;
    color: #2684ff;
    background: #ffffff; /* Replaced f8fafc since body is now f8fafc */
}

/* =========================
   STATS
========================= */
.stats {
    display: flex;
    gap: 12px; 
}

.stat-card {
    background: #ffffff; /* Explicitly white against the off-white body */
    padding: 10px 15px; 
    flex: 1; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04); 
    border: 1px solid rgba(241, 245, 249, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.stat-card:hover {
    transform: translateY(-4px); 
    box-shadow: 0 12px 25px rgba(38, 132, 255, 0.1); 
}

.stat-card h3 {
    color: #2684ff;
    font-size: 22px; 
    font-weight: 700;
    margin-bottom: 0px; 
    line-height: 1.2;
}

.stat-card p {
    font-size: 11px; 
    color: #667085;
    font-weight: 500;
    margin-bottom: 0px; 
}

/* =========================
   HERO RIGHT
========================= */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 600px;
    width: 100%;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 600px;
    width: 100%;
}

.image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: #2684ff;
    opacity: 0.12;
    filter: blur(100px);
    z-index: 0;
    /* New: The glow pulses as the image floats */
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 650px; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-top: -60px; 
    /* New: The smooth levitation effect */
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: opacity 0.5s ease, transform 0.5s ease;
    
    /* Rectangular mask that fades strictly on the 4 edges */
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    
    mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
}

/* --- Hero Animations --- */
@keyframes heroFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); } /* Floats up by 25px */
    100% { transform: translateY(0px); }
}

@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.1); opacity: 0.18; } /* Glow expands and brightens slightly */
    100% { transform: scale(1); opacity: 0.12; }
}

.hero-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: opacity 0.5s ease, transform 0.5s ease;
    
    /* Rectangular mask that fades strictly on the 4 edges */
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    
    mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
}

/* =========================
   SLIDER DOTS
========================= */
.slider-dots {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2684ff;
    width: 24px; 
    border-radius: 10px;
}

/* =========================
   ANIMATIONS
========================= */
.fade {
    opacity: 0;
    transform: translateY(15px);
}

/* =========================
   PLACEHOLDER
========================= */
.placeholder-section {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff; /* Contrast against off-white body */
}

.placeholder-section h2 {
    font-size: 48px;
    color: #081224;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media(max-width: 1200px) {
    .hero-left h1 { font-size: 58px; }
    .hero { gap: 20px; }
}

@media(max-width: 992px) {
    nav { display: none; }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
        min-height: auto;
    }
    
    .hero-left {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .text-slider-container { min-height: auto; } 
    
    .hero-buttons { justify-content: center; }
    .stats { justify-content: center; flex-wrap: wrap; }
    
    .hero-right {
        min-height: 400px;
        margin-top: 40px;
        margin-bottom: 40px; 
    }
    
    .hero-image-container { max-height: 450px; }
}

/* =========================
   WHY US SECTION
========================= */
.why-us {
    background: #ffffff; /* Contrast against the off-white hero */
    padding: 140px 40px; /* Massive premium whitespace */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 52px;
    font-weight: 800;
    color: #0b1120;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 15px;
    margin-bottom: 25px;
}

.section-header p {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
}

/* =========================
   WHY US GRID & CARDS
========================= */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.feature-card {
    /* Replace their solid background with this: */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8); /* Matches the hero body background */
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid rgba(237, 242, 247, 1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(38, 132, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    transition: background 0.3s ease;
}

.feature-card:hover .icon-box {
    background: #2684ff;
}

.feature-card:hover .icon-box svg {
    stroke: #ffffff;
}

.icon-box svg {
    transition: stroke 0.3s ease;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
}
/* =========================
   MANIFESTO / ABOUT SECTION
========================= */
.manifesto-section {
    background: #ffffff; 
    padding: 120px 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manifesto-container {
    max-width: 900px; 
    width: 100%;
    text-align: center;
    margin-bottom: 120px;
}

.manifesto-container h2 {
    font-size: 56px; 
    font-weight: 800;
    color: #0b1120;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 15px;
    margin-bottom: 40px;
}

.manifesto-content {
    background: #f8fafc; 
    padding: 60px 70px;
    border-radius: 24px;
    border: 1px solid rgba(237, 242, 247, 1);
    text-align: left; 
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    position: relative; 
}

/* The giant background quote mark */
.manifesto-content::before {
    content: "“";
    position: absolute;
    top: -30px;
    left: 40px;
    font-size: 140px;
    color: rgba(38, 132, 255, 0.1); 
    font-family: Georgia, serif; 
    line-height: 1;
}

.manifesto-content p {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 2; 
}

.manifesto-content .lead-text {
    font-size: 22px;
    color: #0b1120;
    font-weight: 500;
    line-height: 1.6;
}

.founder-signoff {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(203, 213, 225, 0.6);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.founder-signoff .signature {
    font-size: 20px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 2px;
}

.founder-signoff .title {
    font-size: 14px;
    color: #2684ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================
   WHY US HEADER & GRID
========================= */
.section-header {
    text-align: center;
    max-width: 650px;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 52px;
    font-weight: 800;
    color: #0b1120;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 15px;
    margin-bottom: 25px;
}

.section-header p {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.feature-card {
    /* Replace their solid background with this: */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid rgba(237, 242, 247, 1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(38, 132, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    transition: background 0.3s ease;
}

.feature-card:hover .icon-box {
    background: #2684ff;
}

.feature-card:hover .icon-box svg {
    stroke: #ffffff;
}

.icon-box svg {
    transition: stroke 0.3s ease;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
}

.manifesto-container {
    max-width: 900px; 
    width: 100%;
    text-align: center;
    /* FIX: Pushes the story exactly 120px below the Why Us grid */
    margin-top: 120px; 
    /* FIX: Removes the huge empty gap at the bottom of the section */
    margin-bottom: 0px; 
}

/* =========================
   PROGRAMS & COURSES
========================= */
.programs-section {
    background: #f8fafc; /* Back to off-white for visual banding */
    padding: 140px 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.program-card {
    /* Replace their solid background with this: */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(237, 242, 247, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Give the middle card a subtle premium highlight */
.program-card.highlight {
    border: 2px solid #2684ff;
    box-shadow: 0 20px 40px rgba(38, 132, 255, 0.08);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.program-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(38, 132, 255, 0.1);
    color: #2684ff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.program-badge.solid {
    background: #2684ff;
    color: #ffffff;
}

.program-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0b1120;
    margin-bottom: 12px;
}

.program-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 25px;
}

.program-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1; /* Pushes the button to the bottom evenly */
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #0b1120;
    font-weight: 500;
    margin-bottom: 14px;
}

/* Base button for normal cards */
.btn-program {
    text-align: center;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s ease;
    background: #f8fafc;
    color: #0b1120;
    border: 1px solid rgba(226, 232, 240, 1);
}

.btn-program:hover {
    background: #e2e8f0;
}

/* Primary button for the highlighted middle card */
.btn-program.primary {
    background: linear-gradient(180deg, #3b93ff 0%, #1e74eb 100%);
    color: #ffffff;
    border: 1px solid #1461ce;
    box-shadow: 0 4px 15px rgba(38, 132, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-program.primary:hover {
    box-shadow: 0 8px 20px rgba(38, 132, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* =========================
   RESULTS & TOP PERFORMERS
========================= */
.results-section {
    background: #ffffff; /* Visual Banding: Back to pure white */
    padding: 140px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* =========================
   RESULTS STUDENT PHOTOS
========================= */
.student-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Automatically center-crops rectangular headshots into the circle */
    display: block;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.result-card {
    /* Replace their solid background with this: */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);/* Slightly off-white card so it pops against white bg */
    border: 1px solid rgba(237, 242, 247, 1);
    border-radius: 24px;
    padding: 40px 20px 30px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

/* Circular Photo Container */
.student-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(38, 132, 255, 0.15);
    margin-bottom: -18px; /* This negative margin pulls the score badge up to overlap */
    z-index: 2;
    overflow: hidden;
    background: #e2e8f0;
}

/* This is just a placeholder until you add `<img>` tags */
.student-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* The 100/100 overlapping badge */
.score-badge {
    background: linear-gradient(135deg, #2684ff 0%, #005ce6 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    padding: 6px 18px;
    border-radius: 50px;
    border: 3px solid #ffffff; /* Creates a clean break from the photo and card */
    z-index: 3;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(38, 132, 255, 0.25);
}

.result-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 4px;
}

.school-name {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 15px;
}

.exam-tag {
    font-size: 12px;
    color: #2684ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(38, 132, 255, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: auto; /* Pushes the tag to the very bottom of the card uniformly */
}
/* =========================
   VOLUME MARQUEE (Results)
========================= */
.volume-header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
}

.volume-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0b1120;
    margin-bottom: 8px;
}

.volume-header p {
    font-size: 16px;
    color: #475569;
}

.marquee-container {
    width: 100%;
    max-width: 100vw; /* Spans the full width of the screen */
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Creates a faded edge effect so cards smoothly enter and exit the screen */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    /* Adjust the 30s to make it scroll faster or slower */
    animation: scrollMarquee 35s linear infinite; 
}

/* Pauses the animation if someone hovers over a card to read it */
.marquee-track:hover {
    animation-play-state: paused;
}

.compact-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(237, 242, 247, 1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    min-width: 280px;
    transition: transform 0.3s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    border-color: #2684ff;
}

.compact-score {
    font-size: 24px;
    font-weight: 800;
    color: #2684ff;
    margin-right: 18px;
}

.compact-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0b1120;
}

.compact-info p {
    font-size: 13px;
    color: #667085;
    font-weight: 500;
}

.results-cta {
    margin-top: 60px;
    text-align: center;
}

/* =========================
   MODERN CONTACT SECTION 
========================= */
.contact-modern {
    background-color: #f8fafc; /* Premium off-white, no grid */
    padding: 140px 40px;
    border-top: 1px solid rgba(237, 242, 247, 1);
}

.contact-modern-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-modern-text {
    padding-right: 40px;
}

.tagline-contact {
    color: #2684ff; /* Brand blue */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.contact-modern-text h2 {
    font-size: 64px;
    font-weight: 800;
    color: #0b1120; /* Deep slate */
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-top: 20px;
    margin-bottom: 25px;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #2684ff 0%, #005ce6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-modern-text p {
    font-size: 17px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 45px;
    max-width: 450px;
}

.btn-glow {
    display: inline-block;
    text-decoration: none;
    background: #2684ff;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(38, 132, 255, 0.25); 
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(38, 132, 255, 0.35);
    background: #3b93ff;
}

/* --- Right Side Card --- */
.contact-modern-card {
    background: #ffffff; /* Pure white card */
    border: 1px solid rgba(237, 242, 247, 1);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06); 
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.icon-star {
    width: 44px;
    height: 44px;
    background: rgba(38, 132, 255, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2684ff;
}

.header-text h3 {
    color: #0b1120;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.header-text p {
    color: #64748b;
    font-size: 14px;
}

.btn-wide {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(180deg, #3b93ff 0%, #1e74eb 100%);
    color: #ffffff;
    padding: 18px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 132, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38, 132, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.link-box {
    display: block;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.location-box {
    cursor: default; 
}

.link-box:hover:not(.location-box) {
    background: #ffffff;
    border-color: #2684ff;
    box-shadow: 0 4px 15px rgba(38, 132, 255, 0.08);
}

.link-box h4 {
    color: #0b1120;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.link-box:hover:not(.location-box) h4 {
    color: #2684ff;
}

.link-box p {
    color: #475569;
    font-size: 14px;
}

.tags-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.mini-tag {
    background: #ffffff;
    color: #475569;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(226, 232, 240, 1);
}

/* =========================
   RIBBON FOOTER (BLACK)
========================= */
.ribbon-footer {
    background: #000000; /* Pure black */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 40px;
}

.ribbon-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ribbon-left {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.ribbon-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ribbon-links {
    display: flex;
    gap: 20px;
}

.ribbon-links a {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ribbon-links a:hover {
    color: #ffffff;
}

.ribbon-social {
    display: flex;
    gap: 15px;
}

.ribbon-social a {
    color: #94a3b8;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.ribbon-social a:hover {
    color: #2684ff;
    transform: translateY(-2px);
}

/* =========================
   TYPEWRITER CURSOR
========================= */
.cursor {
    color: #2684ff; /* Matches your brand blue */
    font-weight: 800;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    display: inline-block;
}

/* =========================
   AMBIENT BACKGROUND ORBS
========================= */
.ambient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Forces it to sit behind all your content */
    pointer-events: none; /* Ensures you can still click buttons through the orbs */
    background: #f8fafc; /* Locks in the premium off-white base */
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* Creates the soft watercolor effect */
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

/* Primary Brand Blue Orb */
.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(38, 132, 255, 0.15); 
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

/* Deep Slate/Blue Orb */
.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 92, 230, 0.12); 
    bottom: -150px;
    right: -100px;
    animation-duration: 28s;
    animation-delay: -5s;
}

/* Light Champagne/Ice Blue Orb */
.orb-3 {
    width: 700px;
    height: 700px;
    background: rgba(166, 207, 253, 0.15); 
    top: 30%;
    left: 40%;
    animation-duration: 35s;
    animation-delay: -10s;
}

/* =========================
   AMBIENT BACKGROUND ORBS
========================= */
.ambient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Forces it to sit behind all your content */
    pointer-events: none; /* Ensures you can still click buttons through the orbs */
    background: #f8fafc; /* Locks in the premium off-white base */
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* Creates the soft watercolor effect */
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

/* Primary Brand Blue Orb */
.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(38, 132, 255, 0.15); 
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

/* Deep Slate/Blue Orb */
.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 92, 230, 0.12); 
    bottom: -150px;
    right: -100px;
    animation-duration: 28s;
    animation-delay: -5s;
}

/* Light Champagne/Ice Blue Orb */
.orb-3 {
    width: 700px;
    height: 700px;
    background: rgba(166, 207, 253, 0.15); 
    top: 30%;
    left: 40%;
    animation-duration: 35s;
    animation-delay: -10s;
}

/* =========================
   SCROLL REVEAL ANIMATIONS
========================= */
/* The hidden, starting state */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* The visible, final state */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optional delays so grid cards pop up one after the other instead of all at once */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Remove any hard border lines between sections to smooth the color blending */
.manifesto-section, .programs-section, .results-section, .contact-modern {
    border-top: none !important;
}

/* =========================
   CAMPUS GALLERY (Uniform Grid)
========================= */
.campus-gallery {
    padding: 120px 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 neat columns */
    gap: 24px;
    max-width: 1200px;
    width: 100%;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden; /* Keeps the zooming image inside the rounded box */
    position: relative;
    aspect-ratio: 16 / 10; /* Forces all images to identical dimensions */
    background: #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching/distortion */
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- The Enlarge on Hover effect --- */
.gallery-item:hover .gallery-img {
    transform: scale(1.08); /* Scales image up 8% */
}

.gallery-item:hover {
    box-shadow: 0 16px 32px rgba(38, 132, 255, 0.15); /* Adds your brand blue glow */
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-section {
    padding: 120px 40px;
    background: #f8fafc;
    display: flex;
    justify-content: center;
}

.testimonial-container {
    max-width: 800px;
    text-align: center;
    position: relative;
}

.quote-mark {
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(38, 132, 255, 0.1);
    line-height: 0;
    margin-bottom: 40px;
}

.testi-quote {
    font-size: 24px;
    color: #0b1120;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    transition: opacity 0.4s ease;
}

.testi-author-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    transition: opacity 0.4s ease;
}

.testi-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2684ff;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(38, 132, 255, 0.2);
}

.testi-author-box h4 {
    font-size: 16px;
    color: #0b1120;
    margin-bottom: 2px;
}

.testi-author-box p {
    font-size: 13px;
    color: #64748b;
}

.testi-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testi-dot.active {
    background: #2684ff;
    width: 24px;
    border-radius: 10px;
}

/* =========================
   FAQ SECTION
========================= */
.faq-section {
    padding: 120px 40px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid rgba(237, 242, 247, 1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: #ffffff;
    border-color: #2684ff;
    box-shadow: 0 10px 25px rgba(38, 132, 255, 0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: #0b1120;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    color: #2684ff;
    transition: transform 0.4s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Turns the + into an X */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-answer p {
    padding: 0 30px 24px 30px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}
/* =========================
   ACTIVE NAV LINK EFFECT
========================= */
.nav-link-active {
    color: #2684ff !important;
    position: relative;
}

.nav-link-active::after {
    content: "";
    position: absolute;
    bottom: -32px; /* Positions it nicely below the nav items */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2684ff;
    border-radius: 2px;
}

/* =========================
   GLASS MODAL POP-UP
========================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 17, 32, 0.4); /* Dark semi-transparent overlay */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .glass-card {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #2684ff;
}

.glass-card h3 {
    font-size: 28px;
    color: #0b1120;
    margin-bottom: 8px;
    font-weight: 800;
}

.glass-card p {
    color: #475569;
    font-size: 14px;
    margin-bottom: 25px;
}

.glass-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-card input, .glass-card select {
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 15px;
    color: #0b1120;
    outline: none;
    transition: all 0.3s ease;
}

.glass-card input:focus, .glass-card select:focus {
    border-color: #2684ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(38, 132, 255, 0.1);
}

.modal-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* =========================
   ON-PAGE CONTACT CARD SOCIALS
========================= */
.contact-card-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px; /* Adjust this to add space above */
    padding-top: 20px;
    border-top: 1px solid #f1f5f9; /* Subtle divider line */
}

.socials-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-right: 8px;
}

.card-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc; /* Very light gray to stand out from the white card */
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.card-social-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

/* Hover Effects - Fills the background with brand colors */
.card-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(15, 23, 42, 0.1);
}

.card-social-btn.fb-btn:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
}

.card-social-btn.ig-btn:hover {
    background: #E4405F;
    border-color: #E4405F;
    color: #ffffff;
}

.card-social-btn.yt-btn:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: #ffffff;
}

/* =========================
   FACULTY SECTION STYLES
========================= */
.faculty-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces exactly 4 tiles across */
    gap: 30px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover and Active State for Filter Buttons */
.filter-btn:hover,
.filter-btn.active {
    background: #2684ff;
    color: #ffffff;
    border-color: #2684ff;
    box-shadow: 0 4px 15px rgba(38, 132, 255, 0.2);
}
/* =========================
   FACULTY GRID (Rounded & Premium)
========================= */
.faculty-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; 
    gap: 22px !important; /* Increased the breathing room between cards */
    width: 100% !important;
}

/* Base Card - Ultra Smooth & Rounded */
.faculty-card {
    display: none !important; 
    background: #ffffff;
    border-radius: 20px !important; /* Makes the corners much rounder and softer */
    border: 1px solid rgba(226, 232, 240, 0.8); /* Adds a crisp, subtle silver edge */
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); /* Deeper, ultra-smooth modern shadow */
    overflow: hidden;
    /* This cubic-bezier transition gives the hover a premium "spring" effect */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important; 
}

/* Sizing the Active Cards (Updated for wider 22px gaps) */
.faculty-card.show {
    display: flex !important; 
    flex-direction: column;
    /* 100% minus five 22px gaps (110px). We use 120px for safety. */
    flex: 0 0 calc((100% - 120px) / 6) !important; 
    width: calc((100% - 120px) / 6) !important; 
}

/* The Hover Effect - Makes it float higher */
.faculty-card.show:hover {
    transform: translateY(-8px) !important; /* Lifts the card slightly higher */
    box-shadow: 0 20px 40px rgba(38, 132, 255, 0.493) !important; /* Soft blue brand glow */
}

/* =========================
   FACULTY TYPOGRAPHY (Narrow Cards)
========================= */
.faculty-info {
    padding: 15px 10px !important; /* Tighter padding so text has more room */
    text-align: center; /* Centering looks much cleaner on narrow UI cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; /* Pushes content evenly */
}

.faculty-info h3 {
    font-size: 16px !important; /* Scaled down for narrow columns */
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px !important;
    line-height: 1.2;
}

.faculty-info p {
    font-size: 13px !important; /* Scaled down qualifications */
    color: #64748b;
    margin: 0 !important;
    line-height: 1.4;
}

/* =========================
   FACULTY IMAGES (Fluid Scaling)
========================= */
.faculty-img {
    width: 100%;
    height: auto !important; /* Removes the rigid height causing the pillar effect */
    aspect-ratio: 4 / 5; /* Forces a perfect, elegant portrait rectangle */
    object-fit: cover !important; 
    object-position: top center !important; 
    background: #f8fafc;
}

/* =========================
   MOBILE & TABLET OVERRIDES
========================= */
@media (max-width: 1250px) {
    .faculty-card.show { 
        /* 3 cards across (two 22px gaps = 44px, use 55px for safety) */
        flex: 0 0 calc((100% - 55px) / 3) !important; 
        width: calc((100% - 55px) / 3) !important;
    } 
}

@media (max-width: 768px) {
    .faculty-card.show { 
        /* 2 cards across (one 22px gap = 22px, use 30px for safety) */
        flex: 0 0 calc((100% - 30px) / 2) !important; 
        width: calc((100% - 30px) / 2) !important;
    } 
}

@media (max-width: 500px) {
    .faculty-card.show { 
        /* 1 straight column */
        flex: 0 0 100% !important; 
        width: 100% !important;
    } 
}

/* =========================
   MOBILE OVERRIDES
========================= */
@media (max-width: 1024px) {
    .faculty-card.show { 
        flex: 0 0 calc(50% - 20px) !important; 
        width: calc(50% - 20px) !important;
    } 
}

@media (max-width: 600px) {
    .faculty-card.show { 
        flex: 0 0 100% !important; 
        width: 100% !important;
    } 
}
/* Class added by JavaScript to show the card with a fade-in effect */
.faculty-card.show {
    display: block;
    animation: fadeInScale 0.4s ease forwards;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px #2969ff94;
}

.faculty-img {
    width: 100%;
    height: 260px;
    object-fit: contain !important; /* Forces the browser to show 100% of the image file */
    object-position: center !important;
    background: #ffffff;
}

.faculty-info {
    padding: 25px;
    text-align: center;
}

.faculty-info h3 {
    font-size: 20px;
    color: #0b1120;
    margin-bottom: 6px;
    font-weight: 700;
}

.faculty-subject {
    color: #2684ff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 12px;
}

.faculty-info p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* =========================
   FACULTY ALIGNMENT FIX
========================= */
.faculty-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.faculty-section .section-header p {
    max-width: 600px; /* Keeps the paragraph looking neat */
}

/* =========================
   NAVBAR TEXT WRAP FIX
========================= */
.navbar nav ul li a {
    white-space: nowrap !important;
}

/* =========================
   HERO SLIDER JUMP FIX (FINAL)
========================= */
.text-slider-container {
    /* Safe zone for Desktop */
    min-height: 380px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

/* Let the text breathe naturally without restrictions */
#hero-title, #hero-description {
    min-height: auto !important;
    height: auto !important;
    flex-shrink: 1 !important; 
}

#hero-title {
    margin-bottom: 25px !important; 
}

/* =========================
   FULL-SCREEN RESULTS MODAL
========================= */
/* Overrides the small modal size for a full-screen feel */
.full-screen-glass {
    width: 95%;
    max-width: 1300px;
    height: 90vh; /* Takes up 90% of the screen height */
    display: flex;
    flex-direction: column;
    padding: 50px 40px 30px 40px;
}

.results-modal-header {
    text-align: center;
    margin-bottom: 30px;
    flex-shrink: 0; /* Keeps the header from squishing */
}

.results-modal-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #0b1120;
    margin-bottom: 8px;
}

.results-modal-header p {
    color: #475569;
    font-size: 16px;
}

/* The scrollable area for the result tiles */
.results-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    overflow-y: auto; /* Allows scrolling inside the glass card */
    padding-bottom: 20px;
    padding-right: 15px; /* Room for the scrollbar */
    flex-grow: 1; /* Fills the rest of the modal height */
}

/* Custom Premium Scrollbar for the Grid */
.results-modal-grid::-webkit-scrollbar {
    width: 8px;
}
.results-modal-grid::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.5);
    border-radius: 10px;
}
.results-modal-grid::-webkit-scrollbar-thumb {
    background: rgba(38, 132, 255, 0.4);
    border-radius: 10px;
}
.results-modal-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 132, 255, 0.7);
}

/* Perfectly crops the student photo into the circle */
.result-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


/* =========================
   PROGRAM DETAILS MODAL
========================= */
/* =========================================
   PROGRAM DETAILS MODAL (PERFECT BALANCE)
========================================= */
.info-glass {
    max-width: 740px !important; /* The sweet spot: wide enough to let text breathe naturally */
    width: 92%;
    max-height: 92vh !important; /* Taller safe zone so standard desktop screens won't need to scroll at all */
    overflow-y: auto !important; 
    padding: 45px 40px !important;
}

/* Custom, Ultra-Sleek Floating Scrollbar */
.info-glass::-webkit-scrollbar {
    width: 14px; /* Made slightly wider to hold the invisible borders */
}

.info-glass::-webkit-scrollbar-track {
    background: transparent; /* Keeps the glass completely clean */
    margin: 30px 0; /* Prevents the scrollbar from hitting the top/bottom rounded corners */
}

.info-glass::-webkit-scrollbar-thumb {
    background-color: rgba(38, 132, 255, 0.5); /* Soft brand blue */
    border-radius: 10px;
    
    /* THE MAGIC TRICK: Creates an invisible border that forces the scrollbar inward */
    border: 4px solid transparent; 
    background-clip: padding-box;
}

.info-glass::-webkit-scrollbar-thumb:hover {
    background-color: rgba(38, 132, 255, 0.8);
}

/* Floating High-Contrast Close Button */
.info-glass .close-modal {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #0b1120;
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.08);
    z-index: 100;
    cursor: pointer;
}

@media (max-width: 768px) {
    .info-glass {
        padding: 35px 20px !important;
        max-height: 90vh !important;
    }
}

.program-detail-content h3 {
    font-size: 32px;
    color: #0b1120;
    margin-bottom: 15px;
    font-weight: 800;
}

.program-detail-content p {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Custom premium bullet points for the features */
.detail-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.detail-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #111827;
    line-height: 1.6;
}

.detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #2684ff;
    font-weight: bold;
}

.detail-list li strong {
    color: #2684ff;
}

@media (max-width: 1024px) {
    .faculty-grid { grid-template-columns: repeat(2, 1fr); } /* 2x2 on tablets */
}
@media (max-width: 600px) {
    .faculty-grid { grid-template-columns: 1fr; } /* 1 straight column on phones */
}

.faculty-grid {
    display: grid;
    /* minmax(0, 1fr) is the secret weapon: it forces 4 columns and strictly forbids wrapping */
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; 
    gap: 20px; /* Dropped from 30px to give the 4 cards wider breathing room */
    width: 100%;
}

/* =========================================
   FORCE 90% ZOOM (EXCLUDING MODALS & ORBS)
========================================= */
@media (min-width: 992px) {
    /* 1. Ensure body remains at standard 100% scale */
    body {
        zoom: 1 !important;
    }

    /* 2. Apply 90% zoom strictly to visible page sections */
    .navbar, section, footer {
        zoom: 0.9 !important;
    }

    /* 3. Explicitly lock modals and background orbs at 100% */
    .modal-overlay, .ambient-orbs {
        zoom: 1 !important;
    }
}

/* =========================================
   THE ULTIMATE RESPONSIVE PATCH (ALL DEVICES)
========================================= */

/* 1. Global Image & Media Protection */
img {
    max-width: 100%;
    height: auto;
}
.hero-image-container img {
    object-fit: contain; /* Keeps hero image fully visible without stretching */
}
.faculty-img, .result-photo {
    object-fit: cover; /* Keeps profile photos perfectly cropped */
}

/* =========================================
   TABLET OPTIMIZATIONS (Max Width: 992px)
========================================= */
@media (max-width: 992px) {
    /* Hero Image Container Scale Down */
    .hero-right {
        min-height: 350px !important;
        margin-top: 10px;
    }
    .hero-image-container {
        max-height: 380px;
    }

    /* Gallery - Drop from 4 columns to 2 */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 220px;
    }
}

/* =========================================
   MOBILE OPTIMIZATIONS (Max Width: 768px)
========================================= */
@media (max-width: 768px) {
    
    /* 2. Hero Section Perfect Sizing */
    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }
    
    /* Shrinking the giant desktop text prevents wrapping and saves vertical space */
    .hero-left h1 {
        font-size: 38px !important; 
        line-height: 1.15;
    }
    .hero-left p {
        font-size: 15px !important;
        margin-bottom: 25px;
    }
    
    /* With smaller text, we can safely shrink the massive safe zone! */
    .text-slider-container {
        min-height: 250px !important; 
        height: auto !important;
    }

    /* Stack Hero Buttons neatly */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    /* Transform the Stats from 3 stacked blocks into a neat 2x2 grid */
    .stats {
        flex-direction: row !important;
        flex-wrap: wrap;
        width: 100%;
    }
    .stat-card {
        flex: 1 1 45%; 
        padding: 15px !important;
    }

    /* 3. The Photo Gallery Fix (Crucial) */
    .gallery-grid {
        grid-template-columns: 1fr !important; /* Forces 1 straight column */
        grid-auto-rows: 250px;
    }
    /* If an item tries to span 2 columns on a 1-column grid, it breaks the website width. */
    .item-wide {
        grid-column: span 1 !important;
    }
    .item-tall {
        grid-row: span 1 !important; 
    }

    /* 4. Global Mobile Padding & Typography Balancer */
    /* Shrink massive 140px desktop paddings to 60px for better thumb scrolling */
    .why-us, .manifesto-section, .programs-section, .results-section, 
    .campus-gallery, .testimonials-section, .faq-section, .contact-modern, .faculty-section {
        padding: 60px 20px !important;
    }
    
    /* Scale down all massive H2 titles across the site */
    .section-header h2, .manifesto-container h2, .contact-modern-text h2, .results-modal-header h2 {
        font-size: 32px !important;
        line-height: 1.25;
    }

    /* Adjust Manifesto Background Quote Mark so it doesn't overlap text */
    .manifesto-content::before {
        font-size: 80px !important;
        top: -15px !important;
        left: 20px !important;
    }
    .manifesto-content {
        padding: 40px 25px !important;
    }
}

/* =========================================
   SMALL MOBILE OPTIMIZATIONS (Max Width: 480px)
========================================= */
@media (max-width: 480px) {
    /* Ensure tiny phones don't squeeze grids */
    .results-grid, .programs-grid, .why-us-grid, .faculty-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Fix the contact section links bleeding off-screen */
    .contact-modern-card {
        padding: 25px 20px !important;
    }
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .full-screen-glass {
        padding: 40px 20px 20px 20px;
        height: 95vh;
    }
    .results-modal-header h2 {
        font-size: 32px;
    }
    .results-modal-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .results-modal-grid {
        grid-template-columns: 1fr; /* 1 column on tiny screens */
    }
}

/* MOBILE SCREENS: Narrow screens force text to wrap onto 4 or 5 lines.
  We need a much taller safe zone here. 
*/
@media (max-width: 768px) {
    .text-slider-container {
        min-height: 480px; /* Increased massively to stop mobile jumping */
    }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* The slow, breathing motion path */
@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* The slow, breathing motion path */
@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* =========================
   CONTACT RESPONSIVE QUERIES
========================= */
@media(max-width: 992px) {
    .contact-modern-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .contact-modern-text {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-modern-text h2 {
        font-size: 48px;
    }
    
    .contact-modern-card {
        text-align: left;
    }
}

@media(max-width: 768px) {
    .contact-modern {
        padding: 80px 20px;
    }
    
    .contact-modern-text h2 { 
        font-size: 40px; 
    }
    
    .contact-modern-card {
        padding: 30px 20px;
    }
    
    .tags-wrapper { 
        flex-wrap: wrap; 
        justify-content: center;
    }
    
    .ribbon-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .ribbon-right {
        flex-direction: column;
        gap: 15px;
    }
}

/* Keyframes for the infinite scroll */
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly halfway, where the duplicated set begins */
}
/* =========================
   RESPONSIVE (Results)
========================= */
@media(max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media(max-width: 768px) {
    .results-section {
        padding: 80px 20px;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVE (Programs)
========================= */
@media(max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .programs-section {
        padding: 80px 20px;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVE DESIGN 
========================= */
@media(max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .manifesto-section {
        padding: 80px 20px;
    }
    .manifesto-content {
        padding: 40px 30px;
    }
    .manifesto-container h2 {
        font-size: 38px;
    }
    .manifesto-content::before {
        left: 20px;
        font-size: 100px;
    }
    .section-header h2 {
        font-size: 38px;
    }
    .why-us-grid {
        grid-template-columns: 1fr; 
    }
    .feature-card {
        padding: 40px 30px;
    }
}
/* =========================
   RESPONSIVE DESIGN (Append to bottom of CSS)
========================= */
@media(max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .why-us {
        padding: 80px 20px;
    }
    .section-header h2 {
        font-size: 38px;
    }
    .why-us-grid {
        grid-template-columns: 1fr; /* Stacks to 1 column on mobile */
    }
    .feature-card {
        padding: 40px 30px;
    }
}

@media(max-width: 768px) {
    .nav-container { padding: 0 20px; }
    .logo img { height: 48px; }
    .hero { padding-left: 20px; padding-right: 20px; }
    .hero-left h1 { font-size: 42px; }
    .hero-left p { font-size: 16px; }
    .stats { flex-direction: column; align-items: center; width: 100%; }
    .stat-card { width: 100%; max-width: 320px; }
    .btn-primary, .btn-secondary { padding: 14px 24px; font-size: 14px; }
}