/*
Theme Name: PrepResults News
Theme URI: https://prepresults.in
Author: PrepResults
Author URI: https://prepresults.in
Description: A fast, SEO-optimised news theme for government exam updates — Notification, Admit Card, Result, Exam Date, Answer Key. Inspired by Testbook News layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prepresults-news
Tags: news, government-exams, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  --blue:     #1a56db;
  --blue-dk:  #1340b0;
  --blue-lt:  #ebf2ff;
  --green:    #057a55;
  --gbg:      #def7ec;
  --red:      #c81e1e;
  --amber:    #92400e;
  --abg:      #fef3c7;

  --g50:  #f9fafb;
  --g100: #f3f4f6;
  --g200: #e5e7eb;
  --g300: #d1d5db;
  --g400: #9ca3af;
  --g500: #6b7280;
  --g600: #4b5563;
  --g700: #374151;
  --g800: #1f2937;
  --g900: #111827;

  --r:  8px;
  --rl: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;

  --header-h: 64px;
  --announce-h: 36px;
  --sidebar-w: 320px;
  --max-w: 1200px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--g800);
  background: var(--g50);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =====================================================
   LAYOUT HELPERS
   ===================================================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--g900);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { color: var(--blue); font-size: 1rem; }

/* =====================================================
   ANNOUNCEMENT BAR
   ===================================================== */
.announcement-bar {
  background: var(--blue);
  color: #fff;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.announcement-bar .label {
  background: var(--blue-dk);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  gap: 6px;
}
.announcement-bar .ticker-wrap {
  overflow: hidden;
  flex: 1;
  position: relative;
}
.announcement-bar .ticker {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  font-size: 0.82rem;
}
.announcement-bar .ticker a { color: #fff; opacity: .9; }
.announcement-bar .ticker a:hover { opacity: 1; text-decoration: underline; }
.announcement-bar .ticker-item::after { content: '•'; margin-left: 48px; opacity: .5; }
.announcement-bar .ticker-item:last-child::after { display: none; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--g200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 16px;
}
.site-logo img { height: 38px; width: auto; }
.site-logo a { display: flex; align-items: center; gap: 8px; }
.site-logo .logo-text { font-size: 1.15rem; font-weight: 800; color: var(--g900); }
.site-logo .logo-text span { color: var(--blue); }

/* Search bar */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 40px 9px 14px;
  border: 1.5px solid var(--g200);
  border-radius: 24px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color .2s;
  background: var(--g50);
}
.header-search input:focus { border-color: var(--blue); background: #fff; }
.header-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--g500);
  font-size: 0.9rem;
  padding: 4px;
}
.header-search button:hover { color: var(--blue); }

/* Header nav */
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav .btn-login {
  padding: 7px 16px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .2s;
}
.header-nav .btn-login:hover { background: var(--blue-lt); }
.header-nav .btn-started {
  padding: 7px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s;
}
.header-nav .btn-started:hover { background: var(--blue-dk); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g700);
  border-radius: 2px;
  transition: all .3s;
}

/* =====================================================
   CATEGORY NAV
   ===================================================== */
.cat-nav {
  background: #fff;
  border-bottom: 1px solid var(--g200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav ul {
  display: flex;
  align-items: stretch;
  height: 44px;
  gap: 0;
  width: max-content;
  min-width: 100%;
}
.cat-nav li { position: relative; }
.cat-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--g700);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.cat-nav > ul > li > a:hover,
.cat-nav > ul > li.current-menu-item > a {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.cat-nav li:has(.sub-menu):hover .sub-menu { display: block; }
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--r);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 500;
  padding: 6px 0;
}
.sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.83rem;
  color: var(--g700);
  transition: all .15s;
}
.sub-menu li a:hover { background: var(--blue-lt); color: var(--blue); }

/* =====================================================
   MOBILE NAV DRAWER
   ===================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
}
.mobile-nav.open { display: block; }
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.mobile-nav-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #fff;
  overflow-y: auto;
  padding: 16px 0;
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--g200);
  margin-bottom: 8px;
}
.mobile-nav-close .site-name { font-weight: 800; font-size: 1rem; color: var(--g900); }
.mobile-nav-close button { font-size: 1.4rem; color: var(--g600); }
.mobile-nav-panel a {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g700);
  border-left: 3px solid transparent;
  transition: all .15s;
}
.mobile-nav-panel a:hover { background: var(--blue-lt); color: var(--blue); border-left-color: var(--blue); }

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.site-main { padding: 24px 0 40px; }
.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 28px;
  align-items: start;
}

/* =====================================================
   TRENDING SECTION (hero cards)
   ===================================================== */
.trending-section { margin-bottom: 32px; }
.trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trending-card {
  background: #fff;
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--g200);
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.trending-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.trending-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.trending-card .card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.trending-card .card-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.trending-card .cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--blue-lt);
  color: var(--blue);
}
.trending-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--g900);
  flex: 1;
}
.trending-card h3 a:hover { color: var(--blue); }
.trending-card .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--g500);
}
.trending-card .card-meta .author { color: var(--blue); font-weight: 600; }

