/* Brand direction based on uploaded PDF:
   Display font style: Geova Trial equivalent
   Secondary/classic serif accent: Ceramon equivalent
   Temporary web-safe substitutes used until exact webfonts are added
*/

:root {
    --bg: #f7fbff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --text: #16324a;
    --muted: #5f7183;
    --primary: #1d6fa3;
    --primary-dark: #124d73;
    --accent: #8dd8ff;
    --line: rgba(22, 50, 74, 0.1);
    --shadow: 0 20px 50px rgba(29, 111, 163, 0.10);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;

    --card-blue-bg: rgba(227, 242, 252, 0.78);
    --card-blue-bg-strong: rgba(235, 247, 255, 0.9);
    --card-blue-border: rgba(29, 111, 163, 0.22);
    --card-blue-border-strong: rgba(29, 111, 163, 0.32);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2b7fb4, #144d73);
    border: 2px solid transparent;
    background-clip: padding-box;
}

body::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    position: relative;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    transform: scale(1.02);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(247, 251, 255, 0.72), rgba(247, 251, 255, 0.82)),
        rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

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

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    z-index: 999;
}

.skip-link:focus {
    top: 12px;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(22, 50, 74, 0.08);
    box-shadow: 0 4px 18px rgba(18, 52, 77, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(22, 50, 74, 0.10);
    box-shadow: 0 10px 28px rgba(18, 52, 77, 0.08);
}

.navbar {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.site-header.scrolled .navbar {
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    justify-self: start;
    width: clamp(60px, 8vw, 108px);
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nav-desktop {
    display: contents;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text);
    padding: 0;
    opacity: 0.92;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--primary);
    opacity: 1;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 999px;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(29, 111, 163, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(29, 111, 163, 0.24);
    filter: brightness(1.03);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(22, 50, 74, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 50, 74, 0.08);
    font-weight: 600;
}

.mobile-nav-cta {
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff !important;
    border: none;
}

/* ─── Hero ───────────────────────────────────────────────── */
.welcome-section {
    position: relative;
    overflow: hidden;
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 0;
    min-height: calc(100vh - 130px);
    padding: 56px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
    box-shadow:
        0 24px 60px rgba(18, 52, 77, 0.10),
        0 8px 24px rgba(18, 52, 77, 0.05);
    backdrop-filter: blur(10px);
}

.welcome-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 44px;
    min-height: calc(100vh - 242px);
}

.welcome-copy {
    max-width: 620px;
}

.eyebrow,
.section-tag {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 14px;
}

.welcome-section h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.98;
    color: var(--primary-dark);
    margin-bottom: 20px;
    max-width: 11ch;
}

.welcome-text {
    max-width: 58ch;
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 12px 26px rgba(29, 111, 163, 0.22);
}

.primary-btn:hover,
.primary-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(29, 111, 163, 0.28);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-dark);
    border: 1px solid rgba(22, 50, 74, 0.10);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
}

.stat-card {
    background: var(--card-blue-bg);
    border: 1px solid var(--card-blue-border);
    border-radius: 22px;
    padding: 20px 18px;
    box-shadow: 0 10px 24px rgba(18, 52, 77, 0.05);
    backdrop-filter: blur(10px);
}

.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.stat-card span {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Hero Image */
.hero-visual {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-rotation-shell {
    position: relative;
    width: min(100%, 470px);
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-rotation-card {
    position: relative;
    z-index: 2;
    width: 84%;
    min-height: 560px;
    margin-left: auto;
    padding: 34px 30px;
    border-radius: 38px;
    overflow: hidden;
    border: 1px solid rgba(141, 216, 255, 0.30);
    box-shadow:
        0 30px 70px rgba(18, 52, 77, 0.16),
        0 10px 28px rgba(18, 52, 77, 0.07),
        inset 0 1px 0 rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
}

.hero-rotation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.24), transparent 24%),
        linear-gradient(to top, rgba(141,216,255,0.08), transparent 26%);
    pointer-events: none;
}

.hero-rotation-label {
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-rotation-viewport {
    position: relative;
    z-index: 2;
    height: 460px;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
}

.hero-rotation-track {
    position: relative;
    width: 100%;
}

.hero-rotation-item {
    min-height: 80px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1.04;
    color: rgba(18, 77, 115, 0.44);
    transform: scale(0.9);
    transform-origin: left center;
    transition:
        transform 0.6s ease,
        opacity 0.6s ease,
        color 0.6s ease,
        background 0.6s ease,
        box-shadow 0.6s ease,
        border-color 0.6s ease;
    opacity: 0.72;
    border-radius: 22px;
}

.hero-rotation-item.is-near {
    color: rgba(18, 77, 115, 0.66);
    transform: scale(0.95);
    opacity: 0.92;
}

.hero-rotation-item.is-active {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    color: var(--primary-dark);
    transform: scale(1);
    opacity: 1;
    padding: 18px 18px;
    min-height: 96px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(235,247,255,0.92));
    border: 1px solid rgba(29, 111, 163, 0.22);
    box-shadow:
        0 14px 34px rgba(29, 111, 163, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.72);
}

.hero-rotation-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    z-index: 1;
    opacity: 0.58;
}

.hero-rotation-glow-one {
    width: 340px;
    height: 340px;
    top: -70px;
    left: -50px;
    background: radial-gradient(circle, rgba(141,216,255,0.62), rgba(141,216,255,0.05));
}

