/* 
    AGEC Global - Main Stylesheet
    Primary Palette: Royal Blue & Accent Red
    Typography: Inter & Poppins
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
    /* Colors */
    --clr-primary: #0B1E8A;
    --clr-primary-dark: #071460;
    --clr-primary-light: #1A32A8;
    
    --clr-secondary: #0D2096; /* Royal Blue */
    --clr-accent: #D50000; /* Accent Red */
    --clr-accent-hover: #B00000;
    
    --clr-gold: #D50000; /* Red highlight */
    
    --clr-bg: #F5E9DA;
    --clr-surface: #FFF8F0;
    
    --clr-text-main: #1A1A1A;
    --clr-text-muted: #5A4E44;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --container-max: 1200px;
    --section-pad: 5rem 1rem;
    
    /* Effects */
    --shadow-sm: 0 2px 6px rgba(11,30,138,0.07);
    --shadow-md: 0 10px 28px rgba(11,30,138,0.10);
    --shadow-lg: 0 24px 48px rgba(11,30,138,0.15);
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --glass-bg: rgba(245, 233, 218, 0.96);
    --glass-border: rgba(11, 30, 138, 0.20);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-pad);
}

.section-bg-white {
    background-color: var(--clr-surface);
}

.section-bg-teal {
    background-color: var(--clr-secondary);
    color: white;
}

.section-bg-teal h2, .section-bg-teal h3, .section-bg-teal p {
    color: white;
}

/* Typography Classes */
.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(213, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.22);
    transform: skewX(-18deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover::after { left: 150%; }

.btn-primary:hover {
    background: linear-gradient(135deg, var(--clr-accent-hover) 0%, #8B0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(213, 0, 0, 0.45);
    color: #ffffff;
}

.btn-secondary {
    background-color: white;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: translateY(-2px);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 0.75rem 0;
}

.site-header.scrolled {
    background: rgba(7, 20, 96, 0.97);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(213, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px 12px 5px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
    transition: transform 0.25s ease, filter 0.3s ease;
    transform: translateZ(0);
}

.logo:hover {
    box-shadow: 0 4px 18px rgba(11,30,138,0.22);
}

.logo:hover .logo-img {
    transform: scale(1.04);
}

.site-header:not(.scrolled) .logo-img {
    filter: none;
}

.site-header.scrolled .logo-img {
    filter: none;
}

@media (max-width: 768px) {
    .logo-img {
        height: 44px;
    }
    .logo {
        padding: 4px 10px 4px 6px;
        border-radius: 10px;
    }
    .site-header:not(.scrolled) .logo-img {
        filter: none;
    }
    .site-header.scrolled .logo-img {
        filter: none;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: white;
    font-family: var(--font-heading);
}

.site-header.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.88);
}

.nav-links a:hover {
    color: var(--clr-accent);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    min-width: 760px;
    max-width: calc(100vw - 2rem);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: var(--transition);
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    color: var(--clr-text-main) !important;
    padding: 0.65rem 1rem;
    display: block;
    border-radius: 10px;
}

.dropdown-menu a:hover {
    background-color: var(--clr-bg);
    color: var(--clr-primary) !important;
}

@media (max-width: 992px) {
    .dropdown-menu {
        min-width: 520px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dropdown-menu {
        min-width: min(100vw - 1.5rem, 320px);
        grid-template-columns: 1fr;
        left: 0;
        transform: translateY(10px);
    }

    .dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.site-header.scrolled .mobile-menu-btn {
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* offset header */
    background-color: var(--clr-primary-dark);
    color: white;
    overflow: hidden;
}

.hero-3d {
    --mx: 0;
    --my: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    opacity: 0.66;
}

.hero-bg-mobile {
    display: none;
}

.hero-bg-home-desktop,
.hero-bg-home-mobile {
    display: none;
}

.hero-bg-home-desktop {
    display: block;
}

.hero-webgl {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.38;
    mix-blend-mode: screen;
}

.hero-webgl canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.parallax-layer {
    transform: translate3d(calc(var(--mx) * var(--depth) * 1px), calc(var(--my) * var(--depth) * 1px), 0);
    will-change: transform;
}

.hero-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.45;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0));
}

.orb-1 {
    width: 320px;
    height: 320px;
    top: 14%;
    left: -70px;
    background: radial-gradient(circle at 35% 35%, rgba(11, 30, 138, 0.9), rgba(11, 30, 138, 0));
}

.orb-2 {
    width: 240px;
    height: 240px;
    right: 8%;
    top: 20%;
    background: radial-gradient(circle at 35% 35%, rgba(213, 0, 0, 0.55), rgba(213, 0, 0, 0));
}

.orb-3 {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -150px;
    opacity: 0.35;
    background: radial-gradient(circle at 30% 30%, rgba(7, 20, 96, 0.85), rgba(7, 20, 96, 0));
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.055) 0px,
        rgba(255,255,255,0.055) 1px,
        transparent 1px,
        transparent 18px
    );
    opacity: 0.75;
    animation: diagonalShift 5s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.9rem, 5vw, 4.4rem);
    color: white;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.hero-highlight {
    color: var(--clr-gold);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

@media (min-width: 769px) {
    .hero.hero-3d > .hero-bg-home-desktop {
        object-position: center 38%;
        opacity: 0.9;
    }

    .hero.hero-3d > .hero-webgl {
        opacity: 0.22;
    }

    .hero.hero-3d > .hero-ambient {
        opacity: 0.85;
    }

    .hero.hero-3d > .hero-content {
        position: absolute;
        left: clamp(1.5rem, 5vw, 5rem);
        top: 35%;
        transform: translateY(-50%);
        margin: 0;
        max-width: min(44vw, 640px);
        text-align: left;
        padding: 0;
    }

    .hero.hero-3d .hero-subtitle {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero.hero-3d .hero-buttons {
        justify-content: flex-start;
    }

    .hero.hero-3d .hero-buttons-wrapper {
        position: absolute;
        left: 50%;
        bottom: clamp(2rem, 8vw, 6rem);
        transform: translateX(-50%);
        z-index: 60;
        pointer-events: auto;
        width: calc(100% - 2rem);
    }

    .hero.hero-3d .hero-buttons-wrapper .hero-buttons {
        justify-content: center;
    }

    .hero.hero-3d .hero-content .hero-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-buttons-wrapper {
        position: absolute;
        left: 50%;
        bottom: 2rem;
        transform: translateX(-50%);
        z-index: 60;
        pointer-events: auto;
        width: calc(100% - 2rem);
    }

    .hero-buttons-wrapper .hero-buttons {
        justify-content: center;
    }
}

/* Course Finder Module */
.course-finder {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.course-finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-primary-dark);
}

.form-control {
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: white;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.16);
}

