/* =================================================================
   BFSA News - Shared Stylesheet
   Palette matches main landing page (styles.css)
   Used by: news/index.php, news-article.php
================================================================= */

/* -----------------------------------------------------------------
   CSS Variables & Reset
----------------------------------------------------------------- */
:root {
    --primary:       #18181b;
    --primary-hover: #27272a;
    --primary-mid:   #3f3f46;
    --primary-light: #52525b;
    --accent:        #18181b;
    --accent-dark:   #27272a;
    --border:        #e4e4e7;
    --border-mid:    #d4d4d8;
    --bg:            #fafafa;
    --bg2:           #f4f4f5;
    --bg3:           #e4e4e7;
    --text:          #18181b;
    --text-mid:      #3f3f46;
    --text-muted:    #71717a;
    --text-light:    #a1a1aa;
    --white:         #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
}
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* -----------------------------------------------------------------
   Top Bar
----------------------------------------------------------------- */
.topbar {
    background: var(--primary);
    padding: 8px 32px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: rgba(255,255,255,0.6);
}
.topbar a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.topbar a:hover { color: white; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
    width: 24px; height: 24px; border-radius: 2px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: rgba(255,255,255,0.6);
    transition: background 0.2s, color 0.2s;
}
.topbar-social a:hover { background: rgba(255,255,255,0.18); color: white; }

