/* ============================================================
   ROOT VARIABLES — WHITE BACKGROUND WITH BLUE HEADER
   ============================================================ */
:root {
    --white: #FFFFFF;
    --white-dim: #F8F9FA;
    --blue-dark: #0A2463;
    --blue-medium: #1A3D7A;
    --blue-bright: #1E88E5;
    --blue-lighter: #42A5F5;
    --text-dark: #0A2463;
    --text-muted: #5B6478;
    --text-light: #8A93A6;
    --brass: #B8935F;
    --line: rgba(10, 36, 99, 0.10);
    --line-strong: rgba(10, 36, 99, 0.18);
    --shadow: 0 4px 24px rgba(10, 36, 99, 0.08);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--blue-bright);
    color: white;
}

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

.serif {
    font-family: 'Newsreader', serif;
}
.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   FOCUS VISIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}

/* ============================================================
   GRAIN TEXTURE — Removed (not needed on white)
   ============================================================ */

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }
}

/* ============================================================
   HEADER — BLUE BACKGROUND
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2B6CB0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Newsreader', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: white;
}

.logo .mark {
    width: 30px;
    height: 30px;
    border: 1.5px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.logo .dot {
    color: white;
}

nav.links {
    display: flex;
    gap: 36px;
    align-items: center;
}

nav.links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
    transition: color 0.2s ease;
    position: relative;
}

nav.links a:hover {
    color: white;
}

nav.links a.active {
    color: white;
}

.cta-small {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: white;
    border-radius: 4px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.cta-small:hover {
    background: white;
    color: var(--blue-dark);
}

.burger {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
}

@media (max-width: 900px) {
    nav.links {
        display: none;
    }
    .burger {
        display: block;
    }
}

/* ============================================================
   HERO — WHITE BACKGROUND, BLUE TEXT
   ============================================================ */
.hero {
    padding: 88px 0 60px;
    position: relative;
    background: var(--white);
}

.hero-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 56px;
}

@media (max-width: 900px) {
    .hero-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--blue-bright);
}

h1.display {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    font-size: clamp(40px, 5.6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

h1.display em {
    font-style: italic;
    color: var(--blue-bright);
    font-weight: 400;
}

.hero-sub p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 44ch;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: var(--blue-bright);
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 14.5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1565C0;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.3);
}