.hero-rotation-glow-two {
    width: 280px;
    height: 280px;
    right: -45px;
    bottom: 10px;
    background: radial-gradient(circle, rgba(29,111,163,0.20), rgba(29,111,163,0.03));
}

@media (max-width: 900px) {
    .hero-rotation-shell {
        width: 100%;
        min-height: auto;
    }

    .hero-rotation-card {
        width: min(100%, 380px);
        min-height: 440px;
        margin: 0 auto;
        border-radius: 28px;
        padding: 28px 22px;
    }

    .hero-rotation-label {
        font-size: 0.92rem;
        margin-bottom: 18px;
    }

    .hero-rotation-viewport {
        height: 360px;
    }

    .hero-rotation-item {
        height: 78px;
        font-size: 1.15rem;
    }

    .hero-rotation-item.is-active {
        font-size: 2.3rem;
    }
}

@media (max-width: 560px) {
    .hero-rotation-card {
        width: 100%;
        min-height: 360px;
        border-radius: 22px;
        padding: 24px 18px;
    }

    .hero-rotation-label {
        font-size: 0.86rem;
    }

    .hero-rotation-viewport {
        height: 280px;
    }

    .hero-rotation-item {
        height: 62px;
        font-size: 1rem;
        padding: 0 4px;
    }

    .hero-rotation-item.is-active {
        font-size: 1.85rem;
    }
}

/* ─── Section Cards ──────────────────────────────────────── */
.section-card {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 48px 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.section-heading {
    margin-bottom: 18px;
}

.section-card h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-card p {
    max-width: 860px;
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 14px;
}

/* ─── About ──────────────────────────────────────────────── */
.about-section {
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}

.about-copy {
    max-width: 100%;
}

.about-lead {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 60ch;
    margin-bottom: 18px;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 30px;
}

.about-points {
    display: grid;
    gap: 16px;
}

.about-point {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--card-blue-bg);
    border: 1px solid var(--card-blue-border);
    box-shadow: 0 10px 24px rgba(18, 52, 77, 0.04);
}

.about-point-icon {
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 0 0 6px rgba(29, 111, 163, 0.08);
}

.about-point h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.about-point p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.about-visual {
    position: relative;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(29, 111, 163, 0.10);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.about-lead {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--primary-dark);
    margin: 0 0 22px;
    max-width: 60ch;
}

.about-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--muted);
    margin: 0 0 18px;
    max-width: 62ch;
}

.about-right-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-ceo-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    margin-bottom: 30px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(235,247,255,0.78));
    border: 1px solid rgba(29, 111, 163, 0.12);
    box-shadow:
        0 16px 36px rgba(18, 52, 77, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.72);
}

.about-ceo-media {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(29, 111, 163, 0.10);
    box-shadow: 0 10px 24px rgba(18, 52, 77, 0.08);
}

.about-ceo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-ceo-content {
    min-width: 0;
}

.about-ceo-label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.about-ceo-name {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary-dark);
}

.about-ceo-role {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 900px) {
    .about-ceo-card {
        grid-template-columns: 88px 1fr;
        border-radius: 22px;
        padding: 16px;
    }

    .about-ceo-media {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

    .about-ceo-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .about-ceo-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-ceo-media {
        width: 100px;
        height: 100px;
    }
}

/* Journey Panel */
.journey-panel {
    position: relative;
    border-radius: 30px;
    padding: 26px 24px;
    background: linear-gradient(180deg, var(--card-blue-bg-strong), var(--card-blue-bg));
    border: 1px solid var(--card-blue-border-strong);
    box-shadow:
        0 24px 50px rgba(18, 52, 77, 0.10),
        0 10px 20px rgba(18, 52, 77, 0.04);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.journey-panel::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(141, 216, 255, 0.18), rgba(141, 216, 255, 0));
    pointer-events: none;
}

.journey-panel-head {
    margin-bottom: 22px;
}

.journey-panel-head p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 34ch;
}

.journey-timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 12px;
}

.journey-line {
    position: absolute;
    left: 28px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(29, 111, 163, 0.10),
        rgba(29, 111, 163, 0.22),
        rgba(29, 111, 163, 0.10)
    );
    border-radius: 999px;
}

.journey-progress {
    position: absolute;
    left: 25px;
    top: 12px;
    width: 8px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(141, 216, 255, 0),
        rgba(29, 111, 163, 0.9),
        rgba(141, 216, 255, 0)
    );
    filter: blur(1px);
    box-shadow:
        0 0 12px rgba(29, 111, 163, 0.22),
        0 0 24px rgba(141, 216, 255, 0.18);
    animation: journeyGlow 6s ease-in-out infinite;
}

@keyframes journeyGlow {
    0%   { transform: translateY(0);     opacity: 0.75; }
    25%  { transform: translateY(92px);  opacity: 1; }
    50%  { transform: translateY(184px); opacity: 0.9; }
    75%  { transform: translateY(276px); opacity: 1; }
    100% { transform: translateY(0);     opacity: 0.75; }
}

.journey-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}

.journey-node {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-dark);
    background: rgba(236, 247, 255, 0.96);
    border: 1px solid rgba(29, 111, 163, 0.22);
    box-shadow:
        0 8px 20px rgba(29, 111, 163, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.journey-node::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    width: 16px;
    height: 1px;
    background: rgba(29, 111, 163, 0.18);
    transform: translateY(-50%);
}