/* =====================================================
   LIVE TICKER (govt jobs)
   ===================================================== */
.live-ticker-section {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 18px;
  margin-bottom: 28px;
}
.live-ticker-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.live-ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.live-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
.live-ticker-list { flex: 1; max-height: 200px; overflow-y: auto; }
.live-ticker-list a {
  display: block;
  padding: 6px 0;
  font-size: 0.84rem;
  color: var(--g700);
  border-bottom: 1px dashed var(--g200);
  transition: color .15s;
}
.live-ticker-list a:hover { color: var(--blue); }
.live-ticker-list a:last-child { border-bottom: none; }

/* =====================================================
   POST CARDS — Latest/Grid
   ===================================================== */
.posts-section { margin-bottom: 32px; }
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.post-card {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--g200);
}
.post-card:last-child { border-bottom: none; }
.post-card .thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--r);
  object-fit: cover;
  flex-shrink: 0;
}
.post-card .thumb-placeholder {
  width: 120px;
  height: 80px;
  border-radius: var(--r);
  background: var(--g100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g300);
  font-size: 1.5rem;
}
.post-card .card-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.post-card .card-cats { display: flex; gap: 5px; flex-wrap: wrap; }
.post-card .cat-badge-sm {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 20px;
  background: var(--blue-lt);
  color: var(--blue);
}
.post-card h3 { font-size: 0.9rem; font-weight: 700; line-height: 1.4; color: var(--g900); }
.post-card h3 a:hover { color: var(--blue); }
.post-card .card-meta { font-size: 0.73rem; color: var(--g500); display: flex; gap: 8px; }
.post-card .card-meta .author { color: var(--blue); font-weight: 600; }

/* =====================================================
   FEATURED POSTS (large image cards, notifications)
   ===================================================== */
.featured-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.featured-post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--g200);
}
.featured-post-card:last-child { border-bottom: none; }
.featured-post-card img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--r);
}
.featured-post-card .info { display: flex; flex-direction: column; gap: 8px; }
.featured-post-card .cat-badge { 
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 20px; background: var(--blue-lt); color: var(--blue);
  display: inline-block; width: fit-content;
}
.featured-post-card h2 { font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--g900); }
.featured-post-card h2 a:hover { color: var(--blue); }
.featured-post-card .meta { font-size: 0.75rem; color: var(--g500); }
.featured-post-card p { font-size: 0.84rem; color: var(--g600); line-height: 1.5; }

/* =====================================================
   CATEGORY ICON GRID
   ===================================================== */
.cat-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}
.cat-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  text-align: center;
  transition: all .2s;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--g700);
}
.cat-icon-card:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,86,219,.1); }
.cat-icon-card img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.cat-icon-card .cat-emoji { font-size: 1.8rem; line-height: 1; }

/* =====================================================
   TRENDING NUMBERED LIST
   ===================================================== */
.trending-numbered {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.trending-item {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--g200);
  align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--g200);
  line-height: 1;
  min-width: 28px;
  flex-shrink: 0;
}
.trending-item .info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.trending-item .cat-badge-sm {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  padding: 1px 7px; border-radius: 20px; background: var(--blue-lt); color: var(--blue);
  display: inline-block; width: fit-content;
}
.trending-item h4 { font-size: 0.87rem; font-weight: 700; line-height: 1.4; color: var(--g900); }
.trending-item h4 a:hover { color: var(--blue); }
.trending-item .meta { font-size: 0.72rem; color: var(--g500); }
.trending-item .thumb {
  width: 72px; height: 50px;
  border-radius: 6px; object-fit: cover; flex-shrink: 0;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: #fff;
  border: 1.5px solid var(--g200);
  border-radius: var(--rl);
  padding: 16px;
}
.sidebar-card .section-title { font-size: 0.95rem; }

