/*
Theme Name: SeekBeta
Theme URI: https://seekbeta.in
Author: SeekBeta
Author URI: https://seekbeta.in
Description: Voice of India's Teaching Community — a magazine-style WordPress theme for SeekBeta with dynamic ticker, AJAX search, category strips, ad zones, and a full editorial layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seekbeta
Tags: news, magazine, education, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ─────────────────────────────────────────
   ROOT VARIABLES
───────────────────────────────────────── */
:root {
  --primary:    #5a816a;
  --accent:     #e8a020;
  --text:       #1c1c1c;
  --text-light: #5a5a5a;
  --bg:         #fafaf8;
  --bg-card:    #ffffff;
  --border:     #e8e4de;
  --red:        #c0392b;
  --tag-bg:     #eef6f1;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.logo-area img{width:220px;}
/* ─────────────────────────────────────────
   SKIP LINK (Accessibility)
───────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 6px;
  z-index: 9999;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}
.skip-link:focus { left: 6px; }

/* ─────────────────────────────────────────
   TICKER BAR
───────────────────────────────────────── */
.ticker-bar {
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
  font-size: 13px;
}
.ticker-label {
  background: var(--accent);
  color: #1c1c1c;
  font-weight: 700;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; padding: 0 16px; }
.ticker-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: seekbeta-ticker 35s linear infinite;
}
.ticker-inner a { color: white; }
.ticker-inner a:hover { color: var(--accent); }
.ticker-inner span::before { content: "◆ "; color: var(--accent); font-size: 10px; }
@keyframes seekbeta-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-area a { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px; font-weight: 900;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.logo-icon img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.logo-text-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text-wrap .tagline {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header Right */
.header-right { display: flex; align-items: center; gap: 14px; }
.header-date {
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
  line-height: 1.4;
}

/* Search Toggle */
.search-toggle-btn {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  font-family: inherit;
}
.search-toggle-btn:hover { background: #e2ede6; }

.subscribe-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  font-family: inherit;
  transition: background 0.2s;
}
.subscribe-btn:hover { background: #155730; }

/* ─────────────────────────────────────────
   SEARCH OVERLAY
───────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,35,24,0.92);
  z-index: 999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay.is-open { display: flex; }
.search-overlay-inner {
  width: 100%;
  max-width: 720px;
  padding: 0 20px;
}
.search-overlay-inner form {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
#seekbeta-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}
.search-submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 28px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-submit-btn:hover { background: #155730; }
.search-close-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 28px;
  cursor: pointer;
  margin-top: 16px;
  display: block;
  margin-left: auto;
}
#search-results-live {
  background: white;
  border-radius: 8px;
  margin-top: 8px;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  align-items: flex-start;
}
.search-result-item:hover { background: var(--tag-bg); }
.search-result-item:last-child { border-bottom: none; }
.search-result-thumb {
  width: 60px; height: 45px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--tag-bg);
}
.search-result-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.search-result-meta { font-size: 11px; color: #999; }
.search-no-results { padding: 20px; text-align: center; color: var(--text-light); font-size: 14px; }

/* ─────────────────────────────────────────
   PRIMARY NAVIGATION
───────────────────────────────────────── */
.main-nav {
  background: white;
  border-bottom: 2px solid var(--primary);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.primary-menu { display: flex; align-items: center; }
.primary-menu > li > a {
  display: block;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Dropdown */
.primary-menu li { position: relative; }
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f5f2ee;
  transition: background 0.15s;
}
.primary-menu .sub-menu li a:hover { background: var(--tag-bg); color: var(--primary); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  font-size: 22px;
}

/* ─────────────────────────────────────────
   AD BANNER AREAS
───────────────────────────────────────── */
.ad-banner {
  background: #f0f4f0;
  border: 1px dashed #b8d4c0;
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-leaderboard {
  background: #f0f4f0;
  border: 1px dashed #b8d4c0;
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 32px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-box {
  background: #f5f5f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ─────────────────────────────────────────
   CONTAINER
───────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 20px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-more {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.section-more:hover { color: var(--accent); }

/* ─────────────────────────────────────────
   TOP STORIES GRID
───────────────────────────────────────── */
.top-stories-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 32px;
}
.story-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.story-card.featured { grid-row: 1 / 3; }

.story-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #d4e8dc 0%, #b8d4c4 100%);
}
.story-card.featured .story-img-wrap { aspect-ratio: 4/3; }
.story-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.story-card:hover .story-img-wrap img { transform: scale(1.04); }

.story-body { padding: 16px; }
.story-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.story-card:hover .story-title { color: var(--primary); }
.story-card.featured .story-title { font-size: 22px; margin-bottom: 10px; }
.story-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #999;
  flex-wrap: wrap;
}
.story-meta .author { color: var(--primary); font-weight: 600; }
.story-meta .sep { color: #ccc; }

/* ─────────────────────────────────────────
   CATEGORY STRIP
───────────────────────────────────────── */
.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }

.cat-header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
}
.cat-header.cat-color-0 { background: #2e7d52; }
.cat-header.cat-color-1 { background: #1565c0; }
.cat-header.cat-color-2 { background: #6a1b9a; }
.cat-header.cat-color-3 { background: #c0392b; }
.cat-header.cat-color-4 { background: #e08020; }
.cat-header.cat-color-5 { background: #00796b; }

.cat-items { padding: 12px 14px; }
.cat-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0ede8;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  transition: color 0.15s;
}
.cat-item:hover { color: var(--primary); }
.cat-item:last-child { border-bottom: none; }
.cat-item::before { content: "›"; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.cat-item a { color: inherit; }

/* ─────────────────────────────────────────
   TWO-COLUMN LAYOUT
───────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 40px;
}

/* Latest News Feed */
.news-feed { }
.feed-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background 0.15s;
}
.feed-item:last-child { border-bottom: none; }
.feed-thumb {
  width: 90px;
  height: 68px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4e8dc, #b8d4c4);
  flex-shrink: 0;
  overflow: hidden;
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.feed-item:hover .feed-thumb img { transform: scale(1.06); }
.feed-content { flex: 1; }
.feed-title {
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
  color: var(--text);
  transition: color 0.2s;
}
.feed-item:hover .feed-title { color: var(--primary); }
.feed-meta { font-size: 11.5px; color: #999; }
.feed-meta .tag { color: var(--primary); font-weight: 600; margin-right: 6px; }

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-title {
  background: var(--tag-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
}
.widget-body { padding: 16px; }

.trending-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f2ee;
  align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }
.trend-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #ddd;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}
.trend-title { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text); }
.trend-title a { transition: color 0.2s; }
.trend-title a:hover { color: var(--primary); }
.trend-tag { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 3px; }

/* Newsletter Widget */
.newsletter-widget { text-align: center; padding: 20px 16px; }
.newsletter-widget h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}
.newsletter-widget p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
.newsletter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--primary); }
.newsletter-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: #155730; }

/* ─────────────────────────────────────────
   VIDEO SECTION
───────────────────────────────────────── */
.video-section {
  background: #1a2f22;
  padding: 32px 0;
  margin: 32px 0;
}
.video-section .section-title { color: white; }
.video-section .section-line { background: #2e4d38; }
.video-section .section-more { color: var(--accent); }
.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.video-card {
  border-radius: 8px;
  overflow: hidden;
  background: #243b2c;
  cursor: pointer;
  transition: transform 0.2s;
}
.video-card:hover { transform: scale(1.02); }
.video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2e4d38, #1a3528);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  position: absolute;
  z-index: 2;
  transition: transform 0.2s;
}
.video-card:hover .play-btn { transform: scale(1.15); }
.video-info { padding: 12px; }
.video-title { font-size: 13px; font-weight: 600; color: #e8ece9; line-height: 1.4; margin-bottom: 5px; }
.video-meta { font-size: 11px; color: #7a9a82; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: #0f2318;
  color: #b0c8b8;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 0 40px;
}
.footer-brand h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: white;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  color: white;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #b0c8b8;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e3d2a;
  padding: 20px 40px 0;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 12px;
  color: #7a9a82;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────── */
.single-post-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0;
}
.post-hero-img {
  width: 100%;
  aspect-ratio: 16/6;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}
.post-excerpt-lead {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}
.post-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.post-content p { margin-bottom: 20px; }
.post-content h2, .post-content h3 { font-family: 'Playfair Display', serif; margin: 28px 0 12px; }
.post-content img { border-radius: 6px; margin: 20px 0; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  background: var(--tag-bg);
  margin: 24px 0;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}
.post-author-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 40px 0;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--tag-bg);
  flex-shrink: 0;
  object-fit: cover;
}
.author-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.author-bio { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ─────────────────────────────────────────
   ARCHIVE / CATEGORY PAGE
───────────────────────────────────────── */
.archive-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0;
}
.archive-posts { }
.archive-post-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.archive-thumb {
  width: 140px;
  height: 95px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tag-bg);
}
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.archive-post-item:hover .archive-thumb img { transform: scale(1.05); }
.archive-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
  transition: color 0.2s;
}
.archive-post-item:hover .archive-post-title { color: var(--primary); }
.archive-post-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 10px; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  margin: 32px 0;
  align-items: center;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ─────────────────────────────────────────
   SEARCH RESULTS PAGE
───────────────────────────────────────── */
.search-results-header {
  padding: 32px 0 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 32px;
}
.search-results-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 8px;
}
.search-results-header p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.search-form-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.search-form-inline input[type="search"] {
  flex: 1;
  max-width: 500px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.search-form-inline input[type="search"]:focus { border-color: var(--primary); }
.search-form-inline button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ─────────────────────────────────────────
   COMMENTS
───────────────────────────────────────── */
.comments-wrap { margin-top: 48px; }
.comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.comment-list { }
.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: var(--tag-bg); }
.comment-body { flex: 1; }
.comment-author-name { font-weight: 600; font-size: 14px; color: var(--primary); }
.comment-date { font-size: 12px; color: #999; margin-bottom: 8px; }
.comment-text { font-size: 14px; line-height: 1.6; }
.comment-reply-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
}

/* Comment Form */
#respond { margin-top: 40px; }
#respond h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 20px;
}
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.comment-form .submit:hover { background: #155730; }

/* ─────────────────────────────────────────
   READING PROGRESS BAR
───────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 6px; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .top-stories-grid { grid-template-columns: 1fr 1fr; }
  .story-card.featured { grid-row: auto; grid-column: 1 / -1; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-top { padding: 12px 20px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .header-date, .subscribe-btn { display: none; }
  .primary-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; border-top: 2px solid var(--primary); z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .primary-menu.is-open { display: flex; }
  .primary-menu > li > a { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
  .primary-menu .sub-menu { position: static; border: none; box-shadow: none; background: #f8faf9; }
  .mobile-menu-toggle { display: block; }
  .main-nav { position: relative; }
  .nav-inner { justify-content: space-between; }
  .two-col { grid-template-columns: 1fr; }
  .single-post-wrap { grid-template-columns: 1fr; }
  .archive-wrap { grid-template-columns: 1fr; }
  .top-stories-grid { grid-template-columns: 1fr; }
  .story-card.featured { grid-column: 1; }
  .category-strip { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 0 20px; gap: 28px; }
  .footer-bottom { padding: 20px 20px 0; flex-direction: column; align-items: flex-start; }
  .post-title { font-size: 26px; }
  .search-overlay { padding-top: 60px; }
}