/* University Search Results */
.search-results-shell {
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.search-summary-card {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 1.4rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(11, 30, 138, 0.10);
    background:
        radial-gradient(circle at 18% -10%, rgba(11, 30, 138, 0.06), rgba(11, 30, 138, 0) 48%),
        radial-gradient(circle at 82% 120%, rgba(213, 0, 0, 0.07), rgba(213, 0, 0, 0) 45%),
        linear-gradient(140deg, #FFF8F0 0%, #F5E9DA 100%);
    box-shadow: 0 16px 34px rgba(11, 30, 138, 0.07);
}

.search-summary-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(11, 30, 138, 0.07) 1px, transparent 1.2px);
    background-size: 14px 14px;
    opacity: 0.24;
    pointer-events: none;
}

.search-summary-title,
.search-summary-copy {
    position: relative;
    z-index: 2;
}

.search-summary-title {
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    margin-bottom: 0.48rem;
    color: #0B1E8A;
    letter-spacing: 0.01em;
}

.search-summary-copy {
    margin: 0;
    color: #5A4E44;
    font-size: 1.03rem;
}

.search-summary-copy strong {
    color: #0B1E8A;
    font-weight: 700;
}

.university-results-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(11, 30, 138, 0.10);
    background: linear-gradient(165deg, #FFF8F0 0%, #F5E9DA 58%, #EFE0CC 100%);
    box-shadow: 0 18px 40px rgba(11, 30, 138, 0.08);
    padding: 1.2rem;
}

.university-results-ambient {
    position: absolute;
    top: -40px;
    right: -70px;
    width: 320px;
    height: 180px;
    border-radius: 999px;
    background: linear-gradient(130deg, rgba(11, 30, 138, 0.10), rgba(213, 0, 0, 0.10));
    filter: blur(1px);
    pointer-events: none;
}

.university-results-head {
    position: relative;
    z-index: 2;
    margin-bottom: 1.1rem;
}

