:root {
    --primary: #1e3a8a;
    --primary-dark: #1e2f6b;
    --primary-light: #3b5bc0;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #f5f7fb;
    --card: #fff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
    --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Accessibility: focus + skip link */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    background: var(--primary); color: #fff; padding: 10px 18px;
    border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOPBAR ===== */
.topbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 18px 0;
    box-shadow: var(--shadow);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand-mark {
    background: var(--accent); color: var(--primary-dark);
    font-weight: 800; padding: 10px 14px; border-radius: var(--radius);
    font-size: 1.05rem; letter-spacing: -0.5px; line-height: 1;
}
.brand-mark span { color: var(--primary-dark); opacity: .7; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.1rem; font-weight: 700; }
.brand-text em { font-style: normal; font-size: .82rem; opacity: .85; }
.search-box { position: relative; }
.search-box input {
    border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12);
    color: #fff; padding: 10px 44px 10px 16px; border-radius: 999px;
    font: inherit; font-size: .92rem; width: 260px; outline: none;
    transition: background .2s, border-color .2s;
}
.search-box input::placeholder { color: rgba(255,255,255,.7); }
.search-box input:focus { background: #fff; color: var(--text); border-color: #fff; }
.search-box input:focus::placeholder { color: var(--text-muted); }
.search-box button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: var(--accent); border: none; color: var(--primary-dark);
    padding: 8px; border-radius: 999px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Hamburger toggle (mobile) */
.navtoggle {
    display: none; background: transparent; border: none; cursor: pointer;
    padding: 8px 10px; flex-direction: column; gap: 5px;
}
.navtoggle span {
    display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.navtoggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navtoggle.open span:nth-child(2) { opacity: 0; }
.navtoggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== MAIN NAV ===== */
.mainnav { background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.mainnav a {
    display: block; padding: 14px 18px; color: var(--text); font-weight: 500;
    font-size: .94rem; border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s, background .15s; text-decoration: none;
}
.mainnav a:hover { color: var(--primary); background: #f1f5fb; text-decoration: none; }
.mainnav a.active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 700; }

/* ===== MAIN CONTENT ===== */
main.container { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }

/* ===== HERO SLIDER ===== */
.hero-section { margin: 0 0 32px; }
.hero-slider {
    position: relative; height: 480px; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
    display: flex; align-items: flex-end;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.05); transition: transform 8s linear;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .92) 0%, rgba(15, 23, 42, .65) 40%, rgba(15, 23, 42, .15) 100%);
}
.hero-content {
    position: relative; z-index: 3; color: #fff; padding: 44px;
    max-width: 760px;
}
.hero-date {
    display: inline-block; background: var(--accent); color: var(--primary-dark);
    padding: 4px 12px; border-radius: 4px; font-size: .82rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
}
.hero-title {
    font-size: 2.05rem; line-height: 1.25; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.5px;
}
.hero-title a { color: #fff; text-decoration: none; }
.hero-title a:hover { color: var(--accent); }
.hero-exc { font-size: 1rem; line-height: 1.6; margin: 0 0 22px; opacity: .92; }
.hero-btn {
    display: inline-block; background: var(--accent); color: var(--primary-dark);
    padding: 11px 22px; border-radius: 8px; font-weight: 700;
    text-decoration: none; transition: background .2s, transform .2s;
}
.hero-btn:hover { background: #fbbf24; text-decoration: none; transform: translateY(-1px); }

.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    font-size: 1.6rem; line-height: 1; z-index: 4;
    transition: background .2s; display: flex; align-items: center; justify-content: center;
}
.hero-nav:hover { background: var(--accent); color: var(--primary-dark); }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 4;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.45); border: none; cursor: pointer;
    transition: background .2s, transform .2s;
}
.hero-dot.active { background: var(--accent); transform: scale(1.3); }

/* ===== QUICK LINKS ===== */
.quick-links { margin: 0 0 36px; }
.ql-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ql-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; padding: 18px 20px; border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    color: var(--text); text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ql-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light); text-decoration: none; }
.ql-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; flex-shrink: 0;
}
.ql-text { display: flex; flex-direction: column; line-height: 1.3; }
.ql-text strong { color: var(--text); font-size: 1rem; font-weight: 700; }
.ql-text span { color: var(--text-muted); font-size: .82rem; }