.journey-content {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(236, 247, 255, 0.80);
    border: 1px solid rgba(29, 111, 163, 0.18);
    box-shadow: 0 12px 26px rgba(18, 52, 77, 0.04);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

.journey-content h3 {
    font-size: 1.04rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.journey-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.journey-stage:hover .journey-content {
    transform: translateX(4px);
    background: rgba(239, 249, 255, 0.95);
    border-color: rgba(29, 111, 163, 0.28);
    box-shadow: 0 18px 32px rgba(18, 52, 77, 0.08);
}

.journey-stage:hover .journey-content p {
    opacity: 1;
    transform: translateY(-1px);
}

.journey-stage:hover .journey-node {
    box-shadow:
        0 10px 24px rgba(29, 111, 163, 0.12),
        0 0 0 6px rgba(141, 216, 255, 0.12);
}

/* ─── Results Section ────────────────────────────────────── */
.results-section {
    overflow: visible;
    padding-bottom: 52px;
}

.results-section .section-heading {
    margin-bottom: 36px;
}

.results-section .section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
    line-height: 1.05;
    margin-bottom: 12px;
}

.results-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.results-viewport::before,
.results-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.results-viewport::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0));
}

.results-viewport::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0));
}

/* 3-row marquee grid, no vertical alignment */
.results-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;            /* width of each card */
    grid-template-rows: repeat(2, auto); /* 3 rows, no vertical alignment */
    animation: resultsMarquee 40s linear infinite;
}

.results-scroll {
    display: flex;
    align-items: stretch;
    width: max-content;
    will-change: transform;
    transform: translateX(0);
    user-select: none;
}

/* Each poster is just an image card */
.result-poster {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 50, 74, 0.06);
    box-shadow: 0 10px 24px rgba(18, 52, 77, 0.06);
    border-radius: 0;
}


.result-poster:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.result-image-wrap {
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}



@keyframes resultsMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.results-viewport:hover .results-gallery {
    animation-play-state: paused;
}

/* ─── Countries Section ──────────────────────────────────── */
.countries-section {
    overflow: visible;
}

.countries-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.countries-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 0;
    line-height: 1.05;
}

.countries-sub {
    max-width: 36ch;
    color: var(--muted);
    font-size: 1rem;
    text-align: right;
    margin: 0;
    line-height: 1.55;
}

/* Mosaic grid layout */
.countries-mosaic {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}

.country-card--featured {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 3.2;
}

.countries-stack {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.countries-stack .country-card {
    flex: 1;
}

.country-card--bottom {
    grid-column: auto;
    grid-row: 2;
    aspect-ratio: 4 / 2.8;
}

/* Span bottom 3 across both columns */
.countries-mosaic > .country-card--bottom:nth-of-type(1) { grid-column: 1; }
.countries-mosaic > .country-card--bottom:nth-of-type(2) { grid-column: 1 / span 1; }

/* Bottom row gets its own sub-grid */
.countries-mosaic {
    grid-template-columns: 1fr 1fr 1fr;
}

.country-card--featured {
    grid-column: 1 / span 2;
    grid-row: 1;
    aspect-ratio: 16 / 8;
}

.countries-stack {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.country-card--bottom {
    grid-row: 2;
    aspect-ratio: 4 / 3;
}

/* Base card */
.country-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 10px 28px rgba(18, 52, 77, 0.10),
        0 3px 8px rgba(18, 52, 77, 0.05);
    transition:
        transform 0.40s cubic-bezier(0.34, 1.3, 0.64, 1),
        box-shadow 0.40s ease;
    cursor: pointer;

    opacity: 0;
    transform: translateY(32px);
    animation: countryReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.country-card[data-index="1"] { animation-delay: 0.05s; }
.country-card[data-index="2"] { animation-delay: 0.15s; }
.country-card[data-index="3"] { animation-delay: 0.22s; }
.country-card[data-index="4"] { animation-delay: 0.30s; }
.country-card[data-index="5"] { animation-delay: 0.38s; }
.country-card[data-index="6"] { animation-delay: 0.45s; }

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

.country-card:hover {
    transform: translateY(-8px) scale(1.018);
    box-shadow:
        0 30px 60px rgba(18, 52, 77, 0.18),
        0 10px 22px rgba(18, 52, 77, 0.10);
}

.country-image-wrap {
    position: absolute;
    inset: 0;
}

.country-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.country-card:hover .country-image {
    transform: scale(1.10);
}

/* Gradient overlay */
.country-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 24, 40, 0.88) 0%,
        rgba(8, 24, 40, 0.30) 50%,
        rgba(8, 24, 40, 0.0) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 20px 20px;
    transition: background 0.4s ease;
}

.country-card:hover .country-card-overlay {
    background: linear-gradient(
        to top,
        rgba(8, 24, 40, 0.92) 0%,
        rgba(8, 24, 40, 0.44) 60%,
        rgba(8, 24, 40, 0.06) 100%
    );
}

/* Featured card accent strip */
.country-card--featured .country-card-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.country-card--featured:hover .country-card-overlay::before {
    opacity: 1;
}

.country-card-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.country-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(141, 216, 255, 0.22);
    border: 1px solid rgba(141, 216, 255, 0.40);
    color: #8dd8ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 4px;
    backdrop-filter: blur(4px);
}

