:root{--primary:#1a3a6c;--primary-dark:#0f2348;--accent:#e8a020;--danger:#dc3545;--success:#198754;--light-bg:#f4f6f9;--border:#dee2e6;--text:#2d3748;--text-muted:#6c757d;--white:#ffffff;--shadow-sm:0 1px 4px rgba(0,0,0,.07);--shadow-md:0 3px 14px rgba(0,0,0,.11);--radius:8px}*,*::before,*::after{box-sizing:border-box}body{font-family:'Source Sans 3','Segoe UI',Arial,sans-serif;font-size:15px;color:var(--text);background:var(--light-bg);line-height:1.6;overflow-x:hidden}.min-w-0{min-width:0}.flex-1{flex:1 1 0;min-width:0}.lang-te,[lang="te"]{font-family:'Noto Sans Telugu',sans-serif}.pw{max-width:1400px;margin-left:auto;margin-right:auto;padding-left:12px;padding-right:12px}.top-bar{background:#f8f9fa;border-bottom:1px solid var(--border);font-size:12px;padding:4px 0}.site-header{background:var(--white);border-bottom:3px solid var(--primary);padding:8px 0}.logo-text{font-family:'Merriweather',Georgia,serif;font-size:26px;font-weight:700;color:var(--primary);line-height:1.1}.logo-tagline{font-size:11px;color:var(--text-muted);letter-spacing:0.5px;text-transform:uppercase}.header-ad-placeholder{background:#eef2ff;border:1px dashed #a0aec0;border-radius:4px;color:#718096;font-size:12px;padding:10px 16px;text-align:center}.main-nav{background:var(--primary) !important;padding:0}.main-nav .navbar-brand{color:white;font-size:14px;font-weight:700;padding:8px 0}.main-nav .navbar-brand:hover{color:var(--accent)}.main-nav .navbar-nav .nav-link{color:rgba(255,255,255,.88) !important;padding:12px 14px;font-size:14px;font-weight:500;transition:color .2s,background .2s;white-space:nowrap}.main-nav .navbar-nav .nav-link:hover,.main-nav .navbar-nav .nav-link.active{color:var(--accent) !important;background:rgba(255,255,255,.08)}.main-nav .dropdown-menu{border:none;border-top:3px solid var(--accent);box-shadow:var(--shadow-md);margin-top:0;min-width:180px}.nav-search-wrap{position:relative}@media (max-width:991.98px){.main-nav .navbar-collapse{background:var(--primary-dark);padding:6px 0 12px}.main-nav .navbar-toggler{border:none;outline:none;box-shadow:none;padding:6px}.main-nav .navbar-toggler-icon{filter:brightness(10)}.nav-search-wrap{padding:6px 14px 4px}.nav-search-wrap .input-group{width:100% !important}}.breaking-news-bar{background:var(--danger);padding:6px 0;overflow:hidden}.breaking-label{background:#8b0000;color:white;padding:2px 12px;font-size:11px;font-weight:700;white-space:nowrap;letter-spacing:1px;border-radius:2px;flex-shrink:0;margin-right:12px}.ticker-wrap{overflow:hidden;flex:1 1 0;min-width:0}.ticker-content{display:flex;animation:ticker var(--ticker-dur,35s) linear infinite;white-space:nowrap}.ticker-item{color:white;font-size:13px;padding-right:60px;flex-shrink:0}.ticker-item a{color:white;text-decoration:none}.ticker-item a:hover{text-decoration:underline}@keyframes ticker{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}.main-content{min-height:60vh;padding:16px 0}@media (min-width:992px){.sidebar{position:sticky;top:12px}}.article-card>.flex-grow-1{min-width:0}.left-sidebar{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}.sidebar-title{background:var(--primary);color:white;padding:10px 14px;font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;display:flex;align-items:center;gap:8px}.category-item{display:flex;align-items:center;gap:8px;padding:8px 14px;color:var(--text);text-decoration:none;border-bottom:1px solid #f0f0f0;font-size:13px;transition:background .15s,padding-left .15s,color .15s}.category-item:last-of-type{border-bottom:none}.category-item:hover,.category-item.active{background:#f0f4ff;color:var(--primary);padding-left:20px;font-weight:600}.category-item i{color:var(--primary);width:16px;flex-shrink:0}.archive-select{width:100%;padding:7px 10px;border:1px solid var(--border);border-radius:4px;font-size:13px;background:var(--white);cursor:pointer;color:var(--text)}.content-area{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}.section-header{display:flex;align-items:center;gap:10px;padding:11px 15px;border-bottom:2px solid var(--primary);background:var(--white)}.section-title{font-size:13px;font-weight:700;color:var(--primary);letter-spacing:1px;text-transform:uppercase;margin:0}.latest-update-card{padding:14px 15px;background:#fffbf0;border-bottom:1px solid var(--border)}.latest-badge{display:inline-flex;align-items:center;gap:4px;background:var(--accent);color:white;padding:2px 9px;border-radius:3px;font-size:11px;font-weight:700;letter-spacing:.5px;margin-bottom:6px}.latest-title{font-size:16px;font-weight:700;color:var(--primary);text-decoration:none;display:block;line-height:1.35}.latest-title:hover{color:var(--accent);text-decoration:underline}.article-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--text-muted);margin-top:5px}.article-meta span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.article-card{padding:11px 15px;border-bottom:1px solid #f0f0f0;display:flex;align-items:flex-start;gap:10px;transition:background .15s}.article-card:hover{background:#f8f9ff}.article-card:last-child{border-bottom:none}.article-number{background:var(--primary);color:white;width:26px;height:26px;min-width:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;margin-top:2px}.article-card-thumb{width:75px;height:55px;object-fit:cover;border-radius:4px;flex-shrink:0}.urgent-badge{display:inline-flex;align-items:center;gap:3px;color:var(--danger);font-size:11px;font-weight:700;margin-right:4px}.new-badge{background:var(--success);color:white;font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px;margin-left:5px;letter-spacing:.5px;vertical-align:middle}.article-card-title{font-size:14px;font-weight:600;color:var(--text);text-decoration:none;line-height:1.4;word-break:break-word}.article-card-title:hover{color:var(--primary)}.doc-icon{color:var(--danger);font-size:20px;flex-shrink:0;margin-top:2px;text-decoration:none;transition:color .15s}.doc-icon:hover{color:var(--primary)}.doc-icon.green{color:var(--success)}.doc-icon.blue{color:#0d6efd}.doc-icon.orange{color:var(--accent)}.widget{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);margin-bottom:16px}.widget:last-child{margin-bottom:0}.widget-header{background:var(--primary);color:white;padding:10px 14px;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;display:flex;align-items:center;gap:6px}.widget-body{padding:12px 14px}.notice-item{display:flex;align-items:flex-start;gap:9px;padding:7px 0;border-bottom:1px solid #f0f0f0}.notice-item:last-child{border-bottom:none}.notice-dot{width:10px;height:10px;min-width:10px;border-radius:50%;margin-top:4px}.notice-link{font-size:13px;color:var(--text);text-decoration:none;line-height:1.35}.notice-link:hover{color:var(--primary);text-decoration:underline}.download-item{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #f0f0f0}.download-item:last-child{border-bottom:none}.download-link{color:var(--text);text-decoration:none;font-size:13px;line-height:1.3;word-break:break-word}.download-link:hover{color:var(--primary)}.popular-post-item{transition:background .15s}.popular-post-item:hover{background:#f8f9ff}.pop-num{background:var(--primary);color:white;width:22px;height:22px;min-width:22px;border-radius:50%;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:2px}.pop-thumb{width:48px;height:38px;object-fit:cover;border-radius:3px;flex-shrink:0}.pop-title{color:var(--text);text-decoration:none;font-weight:500;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.pop-title:hover{color:var(--primary)}.category-list-item{display:flex;justify-content:space-between;align-items:center;padding:8px 14px;border-bottom:1px solid #f0f0f0;text-decoration:none;transition:background .15s;color:var(--text)}.category-list-item:last-child{border-bottom:none}.category-list-item:hover{background:#f0f4ff;color:var(--primary)}.ad-placeholder-vertical{background:#eef2ff;border:1px dashed #a0aec0;border-radius:4px;min-height:250px;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:13px}.ad-placeholder-sm{background:#eef2ff;border:1px dashed #a0aec0;border-radius:4px;color:var(--text-muted);font-size:12px;padding:12px;text-align:center}.article-single{background:var(--white);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm)}.article-featured-img{width:100%;max-height:400px;object-fit:cover;border-radius:6px;margin-bottom:20px;display:block}.article-title{font-family:'Merriweather',Georgia,serif;font-size:22px;font-weight:700;color:var(--primary);line-height:1.35;margin-bottom:12px}.article-content{font-size:15px;line-height:1.8;color:var(--text)}.article-content h2{font-size:19px;color:var(--primary);margin-top:24px;font-weight:700}.article-content h3{font-size:16px;color:var(--primary);margin-top:18px;font-weight:700}.article-content img{max-width:100%;border-radius:6px;margin:14px 0;display:block}.article-content a{color:var(--primary)}.article-content ul,.article-content ol{padding-left:22px}.article-content blockquote{border-left:4px solid var(--primary);padding:8px 16px;margin:16px 0;background:#f8f9ff;border-radius:0 4px 4px 0;color:var(--text-muted)}.article-content table{width:100%;border-collapse:collapse;margin:14px 0;font-size:14px}.article-content table th,.article-content table td{border:1px solid var(--border);padding:8px 10px}.article-content table th{background:var(--primary);color:white}.share-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.share-btn{display:inline-flex;align-items:center;gap:5px;padding:6px 13px;border-radius:4px;font-size:13px;font-weight:600;text-decoration:none;transition:opacity .2s;white-space:nowrap}.share-btn:hover{opacity:.82}.share-fb{background:#1877f2;color:white}.share-tw{background:#000;color:white}.share-wa{background:#25d366;color:white}.share-tg{background:#0088cc;color:white}.share-copy{background:var(--primary);color:white}.hover-card{transition:background .15s,box-shadow .15s;border-color:var(--border) !important;color:var(--text)}.hover-card:hover{background:#f0f4ff !important;box-shadow:var(--shadow-md);color:var(--primary)}.comment-item{background:#f8f9fa;border-radius:6px;padding:11px 14px;margin-bottom:10px;border-left:3px solid var(--primary)}.comment-author{font-weight:600;font-size:14px}.comment-date{font-size:12px;color:var(--text-muted)}.search-highlight{background:#fff176;font-weight:600;border-radius:2px;padding:0 2px}.search-suggestions{position:absolute;top:calc(100%+2px);left:0;right:0;z-index:9999;background:var(--white);border:1px solid var(--border);border-radius:0 0 6px 6px;max-height:260px;overflow-y:auto;box-shadow:var(--shadow-md)}.suggestion-item{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:13px;text-decoration:none;color:var(--text);border-bottom:1px solid #f0f0f0}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background:#f0f4ff;color:var(--primary)}.pagination .page-link{color:var(--primary);border-color:var(--border);font-size:13px}.pagination .page-item.active .page-link{background:var(--primary);border-color:var(--primary);color:white}.pagination .page-link:hover{background:#e8eeff;color:var(--primary);border-color:var(--border)}.site-footer{background:var(--primary-dark);margin-top:30px}.footer-top{background:#112244;padding:32px 0}.footer-bottom{background:rgba(0,0,0,.3);border-top:1px solid rgba(255,255,255,.1);padding:10px 0;text-align:center}.footer-heading{color:rgba(255,255,255,.9);font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;border-bottom:2px solid var(--accent);padding-bottom:7px;margin-bottom:12px;display:inline-block}.footer-links{margin:0;padding:0}.footer-links li{margin-bottom:5px;list-style:none}.footer-links a{color:rgba(255,255,255,.6);text-decoration:none;font-size:13px;transition:color .15s}.footer-links a:hover{color:var(--accent)}.site-footer .text-muted{color:rgba(255,255,255,.55) !important}.social-btn{width:30px;height:30px;background:rgba(255,255,255,.1);border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;font-size:14px;text-decoration:none;transition:background .2s;flex-shrink:0}.social-btn:hover{background:var(--accent);color:white}.breadcrumb{font-size:13px;margin-bottom:10px}.breadcrumb-item a{color:var(--primary);text-decoration:none}.breadcrumb-item a:hover{text-decoration:underline}.breadcrumb-item.active{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:middle}.btn-primary-custom{background:var(--primary);color:white;border:none;padding:8px 20px;border-radius:4px;font-weight:600;transition:background .2s;cursor:pointer}.btn-primary-custom:hover{background:var(--primary-dark);color:white}.section-divider{height:1px;background:linear-gradient(to right,var(--primary),transparent);margin:20px 0}@media (max-width:767.98px){.article-title{font-size:18px}.article-single{padding:14px}.logo-text{font-size:20px}.share-btn{padding:5px 10px;font-size:12px}.article-meta{gap:6px}.latest-title{font-size:15px}}@media (max-width:575.98px){.breaking-news-bar,.ticker-item{font-size:12px}.article-card{padding:10px 12px;gap:8px}.article-number{width:22px;height:22px;min-width:22px;font-size:10px}.article-card-thumb{width:60px;height:45px}.widget-header{font-size:11px}.section-header{padding:9px 12px}}@media print{.main-nav,.breaking-news-bar,.top-bar,.sidebar,.left-sidebar,.site-footer,.share-buttons,.widget,.ad-placeholder-vertical,.ad-placeholder-sm{display:none !important}.article-single{box-shadow:none;padding:0}body{background:white;font-size:13px}}.att-download-btn{padding:10px 14px;border-radius:8px;text-decoration:none;transition:all .18s;border-width:1.5px}.att-download-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.12)}.att-download-btn .bi.fs-5{font-size:1.4rem!important;flex-shrink:0}@media print{.att-download-btn{display:none!important}}.site-logo-img{max-height:48px;width:auto;max-width:220px;object-fit:contain;display:block}.site-logo-nav{max-height:32px;max-width:160px;filter:brightness(0) invert(1)}@media(max-width:575.98px){.site-logo-img{max-height:38px;max-width:160px}}@media (max-width:991.98px){.main-nav .dropdown-menu{position:static !important;float:none;width:auto;margin:0;background:rgba(0,0,0,.15);border:none;border-top:1px solid rgba(255,255,255,.1);border-radius:0;box-shadow:none;padding:4px 0;}.main-nav .dropdown-menu .dropdown-item{color:rgba(255,255,255,.8);padding:8px 28px;font-size:13px;}.main-nav .dropdown-menu .dropdown-item:hover{background:rgba(255,255,255,.08);color:var(--accent);}.main-nav .navbar-nav .nav-link.dropdown-toggle.show{color:var(--accent) !important;}}a,button,[role="button"],.nav-link,.navbar-toggler,.article-card-title,.article-card,.doc-icon,.category-item,.notice-link,.pop-title,.share-btn,input[type="submit"],input[type="button"]{cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,.1);}.main-nav{z-index:1030;position:relative;}.site-header{z-index:1020;position:relative;}.top-bar{z-index:1010;position:relative;}@media (min-width:992px){.main-nav .dropdown-menu{display:none;position:absolute !important;top:100%;left:0;z-index:1050;}.main-nav .dropdown-menu.show{display:block;}}@media (max-width:991.98px){.main-nav .navbar-collapse{display:none;position:relative;z-index:1040;}.main-nav .navbar-collapse.show,.main-nav .navbar-collapse.collapsing{display:block !important;}.main-nav .dropdown-menu{position:static !important;display:none;float:none;width:auto;margin:0;background:rgba(0,0,0,.18);border:none;border-top:1px solid rgba(255,255,255,.12);border-radius:0;box-shadow:none;padding:4px 0;}.main-nav .dropdown-menu.show{display:block !important;}.main-nav .dropdown-menu .dropdown-item{color:rgba(255,255,255,.85);padding:9px 28px;font-size:13px;display:block;}.main-nav .dropdown-menu .dropdown-item:hover,.main-nav .dropdown-menu .dropdown-item:focus{background:rgba(255,255,255,.1);color:var(--accent);}.main-nav .nav-link.dropdown-toggle.show{color:var(--accent) !important;}}.article-card{position:relative;}.article-card-title{display:block;position:relative;z-index:1;}.breaking-news-bar{position:relative;z-index:100;}@media (hover:none) and (pointer:coarse){.nav-link,.dropdown-item,.category-item,.article-card-title,.notice-link,.pop-title,.share-btn,.btn,.page-link{padding-top:max(var(--bs-nav-link-padding-y,.5rem),10px);padding-bottom:max(var(--bs-nav-link-padding-y,.5rem),10px);}.navbar-toggler{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;}}.breaking-news-bar{contain:layout style}.ticker-content{will-change:transform}.sidebar{contain:layout}.article-card{contain:layout style}.widget{contain:layout}img{max-width:100%;height:auto}.site-header,.main-nav{contain:layout style}img[width][height]{aspect-ratio:attr(width)/attr(height)}.widget-title{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;margin:0;color:inherit}
.in-article-ad{clear:both;text-align:center;padding:12px 0;border-top:1px solid #e9ecef;border-bottom:1px solid #e9ecef;margin:20px 0;background:#fafafa;border-radius:4px}
.in-article-ad::before{content:"Advertisement";display:block;font-size:10px;color:#aaa;letter-spacing:1px;text-transform:uppercase;margin-bottom:6px}
.in-feed-ad{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:8px;text-align:center}
.in-feed-ad::before{content:"Advertisement";display:block;font-size:10px;color:#aaa;letter-spacing:1px;text-transform:uppercase;margin-bottom:4px}
.header-ad-placeholder,.ad-placeholder-sm,.ad-placeholder-vertical{background:#f0f2f5;border:1px dashed #ced4da;border-radius:4px;color:#adb5bd;font-size:11px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;letter-spacing:.5px}
.header-ad-placeholder{min-height:90px;padding:8px 16px}
.ad-placeholder-vertical{min-height:250px}


/* ══════════════════════════════════════════════════════════════
   AICMS v2.2 — Visual Enhancement Layer
   Improves polish, micro-details, and reading experience
   WITHOUT changing layout, structure, or theme architecture.
   ══════════════════════════════════════════════════════════════ */

/* ── 1. CSS variables — additional polish tokens ─────────────── */
:root {
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius-sm: 5px;
  --radius-lg: 10px;
  --transition: all .15s ease;
  --primary-5:  rgba(26,58,108,.05);
  --primary-10: rgba(26,58,108,.10);
  --primary-15: rgba(26,58,108,.15);
}

/* ── 2. Body — smoother text rendering ───────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── 3. Top bar — subtle gradient strip ─────────────────────── */
.top-bar {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f6 100%);
  border-bottom: 1px solid rgba(26,58,108,.08);
}
.top-bar .lang-toggle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text-muted) !important;
  padding: 2px 7px;
  border-radius: 3px;
  transition: var(--transition);
}
.top-bar .lang-toggle:hover {
  background: var(--primary-10);
  color: var(--primary) !important;
}

/* ── 4. Site header — refined shadow ────────────────────────── */
.site-header {
  box-shadow: 0 2px 8px rgba(26,58,108,.08);
}

/* ── 5. Logo — tighter kerning on Merriweather ──────────────── */
.logo-text {
  letter-spacing: -.3px;
}
.logo-tagline {
  font-size: 10px;
  letter-spacing: 1.2px;
}

/* ── 6. Nav — active indicator dot + smoother hover ─────────── */
.main-nav .navbar-nav .nav-link {
  position: relative;
  padding: 13px 15px;
  font-size: 13.5px;
  letter-spacing: .15px;
}
.main-nav .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.main-nav .dropdown-menu {
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 2px solid var(--accent);
  padding: 4px 0;
  animation: dropIn .12s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.main-nav .dropdown-item {
  font-size: 13px;
  padding: 8px 16px;
  color: var(--text);
  transition: var(--transition);
}
.main-nav .dropdown-item:hover {
  background: var(--primary-5);
  color: var(--primary);
  padding-left: 20px;
}

/* ── 7. Breaking news bar — sharper label, smoother text ─────── */
.breaking-news-bar {
  background: linear-gradient(135deg, #c0392b 0%, var(--danger) 100%);
}
.breaking-label {
  background: rgba(0,0,0,.25);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.ticker-item {
  font-size: 12.5px;
  font-weight: 500;
}

/* ── 8. Content area — refined card shadow ────────────────────── */
.content-area {
  box-shadow: var(--shadow-xs), 0 0 0 1px rgba(26,58,108,.04);
}

/* ── 9. Section header — accent left border detail ───────────── */
.section-header {
  border-bottom: 2px solid var(--primary);
  background: linear-gradient(90deg, var(--primary-5) 0%, transparent 80%);
  border-left: 3px solid var(--accent);
}
.section-title {
  font-size: 12px;
  letter-spacing: 1.2px;
}

/* ── 10. Latest update card — warmer, more welcoming ──────────── */
.latest-update-card {
  background: linear-gradient(135deg, #fffcf0 0%, #fffbf0 100%);
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid rgba(232,160,32,.15);
}
.latest-badge {
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: .8px;
  box-shadow: 0 2px 6px rgba(232,160,32,.3);
}
.latest-title {
  font-size: 15.5px;
  letter-spacing: -.1px;
}
.latest-title:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ── 11. Article cards — cleaner hover, better thumbnail ──────── */
.article-card {
  transition: background .15s, border-left-color .15s;
  border-left: 3px solid transparent;
  padding-left: 12px;
}
.article-card:hover {
  background: linear-gradient(90deg, var(--primary-5) 0%, #f8f9ff 100%);
  border-left-color: var(--primary);
}
.article-number {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  box-shadow: 0 2px 6px var(--primary-15);
  font-size: 10px;
}
.article-card-thumb {
  border-radius: 5px;
  box-shadow: var(--shadow-xs);
  object-fit: cover;
}
.article-card-title {
  font-size: 13.5px;
  letter-spacing: -.05px;
  transition: color .15s;
}
.article-card-title:hover {
  color: var(--primary);
}

/* ── 12. Urgent / new badges — refined ───────────────────────── */
.urgent-badge {
  background: rgba(220,53,69,.08);
  padding: 1px 5px;
  border-radius: 3px;
}
.new-badge {
  border-radius: 3px;
  letter-spacing: .7px;
  box-shadow: 0 1px 4px rgba(25,135,84,.25);
}

/* ── 13. Left sidebar — polished category items ──────────────── */
.left-sidebar {
  box-shadow: var(--shadow-xs), 0 0 0 1px rgba(26,58,108,.04);
  border-radius: var(--radius);
}
.sidebar-title {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d8c 100%);
  font-size: 11px;
  letter-spacing: .8px;
}
.category-item {
  font-size: 12.5px;
  transition: background .13s, padding-left .13s, color .13s;
}
.category-item:hover, .category-item.active {
  background: var(--primary-5);
  padding-left: 18px;
}
.category-item i {
  font-size: 11px;
  opacity: .7;
  transition: opacity .13s;
}
.category-item:hover i, .category-item.active i {
  opacity: 1;
}

/* ── 14. Right sidebar widgets — polished headers ─────────────── */
.widget {
  box-shadow: var(--shadow-xs), 0 0 0 1px rgba(26,58,108,.04);
}
.widget-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d8c 100%);
  font-size: 10.5px;
  letter-spacing: 1px;
}
.notice-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  margin-top: 5px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.5);
}
.notice-link {
  font-size: 12.5px;
  line-height: 1.4;
  transition: color .13s;
}
.pop-num {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  font-size: 10px;
}
.pop-title {
  font-size: 12.5px;
  line-height: 1.35;
}
.popular-post-item:hover {
  background: var(--primary-5);
}

/* ── 15. Article single — better reading experience ───────────── */
.article-single {
  box-shadow: var(--shadow-xs), 0 0 0 1px rgba(26,58,108,.04);
  border-radius: var(--radius-lg);
}
.article-title {
  letter-spacing: -.3px;
  line-height: 1.3;
}
.article-meta {
  gap: 12px;
  font-size: 12px;
  padding: 10px 0;
}
.article-meta span {
  color: #64748b;
  gap: 4px;
}
.article-meta i {
  color: var(--primary);
  opacity: .6;
}
.article-featured-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-content {
  font-size: 15px;
  line-height: 1.85;
  color: #2d3748;
}
.article-content p {
  margin-bottom: 1.1em;
}
.article-content h2 {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-top: 28px;
}
.article-content h3 {
  color: #1e4080;
  margin-top: 22px;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(232,160,32,.06) 0%, transparent 80%);
  padding: 10px 18px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.article-content table th {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d8c 100%);
}
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(26,58,108,.3);
  transition: text-decoration-color .15s;
}
.article-content a:hover {
  text-decoration-color: var(--primary);
}