/* -----------------------------------------------------------------
   Navbar
----------------------------------------------------------------- */
.navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 32px; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 200;
    border-bottom: 1px solid rgba(228,228,231,0.6);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.navbar-brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.navbar-brand img { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.brand-sub { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* index.php center nav */
.navbar-center { display: flex; align-items: center; gap: 2px; }
.navbar-center a {
    color: var(--text-mid); padding: 7px 14px;
    border-radius: 2px; font-size: 14px; font-weight: 500;
    transition: all 0.2s; display: flex; align-items: center; gap: 6px;
    border: 1px solid transparent;
}
.navbar-center a:hover { background: var(--bg2); color: var(--text); }
.navbar-center a.active { background: var(--primary); color: white; }
.nav-badge {
    background: var(--text); color: white;
    font-size: 10px; font-weight: 700; padding: 1px 6px;
    border-radius: 10px; line-height: 1.6;
}
.navbar-right { display: flex; align-items: center; gap: 8px; }
.search-toggle {
    width: 36px; height: 36px; border-radius: 2px;
    background: var(--bg2); border: 1px solid var(--border); cursor: pointer;
    color: var(--text-muted); font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.search-toggle:hover { background: var(--bg3); color: var(--text); border-color: var(--border-mid); }

/* article.php simple nav links */
.navbar-links { display: flex; align-items: center; gap: 2px; }
.navbar-links a {
    color: var(--text-mid); padding: 7px 14px; border-radius: 2px;
    font-size: 14px; font-weight: 500; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.navbar-links a:hover { background: var(--bg2); color: var(--text); }

.member-btn {
    padding: 8px 18px; background: var(--primary); color: white !important;
    border-radius: 2px; font-weight: 600; font-size: 14px;
    transition: all 0.2s; display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--primary);
}
.member-btn:hover { background: var(--primary-hover) !important; transform: scale(1.02); }

/* Search bar dropdown */
.search-bar {
    background: var(--white); padding: 14px 32px;
    display: none; border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.search-bar.open { display: block; }
.search-bar form { max-width: 600px; margin: 0 auto; display: flex; gap: 8px; }
.search-bar input {
    flex: 1; padding: 10px 14px; border-radius: 2px;
    border: 1px solid var(--border-mid); background: var(--white);
    color: var(--text); font-size: 14px; font-family: inherit; outline: none;
    transition: border-color 0.2s;
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar input:focus { border-color: var(--primary); }
.search-bar button {
    padding: 10px 20px; background: var(--primary); color: white;
    border: none; border-radius: 2px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: background 0.2s;
}
.search-bar button:hover { background: var(--primary-hover); }

/* -----------------------------------------------------------------
   Hero (index.php)
----------------------------------------------------------------- */
.hero {
    background: var(--primary);
    padding: 56px 32px 64px; 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.03'%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-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
    padding: 5px 14px; border-radius: 2px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.15);
}
.hero h1 {
    font-size: 40px; font-weight: 800; color: white;
    line-height: 1.15; margin-bottom: 12px; letter-spacing: -0.5px;
}
.hero-sub { color: rgba(255,255,255,0.55); font-size: 16px; max-width: 500px; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: left; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: white; line-height: 1; }
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

/* -----------------------------------------------------------------
   Featured Article Card (index.php)
----------------------------------------------------------------- */
.featured-section { max-width: 1200px; margin: -28px auto 0; padding: 0 24px; position: relative; z-index: 10; }
.featured-card {
    background: white; border-radius: 2px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    display: grid; grid-template-columns: 1.1fr 1fr;
    border: 1px solid var(--border);
}
.featured-img-wrap { overflow: hidden; min-height: 340px; position: relative; }
.featured-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.featured-card:hover .featured-img-wrap img { transform: scale(1.03); }
.featured-img-placeholder {
    width: 100%; height: 100%; min-height: 340px;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 90px; color: var(--border-mid);
}
.featured-badge-wrap { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.badge-featured {
    background: var(--primary); color: white;
    padding: 4px 10px; border-radius: 2px; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; gap: 5px;
}
.badge-cat {
    padding: 4px 10px; border-radius: 2px; font-size: 11px; font-weight: 700;
    background: rgba(255,255,255,0.95); color: var(--text);
    border: 1px solid rgba(0,0,0,0.1);
}
.featured-body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-eyebrow {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.featured-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--primary); display: block; }
.featured-body h2 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; color: var(--text); }
.featured-body h2 a { color: inherit; transition: color 0.2s; }
.featured-body h2 a:hover { color: var(--text-muted); }
.featured-excerpt { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.featured-meta { display: flex; gap: 16px; margin-bottom: 28px; font-size: 13px; color: var(--text-muted); }
.featured-meta span { display: flex; align-items: center; gap: 6px; }
.btn-read {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; background: var(--primary); color: white;
    border-radius: 2px; font-size: 14px; font-weight: 600;
    transition: all 0.2s; width: fit-content; border: 1px solid var(--primary);
}
.btn-read:hover { background: var(--primary-hover); transform: scale(1.02); }
.btn-read i { transition: transform 0.2s; }
.btn-read:hover i { transform: translateX(3px); }

/* -----------------------------------------------------------------
   Main Layout - index.php two-column
----------------------------------------------------------------- */
.main-layout {
    max-width: 1200px; margin: 48px auto; padding: 0 24px 60px;
    display: grid; grid-template-columns: 1fr 300px; gap: 36px;
}
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.section-title {
    font-size: 18px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.section-title::before {
    content: ''; width: 3px; height: 18px;
    background: var(--primary); border-radius: 0; display: block;
}
.section-count { font-size: 13px; color: var(--text-muted); background: var(--bg2); padding: 3px 10px; border-radius: 2px; border: 1px solid var(--border); }

/* -----------------------------------------------------------------
   Filter Chips (index.php)
----------------------------------------------------------------- */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 2px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); background: white; color: var(--text-muted);
    transition: all 0.15s; cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--text); background: var(--bg2); }
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.chip .cnt { font-size: 11px; opacity: 0.65; }

/* -----------------------------------------------------------------
   News Grid & Cards (index.php)
----------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.news-card {
    background: white; border-radius: 2px; overflow: hidden;
    border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: var(--border-mid); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); flex-shrink: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.news-card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder {
    width: 100%; height: 100%;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 36px;
}
.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; flex: 1; }
.card-title a { color: var(--text); transition: color 0.2s; }
.card-title a:hover { color: var(--text-muted); }
.card-excerpt { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.card-meta { font-size: 11px; color: var(--text-light); display: flex; gap: 10px; align-items: center; }

/* Search result banner */
.search-info {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 2px; padding: 12px 16px; margin-bottom: 18px;
    font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 10px;
}
.search-info i { color: var(--text-mid); }
.search-info a { color: var(--text); font-weight: 600; text-decoration: underline; }

/* Empty state */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-muted); }
.empty-state i { font-size: 60px; opacity: 0.15; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 36px; flex-wrap: wrap; }
.page-btn {
    padding: 8px 14px; border: 1px solid var(--border);
    border-radius: 2px; font-size: 13px; color: var(--text); background: white;
    transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--text); background: var(--bg2); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.35; pointer-events: none; }