/* ===== SECTION HEAD ===== */
.section-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0 0 22px; border-bottom: 2px solid var(--border); padding-bottom: 12px;
}
.section-title {
    color: var(--primary-dark); font-size: 1.4rem; font-weight: 800;
    margin: 0; position: relative; padding-left: 16px;
}
.section-title::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 4px; background: var(--accent); border-radius: 2px;
}
.section-more { color: var(--primary); font-weight: 600; font-size: .92rem; }

/* ===== NEWS MIXED LAYOUT ===== */
.news-section { margin: 0 0 40px; }
.news-mixed {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-bottom: 22px;
}

/* Big featured */
.news-big {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.news-big-thumb {
    position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10;
}
.news-big-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-big-thumb:hover img { transform: scale(1.04); }
.news-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--accent); color: var(--primary-dark);
    padding: 4px 10px; border-radius: 4px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.news-big-body { padding: 22px 26px; }
.news-big-body .date { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; margin-bottom: 8px; }
.news-big-body h3 { font-size: 1.4rem; margin: 0 0 12px; line-height: 1.35; font-weight: 800; }
.news-big-body h3 a { color: var(--primary-dark); text-decoration: none; }
.news-big-body h3 a:hover { color: var(--primary); }
.news-big-body p { color: var(--text-muted); margin: 0 0 16px; font-size: .95rem; line-height: 1.6; }
.news-big-body .more { color: var(--primary); font-weight: 700; font-size: .9rem; }