.university-results-caption {
    margin: 0;
    color: #5A4E44;
    font-size: 0.96rem;
}

.university-results-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
}

.university-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(11, 30, 138, 0.10);
    background: linear-gradient(160deg, #FFF8F0 0%, #F5E9DA 100%);
    box-shadow: 0 10px 22px rgba(11, 30, 138, 0.07);
    padding: 1rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.university-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(11, 30, 138, 0.05), rgba(213, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.university-card:hover,
.university-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(11, 30, 138, 0.35);
    box-shadow: 0 18px 34px rgba(11, 30, 138, 0.12);
}

.university-card:hover::before,
.university-card:focus-within::before {
    opacity: 1;
}

.university-card-head,
.university-meta,
.university-footer {
    position: relative;
    z-index: 2;
}

.university-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.68rem;
}

.university-name {
    font-size: 1.18rem;
    line-height: 1.3;
    color: #1A1A1A;
    margin: 0;
}

.university-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background-color: #E0E6FF;
    color: #0B1E8A;
}

.badge-top-100 {
    background-color: #E0E6FF;
    color: #0B1E8A;
}

.badge-popular {
    background-color: #FFE5E5;
    color: #B00000;
}

.badge-scholarships-available {
    background-color: #E0E6FF;
    color: #0B1E8A;
}

.university-meta {
    display: grid;
    gap: 0.42rem;
    margin-bottom: 0.76rem;
}

.university-meta li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5A4E44;
    font-size: 0.95rem;
}

.university-meta i {
    color: #0B1E8A;
    font-size: 0.88rem;
}

.university-program {
    margin: 0.18rem 0 0.25rem;
    color: #5A4E44;
    font-size: 0.9rem;
}

.university-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-weight: 600;
    color: #0B1E8A;
    font-size: 0.9rem;
}

.university-stars {
    color: #D50000;
    font-size: 0.85rem;
    display: inline-flex;
    gap: 0.1rem;
}

.university-footer {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.university-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1.5px solid #0B1E8A;
    color: #0B1E8A;
    font-weight: 600;
    padding: 0.48rem 0.95rem;
    background: transparent;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.university-link:hover,
.university-link:focus-visible {
    background-color: #0B1E8A;
    border-color: #0B1E8A;
    color: #ffffff;
}

.university-loading,
.university-results-note {
    color: #5A4E44;
    font-size: 0.98rem;
    padding: 0.4rem;
}

.university-results-more {
    position: relative;
    z-index: 2;
    margin: 0.95rem 0 0.2rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px dashed rgba(11, 30, 138, 0.25);
    background: rgba(11, 30, 138, 0.05);
    color: #0B1E8A;
    font-size: 0.92rem;
}

/* Services / Features Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(11,30,138,0.08);
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
}

.card:hover {
    --ty: -10px;
    border-color: rgba(11,30,138,0.3);
    box-shadow: 0 24px 54px rgba(11,30,138,0.12), 0 0 0 1px rgba(11,30,138,0.15);
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem;
    font-size: 1.75rem;
    color: white;
    transform: translateZ(24px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11,30,138,0.28);
}

.card-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.32);
    transform: skewX(-18deg);
    animation: shimmerSlide 2.8s ease-in-out infinite;
}

.card:nth-child(2) .card-icon::after { animation-delay: -0.9s; }
.card:nth-child(3) .card-icon::after { animation-delay: -1.8s; }
.card:nth-child(4) .card-icon::after { animation-delay: -0.45s; }
.card:nth-child(5) .card-icon::after { animation-delay: -1.35s; }
.card:nth-child(6) .card-icon::after { animation-delay: -2.2s; }

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transform: translateZ(18px);
}

.card-text {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    transform: translateZ(14px);
}

/* Destination Cards */
.destination-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-md);
    group: hover;
    cursor: pointer;
}