/* Sidebar post list */
.sidebar-posts { display: flex; flex-direction: column; gap: 0; }
.sidebar-post {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--g100);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post img {
  width: 70px; height: 48px;
  border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.sidebar-post h4 { font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: var(--g800); }
.sidebar-post h4 a:hover { color: var(--blue); }
.sidebar-post .meta { font-size: 0.7rem; color: var(--g500); margin-top: 3px; }

/* Category links widget */
.cat-links-list { display: flex; flex-direction: column; gap: 0; }
.cat-links-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--g100);
  font-size: 0.84rem;
  color: var(--g700);
  transition: color .15s;
}
.cat-links-list li:last-child a { border-bottom: none; }
.cat-links-list li a:hover { color: var(--blue); }
.cat-links-list .count {
  background: var(--g100);
  color: var(--g600);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tags-cloud a {
  font-size: 0.77rem;
  padding: 4px 10px;
  background: var(--g100);
  border-radius: 20px;
  color: var(--g600);
  font-weight: 600;
  transition: all .15s;
}
.tags-cloud a:hover { background: var(--blue-lt); color: var(--blue); }

/* Community card */
.community-card { text-align: center; }
.community-card .title { font-size: 0.9rem; font-weight: 700; color: var(--g900); margin-bottom: 12px; }
.community-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-wa, .btn-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  transition: filter .2s;
}
.btn-wa { background: #25d366; }
.btn-tg { background: #229ed9; }
.btn-wa:hover, .btn-tg:hover { filter: brightness(.92); color: #fff; }

/* =====================================================
   CATEGORY SECTIONS (full-width grid sections)
   ===================================================== */
.cat-section { margin-bottom: 36px; }
.cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cat-section-head .view-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all .15s;
}
.cat-section-head .view-all:hover { background: var(--blue); color: #fff; }
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.cat-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.cat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cat-card .card-body { padding: 12px; }
.cat-card .cat-badge { 
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 2px 7px; border-radius: 20px; background: var(--blue-lt); color: var(--blue);
  display: inline-block; margin-bottom: 6px;
}
.cat-card h3 { font-size: 0.86rem; font-weight: 700; line-height: 1.4; color: var(--g900); margin-bottom: 6px; }
.cat-card h3 a:hover { color: var(--blue); }
.cat-card .meta { font-size: 0.72rem; color: var(--g500); }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--g200);
  color: var(--g700);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .dots { border: none; width: auto; color: var(--g400); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #0b1421;
  color: #8a9bb8;
  padding: 48px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e2d42;
}
.footer-brand img { height: 120px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.6; margin-bottom: 16px; }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e2d42;
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: #8a9bb8;
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #556778;
}
.footer-bottom a { color: #6b7f94; }
.footer-bottom a:hover { color: #fff; }

/* =====================================================
   SINGLE POST / ARTICLE
   ===================================================== */
.article-header { margin-bottom: 24px; }
.article-header .article-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.article-header h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; color: var(--g900); margin-bottom: 14px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--g500);
  flex-wrap: wrap;
}
.article-meta .author-name { color: var(--blue); font-weight: 600; }
.article-featured-img { width: 100%; border-radius: var(--rl); margin-bottom: 24px; }
.article-content { font-size: 0.95rem; line-height: 1.8; color: var(--g700); }
.article-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--g900); margin: 28px 0 12px; border-bottom: 2px solid var(--blue-lt); padding-bottom: 8px; }
.article-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--g900); margin: 20px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 12px 0 16px 20px; }
.article-content li { margin-bottom: 6px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
.article-content th { background: var(--blue); color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; }
.article-content td { padding: 9px 12px; border: 1px solid var(--g200); }
.article-content tr:nth-child(even) td { background: var(--g50); }
.article-content .notice-box {
  background: var(--blue-lt);
  border-left: 4px solid var(--blue);
  padding: 14px 16px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 20px 0;
  font-size: 0.9rem;
}
.article-content .important-box {
  background: var(--abg);
  border-left: 4px solid #d97706;
  padding: 14px 16px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 20px 0;
  font-size: 0.9rem;
}
.article-content a { color: var(--blue); text-decoration: underline; }

/* =====================================================
   CATEGORY PAGE
   ===================================================== */
.cat-hero {
  background: var(--blue);
  color: #fff;
  padding: 28px 0 24px;
  margin-bottom: 28px;
}
.cat-hero h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.cat-hero p { font-size: 0.88rem; opacity: .85; }
.cat-hero .breadcrumb { font-size: 0.78rem; opacity: .7; margin-bottom: 8px; }
.cat-hero .breadcrumb a { color: #fff; opacity: .8; }
.cat-hero .breadcrumb a:hover { opacity: 1; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-blue { color: var(--blue); }
.bg-blue-lt { background: var(--blue-lt); }
.badge-free { background: var(--gbg); color: var(--green); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.badge-pro { background: var(--abg); color: var(--amber); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.badge-live {
  background: #fde8e8; color: var(--red);
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-live 1.2s ease-in-out infinite;
}
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  :root { --sidebar-w: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { grid-row: 2; }
  .cat-cards-grid { grid-template-columns: 1fr 1fr; }
  .featured-post-card { grid-template-columns: 140px 1fr; }
  .featured-post-card img { width: 140px; height: 88px; }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .header-nav .btn-login, .header-nav .btn-started { display: none; }
  .hamburger { display: flex; }
  .cat-nav { display: none; }
  .trending-grid { grid-template-columns: 1fr; }
  .cat-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .article-header h1 { font-size: 1.3rem; }
  .featured-post-card { grid-template-columns: 1fr; }
  .featured-post-card img { width: 100%; height: auto; aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .post-card .thumb, .post-card .thumb-placeholder { width: 90px; height: 62px; }
  .trending-grid { gap: 12px; }
  .cat-icon-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-icon-card { padding: 10px 4px; font-size: 0.7rem; }
  .cat-icon-card .cat-emoji { font-size: 1.4rem; }
}
