/* HKGO Sports Academy - Main Stylesheet */
:root {
    --primary: #1A5C9E;
    --primary-dark: #144a82;
    --accent: #F5A623;
    --donate: #E74C3C;
    --donate-hover: #c0392b;
    --bg: #F8F9FA;
    --text: #2D3748;
    --text-light: #718096;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --radius: 12px;
    --header-h: 72px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.06);
    height: var(--header-h);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.logo img { height: 52px; width: auto; object-fit: contain; }
.logo-text strong { font-size: .95rem; color: var(--primary); display: block; line-height: 1.2; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; list-style: none; gap: .25rem; }
.main-nav a {
    padding: .5rem .75rem; border-radius: 6px; color: var(--text);
    font-size: .9rem; font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(26,92,158,.06); }

.lang-switcher { display: flex; gap: 2px; margin-left: .5rem; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang-btn {
    padding: .35rem .6rem; font-size: .8rem; font-weight: 600;
    color: var(--text-light); background: var(--white);
}
.lang-btn.active { background: var(--primary); color: var(--white); }
.lang-btn:hover:not(.active) { background: var(--bg); color: var(--primary); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: .3s; }

.site-main { margin-top: var(--header-h); min-height: 60vh; }

/* Buttons */
.btn {
    display: inline-block; padding: .65rem 1.5rem; border-radius: 8px;
    font-weight: 600; font-size: .95rem; border: 2px solid transparent;
    cursor: pointer; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-donate { background: var(--donate); color: var(--white); }
.btn-donate:hover { background: var(--donate-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }

/* Hero Slider */
.hero-slider { position: relative; height: 70vh; min-height: 420px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity .8s ease;
    display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,92,158,.75), rgba(0,0,0,.4)); }
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 700px; }
.hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; line-height: 1.2; }
.hero-content p.hero-subtitle { font-size: 1.15rem; margin-bottom: 1.5rem; color: var(--white); opacity: .95; }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 3; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; }
.hero-dot.active { background: var(--white); }