/* ── 16. Share buttons — pill style ──────────────────────────── */
.share-btn {
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: var(--shadow-xs);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.share-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── 17. Attachment download buttons ─────────────────────────── */
.att-download-btn {
  border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s;
  font-size: 13px;
}
.att-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* ── 18. Comment section — cleaner card ─────────────────────── */
.comment-item {
  background: linear-gradient(90deg, var(--primary-5) 0%, #f8f9fa 100%);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow-xs);
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: box-shadow .15s;
}
.comment-item:hover {
  box-shadow: var(--shadow-sm);
}
.comment-author {
  color: var(--primary);
  font-size: 13.5px;
}
#comment-form .form-control {
  border-radius: var(--radius-sm);
  border-color: #dee2e6;
  transition: border-color .15s, box-shadow .15s;
  font-size: 14px;
}
#comment-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
}

/* ── 19. Search suggestions — refined ───────────────────────── */
.search-suggestions {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 1px solid rgba(26,58,108,.1);
  border-top: none;
  animation: dropIn .1s ease;
}
.suggestion-item {
  font-size: 13px;
  padding: 9px 14px;
  transition: background .1s;
}
.suggestion-item:hover {
  background: var(--primary-5);
  color: var(--primary);
}

/* ── 20. Pagination — refined ────────────────────────────────── */
.pagination .page-link {
  border-radius: 6px !important;
  margin: 0 2px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.pagination .page-link:hover {
  background: var(--primary-5);
  color: var(--primary);
  border-color: rgba(26,58,108,.2);
}
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-15);
}

