/* ============================================================
   EDUTRUST — PREMIUM MINIMALIST DESIGN SYSTEM
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --primary: #056943;
    --primary-light: #079129;
    --primary-dark: #14c7af;
    --accent: #00D9A6;
    --accent-light: #34EDBE;
    --dark: #0A0A0F;
    --dark-surface: #12121A;
    --dark-elevated: #1A1A26;
    --surface: #FAFAFE;
    --surface-elevated: #ffffff;
    --muted: #6B7280;
    --muted-light: #9CA3AF;
    --border-color: rgba(108, 99, 255, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 60px rgba(108, 99, 255, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background-color: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Layout --- */
.container {
    width: min(1200px, 90vw);
    margin-inline: auto;
    padding: 0;
}

.container-1 {
    width: min(1200px, 90vw);
    margin-inline: auto;
}

/* --- Section Base --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--muted);
    font-size: 17px;
    max-width: 560px;
    line-height: 1.7;
}

/* Centered variant */
.section-title--center {
    text-align: center;
}

.section-title--center p {
    margin-inline: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    height: auto;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover, var(--primary-light));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 99, 255, 0.04);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   HERO SECTION — Light Premium Gradient
   ============================================================ */
.hero--v3 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(100px, 14vh, 160px) 0 clamp(80px, 10vh, 120px);
    background:
        radial-gradient(ellipse 1100px 700px at 80% 10%, rgba(108, 99, 255, 0.07), transparent 65%),
        radial-gradient(ellipse 900px 600px at 10% 90%, rgba(0, 217, 166, 0.05), transparent 60%),
        linear-gradient(175deg, #FAFAFE 0%, #F3F1FF 35%, #EEF9F7 65%, #FAFAFE 100%);
    margin-top: 0;
}

/* Aurora glow — soft warm tint */
.hero3__radial {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, rgba(0, 217, 166, 0.04) 45%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: auroraDrift 20s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 20px) scale(1.04);
    }
}

/* Ambient blobs — very soft */
.hero3__bg {
    position: absolute;
    filter: blur(120px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.hero3__bg--1 {
    width: 500px;
    height: 500px;
    top: -120px;
    left: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.18), transparent 70%);
    animation: floatBlob1 25s ease-in-out infinite;
}

.hero3__bg--2 {
    width: 420px;
    height: 420px;
    bottom: -80px;
    right: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 166, 0.14), transparent 70%);
    animation: floatBlob2 30s ease-in-out infinite;
}

@keyframes floatBlob1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(18px);
    }
}

@keyframes floatBlob2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Noise texture — ultra subtle on light */
.hero3__noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.018;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='3' seed='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
    background-size: 200px;
    mix-blend-mode: multiply;
}

/* Grid pattern — feather-light */
.hero3__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
}

.hero3__pattern--grid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0v60H0' fill='none' stroke='%236C63FF' stroke-opacity='.18' stroke-width='.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.hero3__pattern--dots {
    display: none;
}

.hero3__globe-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: multiply;
}

/* Hero content */
.hero3__container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero3__content {
    width: min(820px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Badge */
.hero3__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--dark);
    border: 1px solid rgba(108, 99, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    animation: fadeSlideUp 0.6s ease both;
}

.hero3__badge i,
.hero3__badge .fa-sparkles {
    color: var(--accent);
    font-size: 12px;
}

/* Title */
.hero3__title {
    margin-top: 28px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark);
    animation: fadeSlideUp 0.7s ease 0.1s both;
}

.hero3__highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Subtitle */
.hero3__subtitle {
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 19px);
    max-width: 600px;
    line-height: 1.7;
    animation: fadeSlideUp 0.8s ease 0.15s both;
}

@keyframes fadeSlideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Alias for existing references */
@keyframes fadeUp {
    from {
        transform: translateY(6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   SEARCH PRO — Premium Floating Card (Light)
   ============================================================ */
.search-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.search-pro {
    position: relative;
    width: min(720px, 100%);
    margin: 40px auto 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0 18px;
    height: 58px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    box-shadow:
        0 4px 6px rgba(108, 99, 255, 0.02),
        0 12px 32px rgba(108, 99, 255, 0.05),
        0 32px 64px rgba(0, 0, 0, 0.04);
    animation: fadeSlideUp 0.9s ease 0.2s both;
    transition: all var(--transition);
}

.search-pro:hover,
.search-pro:focus-within {
    background: #ffffff;
    box-shadow:
        0 4px 6px rgba(108, 99, 255, 0.03),
        0 16px 40px rgba(108, 99, 255, 0.08),
        0 40px 90px rgba(108, 99, 255, 0.12);
    border-color: rgba(108, 99, 255, 0.25);
}

.search-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 166, 0.1), rgba(108, 99, 255, 0.05));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.search-pro:hover::before,
.search-pro:focus-within::before {
    opacity: 0.7;
}

/* PRB compact badges — hidden in new design */
.prb-compact-wrap {
    display: none;
}

/* Tabs */
.search-pro__header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pill-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: none;
    margin-bottom: 0;
}