/* Tax Banner */
.tax-banner { background: var(--primary); color: var(--white); padding: 1.25rem 0; }
.tax-banner-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tax-icon { font-size: 1.5rem; background: rgba(255,255,255,.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tax-banner strong { display: block; font-size: 1rem; }
.tax-banner span { font-size: .9rem; opacity: .9; }
.tax-banner .btn-donate { margin-left: auto; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: .75rem; }
.section-cta { text-align: center; margin-top: 2rem; }
.lead-summary { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; color: var(--text);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); color: var(--text); }
.card-image { height: 180px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-icon { font-size: 3rem; text-align: center; padding: 2rem 0 0; }
.card-body { padding: 1.25rem; }
.card-body h3 { color: var(--primary); margin-bottom: .5rem; }
.card-body p { font-size: .9rem; color: var(--text-light); }
.card-link { display: inline-block; margin-top: .75rem; color: var(--primary); font-weight: 600; font-size: .9rem; }

/* Activity Grid */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.activity-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .2s; }
.activity-card:hover { transform: translateY(-3px); }
.activity-card img, .activity-placeholder { height: 200px; width: 100%; object-fit: cover; }
.activity-placeholder { background: linear-gradient(135deg, var(--primary), #2d7bc4); }
.activity-info { padding: 1.25rem; }
.activity-info time { font-size: .85rem; color: var(--accent); font-weight: 600; }
.activity-info h3 { margin: .5rem 0; color: var(--primary); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.timeline-item { display: flex; gap: 1.5rem; color: var(--text); transition: transform .2s; }
.timeline-item:hover { transform: translateX(4px); }
.timeline-date { flex-shrink: 0; width: 120px; text-align: right; padding-top: 1rem; }
.timeline-date time { font-weight: 700; color: var(--primary); font-size: .9rem; }
.timeline-card { flex: 1; display: flex; gap: 1rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.timeline-card img { width: 200px; height: 140px; object-fit: cover; flex-shrink: 0; }
.timeline-content { padding: 1rem; }
.timeline-content h3 { color: var(--primary); margin-bottom: .25rem; }
.timeline-content .location { font-size: .85rem; color: var(--text-light); margin-bottom: .5rem; }

/* News */
.news-list { display: flex; flex-direction: column; gap: 2rem; }
.news-item { display: flex; gap: 1.5rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-thumb { flex-shrink: 0; width: 240px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.news-content { padding: 1.25rem; flex: 1; }
.news-content time { font-size: .85rem; color: var(--accent); font-weight: 600; }
.news-content h2 { margin: .5rem 0; font-size: 1.25rem; }
.news-content h2 a { color: var(--primary); }
.read-more { font-weight: 600; font-size: .9rem; }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--primary), #2d7bc4); color: var(--white); padding: 3rem 0; }
.page-hero-donate { background: linear-gradient(135deg, var(--donate), #e67e22); }
.page-hero h1 { font-size: 2.25rem; margin-bottom: .75rem; }
.page-subtitle,
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    opacity: .95;
    max-width: 700px;
    margin: 0 auto;
}
.page-hero .page-subtitle,
.page-hero-donate .page-subtitle,
.hero-content .hero-subtitle { color: var(--white); }
.page-hero .lead-summary,
.page-hero-donate .lead-summary { color: var(--white); opacity: .95; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; opacity: .85; }
.breadcrumb a { color: var(--white); }
.event-date { display: block; font-size: .9rem; opacity: .9; margin-bottom: .5rem; }

/* Content */
.content-area { max-width: 800px; }
.content-area h2 { color: var(--primary); margin: 1.5rem 0 .75rem; }
.content-area h3 { margin: 1.25rem 0 .5rem; }
.content-area p { margin-bottom: 1rem; }
.content-area ul, .content-area ol { margin: 1rem 0 1rem 1.5rem; }
.content-area li { margin-bottom: .5rem; }
.objectives-list ol { counter-reset: obj; list-style: none; padding: 0; }
.objectives-list li {
    counter-increment: obj; padding: 1rem 1rem 1rem 3.5rem; margin-bottom: .75rem;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    position: relative;
}
.objectives-list li::before {
    content: counter(obj); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    background: var(--primary); color: var(--white); width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
}

/* Detail */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.detail-image img, .detail-hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.detail-hero-image { margin-bottom: 2rem; }
.detail-cta { margin-top: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
.info-card { background: var(--white); padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.info-card h3 { margin-bottom: .5rem; color: var(--primary); }
.contact-form-wrap { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: .7rem; border: 1px solid var(--border); border-radius: 6px;
    font-family: inherit; font-size: 1rem; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 1.5rem; }
.map-container iframe { display: block; }

/* Donate */
.donate-methods { padding: 2rem 0 4rem; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.method-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.method-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.method-card h3 { color: var(--primary); margin-bottom: .5rem; }

/* CTA Banner */
.cta-banner { background: var(--primary); color: var(--white); padding: 3rem 0; text-align: center; }
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p { margin-bottom: 1.5rem; opacity: .9; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Alerts */
.alert { padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

.text-center { text-align: center; }

/* Footer */
.site-footer { background: #1a202c; color: #a0aec0; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-logo { height: 60px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-brand p { margin-bottom: .5rem; }
.tax-badge { display: inline-block; background: rgba(26,92,158,.3); padding: .35rem .75rem; border-radius: 4px; font-size: .85rem; color: #90cdf4; }
.footer-contact h3, .footer-links h3 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #a0aec0; }
.footer-links a:hover { color: var(--accent); }
.footer-cta { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.footer-bottom { border-top: 1px solid #2d3748; padding: 1.25rem 0; text-align: center; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--white); flex-direction: column; padding: 1rem;
        box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s;
        align-items: stretch;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; }
    .lang-switcher { margin: 1rem 0 0; justify-content: center; }
    .detail-layout, .contact-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-thumb { width: 100%; }
    .timeline-item { flex-direction: column; }
    .timeline-date { width: auto; text-align: left; padding-top: 0; }
    .timeline-card { flex-direction: column; }
    .timeline-card img { width: 100%; height: 180px; }
    .tax-banner .btn-donate { margin-left: 0; width: 100%; text-align: center; }
    .hero-slider { height: 55vh; min-height: 350px; }
}