.btn-ghost {
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--text-dark);
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--blue-bright);
    color: var(--blue-bright);
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box {
    display: flex;
    margin-top: 24px;
    background: var(--white-dim);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    max-width: 480px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box button {
    padding: 12px 20px;
    background: var(--blue-bright);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.search-box button:hover {
    background: #1565C0;
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

@media (max-width: 700px) {
    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat {
    padding: 24px 8px 24px 0;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: none;
}

.stat .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 6px;
}

.stat .num span {
    color: var(--blue-bright);
}

.stat .label {
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ============================================================
   REGION FILTERS
   ============================================================ */
.region-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 20px 0 8px;
}

.region-filters button {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    font-size: 12.5px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.region-filters button:hover {
    border-color: var(--blue-bright);
    color: var(--blue-bright);
}

.region-filters button.active {
    background: var(--blue-bright);
    color: white;
    border-color: var(--blue-bright);
}

/* ============================================================
   BOARD / RANKINGS — WHITE BACKGROUND
   ============================================================ */
.board-section {
    padding: 80px 0 40px;
    background: var(--white);
}

.board-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
    gap: 24px;
    flex-wrap: wrap;
}

.board-head h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    color: var(--text-dark);
}

.board-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

.board {
    margin-top: 8px;
}

.board-row {
    display: grid;
    grid-template-columns: 74px 1fr auto 130px 90px;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.board-row:hover {
    background: rgba(10, 36, 99, 0.02);
}

@media (max-width: 760px) {
    .board-row {
        grid-template-columns: 52px 1fr 70px;
        gap: 12px;
    }
    .board-row .col-country,
    .board-row .col-score {
        display: none;
    }
}

.rank-num {
    font-family: 'Newsreader', serif;
    font-weight: 600;
    font-size: 20px;
    color: transparent;
    -webkit-text-stroke: 1px var(--blue-bright);
    line-height: 1;
}

.rank-num.top3 {
    color: var(--blue-bright);
    -webkit-text-stroke: 0;
}

.uni-name {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.uni-loc {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.uni-loc .flag {
    font-size: 16px;
}

.col-country {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: left;
}

.col-score {
    text-align: right;
}

.score-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
}

.score-bar {
    width: 110px;
    height: 3px;
    background: rgba(10, 36, 99, 0.08);
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.score-bar i {
    display: block;
    height: 100%;
    background: var(--blue-bright);
}

.delta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.delta.up {
    color: #4A7C59;
}
.delta.down {
    color: #b5654e;
}
.delta.flat {
    color: var(--text-light);
}

.board-foot {
    display: flex;
    justify-content: center;
    padding-top: 36px;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.board-foot .count {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   LOADING & EMPTY
   ============================================================ */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner .spin {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(10, 36, 99, 0.10);
    border-top-color: var(--blue-bright);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .big-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* ============================================================
   METHODOLOGY — WHITE BACKGROUND
   ============================================================ */
.method-section {
    padding: 110px 0;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 0;
}

.method-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.method-head .eyebrow {
    color: var(--blue-bright);
}

.method-head .eyebrow::before {
    background: var(--blue-bright);
}

.method-head h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-dark);
}

.method-head p {
    color: var(--text-muted);
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 52ch;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(10, 36, 99, 0.06);
    border: 1px solid rgba(10, 36, 99, 0.06);
}

@media (max-width: 900px) {
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.method-card {
    background: var(--white);
    padding: 36px 28px;
}

.method-card .weight {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-bright);
    margin-bottom: 18px;
    display: block;
}

.method-card h3 {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

/* ============================================================
   REGIONS — WHITE BACKGROUND
   ============================================================ */
.regions-section {
    padding: 100px 0;
    background: var(--white);
}

.regions-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.regions-head h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    color: var(--text-dark);
}

.regions-head p {
    color: var(--text-muted);
    max-width: 38ch;
    font-size: 14.5px;
    line-height: 1.6;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

@media (max-width: 860px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.region-card {
    background: var(--white);
    padding: 32px 28px;
    transition: background 0.25s ease;
    border: 1px solid var(--line);
}

.region-card:hover {
    background: var(--white-dim);
}

.region-card .rname {
    font-family: 'Newsreader', serif;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.region-list {
    list-style: none;
}

.region-list li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}

.region-list li:first-child {
    border-top: none;
}

.region-list .rn {
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
    width: 22px;
    flex-shrink: 0;
}

.region-list .un {
    flex: 1;
    color: var(--text-dark);
    padding: 0 10px;
}

.region-list .us {
    font-family: 'JetBrains Mono', monospace;
    color: var(--blue-bright);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    padding: 100px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.cta-band h2 {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    font-size: clamp(32px, 4.4vw, 54px);
    max-width: 16ch;
    margin: 0 auto 28px;
    line-height: 1.1;
    color: var(--text-dark);
}

.cta-band h2 em {
    color: var(--blue-bright);
    font-style: italic;
}

.cta-band .sub {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 44ch;
    margin: 0 auto 40px;
}

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

/* ============================================================
   FOOTER — WHITE BACKGROUND
   ============================================================ */
footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 36px;
    background: var(--white);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (max-width: 760px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
    }
}

.foot-brand .logo {
    margin-bottom: 14px;
    color: var(--text-dark);
}

.foot-brand .logo .mark {
    border-color: var(--blue-bright);
    color: var(--blue-bright);
}

.foot-brand .logo .dot {
    color: var(--blue-bright);
}

.foot-brand p {
    color: var(--text-muted);
    font-size: 13.5px;
    max-width: 32ch;
    line-height: 1.6;
}

.foot-col h4 {
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-bottom: 16px;
    font-weight: 700;
}

.foot-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.foot-col a:hover {
    color: var(--text-dark);
}

.foot-bottom {
    display: flex;
    flex-direction: column;      /* ← يجعل العناصر تحت بعضها */
    align-items: center;
    justify-content: center;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    gap: 6px;                   /* ← مسافة بين السطرين */
}

.foot-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.foot-bottom a:hover {
    color: var(--blue-bright);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   SCROLLBAR — Blue
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--white-dim);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-bright);
    border-radius: 10px;
}


/* ============================================================
   SEARCH SUGGESTIONS DROPDOWN
   ============================================================ */
.search-wrapper {
    position: relative;
    max-width: 480px;
    margin-top: 24px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--line-strong);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: 4px;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(10, 36, 99, 0.05);
}

.search-suggestion-item:hover {
    background: rgba(30, 136, 229, 0.05);
}

.search-suggestion-item .sugg-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-bright);
    min-width: 30px;
}

.search-suggestion-item .sugg-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.search-suggestion-item .sugg-country {
    font-size: 13px;
    color: var(--text-muted);
}

.search-suggestion-item .sugg-flag {
    font-size: 18px;
}

.search-suggestions .no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 4px;
}
.search-suggestions::-webkit-scrollbar-track {
    background: var(--white-dim);
}
.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--blue-bright);
    border-radius: 10px;
}


/* ============================================================
   COUNTRY RANKINGS
   ============================================================ */
.country-section {
    padding: 80px 0 40px;
    background: var(--white);
}

.country-head {
    margin-bottom: 32px;
}

.country-head h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    color: var(--text-dark);
}

.country-head p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-top: 4px;
}

.country-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.country-select {
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    min-width: 180px;
    cursor: pointer;
    outline: none;
}

.country-select:focus {
    border-color: var(--blue-bright);
}

.country-search {
    flex: 1;
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    min-width: 150px;
}

.country-search:focus {
    border-color: var(--blue-bright);
}

.country-search::placeholder {
    color: var(--text-light);
}


/* /* ============================================================
   TOP 10 CARDS — AUTO SCROLL
   ============================================================ */