/* ── 21. Footer — subtle refinements ─────────────────────────── */
.footer-heading {
  font-size: 11px;
  letter-spacing: .8px;
}
.footer-links a {
  font-size: 12.5px;
  transition: color .13s, padding-left .13s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 3px;
}
.social-btn {
  transition: background .15s, transform .15s;
}
.social-btn:hover {
  transform: translateY(-2px);
}

/* ── 22. Breadcrumb — cleaner ─────────────────────────────────── */
.breadcrumb {
  font-size: 12px;
  gap: 2px;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #94a3b8;
}
.breadcrumb-item a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color .13s;
}
.breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ── 23. Hover card (related articles) ───────────────────────── */
.hover-card {
  border-radius: 6px !important;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.hover-card:hover {
  background: var(--primary-5) !important;
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

/* ── 24. Back to top button ──────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,58,108,.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  z-index: 500;
  text-decoration: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  box-shadow: 0 6px 20px rgba(26,58,108,.4);
  transform: translateY(-2px);
}

/* ── 25. Read progress bar ─────────────────────────────────────── */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── 26. Focus states — accessibility ────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
}

/* ── 27. Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── 28. Selection ────────────────────────────────────────────── */
::selection { background: rgba(26,58,108,.15); color: var(--primary); }

/* ── 29. Image hover subtlety in article content ─────────────── */
.article-content img {
  transition: box-shadow .2s;
}
.article-content img:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
}

