:root {
    --primary: #2c5f4a;
    --primary-light: #3d7a61;
    --primary-pale: #eef5f1;
    --accent: #c9a84c;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 2px 16px rgba(0,0,0,0.07);
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #f8f9fa;
    margin: 0;
}

/* ─── Navbar ─── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.brand-icon {
    width: 42px; height: 42px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-icon.small { width: 34px; height: 34px; font-size: 1rem; }

.brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.4rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-pale);
    color: var(--primary) !important;
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 520px;
}

.hero-accent { color: var(--accent); }

/* ─── Cards ─── */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }

.card-img-top {
    border-radius: var(--radius) var(--radius) 0 0;
    height: 200px;
    object-fit: cover;
}

/* ─── Info blocks ─── */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: var(--shadow);
}

.info-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.schedule-table td { padding: 6px 0; }
.schedule-table td:first-child { color: var(--text-muted); width: 50%; }
.schedule-table td:last-child { font-weight: 500; }

/* ─── Section ─── */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-line {
    width: 40px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 32px;
}

/* ─── News card ─── */
.news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.news-tag {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ─── Btn ─── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 22px;
    transition: all 0.2s;
}

.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-1px); }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.2s;
}

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

/* ─── Page header ─── */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 32px;
}

.page-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 6px; }
.page-header .lead { color: var(--text-muted); font-size: 1rem; }

/* ─── Map placeholder ─── */
.map-placeholder {
    width: 100%; height: 340px;
    background: linear-gradient(135deg, #e8f0ea, #d4e5d9);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border);
}

.map-placeholder i { font-size: 3rem; opacity: 0.5; margin-bottom: 8px; }
.map-placeholder span { font-size: 0.85rem; color: var(--text-muted); }

/* ─── About timeline ─── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: '';
    position: absolute; left: 9px; top: 6px; bottom: 0;
    width: 2px; background: var(--border);
}

.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot {
    position: absolute; left: -28px; top: 6px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.timeline-text { font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Image placeholder ─── */
.img-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8f0ea 0%, #cfe0d5 100%);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); opacity: 0.6;
    font-size: 2.5rem;
}

/* ─── Stat box ─── */
.stat-box {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.83rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Footer ─── */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.75);
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer .brand-name { color: var(--white); }
.footer .brand-sub { color: rgba(255,255,255,0.45); }
.footer .brand-icon { background: var(--primary); }
.footer-desc { font-size: 0.83rem; color: rgba(255,255,255,0.45); margin-top: 6px; }
.footer-sub { color: rgba(255,255,255,0.45); font-size: 0.7rem; }
.footer .fw-semibold { color: var(--white); }

.footer-links { margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.social-icons a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.social-icons a:hover { background: var(--primary); color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ─── Breadcrumb ─── */
.breadcrumb-link { color: var(--primary); text-decoration: none; font-size: 0.85rem; }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); margin: 0 6px; font-size: 0.85rem; }
.breadcrumb-current { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
    .hero { padding: 50px 0 45px; }
    .section { padding: 40px 0; }
    .info-card { padding: 20px; }
}

/* ─── Overflow fix ─── */
section, .hero, .footer, .page-header, .section, .section-sm { overflow-x: hidden; }
