:root {
    --accent:      #ef4444;
    --accent-glow: rgba(239,68,68,0.12);
    --bg:          #080808;
    --glass:       rgba(255,255,255,0.055);
    --glass-hover: rgba(255,255,255,0.09);
    --glass-border:rgba(255,255,255,0.10);
    --text:        #fff;
    --text-muted:  rgba(255,255,255,0.45);
    --radius:      14px;
    --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:'Montserrat',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; }

/* ── Ticker ──────────────────────────────────────────────────────────────── */
.ticker-wrap { background:var(--accent); overflow:hidden; white-space:nowrap; padding:8px 0; position:relative; z-index:200; }
.ticker { display:inline-block; animation:ticker 32s linear infinite; font-size:0.68rem; font-weight:800; text-transform:uppercase; letter-spacing:3px; color:#fff; padding-left:100%; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 40px; position:sticky; top:0; z-index:100; background:rgba(8,8,8,0.92); backdrop-filter:blur(32px) saturate(1.6); border-bottom:1px solid var(--glass-border); }
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); }
.nav-badge-wrap { display:flex; align-items:center; }
.nav-badge-gbc { background:var(--accent); color:#fff; font-weight:800; font-size:0.80rem; letter-spacing:2px; padding:4px 9px; border-radius:8px 0 0 8px; }
.nav-badge-service { background:#fff; color:#080808; font-weight:800; font-size:0.80rem; letter-spacing:1px; padding:4px 9px; border-radius:0 8px 8px 0; }
.nav-back { font-size:0.68rem; opacity:0.35; font-weight:700; }
.nav-links { display:flex; align-items:center; gap:2px; list-style:none; flex:1; justify-content:center; flex-wrap:wrap; }
.nav-links a { color:var(--text-muted); text-decoration:none; font-size:0.70rem; font-weight:700; padding:6px 12px; border-radius:20px; transition:var(--transition); }
.nav-links a:hover { color:var(--text); background:var(--glass-hover); }
.nav-links a.active { color:var(--text); background:var(--accent-glow); border:1px solid rgba(239,68,68,0.25); }
.nav-actions { display:flex; align-items:center; gap:8px; }
.nav-search-btn { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:0.85rem; padding:6px 10px; transition:var(--transition); }
.nav-search-btn:hover { color:var(--text); }
.nav-login-btn { background:var(--accent); color:#fff; border:none; border-radius:20px; padding:7px 16px; font-family:inherit; font-size:0.70rem; font-weight:800; text-decoration:none; transition:var(--transition); }
.nav-login-btn:hover { background:#dc2626; }
.nav-admin-btn { background:rgba(239,68,68,0.15); color:var(--accent); border:1px solid rgba(239,68,68,0.3); border-radius:20px; padding:6px 14px; font-size:0.70rem; font-weight:800; text-decoration:none; transition:var(--transition); }
.nav-admin-btn:hover { background:rgba(239,68,68,0.25); }
.nav-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.nav-avatar-initial { width:28px; height:28px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:800; }
@media (max-width:700px) {
    nav { padding:12px 16px; }
    .nav-links { display:none; }
    .nav-back { display:none; }
}

/* ── Search overlay ──────────────────────────────────────────────────────── */
.search-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.85); backdrop-filter:blur(20px); z-index:500; display:none; flex-direction:column; align-items:center; padding-top:80px; }
.search-overlay.open { display:flex; }
.search-box { display:flex; align-items:center; gap:12px; width:min(600px,90vw); background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius:16px; padding:14px 20px; }
.search-box i { color:var(--text-muted); font-size:0.9rem; }
.search-box input { flex:1; background:none; border:none; outline:none; color:var(--text); font-family:inherit; font-size:1rem; font-weight:600; }
.search-box input::placeholder { color:var(--text-muted); }
.search-box button { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:1rem; }
.search-results { width:min(600px,90vw); margin-top:12px; display:flex; flex-direction:column; gap:4px; max-height:60vh; overflow-y:auto; }
.search-result-item { display:flex; align-items:center; gap:12px; padding:10px 12px; background:rgba(255,255,255,0.04); border-radius:10px; text-decoration:none; color:var(--text); transition:var(--transition); }
.search-result-item:hover { background:rgba(255,255,255,0.08); }
.search-result-item img { width:48px; height:36px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.sr-title { font-size:0.82rem; font-weight:700; }
.sr-meta { font-size:0.68rem; color:var(--text-muted); margin-top:2px; }
.search-empty { padding:20px; color:var(--text-muted); font-size:0.82rem; text-align:center; }

/* ── Main wrap ───────────────────────────────────────────────────────────── */
.main-wrap { padding:0 40px 60px; max-width:1280px; margin:0 auto; }
@media (max-width:700px) { .main-wrap { padding:0 16px 40px; } }

/* ── Page hero ───────────────────────────────────────────────────────────── */
.page-hero { background:linear-gradient(to bottom,var(--accent-glow) 0%,transparent 100%); border-bottom:1px solid rgba(239,68,68,0.12); padding:48px 40px 40px; margin:0 -40px 40px; position:relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 60% 80% at 50% 0,rgba(239,68,68,0.10) 0%,transparent 70%); pointer-events:none; }
.hero-label { font-size:0.62rem; font-weight:800; text-transform:uppercase; letter-spacing:3px; color:var(--accent); margin-bottom:12px; }
.hero-title { font-size:clamp(1.6rem,3vw,2.5rem); font-weight:800; line-height:1.2; margin-bottom:12px; }
.hero-sub { font-size:0.85rem; color:var(--text-muted); max-width:480px; line-height:1.6; }
@media (max-width:700px) { .page-hero { padding:32px 16px 28px; margin:0 -16px 28px; } }

/* ── Section headings ────────────────────────────────────────────────────── */
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.section-title { font-size:1rem; font-weight:800; }
.section-title span { color:var(--accent); }
.section-more { font-size:0.70rem; font-weight:700; color:var(--text-muted); text-decoration:none; transition:var(--transition); }
.section-more:hover { color:var(--text); }

/* ── Article grid ────────────────────────────────────────────────────────── */
.article-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.article-card { background:var(--glass); border:1px solid var(--glass-border); border-radius:var(--radius); overflow:hidden; text-decoration:none; color:var(--text); transition:var(--transition); display:flex; flex-direction:column; }
.article-card:hover { background:var(--glass-hover); transform:translateY(-2px); border-color:rgba(255,255,255,0.16); }
.article-card-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.article-card-thumb-placeholder { width:100%; aspect-ratio:16/9; background:rgba(255,255,255,0.04); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.15); font-size:1.4rem; }
.article-card-body { padding:16px; flex:1; display:flex; flex-direction:column; gap:8px; }
.article-card-cat { font-size:0.60rem; font-weight:800; text-transform:uppercase; letter-spacing:2px; padding:3px 8px; border-radius:20px; display:inline-block; background:var(--accent-glow); color:var(--accent); border:1px solid rgba(239,68,68,0.2); }
.article-card-title { font-size:0.88rem; font-weight:800; line-height:1.4; }
.article-card-excerpt { font-size:0.75rem; color:var(--text-muted); line-height:1.6; flex:1; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.article-card-meta { display:flex; align-items:center; gap:10px; font-size:0.65rem; color:var(--text-muted); margin-top:auto; }
.article-card-meta i { font-size:0.60rem; }

/* ── Hero article ────────────────────────────────────────────────────────── */
.hero-article { display:grid; grid-template-columns:1fr 1fr; gap:0; background:var(--glass); border:1px solid var(--glass-border); border-radius:var(--radius); overflow:hidden; text-decoration:none; color:var(--text); margin-bottom:40px; transition:var(--transition); }
.hero-article:hover { background:var(--glass-hover); }
.hero-article-img { width:100%; height:320px; object-fit:cover; display:block; }
.hero-article-img-placeholder { width:100%; height:320px; background:rgba(255,255,255,0.04); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.15); font-size:3rem; }
.hero-article-body { padding:32px; display:flex; flex-direction:column; justify-content:center; gap:12px; }
.hero-article-title { font-size:clamp(1.1rem,2vw,1.6rem); font-weight:800; line-height:1.3; }
.hero-article-excerpt { font-size:0.82rem; color:var(--text-muted); line-height:1.6; }
.hero-article-meta { font-size:0.68rem; color:var(--text-muted); display:flex; gap:12px; align-items:center; }
@media (max-width:800px) {
    .hero-article { grid-template-columns:1fr; }
    .hero-article-img,.hero-article-img-placeholder { height:200px; }
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display:flex; justify-content:center; gap:6px; margin-top:40px; flex-wrap:wrap; }
.pagination a, .pagination span { padding:8px 14px; border-radius:10px; font-size:0.72rem; font-weight:700; text-decoration:none; border:1px solid var(--glass-border); color:var(--text-muted); transition:var(--transition); }
.pagination a:hover { background:var(--glass-hover); color:var(--text); }
.pagination .current { background:var(--accent); color:#fff; border-color:var(--accent); }

/* ── Article full page ───────────────────────────────────────────────────── */
.article-header { padding:48px 0 32px; border-bottom:1px solid var(--glass-border); margin-bottom:32px; }
.article-category-badge { font-size:0.60rem; font-weight:800; text-transform:uppercase; letter-spacing:2px; padding:4px 10px; border-radius:20px; display:inline-block; margin-bottom:16px; }
.article-full-title { font-size:clamp(1.6rem,4vw,2.8rem); font-weight:800; line-height:1.2; margin-bottom:16px; }
.article-byline { display:flex; align-items:center; gap:12px; }
.article-author-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.article-author-initial { width:36px; height:36px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; font-size:0.8rem; font-weight:800; flex-shrink:0; }
.article-byline-text { font-size:0.72rem; color:var(--text-muted); }
.article-byline-name { font-weight:700; color:var(--text); }
.article-featured-image { width:100%; max-height:480px; object-fit:cover; border-radius:var(--radius); margin-bottom:32px; display:block; }
.article-content { font-size:0.90rem; line-height:1.8; color:rgba(255,255,255,0.88); max-width:720px; }
.article-content h1,.article-content h2,.article-content h3 { color:var(--text); font-weight:800; margin:28px 0 12px; line-height:1.3; }
.article-content h1 { font-size:1.5rem; }
.article-content h2 { font-size:1.25rem; }
.article-content h3 { font-size:1.05rem; }
.article-content p { margin-bottom:16px; }
.article-content a { color:var(--accent); text-decoration:underline; }
.article-content ul,.article-content ol { padding-left:24px; margin-bottom:16px; }
.article-content li { margin-bottom:8px; }
.article-content blockquote { border-left:4px solid var(--accent); padding-left:20px; color:var(--text-muted); font-style:italic; margin:20px 0; }
.article-content img { max-width:100%; border-radius:10px; margin:16px 0; }
.article-content pre { background:rgba(255,255,255,0.06); border-radius:10px; padding:16px; overflow-x:auto; font-size:0.82rem; }

/* ── Related articles ────────────────────────────────────────────────────── */
.related-section { margin-top:60px; padding-top:32px; border-top:1px solid var(--glass-border); }

/* ── Category page filter bar ────────────────────────────────────────────── */
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.filter-pill { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:20px; font-size:0.70rem; font-weight:700; text-decoration:none; border:1px solid var(--glass-border); color:var(--text-muted); background:var(--glass); transition:var(--transition); }
.filter-pill:hover { color:var(--text); border-color:rgba(255,255,255,0.2); background:var(--glass-hover); }
.filter-pill.active { background:var(--accent-glow); color:var(--accent); border-color:rgba(239,68,68,0.3); }
.filter-pill-dot { width:8px; height:8px; border-radius:50%; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state { text-align:center; padding:80px 20px; color:var(--text-muted); }
.empty-state i { font-size:2.5rem; opacity:0.25; margin-bottom:16px; display:block; }
.empty-state h3 { font-size:1rem; font-weight:700; margin-bottom:8px; color:var(--text); }
.empty-state p { font-size:0.80rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top:1px solid var(--glass-border); padding:32px 40px; margin-top:60px; }
.footer-inner { max-width:1280px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.footer-brand p { font-size:0.70rem; color:var(--text-muted); margin-top:8px; }
.footer-brand a { color:var(--accent); text-decoration:none; }
.footer-links { display:flex; gap:16px; flex-wrap:wrap; }
.footer-links a { font-size:0.70rem; color:var(--text-muted); text-decoration:none; transition:var(--transition); }
.footer-links a:hover { color:var(--text); }
@media (max-width:600px) { .site-footer { padding:24px 16px; } .footer-inner { flex-direction:column; align-items:flex-start; } }

/* ── Loading spinner ─────────────────────────────────────────────────────── */
.spinner { width:32px; height:32px; border:3px solid rgba(255,255,255,0.1); border-top-color:var(--accent); border-radius:50%; animation:spin 0.7s linear infinite; margin:40px auto; }
@keyframes spin { to { transform:rotate(360deg); } }
.footer-hq { text-align:right; }
@media (max-width:900px) { .footer-hq { text-align:left; } }

/* ── JS fade-in ──────────────────────────────────────────────────────────── */
.article-card, .hero-article, .related-section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.article-card.visible, .hero-article.visible, .related-section.visible {
    opacity: 1;
    transform: none;
}

/* ── Mobile nav ──────────────────────────────────────────────────────────── */
.nav-mobile-btn {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}
@media (max-width: 768px) {
    .nav-mobile-btn { display: flex; align-items: center; justify-content: center; }
    nav { position: relative; flex-wrap: wrap; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8,8,8,0.97);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 12px 24px;
        gap: 0;
        z-index: 200;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li { list-style: none; }
    .nav-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--glass-border); font-size: 0.85rem; }
    .nav-links li:last-child a { border-bottom: none; }
}