.country-card-name {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

.country-card--featured .country-card-name {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.country-card-detail {
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0;
    max-width: 38ch;
    transform: translateY(4px);
    opacity: 0;
    transition: opacity 0.30s ease 0.05s, transform 0.30s ease 0.05s;
}

.country-card:hover .country-card-detail {
    opacity: 1;
    transform: translateY(0);
}

.country-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 6px;
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.28s ease 0.08s, transform 0.28s ease 0.08s;
}

.country-card:hover .country-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Glint border on hover */
.country-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1.5px solid rgba(255,255,255,0);
    pointer-events: none;
    transition: border-color 0.35s ease;
    z-index: 3;
}

.country-card:hover::after {
    border-color: rgba(255,255,255,0.16);
}

/* Responsive */
@media (max-width: 900px) {
    .countries-mosaic {
        grid-template-columns: 1fr 1fr;
    }
    .country-card--featured {
        grid-column: 1 / span 2;
        aspect-ratio: 16 / 7;
    }
    .countries-stack {
        grid-column: 1 / span 2;
        grid-row: auto;
        flex-direction: row;
    }
    .countries-stack .country-card {
        aspect-ratio: 4 / 3;
    }
    .country-card--bottom {
        grid-row: auto;
    }
    .countries-sub {
        text-align: left;
    }
    .results-gallery {
        grid-auto-columns: 180px;
        gap: 12px;
    }
    .result-image {
        height: 220px;
    }
}

@media (max-width: 560px) {
    .countries-mosaic {
        grid-template-columns: 1fr;
    }
    .country-card--featured,
    .countries-stack,
    .country-card--bottom {
        grid-column: 1;
    }
    .countries-stack {
        flex-direction: column;
    }
    .country-card--featured {
        aspect-ratio: 16 / 9;
    }
    .country-card {
        border-radius: 18px;
    }
}

/* ─── Country Detail ─────────────────────────────────────── */
.country-detail-section {
    min-height: 60vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* ─── University Cards ───────────────────────────────────── */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 4px;
}

.university-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(22,50,74,0.08);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(29,111,163,0.07), 0 2px 6px rgba(18,52,77,0.04);
    cursor: pointer;
    outline: none;
    transition:
        transform 0.32s cubic-bezier(0.34,1.3,0.64,1),
        box-shadow 0.32s ease,
        border-color 0.32s ease;

    opacity: 0;
    transform: translateY(24px);
    animation: ucardReveal 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}

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

.university-card:nth-child(1) { animation-delay:.04s; }
.university-card:nth-child(2) { animation-delay:.10s; }
.university-card:nth-child(3) { animation-delay:.16s; }
.university-card:nth-child(4) { animation-delay:.22s; }
.university-card:nth-child(5) { animation-delay:.28s; }
.university-card:nth-child(6) { animation-delay:.34s; }

.university-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 52px rgba(29,111,163,0.14), 0 8px 18px rgba(18,52,77,0.08);
    border-color: rgba(29,111,163,0.20);
}

.university-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Top accent bar */
.ucard-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-dark));
    background-size: 200% 100%;
    transition: background-position 0.5s ease;
}

.university-card:hover .ucard-accent {
    background-position: 100% 0;
}

/* Logo */
.ucard-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px 18px;
    min-height: 130px;
    background: #fff;
}

.ucard-logo {
    max-width: 120px;
    max-height: 72px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.university-card:hover .ucard-logo {
    transform: scale(1.06);
}

.ucard-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--card-blue-bg-strong), var(--card-blue-bg));
    border: 1px solid var(--card-blue-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-dark);
}

/* Body */
.ucard-body {
    padding: 6px 20px 14px;
    flex: 1;
    border-top: 1px solid rgba(22,50,74,0.05);
}

.ucard-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 12px 0 10px;
    line-height: 1.2;
}

.ucard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ucard-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--card-blue-bg);
    border: 1px solid var(--card-blue-border);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.ucard-tag--type {
    background: rgba(247,251,255,0.9);
    color: var(--muted);
    border-color: rgba(22,50,74,0.10);
}

.ucard-tag--scholarship {
    background: rgba(220,252,231,0.85);
    border-color: rgba(34,197,94,0.25);
    color: #166534;
}

.ucard-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.58;
    margin: 0;
}

/* Footer */
.ucard-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(22,50,74,0.06);
    background: rgba(247,251,255,0.6);
}

.ucard-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ucard-stat-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.ucard-stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.1;
}

.ucard-view-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    transition: filter 0.2s ease, transform 0.2s ease, gap 0.2s ease;
}

.university-card:hover .ucard-view-btn {
    filter: brightness(1.08);
    gap: 9px;
}

/* ─── University Modal ───────────────────────────────────── */
.umodal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(14, 34, 54, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.umodal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.umodal {
    position: relative;
    width: min(860px, calc(100vw - 48px));
    max-height: min(88vh, 920px);
    margin: 0 auto;
    overflow-y: auto;
    background: linear-gradient(160deg, var(--card-blue-bg-strong) 0%, rgba(255,255,255,0.99) 50%);
    border: 1px solid var(--card-blue-border-strong);
    border-radius: 36px;
    padding: 36px 32px 32px;
    box-shadow:
        0 48px 96px rgba(14,34,54,0.24),
        0 16px 32px rgba(14,34,54,0.10);
    transform: translateY(28px) scale(0.96);
    transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
}

.umodal-overlay.active .umodal {
    transform: translateY(0) scale(1);
}

.umodal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 50, 74, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.umodal-close:hover,
.umodal-close:focus-visible {
    background: rgba(29, 111, 163, 0.10);
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.umodal-header {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 48px;
}

.umodal-logo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(29, 111, 163, 0.12);
    box-shadow: 0 8px 20px rgba(18, 52, 77, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.umodal-logo {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.umodal-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--primary-dark);
    opacity: 0.5;
}

.umodal-title-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.umodal-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--primary-dark);
    line-height: 1.05;
    margin: 0;
    overflow-wrap: anywhere;
}