/* ── 30. Input search in nav — refined ─────────────────────────── */
.nav-search-wrap .form-control {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  transition: background .15s, border-color .15s;
}
.nav-search-wrap .form-control::placeholder { color: rgba(255,255,255,.55); }
.nav-search-wrap .form-control:focus {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  box-shadow: none;
  color: white;
}
.nav-search-wrap .btn-warning {
  border-radius: 0 4px 4px 0;
  border: none;
  font-size: 13px;
}


/* ══════════════════════════════════════════════════════════════
   MULTI-DEVICE RESPONSIVE FIXES v2.3
   ══════════════════════════════════════════════════════════════ */

/* ── F1: Mobile sidebar order — right sidebar comes after main ── */
@media (max-width: 767.98px) {
  /* Reorder: main content first, right sidebar below */
  .col-lg-7.col-md-8 { order: 1; }
  .col-lg-3.col-md-4 { order: 2; }
  .col-lg-2 { display: none !important; }

  /* Compact sidebar widgets on mobile */
  .widget { margin-bottom: 10px; }
  .widget-body { padding: 8px 12px; }
  .notice-item { padding: 5px 0; }
  .pop-title { font-size: 12px; }
  .pop-num { width: 20px; height: 20px; font-size: 10px; }

  /* Share buttons — smaller gap, wraps cleanly */
  .share-buttons { gap: 6px; }
  .share-btn { font-size: 11.5px; padding: 5px 9px; gap: 3px; }

  /* Footer improvements */
  .footer-top { padding: 20px 0; }
  .footer-heading { font-size: 11px; }
  .footer-links a { font-size: 12px; }

  /* Article cards on small screens */
  .article-card-thumb { width: 58px; height: 44px; }
  .article-card-title { font-size: 13px; }
  .article-number { width: 20px; height: 20px; min-width: 20px; font-size: 9px; }

  /* Pagination */
  .pagination .page-link { padding: 5px 9px; font-size: 12px; }

  /* Latest update */
  .latest-title { font-size: 14.5px; }
  .latest-update-card { padding: 10px 12px; }

  /* Article single */
  .article-single { padding: 12px; border-radius: 6px; }
  .article-title { font-size: 17px; }
  .article-content { font-size: 14.5px; line-height: 1.75; }
  .article-featured-img { max-height: 220px; }

  /* Comment form */
  .comment-item { padding: 9px 12px; }
}