.destination-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.destination-card:hover .destination-img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.destination-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.destination-facts {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Footer */
.site-footer {
    background-color: #071460;
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--clr-accent);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-bg-home-desktop {
        display: none;
    }

    .hero-bg-home-mobile {
        display: block;
    }

    .hero.hero-3d > .hero-bg-home-desktop {
        display: none;
    }

    .nav-links {
        display: none; /* Mobile menu needed */
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(7, 20, 96, 0.98);
        padding: 0.75rem 0 1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        border-top: 1px solid rgba(213, 0, 0, 0.3);
        z-index: 1000;
    }
    .nav-links a {
        width: 100%;
        color: rgba(255, 255, 255, 0.88);
        padding: 1rem 1.5rem;
    }
    .nav-links .btn {
        width: calc(100% - 3rem);
        margin: 0.5rem 1.5rem 0;
        text-align: center;
    }
    .nav-links .dropdown {
        width: 100%;
    }
    .nav-links .dropdown > a {
        display: block;
    }
    .nav-links .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        left: auto;
        min-width: 0;
        max-width: none;
        width: 100%;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0.25rem 0 0.75rem 1rem;
        grid-template-columns: 1fr;
        gap: 0;
        display: grid;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .nav-links .dropdown.mobile-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 1200px;
    }
    .nav-links .dropdown-menu a {
        padding: 0.7rem 1.25rem;
    }
    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    .grid-3, .grid-4, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.55;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .course-finder {
        margin-top: 2rem;
    }

    .study-abroad-hero {
        min-height: 78vh !important;
    }

    .study-abroad-hero .hero-bg-desktop {
        display: none;
    }

    .study-abroad-hero .hero-bg-mobile {
        display: block;
    }

    section[id] .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    section[id] .container > div[style*="grid-template-columns: 1fr 1fr"] > img {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        border-radius: var(--radius-lg);
    }

    section[id] .container > div[style*="grid-template-columns: 1fr 1fr"] > div {
        order: unset !important;
    }

    .contact-page .section.section-bg-teal {
        padding-top: 112px !important;
        padding-bottom: 3.2rem;
    }

    .contact-page .section.section-bg-teal h1 {
        font-size: 2.25rem !important;
        line-height: 1.12;
    }

    .contact-page .section.section-bg-teal p {
        font-size: 1.08rem !important;
        max-width: 34ch !important;
    }

    .contact-page .section-bg-white .container > div[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.6rem !important;
    }

    .contact-page form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .contact-page .card {
        padding: 1.4rem 1rem;
    }

    .contact-page a[href^="mailto:"] {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .contact-page .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
        right: 14px;
        bottom: 14px;
    }

    .university-results-panel,
    .search-summary-card {
        border-radius: 20px;
    }

    .card {
        transform: none;
    }
}

@media (min-width: 680px) {
    .university-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1060px) {
    .university-results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .parallax-layer,
    .card,
    .card:hover,
    .animate-float,
    .btn-pulse {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================
   STAGGER REVEAL (transition-delay)
   ========================================= */
.reveal.delay-100 { transition-delay: 0.10s; }
.reveal.delay-200 { transition-delay: 0.20s; }
.reveal.delay-300 { transition-delay: 0.30s; }
.reveal.delay-400 { transition-delay: 0.40s; }

/* =========================================
   ANNOUNCEMENT BAR
   ========================================= */
:root {
    --ann-bar-height: 42px;
}

.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: linear-gradient(90deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
    color: white;
    text-align: center;
    height: var(--ann-bar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    font-size: 0.84rem;
    font-weight: 500;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.08) 0px,
        rgba(255,255,255,0.08) 1px,
        transparent 1px,
        transparent 12px
    );
    animation: diagonalShift 3.5s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

.announcement-bar a {
    color: #FFAAAA;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-bar a:hover { color: #fff; }

.ann-close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    transition: color 0.2s;
}

.ann-close-btn:hover { color: #fff; }

.has-announcement-bar .site-header { top: var(--ann-bar-height); }
.has-announcement-bar .hero { padding-top: calc(80px + var(--ann-bar-height)); }

/* =========================================
   HERO BADGE
   ========================================= */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(1.45); }
}

/* =========================================
   SECTION BADGE & GRADIENT TEXT
   ========================================= */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(11,30,138,0.08);
    color: var(--clr-primary);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.85rem;
}

.gradient-text {
    background: linear-gradient(130deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   TRUST STRIP
   ========================================= */
.trust-strip {
    background: var(--clr-surface);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1.6rem 0;
}

.trust-strip-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin-bottom: 1.1rem;
}

.trust-strip-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-uni-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    opacity: 0.5;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: opacity 0.2s;
}

.trust-uni-name:hover { opacity: 0.85; }

/* =========================================
   STATS — GRADIENT VERSION
   ========================================= */