.umodal-country {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0;
}

.umodal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.umodal-stat-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--card-blue-bg);
    border: 1px solid var(--card-blue-border);
    min-width: 0;
}

.umodal-stat-chip .chip-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--primary);
}

.umodal-stat-chip .chip-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.umodal-stat-chip--green {
    background: rgba(220, 252, 231, 0.75);
    border-color: rgba(34, 197, 94, 0.22);
}

.umodal-stat-chip--green .chip-label {
    color: #166534;
}

.umodal-stat-chip--green .chip-value {
    color: #14532d;
}

.umodal-divider {
    height: 1px;
    background: var(--card-blue-border);
    margin-bottom: 18px;
}

.umodal-description {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 24px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.umodal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.umodal-cta:hover,
.umodal-cta:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.universities-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
    gap: 8px;
}

@media (max-width: 560px) {
    .umodal-overlay {
        padding: 14px;
        align-items: center;
    }

    .umodal {
        width: 100%;
        max-height: 88vh;
        padding: 28px 18px 24px;
        border-radius: 28px;
    }

    .umodal-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .umodal-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-right: 0;
    }

    .umodal-logo-wrap {
        width: 80px;
        height: 80px;
    }

    .umodal-logo {
        max-width: 58px;
        max-height: 58px;
    }

    .umodal-logo-placeholder {
        font-size: 1.9rem;
    }

    .umodal-name {
        font-size: 1.75rem;
    }

    .umodal-stats {
        grid-template-columns: 1fr 1fr;
    }

    .umodal-stat-chip {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .umodal-description {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .umodal-cta {
        width: 100%;
        justify-content: center;
    }
}

.umodal-video-block {
    margin-top: 28px;
}

.umodal-video-block h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.umodal-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(227, 242, 252, 0.72);
    border: 1px solid rgba(29, 111, 163, 0.16);
    box-shadow: 0 16px 36px rgba(18, 52, 77, 0.08);
}

.umodal-video-link-wrap {
    margin: 8px 0 24px;
}

.umodal-video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(29, 111, 163, 0.16);
    box-shadow: 0 10px 28px rgba(18, 52, 77, 0.08);
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.umodal-video-link:hover,
.umodal-video-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(18, 52, 77, 0.12);
}

.umodal-video-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Programs Section ───────────────────────────────────── */
.programs-section {
    position: relative;
    padding: 110px 0 40px;
}

.programs-shell {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px;
    border-radius: 40px;
    background:
        radial-gradient(circle at top left, rgba(69, 136, 190, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(23, 84, 126, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,251,255,0.96));
    border: 1px solid rgba(29, 111, 163, 0.10);
    box-shadow:
        0 24px 60px rgba(17, 50, 75, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.7);
    overflow: hidden;
}

.programs-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.22), transparent 35%),
        radial-gradient(circle at 20% 15%, rgba(46, 122, 176, 0.08), transparent 18%);
    pointer-events: none;
}

.programs-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 34px;
}

.programs-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.programs-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 0.95;
    color: var(--primary-dark);
}

.programs-intro {
    margin: 14px 0 0;
    max-width: 620px;
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--muted);
}

.programs-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,251,255,0.98));
    border: 1px solid rgba(29, 111, 163, 0.10);
    box-shadow:
        0 20px 40px rgba(19, 54, 81, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.82);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 28px 60px rgba(19, 54, 81, 0.13),
        inset 0 1px 0 rgba(255,255,255,0.92);
    border-color: rgba(29, 111, 163, 0.18);
}

.program-card-glow {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69, 136, 190, 0.16), transparent 70%);
    pointer-events: none;
}

.program-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.program-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(28, 117, 177, 0.14), rgba(17, 78, 122, 0.18));
    border: 1px solid rgba(29, 111, 163, 0.12);
    color: var(--primary-dark);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    flex-shrink: 0;
}

.program-top-copy {
    min-width: 0;
}

.program-mini-tag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(29, 111, 163, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.program-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 0.98;
    color: var(--primary-dark);
}

.program-description {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 60ch;
}

.program-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.program-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(240, 247, 253, 0.72);
    border: 1px solid rgba(29, 111, 163, 0.08);
    color: var(--text);
}

.program-benefit-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 8px 18px rgba(18, 52, 77, 0.18);
}

.program-card-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 8px;
}

.program-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(18, 52, 77, 0.18);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.program-card-cta:hover,
.program-card-cta:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