/* ── F2: Reduced motion — respect user preference ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; }
  .ticker-wrap { overflow-x: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── F3: Article content table overflow on mobile ─────────────── */
.article-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  max-width: 100%;
}
.article-content table th,
.article-content table td {
  white-space: normal;
  min-width: 80px;
}

/* ── F4: Admin table overflow ─────────────────────────────────── */
.data-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table .table {
  min-width: 600px; /* ensures table doesn't collapse too small */
}

/* ── F5: Tablet breakpoint (768px–991px) tweaks ──────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
  .article-card-thumb { width: 65px; height: 48px; }
  .article-single { padding: 18px; }
  .widget-body { padding: 10px 12px; }
}

/* ── F6: 320px (iPhone SE) — minimum supported width ─────────── */
@media (max-width: 359px) {
  .pw { padding-left: 8px; padding-right: 8px; }
  .share-btn { font-size: 11px; padding: 4px 7px; }
  .breaking-label { font-size: 9px; padding: 2px 7px; }
  .logo-text { font-size: 18px; }
  .article-card { padding: 8px 10px; gap: 7px; }
}

/* ── F7: Touch target — all interactive min 44×44px ──────────── */
@media (hover: none) and (pointer: coarse) {
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .dropdown-item { min-height: 44px; display: flex; align-items: center; }
  .category-item { min-height: 44px; }
  .notice-link { display: block; padding: 6px 0; }
  .download-link { display: block; padding: 4px 0; }
  .share-btn { min-height: 40px; }
  .page-link { min-height: 40px; display: flex; align-items: center; justify-content: center; }
  /* Larger tap zone for article card */
  .article-card { padding: 13px 14px; }
  /* Hamburger always 44×44 */
  .navbar-toggler { min-width: 44px; min-height: 44px; }
  /* Attachment buttons */
  .att-download-btn { min-height: 44px; align-items: center; }
}

/* ── F8: Google Fonts — display=swap inline ───────────────────── */
/* Note: Applied via updated link URL in header.php */

/* ── F9: Admin responsive — content padding on mobile ────────── */
@media (max-width: 767.98px) {
  .sb { z-index: 1050 !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 12px; }
  .page-header { padding: 10px 14px; border-radius: 8px; }
  .page-header-title { font-size: 15px; }
  .form-card { padding: 14px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
}

/* ── F10: Form inputs on mobile — prevent iOS zoom ────────────── */
/* iOS zooms when font-size < 16px on focus */
@media (max-width: 767.98px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important; /* prevents iOS auto-zoom */
  }
}