.search-tab {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: 0;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.search-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.1), 0 0 0 1px rgba(108, 99, 255, 0.08);
}

.search-tab:hover:not(.active) {
    color: var(--dark);
    background: rgba(108, 99, 255, 0.04);
}

/* Hint chips */
.search-pro__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted-light);
    flex-wrap: wrap;
}

.chip {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--surface);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.chip:hover {
    background: rgba(108, 99, 255, 0.06);
    border-color: rgba(108, 99, 255, 0.15);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.08);
}

/* Search row */
.search-pro__row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 0;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-direction: column;
}

@media (min-width: 768px) {
    .search-box {
        flex-direction: row;
    }
}

/* Input */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    padding: 0;
    transition: all var(--transition);
}

.input-wrap i.fa-magnifying-glass {
    margin-right: 14px;
    color: var(--primary);
    font-size: 18px;
    opacity: 0.8;
}

.search-input {
    flex: 1;
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 16px;
    background: transparent;
    color: var(--dark);
    font-family: var(--font);
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--muted);
    opacity: 0.75;
}

/* Spinner */
.spinner {
    position: absolute;
    right: 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.15);
    border-top-color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.input-loading .spinner {
    opacity: 1;
    animation: spin 1s linear infinite;
}

/* Premium Inline Search Button */
.search-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    height: 54px;
    box-sizing: border-box;
    padding: 0 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.18);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font);
    white-space: nowrap;
}

.search-btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.28);
    filter: brightness(1.05);
}

.search-btn-premium:active {
    transform: translateY(1px);
}

.search-btn-premium i {
    font-size: 13px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-btn-premium:hover i {
    transform: translateX(3px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Filters */
.search-pro__filters {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 992px) {
    .search-pro__filters {
        grid-template-columns: repeat(3, 1fr);
    }
}

.field {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: var(--surface);
    padding: 0 14px;
    transition: all var(--transition);
}

.field:focus-within {
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.05);
    background: #fff;
}

.field i {
    font-size: 14px;
    color: var(--muted-light);
    margin-right: 10px;
}

.filter-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    padding: 13px 28px 13px 0;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    font-family: var(--font);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.filter-select option {
    background: #fff;
    color: var(--dark);
}

/* Meta chips below search */
.hero3__meta {
    margin-top: 28px;
    animation: fadeSlideUp 1s ease 0.3s both;
}

.hero3__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hero3__chips span {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(108, 99, 255, 0.05);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: all var(--transition);
}

.hero3__chips span:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(108, 99, 255, 0.15);
    box-shadow: 0 6px 14px rgba(108, 99, 255, 0.06);
    color: var(--dark);
}

.hero3__chips span i {
    margin-right: 6px;
    color: var(--primary);
    opacity: 0.8;
}

/* Suggestions dropdown */
.search-suggest {
    margin-top: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(108, 99, 255, 0.1);
    overflow: hidden;
    max-height: 320px;
}

.search-suggest[hidden] {
    display: none;
}

.search-suggest button {
    text-align: left;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--dark);
    width: 100%;
    font-family: var(--font);
    font-size: 14px;
}

.search-suggest button:hover {
    background: rgba(108, 99, 255, 0.04);
}

/* ============================================================
   STATS SECTION — Floating Bar
   ============================================================ */
.stats-section {
    background: transparent;
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 36px 20px;
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: background var(--transition);
}

.stat-card:hover {
    background: rgba(108, 99, 255, 0.02);
    transform: none;
    box-shadow: none;
}

/* Subtle dividers */
.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--border-subtle);
}

@media (max-width: 767px) {
    .stat-card:nth-child(odd)::after {
        right: 0;
    }

    .stat-card:nth-child(even)::after {
        display: none;
    }
}

.stat-number {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* ============================================================
   UNIVERSITIES — Premium Cards
   ============================================================ */
.universities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .universities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .universities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.university-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.university-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.15);
}

.university-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.university-card:hover .university-img {
    transform: scale(1.03);
}

