/* ═══════════════════════════════════════════════════
   GovCon Intelligence — Dark Gold Theme
   Inspired by gov.mediamosiac.com
═══════════════════════════════════════════════════ */

:root {
  --gold:        #c9922a;
  --gold-light:  #e0a830;
  --gold-dark:   #a87820;
  --gold-bg:     rgba(201,146,42,.12);
  --gold-border: rgba(201,146,42,.28);

  --bg-base:     #0f0f0f;
  --bg-card:     #181818;
  --bg-elevated: #222222;
  --bg-input:    #141414;

  --border:      #2c2c2c;
  --border-mid:  #383838;

  --text-primary:   #f0ece4;
  --text-secondary: #a0998e;
  --text-muted:     #60594f;

  --green:       #4caf50;
  --green-bg:    rgba(76,175,80,.12);
  --green-border:rgba(76,175,80,.28);
  --red:         #ef5350;
  --red-bg:      rgba(239,83,80,.12);
  --red-border:  rgba(239,83,80,.28);

  --radius:  8px;
  --radius-lg: 12px;
  --shadow:    0 1px 4px rgba(0,0,0,.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Legacy aliases so existing PHP still works */
  --navy:       var(--bg-base);
  --navy-mid:   var(--bg-elevated);
  --blue:       var(--gold);
  --blue-light: var(--gold-light);
  --sky:        var(--gold-bg);
  --sky-mid:    var(--gold-border);
  --amber:      var(--gold);
  --amber-light:var(--gold-bg);
  --gray-900:   var(--text-primary);
  --gray-700:   var(--text-secondary);
  --gray-500:   var(--text-muted);
  --gray-300:   var(--border);
  --gray-100:   var(--bg-card);
  --white:      var(--bg-card);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-secondary); }