/* -----------------------------------------------------------------
   Sidebar - index.php
----------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
    background: white; border-radius: 2px; overflow: hidden;
    border: 1px solid var(--border);
}
.widget-header {
    padding: 16px 18px 12px; border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.widget-header i { color: var(--text-muted); font-size: 12px; }
.widget-body { padding: 14px 18px; }

.latest-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.latest-item:last-child { border-bottom: none; padding-bottom: 0; }
.latest-thumb { width: 60px; height: 60px; border-radius: 2px; overflow: hidden; flex-shrink: 0; background: var(--bg2); }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 18px; }
.latest-info { flex: 1; min-width: 0; }
.latest-info .cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.latest-info h4 {
    font-size: 13px; font-weight: 600; line-height: 1.4;
    margin: 3px 0; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.latest-info h4 a { color: var(--text); transition: color 0.2s; }
.latest-info h4 a:hover { color: var(--text-muted); }
.latest-info .date { font-size: 11px; color: var(--text-light); }

.cat-list { display: flex; flex-direction: column; gap: 1px; }
.cat-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: 2px; color: var(--text-muted);
    font-size: 13px; font-weight: 500; transition: all 0.15s;
}
.cat-link:hover { background: var(--bg2); color: var(--text); }
.cat-link.active { background: var(--primary); color: white; }
.cat-link.active .cat-count { background: rgba(255,255,255,0.15); color: white; }
.cat-link .cat-icon { width: 26px; height: 26px; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-right: 8px; }
.cat-link-left { display: flex; align-items: center; }
.cat-count { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 2px; background: var(--bg2); color: var(--text-muted); border: 1px solid var(--border); }

.newsletter-widget { background: var(--primary); }
.newsletter-widget .widget-header { border-color: rgba(255,255,255,0.1); color: white; }
.newsletter-widget .widget-header i { color: rgba(255,255,255,0.5); }
.newsletter-widget .widget-body { padding: 14px 18px 20px; }
.newsletter-widget p { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 14px; line-height: 1.6; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-form input {
    padding: 10px 12px; border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
    color: white; font-size: 13px; font-family: inherit; outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.nl-form input:focus { border-color: rgba(255,255,255,0.4); }
.nl-form button {
    padding: 10px; background: white; color: var(--primary);
    border: none; border-radius: 2px; font-weight: 700; font-size: 13px;
    cursor: pointer; transition: background 0.2s;
}
.nl-form button:hover { background: var(--bg2); }
.nl-success { font-size: 13px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 8px; padding: 8px 0; }

.about-widget-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.about-widget-logo img { height: 38px; }
.about-widget-logo .name { font-size: 14px; font-weight: 700; color: var(--text); }
.about-widget p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.about-links { display: flex; gap: 6px; flex-wrap: wrap; }
.about-link {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 2px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--border); color: var(--text-muted); transition: all 0.15s;
}
.about-link:hover { border-color: var(--primary); color: var(--text); background: var(--bg2); }
.social-icons { display: flex; gap: 6px; margin-top: 12px; }
.social-icon {
    width: 32px; height: 32px; border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: all 0.15s; border: 1px solid var(--border); color: var(--text-muted);
}
.social-icon:hover { border-color: var(--primary); color: var(--text); background: var(--bg2); }

/* -----------------------------------------------------------------
   Footer - index.php (multi-column)
----------------------------------------------------------------- */
.footer { background: var(--primary); color: rgba(255,255,255,0.5); }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 48px 32px 24px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .logo img { height: 38px; }
.footer-brand .logo span { font-size: 18px; font-weight: 800; color: white; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 300px; color: rgba(255,255,255,0.45); }
.footer-social { display: flex; gap: 6px; margin-top: 18px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 2px;
    background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 13px; transition: all 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); color: white; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.45); font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 32px;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: white; }