.university-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.university-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.university-location {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.university-location i {
    margin-right: 8px;
    color: var(--primary);
    font-size: 13px;
}

.university-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

.university-rank {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
}

.university-rank i {
    margin-right: 6px;
}

/* ============================================================
   COUNTRIES — Dark Cinematic Section
   ============================================================ */
.countries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.country-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 260px;
    cursor: pointer;
}

.country-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-card:hover .country-img {
    transform: scale(1.08);
}

.country-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding: 32px 24px 24px;
    color: white;
    transition: padding var(--transition);
}

.country-card:hover .country-overlay {
    padding-bottom: 30px;
}

.country-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.country-overlay p {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 400;
}

/* ============================================================
   TESTIMONIALS — Large Quote
   ============================================================ */
.testimonials {
    background: var(--surface);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: var(--surface-elevated);
    padding: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 99, 255, 0.1);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 72px;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.08;
    line-height: 1;
}

.testimonial-text {
    font-size: 16px;
    font-style: normal;
    margin-bottom: 24px;
    color: var(--dark);
    line-height: 1.7;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--dark);
}

.author-info p {
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
}

/* ============================================================
   HOW IT WORKS — Timeline
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    counter-reset: step-counter;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.step-card {
    background: var(--surface-elevated);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    position: relative;
    padding-top: 72px;
    transition: all var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 99, 255, 0.12);
    transform: translateY(-4px);
}

.step-card::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: 28px;
    left: 28px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.step-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   CTA SECTION — Premium Gradient
   ============================================================ */
.cta-section {
    background: linear-gradient(165deg, var(--dark) 0%, #12121A 50%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    position: relative;
}

.cta-section p {
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    border: none;
}

.cta-btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
}

.cta-btn-primary:hover {
    background: var(--primary-hover, var(--primary-light));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.4);
}

.cta-btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ============================================================
   BLOG / RESOURCES
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 99, 255, 0.1);
}

.blog-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-content {
    padding: 24px;
}

.blog-date {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.blog-content p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* ============================================================
   YOUTUBE SHORTS — Refined
   ============================================================ */
.shorts-section {
    padding: 80px 0;
    background: var(--surface) !important;
    position: relative;
    overflow: visible !important;
}

.shorts-section .container {
    position: relative;
    overflow: visible !important;
}

.shorts-scroll-wrapper {
    position: relative;
    margin: 36px auto 20px;
    max-width: 100%;
    padding: 15px 0;
    overflow: visible !important;
}

.shorts-scroll-area {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 20px 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    cursor: grab;
}

.shorts-scroll-area:active {
    cursor: grabbing;
}

.shorts-scroll-area::-webkit-scrollbar {
    display: none;
}

.shorts-video-card {
    flex: 0 0 auto;
    width: 280px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    cursor: pointer;
}

.shorts-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.15);
}

.shorts-thumbnail {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.shorts-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shorts-video-card:hover .shorts-thumbnail img {
    transform: scale(1.04);
}

.shorts-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.shorts-play-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transition: all var(--transition);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.shorts-video-card:hover .shorts-play-btn {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}

.shorts-video-info {
    padding: 16px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-elevated);
}

.shorts-yt-icon {
    color: #FF0000;
    font-size: 1.3rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.shorts-video-title {
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shorts-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.shorts-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.shorts-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.shorts-nav-left {
    left: 10px;
}

.shorts-nav-right {
    right: 10px;
}

.shorts-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.shorts-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    transition: all var(--transition);
    cursor: pointer;
}

.shorts-dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.shorts-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    width: 24px;
    border-radius: var(--radius-full);
}

.shorts-section-tagline {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 16px;
    font-weight: 500;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: rgba(108, 99, 255, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    transition: background var(--transition);
}

.faq-question:hover {
    background: rgba(108, 99, 255, 0.02);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--muted);
    font-size: 13px;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   STRATEGIC INTELLIGENCE REPORT — Refined
   ============================================================ */
.intelligence-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(108, 99, 255, 0.12);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.sub-section-title {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.sub-section-title i {
    color: var(--primary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.comparison-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--primary);
    transition: all var(--transition);
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.comparison-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 14px 0 18px;
    font-weight: 700;
}

.country-flag {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 217, 166, 0.08));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-item span {
    color: var(--muted);
    font-size: 13px;
}

.comparison-item strong {
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    max-width: 55%;
}

.takeaway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.takeaway-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary);
    transition: all var(--transition);
}

.takeaway-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.takeaway-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(0, 217, 166, 0.06));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.takeaway-card h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.takeaway-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   RECENTLY VIEWED
   ============================================================ */
.recently-viewed {
    padding: 60px 0;
}

.viewed-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.viewed-slider::-webkit-scrollbar {
    display: none;
}