a  { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }
img { max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.site-header {
  background: #0a0a0a;
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 24px rgba(0,0,0,.7);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
  position: relative;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo:hover { text-decoration: none; }
.site-logo-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.site-logo-text { font-size: 1.05rem; font-weight: 800; color: #fff; white-space: nowrap; }
.site-logo-text span { color: var(--gold); }

/* Desktop Nav */
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav a {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  transition: all .15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--gold);
  background: var(--gold-bg);
  text-decoration: none;
}
.site-nav .nav-admin { color: var(--gold) !important; font-weight: 600; }

/* Header Search */
.header-search { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search form { display: flex; gap: 6px; }
.header-search input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 13px;
  width: 200px;
  outline: none;
  transition: all .2s;
  font-family: var(--font);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus { border-color: var(--gold); background: var(--bg-elevated); }
.header-search button {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  font-family: var(--font);
}
.header-search button:hover { background: var(--gold-light); }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--gold-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
  pointer-events: none;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--gold); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.mobile-nav.open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-inner {
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-inner a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  display: block;
  transition: all .15s;
}
.mobile-nav-inner a:hover, .mobile-nav-inner a.active {
  color: var(--gold);
  background: var(--gold-bg);
  text-decoration: none;
}
.mobile-nav-inner .nav-admin { color: var(--gold) !important; font-weight: 600; }
.mobile-search { margin-top: 12px; }
.mobile-search form { display: flex; gap: 8px; }
.mobile-search input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: var(--font);
}
.mobile-search input:focus { border-color: var(--gold); }
.mobile-search button {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

/* ══════════════════════════════════════════════════
   HERO / PAGE HEADER
══════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #141210 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p  { color: var(--text-secondary); font-size: 1.05rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.hero-stat:hover { border-color: var(--gold); transform: translateY(-2px); }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .6px; }

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-md); }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h3 { font-size: 1rem; margin: 0; color: var(--text-primary); }
.card-header .view-all { font-size: 12.5px; color: var(--gold); white-space: nowrap; }
.card-body { padding: 0; }

/* ── Item Lists ── */
.item-list { list-style: none; }
.item-list li { border-bottom: 1px solid var(--border); }
.item-list li:last-child { border-bottom: none; }

.item-row { display: block; padding: 14px 20px; transition: background .1s; }
.item-row:hover { background: var(--bg-elevated); text-decoration: none; }

.item-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.item-row:hover .item-row-title { color: var(--gold); }

.item-row-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-row-meta span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ══════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.badge-blue  { background: var(--gold-bg);  color: var(--gold);  border: 1px solid var(--gold-border); }
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.badge-amber { background: var(--gold-bg);  color: var(--gold);  border: 1px solid var(--gold-border); }
.badge-navy  { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-gray  { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }
.badge-red   { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-border); }

/* ══════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.form-control, .form-input, select.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-input);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus, .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,.15);
  background: var(--bg-card);
}
.form-control option, .form-input option { background: #1a1a1a; color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn-primary   { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-light); color: #fff; }

.btn-secondary { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }

.btn-outline   { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold-bg); }

.btn-navy      { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-navy:hover { background: var(--border); color: #fff; }

.btn-green     { background: #2e7d32; color: #fff; }
.btn-green:hover { background: #388e3c; color: #fff; }

.btn-red       { background: #c62828; color: #fff; }
.btn-red:hover { background: #b71c1c; color: #fff; }

.btn-sm  { padding: 6px 12px; font-size: 12.5px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; }

.btn-sm.btn-view   { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); border-radius: 4px; }
.btn-sm.btn-danger { background: var(--red-bg);  color: var(--red);  border: 1px solid var(--red-border);  border-radius: 4px; }

/* ══════════════════════════════════════════════════
   SUBSCRIBE
══════════════════════════════════════════════════ */
.subscribe-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #141210 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}
.subscribe-section h2 { color: #fff; margin-bottom: 8px; }
.subscribe-section p  { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }

.subscribe-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.subscribe-form .form-control { background: var(--bg-input); }
.subscribe-form .form-label   { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════ */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }
.filter-bar .form-control, .filter-bar .form-input { padding: 8px 12px; font-size: 13px; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; width: 100%; }

/* ══════════════════════════════════════════════════
   DETAIL PAGES
══════════════════════════════════════════════════ */
.detail-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.detail-content { max-width: 900px; }
.detail-title { font-size: 1.6rem; color: var(--text-primary); line-height: 1.3; margin-bottom: 14px; }

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}
.detail-meta-item label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.detail-meta-item span  { font-size: 14px; color: var(--text-primary); font-weight: 500; }

.detail-summary {
  background: #141210;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.detail-summary p { color: var(--text-secondary); line-height: 1.75; margin: 0; }

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .15s;
  text-decoration: none;
}
.page-btn:hover { background: var(--gold-bg); border-color: var(--gold); color: var(--gold); text-decoration: none; }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ══════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.alert-error   { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-border); }
.alert-info    { background: var(--gold-bg);   color: var(--gold);  border: 1px solid var(--gold-border); }

/* ══════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════ */
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header h2 { font-size: 1.35rem; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════
   AMOUNTS
══════════════════════════════════════════════════ */
.amount-large { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.amount-badge {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 56px 0 28px;
  margin-top: 60px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 34px; height: 34px;
  background: var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { color: var(--text-primary); font-size: 13px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .8px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 13.5px; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-col p { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12.5px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   ADMIN TABLE
══════════════════════════════════════════════════ */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg-elevated); }
.admin-table tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-8  { margin-top: 8px; }   .mb-8  { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }  .mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }  .mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.gap-8 { gap: 8px; }  .gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0; }

.spinner { display:inline-block;width:20px;height:20px;border:2px solid rgba(255,255,255,.2);border-top-color:var(--gold);border-radius:50%;animation:spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .header-search input { width: 160px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Hide desktop nav + search, show hamburger */
  .site-nav       { display: none !important; }
  .header-search  { display: none !important; }
  .mobile-menu-btn { display: flex !important; }

  /* Header layout on mobile */
  .site-header .container {
    height: 58px;
    gap: 0;
    justify-content: space-between;
    align-items: center;
  }
  .site-logo { flex: 1; }
  .site-logo-text { font-size: .9rem; }
  .site-logo-icon { width: 30px; height: 30px; font-size: 15px; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Hero */
  .page-hero { padding: 28px 0 24px; }
  .page-hero h1 { font-size: 1.5rem; }

  /* Section */
  .section { padding: 28px 0; }

  /* Cards */
  .card-header { flex-wrap: wrap; gap: 8px; }

  /* Filter */
  .filter-bar { flex-direction: column; padding: 12px 16px; }
  .filter-bar .form-group { min-width: auto; width: 100%; }
  .filter-form { flex-direction: column; }
  .filter-form .btn { width: 100%; justify-content: center; }

  /* Detail */
  .detail-meta-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }

  /* Pagination */
  .pagination { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-btn { min-width: 32px; height: 32px; font-size: 12px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 36px 0 20px; margin-top: 32px; }

  /* Subscribe */
  .subscribe-section { padding: 36px 0; }
  .subscribe-form { padding: 20px 16px; }

  /* Admin table scroll */
  .admin-table-wrap { border-radius: 8px; border: 1px solid var(--border); }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat-value { font-size: 1.4rem; }
  .detail-meta-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 8px; }
  .item-row { padding: 12px 16px; }
  .pagination-links { gap: 4px; }
}