/* Simple footer - article.php */
footer {
    background: var(--primary); color: rgba(255,255,255,0.45);
    text-align: center; padding: 28px 32px; font-size: 13px;
}
footer a { color: rgba(255,255,255,0.35); margin: 0 8px; transition: color 0.2s; }
footer a:hover { color: white; }

/* -----------------------------------------------------------------
   Article Hero (news-article.php)
----------------------------------------------------------------- */
.article-hero {
    background: var(--primary);
    padding: 52px 32px 64px; text-align: center; position: relative; overflow: hidden;
}
.article-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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}
.article-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb i { font-size: 10px; }
.article-cat-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 2px; font-size: 11px; font-weight: 700;
    margin-bottom: 18px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15); letter-spacing: 0.5px; text-transform: uppercase;
}
.article-hero h1 {
    font-size: 34px; font-weight: 800; color: white; line-height: 1.2;
    margin-bottom: 20px; letter-spacing: -0.4px;
}
.article-meta-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.45);
}
.article-meta-bar span { display: flex; align-items: center; gap: 6px; }

/* -----------------------------------------------------------------
   Article Content Layout (news-article.php)
----------------------------------------------------------------- */
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; }
.article-img-wrap {
    margin-top: -36px; position: relative; z-index: 10;
    border-radius: 2px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    aspect-ratio: 16/7; max-height: 480px;
}
.article-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.article-img-placeholder {
    width: 100%; height: 100%; min-height: 280px;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    color: var(--border-mid); font-size: 100px;
}
.two-col { display: grid; grid-template-columns: 1fr 280px; gap: 32px; margin-top: 32px; }

.article-body { background: white; border-radius: 2px; padding: 40px; border: 1px solid var(--border); }
.article-excerpt {
    font-size: 17px; font-weight: 400; color: var(--text-mid);
    line-height: 1.75; padding-bottom: 24px; margin-bottom: 24px;
    border-bottom: 1px solid var(--border); font-style: italic;
}
.article-content {
    font-size: 16px; line-height: 1.85; color: var(--text-mid);
}
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 14px; color: var(--text); }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.article-content ul,
.article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 3px solid var(--primary); padding: 16px 20px;
    background: var(--bg2); border-radius: 0;
    margin: 24px 0; font-style: italic; color: var(--text-muted);
}
.article-content a { color: var(--text); text-decoration: underline; }
.article-content a:hover { color: var(--text-muted); }
.article-content img { border-radius: 2px; margin: 20px auto; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.article-content strong { color: var(--text); }

/* Tags */
.article-tags { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tags h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 10px; font-weight: 700; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    padding: 4px 10px; border-radius: 2px; font-size: 12px; font-weight: 500;
    border: 1px solid var(--border); color: var(--text-muted); background: white; transition: all 0.15s;
}
.tag:hover { border-color: var(--primary); color: var(--text); background: var(--bg2); }

/* Share */
.article-share { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-share h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 12px; font-weight: 700; }
.share-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 2px; font-size: 13px; font-weight: 600;
    transition: all 0.15s; border: none; cursor: pointer;
}
.share-fb  { background: #1877f2; color: white; }
.share-tw  { background: #1da1f2; color: white; }
.share-wa  { background: #25d366; color: white; }
.share-cp  { background: var(--bg2); color: var(--text-muted); border: 1px solid var(--border); }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Prev / Next */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.prev-next-btn {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; background: var(--bg2); border-radius: 2px;
    border: 1px solid var(--border); transition: all 0.15s; color: var(--text);
}
.prev-next-btn:hover { border-color: var(--primary); background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.prev-next-btn.next { text-align: right; }
.pn-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; font-weight: 700; }
.pn-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 4px; }
.prev-next-btn.next .pn-label { justify-content: flex-end; }

/* Article sidebar */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.widget { background: white; border-radius: 2px; overflow: hidden; border: 1px solid var(--border); }
.widget-title {
    padding: 14px 16px 10px; border-bottom: 1px solid var(--border);
    font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 7px;
    color: var(--text); text-transform: uppercase; letter-spacing: 0.6px;
}
.widget-title i { color: var(--text-muted); font-size: 11px; }
.widget-body { padding: 12px 16px; }

.related-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-thumb { width: 54px; height: 54px; border-radius: 2px; overflow: hidden; flex-shrink: 0; background: var(--bg2); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 16px; }
.related-info h4 {
    font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text);
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 4px;
}
.related-info h4 a { color: inherit; transition: color 0.2s; }
.related-info h4 a:hover { color: var(--text-muted); }
.related-info .date { font-size: 11px; color: var(--text-light); }

.cat-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 8px; border-radius: 2px; font-size: 13px; color: var(--text-muted);
    transition: all 0.15s; text-decoration: none;
}
.cat-item:hover { background: var(--bg2); color: var(--text); }
.cat-item .dot { width: 7px; height: 7px; border-radius: 1px; margin-right: 8px; display: inline-block; }
.cat-item-left { display: flex; align-items: center; }
.cat-cnt { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 2px; background: var(--bg2); border: 1px solid var(--border); }