.viewed-card {
    min-width: 240px;
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 14px;
    scroll-snap-align: start;
    transition: all var(--transition);
}

.viewed-card:hover {
    border-color: rgba(108, 99, 255, 0.12);
    box-shadow: var(--shadow-sm);
}

.viewed-logo {
    width: 48px;
    height: 48px;
    background: rgba(108, 99, 255, 0.06);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.viewed-logo img {
    width: 36px;
    height: auto;
}

.viewed-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--dark);
}

.viewed-info p {
    font-size: 13px;
    color: var(--muted);
}

/* ============================================================
   RESULTS (Search Results — Dynamic Content)
   ============================================================ */
.results-container {
    width: 100%;
    margin: 28px auto 0;
    padding: 2rem 1rem;
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
}

/* Dynamic result cards */
.results-container .university-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.results-container .university-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 99, 255, 0.12);
}

.results-container .university-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 1.5rem;
}

.results-container .university-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1rem 1.5rem 0.5rem;
    line-height: 1.4;
}

.results-container .university-card p {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0.25rem 1.5rem;
    line-height: 1.5;
}

.results-container .university-card p:last-of-type {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.results-container .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    text-align: center;
    margin: auto 1.5rem 1.5rem;
    height: auto !important;
}

/* ============================================================
   COURSE RESULTS
   ============================================================ */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 1rem;
    max-width: 90vw;
    margin: 0 auto;
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-md) !important;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    padding-bottom: 70px;
    box-shadow: none;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 99, 255, 0.12);
}

.course-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.25rem 1.25rem 0.5rem;
    line-height: 1.35;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.course-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.4rem 1.25rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1.3rem;
}

.course-card p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
}

.course-card p:first-of-type {
    color: var(--dark);
    font-weight: 500;
}

.course-card p:nth-of-type(2) {
    font-weight: 600;
}