/* ── F11: Image loading on slow networks ──────────────────────── */
img { content-visibility: auto; }
.article-featured-img { background: #f0f4f8; } /* placeholder colour while loading */


/* ══════════════════════════════════════════════════════════════
   HEADER LAYOUT FIX — logo alignment, mobile/desktop
   ══════════════════════════════════════════════════════════════ */

/* Site header — explicit height so logo has proper context */
.site-header {
  min-height: 64px;
  padding: 0;                  /* remove padding — use min-height + flexbox instead */
  display: flex;
  align-items: center;
}
.site-header .pw {
  height: 64px;                /* flex container fills full header height */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo image — constrained size, aspect-ratio preserved */
.site-logo-img {
  max-height: 48px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;     /* override attribute height, let CSS max-height control */
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Logo in navbar (mobile only) — smaller than header logo */
.site-logo-nav {
  max-height: 32px !important;
  max-width: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* keep white version on dark nav */
}

/* Logo wrapper link — prevent stretching */
.site-header > .pw > a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 60%;              /* stop logo from pushing ad area off-screen */
  line-height: 1;
}
.site-header > .pw > a > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ad area in header — aligned center vertically */
.site-header > .pw > div.text-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Header ad placeholder — explicit height for layout stability */
.header-ad-placeholder {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navbar brand — mobile ONLY; desktop hidden via d-lg-none (do NOT add display !important here) */
@media (max-width: 991.98px) {
  .main-nav .navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    max-width: calc(100% - 56px); /* leave space for hamburger */
  }
}
.main-nav {
  min-height: 44px;
}
.main-nav .pw {
  min-height: 44px;
}

/* Desktop: slightly taller header */
@media (min-width: 768px) {
  .site-header,
  .site-header .pw {
    min-height: 72px;
    height: 72px;
  }
  .site-logo-img {
    max-height: 54px !important;
  }
}

/* Mobile: compact, vertically centered */
@media (max-width: 767.98px) {
  .site-header,
  .site-header .pw {
    min-height: 58px;
    height: 58px;
  }
  .site-logo-img {
    max-height: 42px !important;
  }
  /* Hide text logo/tagline below logo image on mobile if needed */
  .logo-text    { font-size: 18px; }
  .logo-tagline { font-size: 10px; }
}

/* Prevent navbar-brand SVG from being too large */
.navbar-brand svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   LAYOUT FIXES v2.6 — header, navbar, sidebar, content, footer
   ══════════════════════════════════════════════════════════════ */

/* ── FIX 2: Header — clean fixed height, logo + ad perfectly centered ── */
.site-header {
  padding: 0 !important;
  height: 72px;
  min-height: 72px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: relative;
  z-index: 1020;
}
.site-header > .pw {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 72px;
  width: 100%;
  gap: 16px;
}
/* Logo link — left side */
.site-header > .pw > a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  max-width: 55%;
  height: 100%;
}
.site-header > .pw > a > div {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}
/* Logo image — strict sizing, CSS controls only */
.site-logo-img {
  max-height: 52px !important;
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0;
}
/* Ad area — right side of header, vertically centered */
.site-header > .pw > div.text-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 100%;
  min-width: 0;
}
.header-ad-placeholder {
  height: 60px;
  max-width: 728px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4ff;
  border: 1px dashed #a0aec0;
  border-radius: 4px;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Mobile header — smaller */
@media (max-width: 767.98px) {
  .site-header,
  .site-header > .pw { height: 58px; min-height: 58px; }
  .site-logo-img { max-height: 40px !important; }
  .logo-text    { font-size: 18px !important; }
  .logo-tagline { font-size: 9px !important; }
}

/* ── FIX 3: Navbar — height, search bar vertical align ─────────── */
.main-nav {
  background: var(--primary) !important;
  padding: 0 !important;
  min-height: 46px;
}
.main-nav > .pw,
.main-nav .pw.w-100 {
  min-height: 46px;
  height: 46px;
  display: flex !important;
  align-items: center !important;
}
/* Nav items vertically centered */
.main-nav .navbar-nav {
  height: 46px;
}
.main-nav .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 14px !important;
  font-size: 13.5px;
  white-space: nowrap;
}
/* Search bar — vertically centered in nav */
.nav-search-wrap {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-search-wrap .input-group {
  width: 210px !important;
}
.nav-search-wrap .form-control {
  height: 32px;
  font-size: 13px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 4px 0 0 4px;
}
.nav-search-wrap .form-control::placeholder { color: rgba(255,255,255,.5); }
.nav-search-wrap .form-control:focus {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  box-shadow: none;
  color: #fff;
  outline: none;
}
.nav-search-wrap .btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  font-size: 13px;
}
/* Navbar logo — mobile only, correct sizing */
.site-logo-nav {
  max-height: 30px !important;
  max-width: 110px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: brightness(0) invert(1);
}
/* Hamburger button — right aligned, touch-friendly */
.main-nav .navbar-toggler {
  border: none;
  box-shadow: none;
  outline: none;
  padding: 6px 8px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-nav .navbar-toggler-icon { filter: brightness(10); }

/* Mobile navbar collapse — full-width, clean stack */
@media (max-width: 991.98px) {
  .main-nav > .pw,
  .main-nav .pw.w-100 { height: 48px; min-height: 48px; }
  .nav-search-wrap {
    height: auto;
    padding: 6px 14px 10px;
    width: 100%;
    margin-left: 0;
  }
  .nav-search-wrap .input-group { width: 100% !important; }
  .main-nav .navbar-nav { height: auto; }
  .main-nav .navbar-nav .nav-link { height: 44px; padding: 0 18px !important; font-size: 14px; }
}

/* ── FIX 4: Main content layout — consistent gutters ─────────── */
.main-content { padding: 16px 0 24px; }
.row.g-3 { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }

/* Left sidebar */
.left-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  background: linear-gradient(135deg, var(--primary), #1e4d8c);
  color: white;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── FIX 5: Category items — no layout-shift hover ─────────────── */
.category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
  font-weight: 500;
  transition: background .13s, color .13s, border-left-color .13s;
  border-left: 3px solid transparent;
}
.category-item:last-of-type { border-bottom: none; }
.category-item:hover, .category-item.active {
  background: linear-gradient(90deg, rgba(26,58,108,.05), transparent);
  color: var(--primary);
  border-left-color: var(--accent);
  font-weight: 600;
}
/* Remove the old padding-left jump */
.category-item:hover { padding-left: 12px !important; }
.category-item i { color: var(--primary); width: 14px; font-size: 10px; flex-shrink: 0; opacity: .6; }
.category-item:hover i, .category-item.active i { opacity: 1; }
.archive-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12.5px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  margin: 8px 0;
}