.nl-widget { background: var(--primary); }
.nl-widget .widget-title { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.nl-widget .widget-title i { color: rgba(255,255,255,0.35); }
.nl-widget .widget-body { padding: 12px 16px 16px; }
.nl-widget p { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; line-height: 1.6; }
.nl-widget input {
    width: 100%; padding: 8px 10px; border-radius: 2px; margin-bottom: 6px;
    border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06);
    color: white; font-size: 13px; font-family: inherit; outline: none;
}
.nl-widget input::placeholder { color: rgba(255,255,255,0.25); }
.nl-widget input:focus { border-color: rgba(255,255,255,0.3); }
.nl-widget button {
    width: 100%; padding: 8px; background: white; color: var(--primary);
    border: none; border-radius: 2px; font-weight: 700; font-size: 13px;
    cursor: pointer; transition: background 0.2s;
}
.nl-widget button:hover { background: var(--bg2); }
.nl-success { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 7px; padding: 6px 0; }

/* More articles grid */
.more-section { max-width: 1100px; margin: 0 auto 60px; padding: 0 24px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-card {
    background: white; border-radius: 2px; overflow: hidden;
    border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s;
}
.more-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: var(--border-mid); }
.more-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.more-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.more-card:hover .more-card-img img { transform: scale(1.04); }
.more-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 28px; }
.more-card-body { padding: 14px 16px; }
.more-cat { display: inline-block; padding: 2px 7px; border-radius: 2px; font-size: 10px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.3px; }
.more-title { font-size: 14px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; color: var(--text); }
.more-title a { color: inherit; transition: color 0.2s; }
.more-title a:hover { color: var(--text-muted); }
.more-meta { font-size: 11px; color: var(--text-light); }

/* 404 */
.not-found { text-align: center; padding: 100px 24px; }
.not-found i { font-size: 80px; color: var(--border); margin-bottom: 24px; }
.not-found h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.not-found p { color: var(--text-muted); margin-bottom: 24px; }
.btn-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--primary); color: white;
    border-radius: 2px; font-size: 14px; font-weight: 600; transition: all 0.15s;
}
.btn-back:hover { background: var(--primary-hover); }

/* -----------------------------------------------------------------
   Responsive
----------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; }
    .featured-img-wrap { min-height: 240px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .more-grid { grid-template-columns: repeat(2, 1fr); }
    .prev-next { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .navbar { padding: 0 20px; }
    .navbar-center { display: none; }
    .hero { padding: 40px 20px 56px; }
    .hero h1 { font-size: 28px; }
    .hero-stats { gap: 24px; }
    .featured-section { padding: 0 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .main-layout { padding: 0 16px 40px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 20px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 20px; }
    .article-hero h1 { font-size: 26px; }
}
@media (max-width: 600px) {
    .navbar-links { display: none; }
    .navbar-center { display: none; }
    .navbar { padding: 0 16px; }
    .article-hero { padding: 36px 16px 52px; }
    .article-hero h1 { font-size: 22px; }
    .article-body { padding: 20px; }
    .more-grid { grid-template-columns: 1fr; }
    .content-wrap { padding: 0 16px 40px; }
    .share-buttons { gap: 5px; }
    .share-btn span { display: none; }
    .sidebar { grid-template-columns: 1fr; }
}
