/* ========================================
   China Campus Youth Snooker Association
   Official Website — HK Billiard Sports Style
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    --navy: #1B3A5C;
    --navy-dark: #0F2440;
    --navy-light: #2A5A8C;
    --red: #C41E3A;
    --red-dark: #A01830;
    --red-light: #E8445A;
    --gold: #B8973A;
    --gold-light: #D4B85C;

    --bg-white: #FFFFFF;
    --bg-light: #F5F6F8;
    --bg-lighter: #FAFBFC;
    --bg-gray: #E8EAED;

    --text-dark: #1A1A2E;
    --text-body: #3A3A4A;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    --border-color: #DDDFE2;
    --border-light: #EAECEF;

    --font-sans: 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

    --container-width: 1200px;
    --nav-height: 80px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}

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

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

/* ---- Container ---- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
    display: none;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.top-bar a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.top-bar a:hover { color: #fff; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-icon svg {
    filter: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-zh {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    white-space: pre-line;
    line-height: 1.3;
}

.logo-en {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: pre-line;
    line-height: 1.4;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-links a {
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a:hover {
    color: var(--navy);
    background: var(--bg-light);
}

.nav-links a.active {
    color: var(--red);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-body);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-family: var(--font-sans);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.lang-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: var(--nav-height);
    background:
        linear-gradient(135deg, rgba(27,58,92,0.92) 0%, rgba(27,58,92,0.85) 40%, rgba(15,36,64,0.9) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255,255,255,0.01) 20px,
            rgba(255,255,255,0.01) 40px
        ),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(196,30,58,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(184,151,58,0.1) 0%, transparent 50%);
}

/* Hero decorative snooker table pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='4' width='72' height='72' rx='4' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='4' fill='white'/%3E%3Ccircle cx='12' cy='12' r='3' fill='white'/%3E%3Ccircle cx='68' cy='12' r='3' fill='white'/%3E%3Ccircle cx='12' cy='68' r='3' fill='white'/%3E%3Ccircle cx='68' cy='68' r='3' fill='white'/%3E%3Ccircle cx='40' cy='12' r='3' fill='white'/%3E%3Ccircle cx='40' cy='68' r='3' fill='white'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 60px 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo-mark {
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: 1px;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
}

.hero-title .gold-text {
    color: var(--gold-light);
}

html[lang="en"] .hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196,30,58,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

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

.btn-outline-dark:hover {
    background: var(--navy);
    color: #fff;
}

/* ============================================
   BANNER CARDS (like HK site)
   ============================================ */
.banner-cards {
    padding: 0 0 60px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.banner-cards .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.banner-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

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

.banner-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.banner-card:hover .banner-card-bg {
    transform: scale(1.05);
}

.banner-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,58,92,0.75) 0%, rgba(15,36,64,0.85) 100%);
}

.banner-card-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px;
}

.banner-card-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.banner-card-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