.course-card p:nth-of-type(4) {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.course-card p:nth-of-type(4)[data-tuition="0"] {
    color: var(--accent);
}

.course-card .btn {
    margin: 1rem 1.25rem 1.25rem;
}

/* Level indicators */
.course-card p:nth-of-type(2)::after {
    content: "";
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.course-card p:nth-of-type(2)[data-level="UG"]::after {
    background: #22C55E;
}

.course-card p:nth-of-type(2)[data-level="PG"]::after {
    background: var(--primary);
}

.course-card p:nth-of-type(2)[data-level="PhD"]::after {
    background: #A855F7;
}

.course-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
    pointer-events: none;
}

.btn-apply,
.course-card a {
    border: none;
    border-radius: var(--radius-full) !important;
    font-size: 12px !important;
    background: var(--primary);
    color: #fff !important;
}

.course-card a {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-60%);
    width: 65%;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays for result cards */
.university-card:nth-child(1),
.course-card:nth-child(1) {
    animation-delay: 0.05s;
}

.university-card:nth-child(2),
.course-card:nth-child(2) {
    animation-delay: 0.1s;
}

.university-card:nth-child(3),
.course-card:nth-child(3) {
    animation-delay: 0.15s;
}

.university-card:nth-child(4),
.course-card:nth-child(4) {
    animation-delay: 0.2s;
}

.university-card:nth-child(5),
.course-card:nth-child(5) {
    animation-delay: 0.25s;
}

.university-card:nth-child(6),
.course-card:nth-child(6) {
    animation-delay: 0.3s;
}

.university-card:nth-child(7),
.course-card:nth-child(7) {
    animation-delay: 0.35s;
}

.university-card:nth-child(8),
.course-card:nth-child(8) {
    animation-delay: 0.4s;
}

.university-card:nth-child(9),
.course-card:nth-child(9) {
    animation-delay: 0.45s;
}

.university-card:nth-child(10),
.course-card:nth-child(10) {
    animation-delay: 0.5s;
}

.university-card:nth-child(n+11),
.course-card:nth-child(n+11) {
    animation-delay: 0.55s;
}

/* Shorts stagger */
.shorts-video-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.shorts-video-card:nth-child(1) {
    animation-delay: 0.05s;
}

.shorts-video-card:nth-child(2) {
    animation-delay: 0.1s;
}

.shorts-video-card:nth-child(3) {
    animation-delay: 0.15s;
}

.shorts-video-card:nth-child(4) {
    animation-delay: 0.2s;
}

.shorts-video-card:nth-child(5) {
    animation-delay: 0.25s;
}

.shorts-video-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* ============================================================
   SCROLL REVEAL — via IntersectionObserver
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   MISC EXISTING SELECTORS (Preserved)
   ============================================================ */
.loading,
.error {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.error {
    color: #EF4444;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.06);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.newsletter input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-family: var(--font);
}

.newsletter input::placeholder {
    color: #6B7280;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 14px;
}

/* Mini stats / Recruiter chips — preserved */
.mini-stats {
    width: 90%;
    margin-left: 5% !important;
    margin-top: 12px;
}

.mini-stats>span {
    display: block;
    width: 100%;
    margin: 5px 0;
    border-radius: 8px;
}

.u-rank {
    position: absolute;
    top: 0;
    margin-top: 12px;
    margin-left: 12px;
    font-size: 12px !important;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.avg-sal {
    width: 90%;
    padding: 8px;
    display: flex;
    border: 1px solid rgba(0, 217, 166, 0.2);
    border-radius: var(--radius-sm);
    margin-left: 5%;
    margin-bottom: 1rem;
    background: rgba(0, 217, 166, 0.04);
}

.avg-sal>div {
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avg-sal>div:nth-child(1) {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
}

.avg-sal>div:nth-child(2) {
    flex: 1;
}

.avg-sal>div:nth-child(3) {
    color: var(--primary);
    font-weight: bold;
}

.req-head {
    margin: 0 !important;
    margin-left: 5px !important;
    padding: 0 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    color: var(--muted) !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.req-head i {
    color: var(--muted);
    font-size: 13px;
}

.chip .vals-r {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chip .vals-r>span {
    font-size: 12px;
    font-weight: 550;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    padding: 4px 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all var(--transition);
}

.chip .vals-r>span:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.vals-r {
    display: flex;
}

.vals-r span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

.university-card .chip {
    border: none;
}

.university-card .chip:hover {
    transform: none;
    box-shadow: none;
}

.uni-card,
.uni-card p,
.uni-card span {
    text-decoration: none !important;
}

/* ============================================================
   PERFORMANCE & MOTION
   ============================================================ */
.section,
.results-container,
.recently-viewed,
.testimonials {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.viewed-slider,
.university-cards-container {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.viewed-card,
.university-card {
    scroll-snap-align: start;
}

@media (pointer: coarse) {

    .hero3__bg--1,
    .hero3__bg--2,
    .hero3__pattern--grid,
    .hero3__radial {
        animation: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero3__radial,
    .hero3__bg--1,
    .hero3__bg--2,
    .hero3__pattern--grid,
    .shorts-video-card,
    .university-card,
    .course-card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   A11Y FOCUS STATES
   ============================================================ */
.search-tab:focus-visible,
.chip:focus-visible,
.btn:focus-visible,
.faq-question:focus-visible,
.shorts-video-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero--v3 {
        padding: clamp(80px, 10vh, 120px) 0 clamp(60px, 8vh, 100px);
    }

    .search-pro {
        padding: 0 16px;
        height: 54px;
        border-radius: 18px;
    }

    .input-wrap {
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        padding: 64px 0;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .university-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .shorts-video-card {
        width: 260px;
    }

    .shorts-thumbnail {
        height: 460px;
    }

    .shorts-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-answer.active {
        padding-bottom: 18px;
    }

    .comparison-grid,
    .takeaway-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero3__title {
        font-size: 32px;
    }

    .hero3__subtitle {
        font-size: 15px;
    }

    .search-pro {
        border-radius: 16px;
        padding: 0 14px;
        height: 50px;
    }

    .search-pro__row {
        flex-direction: row;
        gap: 0;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .input-wrap {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 0;
    }

    .spinner {
        right: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .university-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }

    .results-container {
        padding: 1rem 0.5rem;
    }

    .shorts-video-card {
        width: 240px;
    }

    .shorts-thumbnail {
        height: 420px;
    }

    .shorts-scroll-wrapper {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CHATBOT (existing)
   ============================================================ */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
    cursor: pointer;
    z-index: 99;
    transition: all var(--transition);
}

.chatbot:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.4);
}

.chatbot-icon {
    color: white;
    font-size: 22px;
}

/* ============================================================
   PREVIOUSLY VIEWED (existing)
   ============================================================ */
.previously-viewed {
    padding: 60px 0;
    background-color: var(--surface);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.university-cards-container {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    -webkit-overflow-scrolling: touch;
}

.university-cards-container::-webkit-scrollbar {
    height: 6px;
}

.university-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.university-cards-container::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.3);
    border-radius: var(--radius-full);
}

/* Quick filters (non-search-pro) */
.quick-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 576px) {
    .quick-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .quick-filters {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Search tabs (non-pill) */
.search-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
}