.section-stats {
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 40%, var(--clr-primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.section-stats::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.04) 0px,
        rgba(255,255,255,0.04) 1px,
        transparent 1px,
        transparent 22px
    );
    animation: diagonalShift 7s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.section-stats .stat-number { color: var(--clr-accent); animation: goldGlow 2.5s ease-in-out infinite; }
.section-stats .stat-label  { color: rgba(255,255,255,0.78); }

.section-stats .stat-item {
    position: relative;
    z-index: 1;
}

.section-stats .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.14);
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.section-process { background: var(--clr-bg); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-connector {
    position: absolute;
    top: 40px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: linear-gradient(to right, var(--clr-primary), var(--clr-accent));
    border-radius: 2px;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    font-size: 1.65rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 26px rgba(11,30,138,0.36);
    border: 4px solid var(--clr-bg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-number::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.28);
    transform: skewX(-18deg);
    animation: shimmerSlide 3s ease-in-out infinite;
}

.process-step:nth-child(2) .process-number::after { animation-delay: -1s; }
.process-step:nth-child(3) .process-number::after { animation-delay: -2s; }
.process-step:nth-child(4) .process-number::after { animation-delay: -0.5s; }

.process-step:hover .process-number {
    transform: scale(1.12);
    box-shadow: 0 14px 34px rgba(11,30,138,0.42);
}

.process-step-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--clr-primary-dark);
}

.process-step-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section {
    background: linear-gradient(135deg, #F5E9DA 0%, #FFF8F0 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(11,30,138,0.08);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold), var(--clr-accent), var(--clr-primary));
    background-size: 300% 100%;
    animation: gradientFlow 4s ease infinite;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    opacity: 0.09;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    line-height: 1;
}

.testimonial-stars {
    color: #D50000;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.15rem;
}

.testimonial-text {
    font-size: 0.97rem;
    color: var(--clr-text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.testimonial-author-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.18rem;
    color: var(--clr-primary-dark);
}

.testimonial-author-dest {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* =========================================
   FAQ
   ========================================= */
.faq-section { background: var(--clr-surface); }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    margin-bottom: 0.875rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
    border-color: rgba(11,30,138,0.3);
    box-shadow: 0 4px 18px rgba(11,30,138,0.09);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--clr-primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.faq-question:hover { background: var(--clr-bg); }

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(11,30,138,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.faq-icon i {
    font-size: 0.72rem;
    color: var(--clr-accent);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.open .faq-icon { background: var(--clr-accent); }
.faq-item.open .faq-icon i { color: white; transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 1rem 1.5rem 1.4rem;
    color: var(--clr-text-muted);
    font-size: 0.94rem;
    line-height: 1.72;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* =========================================
   ENHANCED CTA SECTION
   ========================================= */
.section-cta {
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 55%, var(--clr-accent) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -220px;
    right: -100px;
    pointer-events: none;
}

.section-cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -160px;
    left: -60px;
    pointer-events: none;
}

.section-cta h2,
.section-cta .section-title,
.section-cta p {
    color: white;
    position: relative;
    z-index: 1;
}

.cta-usps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-usp-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.cta-usp-item i { color: var(--clr-gold); font-size: 1rem; }

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* =========================================
   SCROLL-TO-TOP
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 102px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--clr-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    border: none;
}

.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover   { background: var(--clr-primary-dark); transform: translateY(-3px); }

/* About Story Grid */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-story-grid img { width: 100%; height: auto; }

/* 2-col override for grid-3 */
.grid-2col { grid-template-columns: 1fr 1fr !important; }

/* =========================================
   RESPONSIVE ADDITIONS
   ========================================= */
@media (max-width: 1024px) {
    .process-grid          { grid-template-columns: repeat(2, 1fr); }
    .process-connector     { display: none; }
    .testimonials-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .about-story-grid      { grid-template-columns: 1fr; gap: 2rem; }
    .grid-2col             { grid-template-columns: 1fr !important; }
    .process-grid          { grid-template-columns: 1fr; }
    .testimonials-grid     { grid-template-columns: 1fr; }
    .cta-usps              { gap: 1rem; }
    .trust-strip-logos     { gap: 1.5rem; }
    .announcement-bar      { font-size: 0.77rem; padding: 0 2.2rem; }
    .scroll-top-btn        { right: 14px; bottom: 88px; width: 40px; height: 40px; }
    .has-announcement-bar .hero { padding-top: calc(72px + var(--ann-bar-height)); }
}