/* Program banner */
.banner-card.program-bg .banner-card-bg {
    background: linear-gradient(135deg, #1B3A5C 0%, #2A5A8C 50%, #1B3A5C 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='100' cy='100' r='96' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1.5'/%3E%3Ccircle cx='100' cy='100' r='20' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='100' cy='36' r='12' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='32' cy='70' r='12' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='168' cy='70' r='12' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='32' cy='130' r='12' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='168' cy='130' r='12' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='100' cy='164' r='12' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Eligibility banner */
.banner-card.eligibility-bg .banner-card-bg {
    background: linear-gradient(135deg, #C41E3A 0%, #A01830 100%);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--red);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-desc {
    max-width: 700px;
    margin: 16px auto 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 14px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text p:first-child {
    border-left: none;
    border-bottom: 3px solid var(--red);
    padding-left: 0;
    padding-bottom: 16px;
    font-weight: 500;
    color: var(--navy);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.stat-item:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   PROGRAM HIGHLIGHTS
   ============================================ */
.program-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.highlight-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.highlight-card:hover {
    border-color: var(--navy-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.highlight-card .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.icon-navy { background: rgba(27,58,92,0.08); color: var(--navy); }
.icon-red { background: rgba(196,30,58,0.08); color: var(--red); }
.icon-gold { background: rgba(184,151,58,0.08); color: var(--gold); }
.icon-teal { background: rgba(6,95,70,0.08); color: #065F46; }

.highlight-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

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

/* ============================================
   ELIGIBILITY
   ============================================ */
.eligibility-content {
    display: grid;
    gap: 20px;
}

.elig-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--navy);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 32px;
    transition: all var(--transition);
}

.elig-card:hover {
    border-left-color: var(--red);
    box-shadow: var(--shadow-sm);
}

.elig-card.academic {
    border-left-color: var(--red);
}

.elig-card.snooker {
    border-left-color: var(--gold);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.card-desc {
    color: var(--text-body);
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.7;
}

/* Tables */
.threshold-table,
.tournament-table,
.awards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.threshold-table table,
.tournament-table table {
    width: 100%;
}

.threshold-table th,
.tournament-table th,
.awards-table th {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.threshold-table td,
.tournament-table td,
.awards-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
}

.threshold-table tr:nth-child(even) td,
.tournament-table tr:nth-child(even) td,
.awards-table tr:nth-child(even) td {
    background: var(--bg-lighter);
}

.threshold-table tr:hover td,
.tournament-table tr:hover td,
.awards-table tr:hover td {
    background: rgba(27,58,92,0.04);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary { background: var(--navy); color: #fff; }
.badge-secondary { background: var(--red); color: #fff; }
.badge-accent { background: var(--gold); color: #fff; }

/* Check List */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    padding-left: 24px;
    position: relative;
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

/* ============================================
   SCORING
   ============================================ */
.scoring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.score-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.score-card:hover {
    box-shadow: var(--shadow-md);
}

.score-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--bg-lighter);
    border-bottom: 1px solid var(--border-light);
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.score-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

.score-body {
    padding: 24px 28px;
}

.score-range {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(27,58,92,0.06);
    border: 1px solid rgba(27,58,92,0.12);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
}

.score-body p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.score-example {
    background: rgba(196,30,58,0.04);
    border-left: 3px solid var(--red);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.example-label {
    color: var(--red);
    font-weight: 600;
}

/* Formula Box */
.formula-box {
    text-align: center;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(27,58,92,0.04) 0%, rgba(27,58,92,0.01) 100%);
    border: 1px solid rgba(27,58,92,0.12);
    border-radius: var(--radius-md);
}

.formula-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.formula {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.formula-note {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 2px solid var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    flex-shrink: 0;
    z-index: 1;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--navy);
    color: #fff;
}

.timeline-content {
    padding-top: 8px;
}

.timeline-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.timeline-date {
    display: inline-block;
    padding: 2px 12px;
    background: rgba(27,58,92,0.06);
    border-radius: 50px;
    font-size: 13px;
    color: var(--navy-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-line;
    word-break: break-word;
}

/* ============================================
   AWARDS TABLE
   ============================================ */
.awards-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #fff;
}

.awards-table {
    min-width: 700px;
}

.awards-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}
.awards-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.award-medal {
    font-size: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

.award-gold td { background: rgba(184,151,58,0.04) !important; }
.award-gold td:first-child { border-left: 3px solid var(--gold); }
.award-silver td:first-child { border-left: 3px solid #9CA3AF; }
.award-bronze td:first-child { border-left: 3px solid #D97706; }
.award-excellent td:first-child { border-left: 3px solid #6B7280; }

/* ============================================
   CONTACT
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.contact-item svg {
    color: var(--navy);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.contact-item-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,58,92,0.08);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    padding: 56px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-col .footer-logo-combo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-col .footer-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.footer-brand-col .footer-name-en {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand-col p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    line-height: 1.6;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-col.address-col p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-col.address-col .footer-icon {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.6;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

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

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.6s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- 1200px — hamburger menu + hide 2-line English subtitle ---- */
@media (max-width: 1200px) {
    :root { --nav-height: 72px; }

    .logo-en { display: none; }

    .logo-zh { font-size: 15px; }
    .logo-icon svg { width: 36px; height: 36px; }
    .nav-logo { gap: 10px; }

    /* Switch to hamburger menu */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 8px 16px;
        border-bottom: 2px solid var(--navy);
        box-shadow: var(--shadow-lg);
        max-height: 70vh;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: var(--radius-sm);
    }

    .nav-links a.active::after {
        display: none;
    }

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

    .nav-actions { gap: 12px; }

    .hero { min-height: 440px; }
    .hero-content { padding: 50px 20px; }
}

/* ---- 768px — tablets & phablets ---- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .section { padding: 52px 0; }
    .section-header { margin-bottom: 36px; }
    .section-desc { font-size: 14px; line-height: 1.7; padding: 0 4px; }

    /* Nav brand text - truncate on mobile */
    .logo-zh { font-size: 14px; max-width: 160px; white-space: normal; line-height: 1.3; }
    .logo-icon svg { width: 34px; height: 34px; }
    .nav-logo { gap: 8px; }
    .logo-en { display: none; }

    .hero { min-height: 380px; }
    .hero-title { font-size: 26px; line-height: 1.4; }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; padding: 0 8px; }
    .hero-logo-mark svg { width: 50px; height: 50px; }
    .hero-content { padding: 36px 14px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .hero-buttons .btn { width: 100%; max-width: 260px; }

    /* Banner cards stack */
    .banner-cards { margin-top: -16px; padding-bottom: 40px; }
    .banner-cards .container { grid-template-columns: 1fr; gap: 16px; }
    .banner-card { min-height: 140px; }
    .banner-card-content h3 { font-size: 18px; }
    .banner-card-content p { font-size: 13px; }

    /* About */
    .about-content { max-width: 100%; padding: 0; }
    .about-text p { font-size: 15px; line-height: 1.8; padding: 0 2px; }
    .about-text p:first-child { font-size: 15px; line-height: 1.8; padding-bottom: 14px; margin-bottom: 16px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-item { padding: 20px 10px; }
    .stat-number { font-size: 24px; }

    /* Program highlights */
    .program-highlights { grid-template-columns: 1fr; gap: 14px; }
    .highlight-card { padding: 24px 20px; }

    /* Eligibility cards */
    .elig-card { padding: 24px 20px; }
    .card-title { font-size: 18px; }
    .card-desc { font-size: 14px; }

    /* Tables scrollable with shadow indicator */
    .threshold-table,
    .tournament-table,
    .awards-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        background:
            linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
            linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0,
            radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.12), rgba(0,0,0,0)),
            radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.12), rgba(0,0,0,0)) 100% 0;
        background-repeat: no-repeat;
        background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
        background-attachment: local, local, scroll, scroll;
    }
    .threshold-table table,
    .tournament-table table,
    .awards-table {
        min-width: 560px;
    }
    .threshold-table th,
    .threshold-table td,
    .tournament-table th,
    .tournament-table td,
    .awards-table th,
    .awards-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Scoring */
    .scoring-grid { grid-template-columns: 1fr; gap: 16px; }
    .score-header { padding: 20px; }
    .score-body { padding: 20px; }
    .score-badge { width: 44px; height: 44px; font-size: 14px; }
    .score-header h3 { font-size: 16px; }
    .formula-box { padding: 22px 18px; }
    .formula { font-size: 16px; }

    /* Process timeline */
    .timeline-item { gap: 14px; margin-bottom: 32px; }
    .timeline-marker { width: 44px; height: 44px; font-size: 15px; flex-shrink: 0; }
    .process-timeline::before { left: 21px; }
    .timeline-content { padding-top: 4px; min-width: 0; }
    .timeline-content h3 { font-size: 17px; }
    .timeline-content p { font-size: 14px; line-height: 1.75; word-break: break-word; }

    /* Awards */
    .awards-table { min-width: 580px; }

    /* Contact */
    .contact-content { grid-template-columns: 1fr; gap: 28px; }
    .contact-form { padding: 24px; }

    /* Footer */
    .footer { padding: 40px 0 0; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 32px;
    }
    .footer-brand-col .footer-name { font-size: 15px; }
    .footer-bottom p { font-size: 12px; }
}

/* ---- 480px — small phones ---- */
@media (max-width: 480px) {
    :root { --nav-height: 64px; }

    .container { padding: 0 14px; }
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-desc { font-size: 13px; line-height: 1.65; padding: 0 2px; }

    .hero { min-height: 340px; }
    .hero-title { font-size: 22px; line-height: 1.45; letter-spacing: 0.5px; }
    .hero-subtitle { font-size: 13px; padding: 0 8px; }
    .hero-logo-mark svg { width: 44px; height: 44px; }
    .hero-content { padding: 32px 12px; }
    .hero-buttons .btn { max-width: 240px; }

    .banner-card { min-height: 120px; }
    .banner-card-content h3 { font-size: 16px; }
    .banner-card-content { padding: 20px 16px; }

    .about-content { padding: 0; }
    .about-text p { font-size: 14px; line-height: 1.75; padding: 0 4px; }
    .about-text p:first-child { font-size: 14px; line-height: 1.75; padding-bottom: 12px; margin-bottom: 14px; }
    .about-stats { gap: 6px; }
    .stat-item { padding: 16px 6px; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 11px; }

    .highlight-card { padding: 20px 16px; }
    .highlight-card .icon-circle { width: 48px; height: 48px; }
    .highlight-card h3 { font-size: 15px; }
    .highlight-card p { font-size: 13px; }

    .elig-card { padding: 18px 14px; }
    .card-title { font-size: 16px; }
    .card-desc { font-size: 13px; line-height: 1.65; }

    /* Tables on small phones */
    .threshold-table,
    .tournament-table,
    .awards-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-sm);
    }
    .threshold-table th,
    .threshold-table td,
    .tournament-table th,
    .tournament-table td,
    .awards-table th,
    .awards-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .score-header { padding: 16px 14px; }
    .score-body { padding: 16px 14px; }
    .score-badge { width: 40px; height: 40px; font-size: 13px; }
    .score-header h3 { font-size: 15px; }
    .score-body p { font-size: 13px; line-height: 1.65; }
    .formula { font-size: 15px; }
    .formula-note { font-size: 12px; line-height: 1.6; }

    .timeline-item { gap: 10px; margin-bottom: 24px; }
    .timeline-marker { width: 36px; height: 36px; font-size: 12px; flex-shrink: 0; }
    .process-timeline::before { left: 17px; }
    .timeline-content { padding-top: 2px; min-width: 0; }
    .timeline-content h3 { font-size: 15px; }
    .timeline-content p { font-size: 12.5px; line-height: 1.7; word-break: break-word; }
    .timeline-date { font-size: 11px; padding: 2px 8px; }

    /* Awards table */
    .awards-table-wrapper {
        border-radius: var(--radius-sm);
    }
    .awards-table { min-width: 480px; }

    .contact-form { padding: 18px 14px; }
    .form-group input,
    .form-group textarea { padding: 10px 12px; font-size: 16px; } /* 16px prevents iOS auto-zoom */

    .footer { padding: 32px 0 0; }
    .footer-content { gap: 22px; padding-bottom: 24px; }

    /* Touch-friendly buttons */
    .btn { padding: 12px 24px; font-size: 14px; min-height: 44px; }
    .lang-btn { padding: 6px 10px; min-height: 36px; }

    /* Ensure check list readable */
    .check-list li { font-size: 13px; line-height: 1.65; padding-left: 20px; }
}

/* ---- 380px — very small phones (iPhone SE, etc.) ---- */
@media (max-width: 380px) {
    .container { padding: 0 10px; }
    .section { padding: 32px 0; }
    .section-header { margin-bottom: 22px; }

    .hero { min-height: 300px; }
    .hero-title { font-size: 20px; line-height: 1.5; }
    .hero-subtitle { font-size: 12px; }
    .hero-content { padding: 28px 10px; }
    .hero-buttons .btn { max-width: 220px; font-size: 13px; padding: 10px 20px; }

    .nav-container { padding: 0 10px; }
    .logo-zh { font-size: 13px; }
    .logo-icon svg { width: 30px; height: 30px; }
    .lang-btn { padding: 4px 8px; font-size: 11px; min-height: 32px; }

    .banner-card { min-height: 100px; }
    .banner-card-content { padding: 14px 12px; }
    .banner-card-content h3 { font-size: 14px; }
    .banner-card-content p { font-size: 11px; }

    .about-text p { font-size: 13px; line-height: 1.7; }
    .about-text p:first-child { font-size: 13px; }

    .elig-card { padding: 14px 10px; }
    .card-title { font-size: 15px; }
    .check-list li { font-size: 12px; line-height: 1.6; padding-left: 18px; }

    .timeline-item { gap: 8px; margin-bottom: 20px; }
    .timeline-marker { width: 32px; height: 32px; font-size: 11px; }
    .process-timeline::before { left: 15px; }
    .timeline-content h3 { font-size: 14px; }
    .timeline-content p { font-size: 11.5px; line-height: 1.65; }
    .timeline-date { font-size: 10px; }

    .form-group input,
    .form-group textarea { padding: 9px 10px; font-size: 16px; }

    .threshold-table th,
    .threshold-table td,
    .tournament-table th,
    .tournament-table td,
    .awards-table th,
    .awards-table td { padding: 7px 8px; font-size: 11px; }

    .stat-number { font-size: 18px; }
    .stat-label { font-size: 10px; }
    .stat-item { padding: 12px 4px; }

    .formula { font-size: 13px; }
    .formula-note { font-size: 11px; }
    .formula-box { padding: 16px 12px; }

    .footer-content { gap: 18px; }
    .footer-brand-col .footer-name { font-size: 14px; }
    .footer-bottom p { font-size: 11px; }
}

/* ---- Mobile global enhancements ---- */
@media (max-width: 768px) {
    /* Prevent long emails/URLs from overflowing */
    a, p, span, td, li, div {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Make email links break properly */
    .contact-item-content p,
    .footer-col p,
    .footer-col a {
        word-break: break-all;
    }

    /* Notched phone safe area */
    @supports (padding: max(0px)) {
        .navbar { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
        .footer { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
        .container { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
    }
}