@media (max-width: 980px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .programs-section {
        padding: 84px 0 24px;
    }

    .programs-shell {
        width: min(100% - 24px, 100%);
        padding: 24px 18px;
        border-radius: 28px;
    }

    .programs-heading h2 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .program-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .program-card-top {
        align-items: flex-start;
    }

    .program-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .program-card h3 {
        font-size: 1.9rem;
    }
    .results-gallery {
        grid-auto-columns: 150px;
        gap: 10px;
    }
    .result-image {
        height: 190px;
    }
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 28px;
    padding: 34px 28px 22px;
    border-radius: 30px;
    background: #12344d;
    color: rgba(255,255,255,0.88);
    box-shadow: var(--shadow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.site-footer h3,
.site-footer h4 {
    font-family: var(--font-display);
    margin-bottom: 10px;
    color: white;
}

.site-footer a {
    color: rgba(255,255,255,0.88);
}

.footer-bottom {
    padding-top: 16px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.72);
}

/* ─── Media Queries (global adjustments) ─────────────────── */
@media (max-width: 900px) {
    .navbar {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
    .nav-desktop { display: none; }
    .nav-toggle { display: inline-flex; justify-self: end; }

    .welcome-section { padding: 32px 20px; min-height: auto; }
    .welcome-grid { grid-template-columns: 1fr; gap: 28px; min-height: auto; }
    .welcome-copy { max-width: 100%; }
    .welcome-section h1 { max-width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-visual { min-height: auto; }

    .about-grid { grid-template-columns: 1fr; }
    .page-bg { background-attachment: scroll; }
    .journey-panel { padding: 22px 18px; }
}

@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .result-poster { flex: 0 0 82vw; width: 82vw; }
    .result-image-wrap { height: 260px; }
    .universities-grid { grid-template-columns: 1fr; }
    .university-card { min-height: auto; }

    .result-modal { padding: 28px 20px 24px; border-radius: 26px; }
    .modal-top { grid-template-columns: 1fr; }
    .modal-image-wrap { width: 100%; height: 200px; border-radius: 18px; }
    .modal-name { font-size: 1.6rem; }
}

@media (max-width: 560px) {
    .navbar { min-height: 68px; }
    .site-header.scrolled .navbar { min-height: 60px; }
    .brand { width: clamp(44px, 12vw, 78px); }

    .welcome-section,
    .section-card,
    .site-footer { border-radius: 24px; }
    .section-card { padding: 34px 20px; }

    .stat-card { border-radius: 18px; }

    .journey-stage { grid-template-columns: 46px 1fr; gap: 12px; }
    .journey-node { width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem; }
    .journey-line { left: 22px; }
    .journey-progress { left: 19px; }
    .journey-content { padding: 14px 14px; border-radius: 18px; }
}

/* ─── Country Detail responsive ─────────────────────────── */
@media (max-width: 640px) {
    .country-hero { min-height: 240px; border-radius: 24px; }
    .country-hero-content { padding: 24px 22px; }
    .country-hero-stats { gap: 20px; }
    .filter-bar { gap: 8px; }
    .filter-select { min-width: 100px; font-size: 0.82rem; }
}

/* ─── Opportunities Wheel ───────────────────────────────── */
.opportunities-wheel-section {
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto 0;
}

.opportunities-wheel-shell {
    position: relative;
    overflow: hidden;
    padding: 26px 22px 24px;
    border-radius: 40px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(247,251,255,0.84)),
        radial-gradient(circle at top left, rgba(141,216,255,0.14), transparent 26%);
    border: 1px solid rgba(29, 111, 163, 0.10);
    box-shadow:
        0 18px 40px rgba(18, 52, 77, 0.07),
        inset 0 1px 0 rgba(255,255,255,0.70);
    backdrop-filter: blur(10px);
}

.opportunities-wheel-head {
    margin-bottom: 14px;
}

.opportunities-wheel-head .section-tag {
    margin-bottom: 8px;
}

.opportunities-wheel-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    line-height: 0.95;
    color: var(--primary-dark);
}

.opportunities-wheel-viewport {
    width: 100%;
    overflow: hidden;
}

.opportunities-wheel-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    will-change: transform;
}

.opportunity-wheel-item {
    flex: 0 0 calc((100% - 32px) / 3);
    min-height: 190px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242,248,253,0.90));
    border: 1px solid rgba(29, 111, 163, 0.08);
    display: flex;
    align-items: flex-end;
    opacity: 0.7;
    transform: scale(0.97);
    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.opportunity-wheel-item.is-near {
    opacity: 0.88;
    transform: scale(0.985);
}

.opportunity-wheel-item.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(29, 111, 163, 0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,247,253,0.94));
}

.opportunity-wheel-item span {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 2.6vw, 3rem);
    line-height: 0.94;
    color: var(--primary-dark);
    max-width: 10ch;
}

@media (max-width: 900px) {
    .opportunities-wheel-section {
        width: min(1120px, calc(100% - 24px));
        margin-top: 18px;
    }

    .opportunities-wheel-shell {
        padding: 22px 16px 20px;
        border-radius: 28px;
    }

    .opportunities-wheel-head {
        margin-bottom: 12px;
    }

    .opportunities-wheel-head h2 {
        font-size: clamp(1.9rem, 6vw, 2.7rem);
    }

    .opportunities-wheel-track {
        gap: 16px;
    }

    .opportunity-wheel-item {
        flex: 0 0 calc((100% - 16px) / 2);
        min-height: 170px;
        padding: 18px;
        border-radius: 22px;
    }

    .opportunity-wheel-item span {
        font-size: clamp(1.7rem, 4vw, 2.4rem);
    }
}

@media (max-width: 640px) {
    .opportunities-wheel-section {
        width: calc(100% - 20px);
    }

    .opportunities-wheel-shell {
        padding: 20px 14px 18px;
        border-radius: 24px;
    }

    .opportunities-wheel-head h2 {
        font-size: 2rem;
        line-height: 0.98;
    }

    .opportunities-wheel-track {
        gap: 12px;
    }

    .opportunity-wheel-item {
        flex: 0 0 100%;
        min-height: 150px;
        padding: 18px 16px;
        border-radius: 20px;
    }

    .opportunity-wheel-item span {
        font-size: 2rem;
        max-width: 11ch;
    }
}