/* Medium column (3 stacked) */
.news-medium-col { display: flex; flex-direction: column; gap: 14px; }
.news-medium {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    display: flex; gap: 14px; padding: 12px;
    transition: transform .2s, box-shadow .2s;
}
.news-medium:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.news-medium-thumb {
    flex-shrink: 0; width: 120px; aspect-ratio: 1; border-radius: 7px;
    overflow: hidden; display: block;
}
.news-medium-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-medium-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.news-medium-body .date { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.news-medium-body h4 { font-size: .95rem; margin: 0; line-height: 1.4; font-weight: 700; }
.news-medium-body h4 a { color: var(--text); text-decoration: none; }
.news-medium-body h4 a:hover { color: var(--primary); }

/* News grid cards */
.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.news-grid-4 { grid-template-columns: repeat(4, 1fr); }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-card-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { font-size: .76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 7px; font-weight: 600; }
.news-card h3 { margin: 0 0 10px; font-size: 1rem; line-height: 1.45; font-weight: 700; }
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover { color: var(--primary); }
.news-card .exc { color: var(--text-muted); font-size: .88rem; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.news-card .more { align-self: flex-start; font-size: .85rem; font-weight: 600; color: var(--primary); }

/* ===== STATS BAND ===== */
.stats-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius); padding: 36px; margin: 0 0 40px;
    color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-item { text-align: center; }
.stat-n { font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.stat-l { font-size: .9rem; color: rgba(255,255,255,.9); margin-top: 4px; }

/* ===== ACTIVITIES ===== */
.activities { margin: 0 0 40px; }
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.act-card {
    background: #fff; padding: 26px 24px; border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.act-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.act-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #ddd6fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; margin-bottom: 14px;
}
.act-card h3 { color: var(--primary-dark); margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.act-card p { color: var(--text-muted); margin: 0; font-size: .92rem; line-height: 1.55; }

/* ===== CONTACT BLOCK ===== */
.contact-block { margin: 0 0 24px; }
.contact-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius); padding: 36px 40px; color: #fff;
}
.contact-card h2 { margin: 0 0 10px; font-size: 1.6rem; }
.contact-card p { margin: 0 0 20px; opacity: .9; }
.contact-rows { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.contact-rows a { color: var(--accent); }
.contact-rows strong { color: rgba(255,255,255,.8); margin-right: 8px; }

/* ===== PAGE TITLE & POST/PAGE STYLES ===== */
.page-title { font-size: 1.75rem; margin: 0 0 6px; color: var(--primary-dark); font-weight: 800; letter-spacing: -0.3px; }
.page-subtitle { color: var(--text-muted); margin: 0 0 28px; font-size: .95rem; }

.crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* Single post */
.post-wrap {
    background: #fff; border-radius: var(--radius); padding: 36px 40px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    max-width: 900px; margin: 0 auto;
}
.post-wrap h1 { font-size: 2rem; margin: 0 0 12px; color: var(--primary-dark); line-height: 1.3; font-weight: 800; letter-spacing: -0.4px; }
.post-meta {
    color: var(--text-muted); font-size: .88rem; margin-bottom: 24px;
    padding-bottom: 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.post-meta time { font-weight: 600; }
.post-meta-sep { opacity: .5; }
.share-buttons { margin-left: auto; display: flex; gap: 6px; }
.share-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s; text-decoration: none;
}
.share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }
.share-tg:hover { background: #0088cc; border-color: #0088cc; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }

/* Related news section */
.related-section { margin-top: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.related-section .section-title { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.post-content { font-size: 1.05rem; line-height: 1.8; color: #2d3748; }
.post-content p { margin: 0 0 16px; }
.post-content h2 { color: var(--primary-dark); font-size: 1.4rem; margin: 28px 0 12px; }
.post-content h3 { color: var(--primary); font-size: 1.18rem; margin: 24px 0 10px; }
.post-content ul, .post-content ol { margin: 0 0 16px; padding-left: 28px; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content blockquote {
    border-left: 4px solid var(--accent); background: #fffbeb;
    padding: 14px 20px; margin: 18px 0; color: #78350f;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content img { border-radius: 6px; margin: 12px 0; display: block; max-width: 100%; height: auto; }
.post-content figure { margin: 16px 0; }
.post-content figcaption { font-size: .85rem; color: var(--text-muted); text-align: center; margin-top: 6px; }
.post-content table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.post-content th { background: #f8fafc; }

.missing-image {
    max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
    border-radius: 6px; margin: 8px 0; background: #f1f5f9;
    border: 1px dashed #cbd5e1; display: block;
}

.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 24px 0 0; color: var(--primary); font-weight: 600; font-size: .92rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex; justify-content: center; gap: 6px; margin: 32px 0 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: 6px; background: #fff;
    border: 1px solid var(--border); color: var(--text); text-decoration: none;
    font-size: .9rem; font-weight: 500;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== EMPTY ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty h2 { color: var(--text); margin: 0 0 8px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary-dark); color: #cbd5e1; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 40px 20px; }
.foot-col h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 7px; font-size: .92rem; }
.foot-col p { margin: 0 0 7px; font-size: .92rem; }
.foot-col a { color: #cbd5e1; }
.foot-col a:hover { color: #fff; }
.copyright { background: rgba(0,0,0,.18); padding: 14px 0; text-align: center; font-size: .85rem; color: #94a3b8; }

/* Scroll to top */
#scrollTop {
    position: fixed; bottom: 24px; right: 24px; z-index: 100;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
#scrollTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTop:hover { background: var(--accent); color: var(--primary-dark); }

/* Buttons (public) */
.btn {
    display: inline-block; padding: 10px 20px; border-radius: 8px;
    text-decoration: none; font-weight: 600; transition: background .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }

/* Print */
@media print {
    .topbar, .mainnav, .site-footer, .skip-link, .share-buttons,
    .back-link, .crumbs, .related-section, #scrollTop, .hero-section,
    .quick-links, .stats-band, .activities, .contact-block { display: none !important; }
    .post-wrap { box-shadow: none; border: 0; padding: 0; max-width: 100%; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: none; }
    main.container { padding: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ql-grid, .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .news-mixed { grid-template-columns: 1fr; }
    .act-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .topbar-inner { flex-wrap: wrap; gap: 14px; }
    .navtoggle { display: flex; }
    .search-box { order: 3; width: 100%; }
    .search-box input { width: 100%; }
    .mainnav { display: none; }
    .mainnav.open { display: block; }
    .mainnav ul { flex-direction: column; }
    .mainnav a { padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .hero-slider { height: 380px; }
    .hero-title { font-size: 1.5rem; }
    .hero-content { padding: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .share-buttons { margin-left: 0; width: 100%; margin-top: 8px; }
}
@media (max-width: 640px) {
    .news-grid, .news-grid-4, .ql-grid, .footer-grid, .act-grid, .stats-grid { grid-template-columns: 1fr; }
    .post-wrap { padding: 22px 18px; }
    .post-wrap h1 { font-size: 1.5rem; }
    .brand-text strong { font-size: 1rem; }
    .brand-text em { font-size: .76rem; }
    .mainnav a { padding: 12px 14px; font-size: .88rem; }
    .hero-slider { height: 340px; }
    .hero-title { font-size: 1.3rem; }
    .hero-exc { font-size: .9rem; }
    .news-medium-thumb { width: 90px; }
    .stats-band, .contact-card { padding: 24px 22px; }
    .stat-n { font-size: 1.8rem; }
    .section-title { font-size: 1.2rem; }
}