.top-cards-section {
    padding: 40px 0 60px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.top-cards-header {
    margin-bottom: 24px;
}

.top-cards-header h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 500;
    color: var(--text-dark);
}

.top-cards-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.top-cards-wrapper {
    position: relative;
    overflow: hidden;
}

.top-cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 12px 4px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.top-cards-container:active {
    cursor: grabbing;
}

/* إخفاء شريط التمرير */
.top-cards-container::-webkit-scrollbar {
    height: 4px;
}

.top-cards-container::-webkit-scrollbar-track {
    background: var(--white-dim);
    border-radius: 10px;
}

.top-cards-container::-webkit-scrollbar-thumb {
    background: var(--blue-bright);
    border-radius: 10px;
}

/* ===== CARD ===== */
.top-card {
    flex: 0 0 200px;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px 20px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.04);
    text-align: center;
}

.top-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(10, 36, 99, 0.10);
    border-color: var(--blue-bright);
}

.top-card .rank {
    font-family: 'Newsreader', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--blue-bright);
    margin-bottom: 8px;
    line-height: 1;
}

.top-card .rank.top1 {
    color: #D69E2E;
    font-size: 36px;
}
.top-card .rank.top2 {
    color: #A8A8A8;
    font-size: 34px;
}
.top-card .rank.top3 {
    color: #CD7F32;
    font-size: 34px;
}

.top-card .card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 8px 0 6px;
    line-height: 1.3;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-card .card-loc {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-card {
        flex: 0 0 160px;
        min-width: 140px;
        padding: 18px 14px 14px;
    }
    .top-card .rank {
        font-size: 26px;
    }
    .top-card .rank.top1 {
        font-size: 30px;
    }
    .top-card .rank.top2 {
        font-size: 28px;
    }
    .top-card .rank.top3 {
        font-size: 28px;
    }
    .top-card .card-name {
        font-size: 13px;
        min-height: 34px;
    }
    .top-card .card-loc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-card {
        flex: 0 0 140px;
        min-width: 120px;
        padding: 14px 10px 10px;
    }
    .top-card .rank {
        font-size: 22px;
    }
    .top-card .rank.top1 {
        font-size: 26px;
    }
    .top-card .rank.top2 {
        font-size: 24px;
    }
    .top-card .rank.top3 {
        font-size: 24px;
    }
    .top-card .card-name {
        font-size: 12px;
        min-height: 30px;
    }
    .top-card .card-loc {
        font-size: 11px;
    }
}

/* ============================================================
   COUNTRY RANKINGS — Same style as Regions
   ============================================================ */
.country-section {
    padding: 80px 0 40px;
    background: var(--white);
}

.country-head {
    margin-bottom: 32px;
}

.country-head h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    color: var(--text-dark);
}

.country-head p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-top: 4px;
}

.country-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.country-select {
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    min-width: 180px;
    cursor: pointer;
    outline: none;
}

.country-select:focus {
    border-color: var(--blue-bright);
}

.country-search {
    flex: 1;
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    min-width: 150px;
}

.country-search:focus {
    border-color: var(--blue-bright);
}

.country-search::placeholder {
    color: var(--text-light);
}

/* ===== Country List ===== */
.country-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.country-row {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.country-row:hover {
    background: rgba(10, 36, 99, 0.02);
}

.country-row.top3 {
    background: rgba(30, 136, 229, 0.03);
}

.country-rank {
    font-family: 'Newsreader', serif;
    font-weight: 600;
    font-size: 28px;
    color: transparent;
    -webkit-text-stroke: 1px var(--blue-bright);
    line-height: 1;
    text-align: center;
}

.country-row.top3 .country-rank {
    color: var(--blue-bright);
    -webkit-text-stroke: 0;
}

.country-info {
    flex: 1;
}

.country-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.country-loc {
    font-size: 12.5px;
    color: var(--text-muted);
}

.country-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue-bright);
    text-align: right;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .country-row {
        grid-template-columns: 40px 1fr 60px;
        gap: 10px;
        padding: 14px 0;
    }
    .country-rank {
        font-size: 22px;
    }
    .country-name {
        font-size: 13px;
    }
    .country-score {
        font-size: 13px;
    }
}




.burger {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 28px;
    line-height: 1;
    z-index: 101;
}

@media (max-width: 900px) {
    .burger {
        display: block;
    }
    
    nav.links {
        display: none !important;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        background: var(--blue-dark);
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
    }
    
    nav.links.active {
        display: flex !important;
    }
    
    nav.links a {
        padding: 10px 0;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    nav.links a:last-child {
        border-bottom: none;
    }
    
    nav.links a:hover {
        color: white;
    }
}


/* ============================================================
   UNIVERSITY LINK
   ============================================================ */
.uni-link {
    color: var(--blue-bright);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.uni-link:hover {
    transform: scale(1.1);
    background: rgba(30, 136, 229, 0.08);
}

.uni-link-empty {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    display: inline-block;
    padding: 4px 8px;
}