/* ─── University Logos Marquee ───────────────────────────── */
.university-logo-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.university-logo-track {
    display: flex;
    align-items: center;
    gap: 56px;
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    width: max-content;
    animation: universityLogoScroll 36s linear infinite;
}

.university-logo-marquee:hover .university-logo-track {
    animation-play-state: paused;
}

.university-logo-item {
    flex: 0 0 auto;
    width: 240px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.university-logo-marquee-image {
    display: block;
    max-width: 100%;
    max-height: 84px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes universityLogoScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 28px));
    }
}

@media (max-width: 900px) {
    .university-logo-track {
        gap: 40px;
        animation-duration: 30s;
    }

    .university-logo-item {
        width: 200px;
        height: 96px;
    }

    .university-logo-marquee-image {
        max-height: 68px;
    }
}

@media (max-width: 640px) {
    .university-logo-track {
        gap: 28px;
        animation-duration: 24s;
    }

    .university-logo-item {
        width: 160px;
        height: 78px;
    }

    .university-logo-marquee-image {
        max-height: 54px;
    }
}

/* ─── News Section & Modal (corrected) ───────────────────── */
.news-section {
    margin-top: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.news-card {
    cursor: pointer;
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 50, 74, 0.08);
    box-shadow: 0 10px 24px rgba(18, 52, 77, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    outline: none;
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.news-meta {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.news-summary {
    font-size: 0.96rem;
    color: var(--muted);
}

.news-card:hover,
.news-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(18, 52, 77, 0.12);
    border-color: rgba(29, 111, 163, 0.22);
}

.news-empty {
    color: var(--muted);
}

/* News modal overlay */
.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 21, 36, 0.32);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1200;
}

.news-modal-overlay.active {
    display: flex;
}

/* News modal shell uses flex column so body can flex */
.news-modal {
    position: relative;
    width: min(640px, 100%);
    max-height: min(520px, 90vh);
    padding: 24px 24px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(29, 111, 163, 0.16);
    box-shadow:
        0 24px 54px rgba(18, 52, 77, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.9);
    display: block;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(247, 251, 255, 0.96);
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(18, 52, 77, 0.14);
}

.news-modal h3 {
    margin: 8px 0 6px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.news-modal-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-modal-image-wrap {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(239, 246, 252, 0.95);
}

.news-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scrolling content area */
.news-modal-body {
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text);
}

.news-modal-body p {
    margin-bottom: 10px;
}

.news-modal-body::-webkit-scrollbar {
    width: 8px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.news-card-image-wrap {
    width: 100%;
    height: 160px;
    margin-bottom: 12px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(239, 246, 252, 0.9);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Events Section & Modal (corrected) ─────────────────── */
.events-section {
    margin-top: 24px;
}

.events-head {
    margin-bottom: 18px;
}

.events-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px;
}

/* Base event card */
.event-card {
    cursor: pointer;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 50, 74, 0.08);
    box-shadow: 0 12px 28px rgba(18, 52, 77, 0.06);
    outline: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.event-card-inner {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 16px;
    padding: 18px 18px 18px;
}

/* Non-featured cards stacked on right */
.events-grid .event-card:not(.event-card-featured) {
    grid-column: 2;
}


.event-card-inner {
    grid-template-columns: 1.1fr 1.9fr;
    padding: 20px 22px 22px;
}

/* Featured chip – small ribbon instead of big circle */
.event-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(29, 111, 163, 0.10);
    border: 1px solid rgba(29, 111, 163, 0.32);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Small dot accent inside the chip */
.event-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* Featured card overall treatment */
.event-card-featured {
    grid-row: 1 / span 3;
    grid-column: 1;
    background: linear-gradient(180deg, rgba(235,247,255,0.96), rgba(223,239,252,0.94));
    border: 1px solid rgba(29, 111, 163, 0.22);
    box-shadow:
        0 20px 46px rgba(18, 52, 77, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.86);
}

/* Slight lift on hover, same as other cards */
.event-card-featured:hover,
.event-card-featured:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(18, 52, 77, 0.18);
}

/* Card image */
.event-card-image-wrap {
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(239, 246, 252, 0.95);
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card text */
.event-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.event-location {
    font-size: 0.88rem;
    color: var(--muted);
}

.event-card-body h3 {
    margin: 4px 0 2px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.event-subtitle {
    font-size: 0.96rem;
    color: var(--muted);
}

.event-summary {
    font-size: 0.96rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Hover */
.event-card:hover,
.event-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(18, 52, 77, 0.12);
    border-color: rgba(29, 111, 163, 0.22);
}

/* Events modal overlay */
.event-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 21, 36, 0.32);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1200;
}

.event-modal-overlay.active {
    display: flex;
}

/* Events modal shell with flex layout */
.event-modal {
    position: relative;
    width: min(680px, 100%);
    max-height: min(560px, 90vh);
    padding: 24px 24px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(29, 111, 163, 0.18);
    box-shadow:
        0 26px 60px rgba(18, 52, 77, 0.26),
        inset 0 1px 0 rgba(255,255,255,0.9);
    display: block;          /* no flex */
    overflow-y: auto;        /* scroll whole card */
    overflow-x: hidden;
}

.event-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(247, 251, 255, 0.96);
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(18, 52, 77, 0.14);
}

.event-modal h3 {
    margin: 8px 0 6px;
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--primary-dark);
}

