:root {
    --bg: #0f172a;
    --card: #1e293b;
    --card2: #16213a;
    --border: #334155;
    --accent: #2563eb;
    --accent2: #1d4ed8;
    --yellow: #facc15;
    --text: #e2e8f0;
    --muted: #94a3b8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 24px;
    background: #0b1120;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15em;
    color: var(--yellow);
}
.topbar .brand img { height: 40px; width: auto; }
.topbar nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.topbar nav a {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
}
.topbar nav a:hover { background: #1e293b; text-decoration: none; }
.topbar nav a.active { background: var(--accent); color: #fff; }
.topbar .btn-login {
    background: var(--accent);
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.topbar .btn-login:hover { background: var(--accent2); text-decoration: none; }

.container { max-width: 1000px; margin: 0 auto; padding: 32px 20px 60px; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

.hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}
.hero img { width: 100%; max-height: 340px; object-fit: cover; }

h1.page-title {
    font-size: 1.9em;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: .5px;
    margin: 0 0 22px;
}

.article p { color: #cbd5e1; margin: 0 0 16px; font-size: 15.5px; }
.article strong { color: #fff; }
.article .figure { margin: 22px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.article .figure img { width: 100%; }

.notice {
    background: #3b2410;
    border: 1px solid #92400e;
    color: #fde68a;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin: 26px 0;
}
.notice strong { display: block; color: #fbbf24; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-row a {
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.cta-row .primary { background: var(--accent); color: #fff; }
.cta-row .primary:hover { background: var(--accent2); }
.cta-row .secondary { background: transparent; color: #e2e8f0; border: 1px solid var(--border); }
.cta-row .secondary:hover { background: var(--card); }

/* homepage hero */
.search-bar-wrap {
    display: flex;
    justify-content: center;
    padding: 22px 20px 0;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
}
.search-bar input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 14px;
}
.search-bar input:focus { outline: none; border-color: var(--accent); }
.search-bar button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.search-bar button:hover { background: var(--accent2); }

.home-hero {
    text-align: center;
    padding: 50px 20px 30px;
}
.home-hero h2 {
    font-size: 2.6em;
    font-weight: 800;
    color: var(--yellow);
    margin: 0 0 4px;
    letter-spacing: 1px;
}
.home-hero .sub { font-size: 1.1em; color: var(--muted); margin-bottom: 20px; }
.home-hero .cta-row { justify-content: center; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 36px 0;
}
.stats .stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 12px;
    text-align: center;
}
.stats .stat img { height: 40px; width: auto; margin: 0 auto 10px; }
.stats .stat .num { font-size: 1.8em; font-weight: 800; color: var(--yellow); }
.stats .stat .label { font-size: 13px; color: var(--muted); }

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}
.gallery .figure { margin: 0; }

.dl-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.dl-block h3 { margin: 0 0 4px; color: var(--yellow); font-size: 1.05em; }
.dl-block .date { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.dl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
}
.dl-item:first-of-type { border-top: none; }
.dl-item a {
    background: var(--accent);
    color: #fff;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}
.dl-item a:hover { background: var(--accent2); text-decoration: none; }

footer {
    background: #0b1120;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 36px 24px 24px;
}
.footer-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    font-size: 13.5px;
}
.footer-grid h4 { color: var(--yellow); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px; }
.footer-grid a { display: block; color: #94a3b8; margin-bottom: 8px; }
.footer-grid a:hover { color: #e2e8f0; }
.footer-bottom {
    max-width: 1000px;
    margin: 24px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: #64748b;
    font-size: 12.5px;
    text-align: center;
}

@media (max-width: 640px) {
    .stats, .gallery { grid-template-columns: 1fr; }
    h1.page-title { font-size: 1.5em; }
    .home-hero h2 { font-size: 1.9em; }
}