/* ── FIX 6: Content area ────────────────────────────────────────── */
.content-area {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 200px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 2px solid var(--primary);
  background: linear-gradient(90deg, rgba(26,58,108,.03), transparent 60%);
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

/* ── FIX 7: Empty content state — proper visual design ─────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: var(--primary);
  opacity: .5;
}
.empty-state .empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-state .empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}

/* ── FIX 8: Right sidebar widgets ───────────────────────────────── */
.widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.widget:last-child { margin-bottom: 0; }
.widget-header {
  background: linear-gradient(135deg, var(--primary), #1e4d8c);
  color: white;
  padding: 9px 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.widget-body { padding: 10px 14px; }
/* Ad placeholder in sidebar */
.ad-placeholder-vertical {
  background: #f8f9fb;
  border: 1px dashed #c8d0db;
  border-radius: 6px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  gap: 6px;
  padding: 16px;
}
.ad-placeholder-vertical::before {
  content: "AD";
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}
.ad-placeholder-sm {
  background: #f8f9fb;
  border: 1px dashed #c8d0db;
  border-radius: 4px;
  color: #b0bec5;
  font-size: 11px;
  padding: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── FIX 9: Footer spacing and layout ───────────────────────────── */
.site-footer { background: var(--primary-dark); margin-top: 32px; }
.footer-top { background: #112244; padding: 36px 0 28px; }
.footer-heading {
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 7px;
  margin-bottom: 14px;
  display: block; /* block not inline-block — full width underline */
}
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: 7px; list-style: none; }
.footer-links a {
  color: rgba(255,255,255,.58);
  text-decoration: none;
  font-size: 12.5px;
  transition: color .13s, padding-left .13s;
  display: inline-block;
}
.footer-links a:hover { color: var(--accent); padding-left: 3px; }
.footer-bottom {
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 0;
  text-align: center;
}

/* ── FIX 10: Responsive — tablet/mobile layout ─────────────────── */
@media (min-width: 992px) {
  /* 3-col desktop: left sidebar + content + right sidebar */
  .col-lg-2 { /* left sidebar — visible on desktop */ }
  .sidebar { position: sticky; top: 14px; }
}
@media (max-width: 991.98px) {
  /* Tablet + mobile: hide left sidebar, content = col-md-8, sidebar = col-md-4 */
  .col-lg-2.d-none.d-lg-block { display: none !important; }
}
@media (max-width: 767.98px) {
  /* Mobile: single column */
  .main-content { padding: 12px 0 20px; }
  .col-lg-7.col-md-8, .col-lg-3.col-md-4 { width: 100% !important; }
  /* Content first, sidebar second */
  .col-lg-7.col-md-8 { order: 1; }
  .col-lg-3.col-md-4 { order: 2; margin-top: 4px; }
  /* Footer */
  .footer-top { padding: 24px 0 16px; }
  .footer-heading { margin-top: 4px; }
  .col-lg-3.col-md-6:first-child { margin-bottom: 4px; }
  /* Compact article cards */
  .article-card { padding: 10px 12px; gap: 9px; }
  .article-card-thumb { width: 60px; height: 46px; }
  .article-card-title { font-size: 13px; }
  /* Single article */
  .article-single { padding: 14px; }
  .article-title { font-size: 18px; }
}
@media (max-width: 359px) {
  .pw { padding-left: 8px; padding-right: 8px; }
  .site-logo-img { max-height: 36px !important; }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE UI FIXES v2.7
   - Icons now load synchronously (CSS rebuilt, woff2 preloaded)
   - Duplicate header eliminated on mobile (site-header d-none d-lg-block)  
   - Navbar styled for mobile-first single header
   - All breakpoints refined
   ══════════════════════════════════════════════════════════════ */

/* ── Mobile navbar — single clean header bar ─────────────────── */
@media (max-width: 991.98px) {
  /* Navbar becomes the primary header on mobile */
  .main-nav {
    min-height: 56px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }
  .main-nav > .pw,
  .main-nav .pw.w-100 {
    height: 56px !important;
    min-height: 56px !important;
  }
  /* navbar-brand — bigger on mobile since it's the ONLY header */
  .main-nav .navbar-brand {
    padding: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 60px);
  }
  .site-logo-nav {
    max-height: 38px !important;
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  /* When logo is the SVG fallback on mobile */
  .main-nav .navbar-brand svg {
    width: 36px !important;
    height: 36px !important;
  }
  .main-nav .navbar-brand span {
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -.3px;
  }
  /* Hamburger — right side, touch-friendly */
  .main-nav .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 6px;
    flex-shrink: 0;
  }
  .main-nav .navbar-toggler-icon {
    width: 20px;
    height: 20px;
    filter: brightness(10);
  }
}

/* ── Top bar — cleaner on mobile ─────────────────────────────── */
.top-bar { font-size: 11.5px; padding: 5px 0; }
.top-bar .lang-toggle {
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  transition: background .13s, color .13s;
}
.top-bar .lang-toggle:hover {
  background: rgba(26,58,108,.08);
  color: var(--primary) !important;
}

/* ── Breaking news bar ────────────────────────────────────────── */
.breaking-news-bar {
  background: linear-gradient(135deg, #b91c1c, var(--danger));
  padding: 7px 0;
}
.breaking-label {
  background: rgba(0,0,0,.22);
  color: white;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 1.2px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ticker-item {
  font-size: 12.5px;
  font-weight: 500;
  padding-right: 48px;
}
/* Mobile breaking news — slightly compact */
@media (max-width: 575.98px) {
  .breaking-label { font-size: 9.5px; padding: 2px 8px; }
  .ticker-item { font-size: 12px; }
}

/* ── Section headers ──────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 2px solid var(--primary);
  background: linear-gradient(90deg, rgba(26,58,108,.04), transparent 70%);
  border-left: 4px solid var(--accent);
}
.section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;
}

/* ── Latest update card ─────────────────────────────────────────── */
.latest-update-card {
  padding: 14px 15px;
  background: linear-gradient(135deg, #fffcf0 0%, #fff9e6 100%);
  border-bottom: 1px solid rgba(232,160,32,.2);
  border-left: 4px solid var(--accent);
}
.latest-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--accent), #e8820c);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .6px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(232,160,32,.3);
}
.latest-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: block;
  line-height: 1.4;
  letter-spacing: -.1px;
}
.latest-title:hover { color: var(--accent); }

/* ── Article cards — modern, clean ─────────────────────────────── */
.article-card {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background .13s;
  position: relative;
}
.article-card:hover { background: linear-gradient(90deg, rgba(26,58,108,.04), transparent); }
.article-card:last-child { border-bottom: none; }
.article-number {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(26,58,108,.2);
}
.article-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e2a3a;
  text-decoration: none;
  line-height: 1.45;
  word-break: break-word;
  display: block;
}
.article-card-title:hover { color: var(--primary); }

/* ── NEW badge ─────────────────────────────────────────────────── */
.new-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .5px;
  vertical-align: middle;
  margin-left: 5px;
  box-shadow: 0 1px 4px rgba(22,163,74,.25);
  line-height: 1.4;
}

/* ── Urgent badge ───────────────────────────────────────────────── */
.urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--danger);
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(220,53,69,.08);
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
}

/* ── Article meta ─────────────────────────────────────────────── */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 6px;
  align-items: center;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.article-meta i {
  font-size: 10.5px;
  opacity: .7;
}