.event-modal-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-modal-subtitle {
    font-size: 0.96rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.event-modal-image-wrap {
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(239, 246, 252, 0.96);
}

.event-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scrolling event body */
.event-modal-body {
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text);
}

.event-modal-body p {
    margin-bottom: 10px;
}

/* Events responsive */
@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-grid .event-card:not(.event-card-featured),
    .event-card-featured {
        grid-column: 1;
        grid-row: auto;
    }

    .event-card-inner,
    .event-card-featured .event-card-inner {
        grid-template-columns: 1fr;
    }

    .event-card-featured .event-card-image-wrap {
        height: 180px;
    }
}

/* Country Detail – page-level layout */
.country-detail-section {
    min-height: 60vh;
}

/* Back link on country detail pages */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* Country hero banner */
.country-hero {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 0;
    min-height: 320px;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.country-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.country-hero:hover .country-hero-bg {
    transform: scale(1.08);
}

.country-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 24, 42, 0.90) 0%,
        rgba(8, 24, 42, 0.48) 50%,
        rgba(8, 24, 42, 0.10) 100%
    );
}

.country-hero-content {
    position: relative;
    z-index: 2;
    padding: 36px 42px;
    width: 100%;
}

.back-link--hero {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.back-link--hero:hover {
    color: #fff;
}

.country-hero-content .eyebrow {
    color: var(--accent);
    margin-bottom: 6px;
}

.country-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 28px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.country-hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.country-hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.1;
}

.country-hero-stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 500;
}

/* Filter bar under the hero */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 16px 18px;
    background: var(--card-blue-bg);
    border: 1px solid var(--card-blue-border);
    border-radius: 20px;
}

.filter-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 180px;
}

.filter-search-wrap svg {
    position: absolute;
    left: 12px;
    color: var(--muted);
    pointer-events: none;
}

.filter-search {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border-radius: 12px;
    border: 1px solid var(--card-blue-border);
    background: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,111,163,0.10);
}

.filter-select {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--card-blue-border);
    background: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 130px;
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(29,111,163,0.20);
    background: transparent;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.filter-reset:hover {
    background: rgba(29,111,163,0.08);
    color: var(--primary-dark);
}

.filter-count {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Universities grid and cards */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 4px;
}

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

.university-card:nth-child(1) { animation-delay: .04s; }
.university-card:nth-child(2) { animation-delay: .10s; }
.university-card:nth-child(3) { animation-delay: .16s; }
.university-card:nth-child(4) { animation-delay: .22s; }
.university-card:nth-child(5) { animation-delay: .28s; }
.university-card:nth-child(6) { animation-delay: .34s; }

.university-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow:
        0 24px 52px rgba(29,111,163,0.14),
        0 8px 18px rgba(18,52,77,0.08);
    border-color: rgba(29,111,163,0.20);
}

.university-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Top accent bar */
.ucard-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-dark));
    background-size: 200% 100%;
    transition: background-position 0.5s ease;
}

.university-card:hover .ucard-accent {
    background-position: 100% 0;
}

/* Logo area */
.ucard-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px 18px;
    min-height: 130px;
    background: #fff;
}

.ucard-logo {
    max-width: 120px;
    max-height: 72px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.university-card:hover .ucard-logo {
    transform: scale(1.06);
}

/* Card body */
.ucard-body {
    padding: 6px 20px 14px;
    flex: 1;
    border-top: 1px solid rgba(22,50,74,0.05);
}

.ucard-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 12px 0 10px;
    line-height: 1.2;
}

.ucard-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ucard-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--card-blue-bg);
    border: 1px solid var(--card-blue-border);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.ucard-tag--type {
    background: rgba(247,251,255,0.9);
    color: var(--muted);
    border-color: rgba(22,50,74,0.10);
}

.ucard-tag--scholarship {
    background: rgba(220,252,231,0.85);
    border-color: rgba(34,197,94,0.25);
    color: #166534;
}

.ucard-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.58;
    margin: 0;
}

/* Card footer */
.ucard-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(22,50,74,0.06);
    background: rgba(247,251,255,0.6);
}

.ucard-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ucard-stat-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.ucard-stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.1;
}

.university-card:hover .ucard-view-btn {
    filter: brightness(1.08);
    gap: 9px;
}

/* Certifications Page */
.certifications-section {
    margin-top: 32px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(22, 50, 74, 0.08);
    box-shadow: 0 10px 26px rgba(18, 52, 77, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(18, 52, 77, 0.12);
    border-color: rgba(29, 111, 163, 0.22);
}

.cert-preview-wrap {
    width: 100%;
    height: 220px;
    background: rgba(239, 246, 252, 0.9);
    border-bottom: 1px solid rgba(22, 50, 74, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cert-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--card-blue-bg-strong), var(--card-blue-bg));
}

.cert-preview-placeholder span {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(29, 111, 163, 0.2);
}

.cert-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cert-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-dark);
    line-height: 1.25;
}

.cert-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--muted);
}

.cert-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--card-blue-bg);
    border: 1px solid var(--card-blue-border);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.cert-meta {
    padding: 3px 0;
}

.cert-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.cert-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(29, 111, 163, 0.22);
}

.cert-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(29, 111, 163, 0.26);
}

.cert-btn-secondary {
    background: rgba(247, 251, 255, 0.96);
    color: var(--primary-dark);
    border: 1px solid rgba(22, 50, 74, 0.10);
}

.cert-btn-secondary:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.cert-empty {
    margin-top: 12px;
    font-size: 0.96rem;
    color: var(--muted);
}