/* ── Doc icon (right side of article card) ───────────────────── */
.doc-icon {
  color: var(--danger);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  text-decoration: none;
  transition: color .13s, transform .13s;
  width: 28px;
  text-align: center;
}
.doc-icon:hover { color: var(--primary); transform: scale(1.1); }

/* ── Content area ─────────────────────────────────────────────── */
.content-area {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07), 0 0 0 1px rgba(26,58,108,.04);
}

/* ── Right sidebar widgets ────────────────────────────────────── */
.widget {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07), 0 0 0 1px rgba(26,58,108,.04);
  margin-bottom: 14px;
}
.widget:last-child { margin-bottom: 0; }
.widget-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d8c 100%);
  color: white;
  padding: 9px 13px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
}
.notice-item:last-child { border-bottom: none; }
.notice-link {
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  font-weight: 500;
}
.notice-link:hover { color: var(--primary); }
.notice-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.pop-title {
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
}

/* ── Left sidebar categories ─────────────────────────────────── */
.left-sidebar {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.sidebar-title {
  background: linear-gradient(135deg, var(--primary), #1e4d8c);
  color: white;
  padding: 10px 13px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}
.category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0f2f5;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .13s, color .13s;
  border-left: 3px solid transparent;
}
.category-item:last-of-type { border-bottom: none; }
.category-item:hover, .category-item.active {
  background: rgba(26,58,108,.05);
  color: var(--primary);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination .page-link {
  color: var(--primary);
  border-color: #e2e8f0;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px !important;
  margin: 0 2px;
  transition: all .13s;
}
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,58,108,.2);
}
.pagination .page-link:hover {
  background: rgba(26,58,108,.07);
  color: var(--primary);
}

/* ── Mobile-specific overrides ────────────────────────────────── */
@media (max-width: 767.98px) {
  /* Stack layout — content first */
  .col-lg-7.col-md-8,
  .col-lg-3.col-md-4 { width: 100% !important; }
  .col-lg-7.col-md-8 { order: 1; }
  .col-lg-3.col-md-4 { order: 2; }

  /* Compact cards */
  .article-card { padding: 11px 12px; gap: 9px; }
  .article-card-thumb { width: 60px; height: 46px; }
  .article-card-title { font-size: 13.5px; }
  .article-number { width: 24px; height: 24px; min-width: 24px; font-size: 10.5px; }

  /* Content area */
  .section-header { padding: 10px 12px; }
  .latest-update-card { padding: 12px; }
  .latest-title { font-size: 14.5px; }

  /* Font sizes */
  .article-meta { font-size: 11px; gap: 6px; }
  .widget-header { font-size: 10px; }

  /* Sidebar on mobile — horizontal scroll for notices */
  .widget-body { padding: 8px 12px; }
  
  /* Footer compact */
  .footer-top { padding: 20px 0 16px; }
  .footer-heading { margin-bottom: 10px; }

  /* Article single */
  .article-single { padding: 13px; border-radius: 8px; }
  .article-title { font-size: 17px; line-height: 1.35; }
  .article-content { font-size: 14.5px; line-height: 1.8; }
  .article-featured-img { max-height: 200px; border-radius: 6px; }

  /* Share buttons */
  .share-buttons { gap: 6px; }
  .share-btn { font-size: 12px; padding: 5px 10px; border-radius: 16px; }
}

@media (max-width: 359px) {
  .pw { padding-left: 8px; padding-right: 8px; }
  .article-card { padding: 9px 10px; }
  .article-card-title { font-size: 13px; }
  .breaking-label { display: none; } /* saves space on tiny screens */
}

/* ── Input auto-zoom prevention on iOS ───────────────────────── */
@media (max-width: 767.98px) {
  input, textarea, select { font-size: 16px !important; }
}

/* ── Smooth icon rendering ────────────────────────────────────── */
.bi::before { -webkit-font-smoothing: antialiased; }


/* ══════════════════════════════════════════════════════════════
   DEFINITIVE OVERRIDES v2.8
   Final cascade layer — these rules win over all previous ones.
   ══════════════════════════════════════════════════════════════ */

/* ── FIX 1: Hamburger HIDDEN on desktop — hard override ──────── */
/* Bootstrap uses .navbar-expand-lg .navbar-toggler { display:none }
   Our .main-nav .navbar-toggler { display:flex } has higher specificity
   and was overriding Bootstrap on desktop. Fix: add explicit desktop rule. */
@media (min-width: 992px) {
  .navbar-toggler,
  .main-nav .navbar-toggler {
    display: none !important;
  }
}
/* On mobile/tablet: toggler must show */
@media (max-width: 991.98px) {
  .main-nav .navbar-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid rgba(255,255,255,.3) !important;
    border-radius: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
}

/* ── FIX 2: Header — exact 72px, perfectly balanced ─────────── */
/* Single authoritative block overrides all previous conflicting rules */
.site-header {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: #fff !important;
  border-bottom: 3px solid var(--primary) !important;
  overflow: hidden; /* clips anything taller than 72px */
}
.site-header > .pw {
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  width: 100%;
}
/* Logo side — flex-shrink so it never expands */
.site-header > .pw > a {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  max-width: 250px;
  height: 100%;
}
.site-header > .pw > a > div {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}
.site-logo-img {
  max-height: 50px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0;
}
/* Ad side — fills remaining space, vertically centered */
.site-header > .pw > div.text-end {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

/* ── FIX 3: 728×90 ad placeholder — exact proportions ───────── */
/* The placeholder should look like an actual 728×90 banner:
   - Height exactly 66px (fits in 72px header with 3px margin each side)
   - Full available width
   - Looks like a real ad slot, not an error state */
.header-ad-placeholder {
  height: 66px !important;
  max-width: 728px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f5f7ff !important;
  border: 1px dashed #b8c5e8 !important;
  border-radius: 3px !important;
  color: #94a3b8 !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
  gap: 8px;
  flex-shrink: 1;
}
.header-ad-placeholder::before {
  content: "728";
  display: inline-block;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── FIX 4: Logo text/tagline — tighter layout ──────────────── */
.logo-text {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  line-height: 1.05 !important;
  letter-spacing: -.3px;
}
.logo-tagline {
  font-size: 10px !important;
  color: #64748b !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  margin-top: 2px;
}

/* ── FIX 5: Navbar on desktop — exact 44px, clean ───────────── */
@media (min-width: 992px) {
  .main-nav,
  .main-nav > .pw,
  .main-nav .pw.w-100 {
    height: 44px !important;
    min-height: 44px !important;
  }
  .main-nav .navbar-nav .nav-link {
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 13px !important;
    font-size: 13.5px !important;
  }
  .nav-search-wrap {
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
}
