/* ==========================================================================
   Extramile News Theme — Design System
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --navy: #1B2A7C;
  --navy-dark: #131e5a;
  --cyan: #00C4E8;
  --cyan-dark: #00a3c2;
  --gold: #D4A843;
  --ember: #ff751f;
  --ember-dark: #e5631a;

  /* Semantic */
  --bg: #FAFBFF;
  --bg-alt: #f3f4f8;
  --fg: #0F172A;
  --fg-muted: #64748b;
  --border: #e2e5ed;
  --card: #ffffff;
  --overlay: rgba(15, 23, 42, 0.6);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --container: 1280px;
  --container-narrow: 780px;
  --gap: 1.5rem;
  --radius: 0.75rem;
  --radius-sm: 0.45rem;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: 9999px;
  line-height: 1.4;
}

.badge--ember {
  background: rgba(255, 117, 31, 0.1);
  color: var(--ember);
}

.badge--cyan {
  background: rgba(0, 196, 232, 0.15);
  color: var(--cyan-dark);
}

.badge--navy {
  background: var(--navy);
  color: #fff;
}

.ember-glow {
  box-shadow: 0 4px 20px rgba(255, 117, 31, 0.3), 0 0 40px rgba(255, 117, 31, 0.1);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.btn--ember {
  background: var(--ember);
  color: #fff;
}
.btn--ember:hover {
  background: var(--ember-dark);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover {
  background: var(--navy-dark);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  background: var(--bg-alt);
}

.btn--sm {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* Top Bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar__date {
  font-weight: 500;
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar__links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.top-bar__links a:hover {
  color: var(--cyan);
}

/* Main Header */
.header-main {
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-branding img {
  height: 48px;
  width: auto;
}

.site-branding__text {
  display: flex;
  flex-direction: column;
}

.site-branding__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.site-branding__tagline {
  font-size: 0.6875rem;
  color: var(--ember);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Header Search */
.header-search {
  display: none;
  position: relative;
  max-width: 320px;
  flex: 1;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 196, 232, 0.15);
}

.header-search svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
}

@media (min-width: 768px) {
  .header-search {
    display: block;
  }
}

/* Navigation */
.nav-bar {
  background: #fff;
  border-top: 1px solid var(--border);
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

/* Sub-menus */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 99;
  padding: 0.5rem 0;
}

.main-navigation li:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu a {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  text-transform: none;
  border-bottom: none;
}

.main-navigation .sub-menu a:hover {
  background: var(--bg-alt);
}

/* Trending Ticker */
.trending-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
  overflow: hidden;
}

.trending-bar .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trending-bar__label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--ember);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.trending-bar__ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.trending-bar__ticker-inner {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
}

.trending-bar__ticker a {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.trending-bar__ticker a:hover {
  color: var(--ember);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile Menu */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--fg);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 1023px) {
  .main-navigation ul {
    display: none;
  }
  .main-navigation.toggled ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }
  .main-navigation.toggled .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    display: block;
    padding-left: 1rem;
  }
}

/* ==========================================================================
   Hero / Breaking News
   ========================================================================== */
.hero-section {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
  }
  .hero-grid__main {
    grid-row: 1 / 3;
  }
}

/* Featured Card */
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.featured-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-card:hover .featured-card__img {
  transform: scale(1.03);
}

.featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
}

.featured-card__content {
  position: relative;
  padding: 2rem;
  color: #fff;
  z-index: 1;
}

.featured-card__title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0.75rem 0;
  line-height: 1.25;
}

.featured-card__title a {
  color: #fff;
}
.featured-card__title a:hover {
  color: var(--cyan);
}

.featured-card__excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Side Cards */
.side-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.side-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.side-card__img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.side-card__placeholder {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #2a3d9e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-card__placeholder img {
  width: 30px;
  height: 30px;
  opacity: 0.15;
  filter: brightness(10);
}

.side-card__content {
  flex: 1;
  min-width: 0;
}

.side-card__title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0.375rem 0;
}

.side-card__title a:hover {
  color: var(--ember);
}

/* ==========================================================================
   Post Cards / Grid
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 3px solid var(--navy);
}

.section-header h2 {
  font-size: 1.375rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: calc(-0.875rem - 3px);
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--ember);
}

.section-header a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ember);
}

.section-header a:hover {
  color: var(--ember-dark);
}

.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.post-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  display: block;
}

/* No-image placeholder */
.post-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #2a3d9e 100%);
}

.post-card__placeholder img {
  width: 50px;
  height: 50px;
  opacity: 0.15;
  filter: brightness(10);
}

/* Hero no-image */
.featured-card__no-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3294 50%, #2a3d9e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card__no-img img {
  width: 120px;
  height: 120px;
  opacity: 0.08;
  filter: brightness(10);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 1.25rem;
}

.post-card__title {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__title a:hover {
  color: var(--ember);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.post-card__meta,
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  flex-wrap: wrap;
}

.post-meta__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-meta__item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.post-meta a {
  color: var(--fg-muted);
  font-weight: 500;
}
.post-meta a:hover {
  color: var(--ember);
}

/* List Layout */
.post-list-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item__thumb {
  width: 260px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-list-item__title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.post-list-item__title a:hover {
  color: var(--ember);
}

.post-list-item__excerpt {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
  .post-list-item {
    flex-direction: column;
    gap: 1rem;
  }
  .post-list-item__thumb {
    width: 100%;
    height: 200px;
  }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.content-area {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr 340px;
  }
}

.sidebar .widget {
  margin-bottom: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.widget__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 0.875rem 1.25rem;
  margin: 0;
  position: relative;
}

.widget__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  width: 40px;
  height: 3px;
  background: var(--ember);
}

.widget__body {
  padding: 1.25rem;
}

/* Popular Posts Widget */
.popular-post {
  display: flex;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post:first-child {
  padding-top: 0;
}

.popular-post__number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ember);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}

.popular-post__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}

.popular-post__title a:hover {
  color: var(--ember);
}

.popular-post__date {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

/* Tags Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-alt);
  border-radius: 9999px;
  color: var(--fg-muted);
  transition: all 0.2s;
}

.tag-cloud a:hover {
  background: var(--ember);
  color: #fff;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
}

.newsletter-widget .widget__body {
  padding: 1.5rem 1.25rem;
}

.newsletter-widget p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.875rem;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
}

.newsletter-widget input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-widget .btn {
  width: 100%;
  justify-content: center;
}

/* Social Widget */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.85;
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

.social--facebook { background: #1877F2; }
.social--youtube { background: #FF0000; }
.social--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social--tiktok { background: #010101; }
.social--twitter { background: #1DA1F2; }

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-header {
  padding: 3rem 0 2rem;
}

.single-header .badge {
  margin-bottom: 1rem;
}

.single-header h1 {
  margin-bottom: 1.25rem;
}

.single-header .post-meta {
  font-size: 0.875rem;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.single-featured-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* Post Content */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #1e293b;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.625rem;
}

.post-content h3 {
  margin: 2rem 0 0.875rem;
  font-size: 1.25rem;
}

.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

.post-content blockquote {
  border-left: 4px solid var(--ember);
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--fg-muted);
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content ul,
.post-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--ember-dark);
}

.post-content pre {
  background: var(--navy);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.post-content code {
  background: var(--bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

.post-content pre code {
  background: none;
  padding: 0;
}

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-tags__label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}

/* Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.post-share__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

.post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: opacity 0.2s;
}

.post-share a:hover {
  opacity: 0.8;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__name {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.author-box__bio {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-navigation__link {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.post-navigation__link:hover {
  border-color: var(--ember);
}

.post-navigation__link--next {
  text-align: right;
}

.post-navigation__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.post-navigation__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  line-height: 1.35;
}

/* Related Posts */
.related-posts {
  margin: 3rem 0;
}

.related-posts h3 {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 3px solid var(--navy);
  position: relative;
}

.related-posts h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--ember);
}

/* Comments */
.comments-area {
  margin-top: 3rem;
}

.comments-area h3 {
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-author .fn {
  font-weight: 600;
  color: var(--navy);
}

.comment-metadata {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.comment-content {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 196, 232, 0.15);
}

.comment-respond textarea {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================================================
   Archive / Category Pages
   ========================================================================== */
.archive-header {
  background: var(--navy);
  padding: 3rem 0;
  color: #fff;
  text-align: center;
}

.archive-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filter Bar */
.category-bar {
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow-x: auto;
}

.category-bar .container {
  display: flex;
  gap: 0.25rem;
  padding-top: 0;
  padding-bottom: 0;
}

.category-bar a {
  display: block;
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.category-bar a:hover,
.category-bar a.active {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin: 3rem 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--fg);
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  background: var(--bg-alt);
  border-color: var(--navy);
}

.pagination .page-numbers.current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pagination .prev,
.pagination .next {
  font-size: 0.8125rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #fff;
  border-top: 4px solid var(--ember);
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--ember);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  color: var(--ember);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Back to main site link */
.back-to-main {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.back-to-main:hover {
  color: #fff;
}

/* ==========================================================================
   Search Results
   ========================================================================== */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--cyan);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: 6rem 0;
}

.error-404 h1 {
  font-size: 8rem;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1.5rem auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: 1.5rem 0;
}

.gallery img {
  border-radius: var(--radius-sm);
}

.sticky .post-card {
  border-left: 4px solid var(--ember);
}

/* Screen Reader Text */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Reading Progress Bar (Single Posts)
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--cyan));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   AJAX Live Search Dropdown
   ========================================================================== */
.header-search {
  position: relative;
}

.live-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 200;
  max-height: 420px;
  overflow-y: auto;
}

.live-search-results.active {
  display: block;
}

.live-search__item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.live-search__item:last-child {
  border-bottom: none;
}

.live-search__item:hover {
  background: var(--bg-alt);
}

.live-search__thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.live-search__text {
  flex: 1;
  min-width: 0;
}

.live-search__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-search__meta {
  font-size: 0.6875rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.live-search__empty,
.live-search__loading {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.live-search__all {
  display: block;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ember);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.live-search__all:hover {
  background: var(--border);
}

/* ==========================================================================
   Modal Mobile Menu (Newspaper-style overlay)
   ========================================================================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-panel.active {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.2s;
}

.mobile-menu__close:hover {
  background: var(--border);
}

.mobile-menu__search {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__search form {
  position: relative;
}

.mobile-menu__search input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--bg-alt);
}

.mobile-menu__search svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
}

.mobile-menu__nav {
  flex: 1;
  padding: 0.5rem 0;
}

.mobile-menu__nav ul {
  list-style: none;
}

.mobile-menu__nav a {
  display: block;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: all 0.15s;
}

.mobile-menu__nav a:hover {
  color: var(--ember);
  background: var(--bg-alt);
  padding-left: 2rem;
}

.mobile-menu__nav .sub-menu a {
  padding-left: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.mobile-menu__footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.mobile-menu__footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  transition: background 0.2s;
}

.mobile-menu__footer a:hover {
  background: var(--ember);
}

.mobile-menu__footer a svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Lazy Load / Fade-In Animations
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered cards */
.post-grid .post-card:nth-child(1) { transition-delay: 0s; }
.post-grid .post-card:nth-child(2) { transition-delay: 0.05s; }
.post-grid .post-card:nth-child(3) { transition-delay: 0.1s; }
.post-grid .post-card:nth-child(4) { transition-delay: 0.15s; }
.post-grid .post-card:nth-child(5) { transition-delay: 0.2s; }
.post-grid .post-card:nth-child(6) { transition-delay: 0.25s; }

/* Image reveal animation — use CSS-only fallback so images always show */
.post-card__thumb img,
.featured-card__img,
.side-card__img {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@supports (content-visibility: auto) {
  .post-card__thumb img[loading="lazy"],
  .featured-card__img[loading="lazy"],
  .side-card__img[loading="lazy"] {
    opacity: 0;
  }
  .post-card__thumb img.loaded,
  .featured-card__img.loaded,
  .side-card__img.loaded {
    opacity: 1;
  }
}

/* ==========================================================================
   Featured / Sticky Post Ribbon
   ========================================================================== */
.post-card--featured {
  position: relative;
  border: 2px solid var(--ember);
}

.post-card--featured::before {
  content: 'Featured';
  position: absolute;
  top: 1rem;
  left: -0.375rem;
  background: var(--ember);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem 0.25rem 0.625rem;
  z-index: 2;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-card--featured::after {
  content: '';
  position: absolute;
  top: calc(1rem + 1.375rem);
  left: -0.375rem;
  border-style: solid;
  border-width: 0 0.375rem 0.375rem 0;
  border-color: transparent var(--ember-dark) transparent transparent;
}

/* ==========================================================================
   Video Post Duration Overlay
   ========================================================================== */
.post-card__video-badge {
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.post-card__video-badge svg {
  width: 12px;
  height: 12px;
}

/* Play button overlay */
.post-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.post-card:hover .post-card__play {
  opacity: 1;
}

.post-card__play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 117, 31, 0.4);
}

.post-card__play-icon svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

/* ==========================================================================
   Load More Button (AJAX Pagination)
   ========================================================================== */
.load-more-wrap {
  text-align: center;
  margin: 2.5rem 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
}

.load-more-btn:hover {
  background: var(--navy);
  color: #fff;
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.load-more-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.load-more-btn.loading .load-more-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(27, 42, 124, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ember);
  box-shadow: 0 4px 16px rgba(255, 117, 31, 0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Sticky Floating Share Bar (Single Posts)
   ========================================================================== */
.floating-share {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.floating-share.visible {
  opacity: 1;
  visibility: visible;
}

.floating-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.floating-share a:hover {
  transform: scale(1.15);
}

.floating-share a svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1280px) {
  .floating-share {
    display: none;
  }
}

/* ==========================================================================
   Breaking News Alert Banner
   ========================================================================== */
.breaking-news {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.breaking-news .container {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 40px;
}

.breaking-news__label {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.625rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breaking-news__pulse {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.breaking-news__text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 1rem;
}

.breaking-news__text a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  display: inline-block;
  animation: scroll-text 20s linear infinite;
}

.breaking-news__text a:hover {
  text-decoration: underline;
}

@keyframes scroll-text {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.breaking-news__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.breaking-news__close:hover {
  color: #fff;
}

.breaking-news__close svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Weather Widget (Top Bar)
   ========================================================================== */
.top-bar__weather {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.top-bar__weather-icon {
  font-size: 1.125rem;
}

.top-bar__weather-temp {
  font-weight: 600;
  color: #fff;
}

.top-bar__weather-city {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Hybrid Layout Block (1 large + 3 small stacked)
   ========================================================================== */
.hybrid-block {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hybrid-block {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hybrid-block__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.hybrid-block__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hybrid-block__main:hover img {
  transform: scale(1.03);
}

.hybrid-block__main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
}

.hybrid-block__main-content {
  position: relative;
  padding: 2rem;
  color: #fff;
  z-index: 1;
}

.hybrid-block__main-content h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0.5rem 0;
  line-height: 1.3;
}

.hybrid-block__main-content h3 a {
  color: #fff;
}
.hybrid-block__main-content h3 a:hover {
  color: var(--cyan);
}

.hybrid-block__main-content .post-meta {
  color: rgba(255, 255, 255, 0.6);
}

.hybrid-block__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hybrid-stack-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.hybrid-stack-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.hybrid-stack-card__img {
  width: 130px;
  height: 95px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hybrid-stack-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hybrid-stack-card__title {
  font-size: 0.9375rem;
  line-height: 1.35;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hybrid-stack-card__title a:hover {
  color: var(--ember);
}

/* ==========================================================================
   Category Tab Filters (AJAX switch)
   ========================================================================== */
.cat-tabs {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.cat-tabs__btn {
  background: none;
  border: none;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.cat-tabs__btn:hover {
  color: var(--fg);
  background: var(--bg-alt);
}

.cat-tabs__btn.active {
  background: var(--navy);
  color: #fff;
}

.cat-tabs-content {
  position: relative;
  min-height: 200px;
}

.cat-tabs-content .post-grid {
  transition: opacity 0.3s;
}

.cat-tabs-content .post-grid.loading {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   Most Read Tabbed Widget (Daily/Weekly/Monthly)
   ========================================================================== */
.most-read-widget .widget__body {
  padding: 0;
}

.most-read-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
}

.most-read-tabs__btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.most-read-tabs__btn:hover {
  color: var(--fg);
}

.most-read-tabs__btn.active {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.most-read-panel {
  display: none;
  padding: 1rem 1.25rem;
}

.most-read-panel.active {
  display: block;
}

.most-read-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.most-read-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.most-read-item:first-child {
  padding-top: 0;
}

.most-read-item__rank {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  width: 1.75rem;
  color: var(--border);
}

.most-read-item:nth-child(1) .most-read-item__rank { color: var(--ember); }
.most-read-item:nth-child(2) .most-read-item__rank { color: var(--ember); opacity: 0.7; }
.most-read-item:nth-child(3) .most-read-item__rank { color: var(--ember); opacity: 0.5; }

.most-read-item__body {
  flex: 1;
  min-width: 0;
}

.most-read-item__title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.most-read-item__title a:hover {
  color: var(--ember);
}

.most-read-item__meta {
  font-size: 0.6875rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Ad Spot Placeholders
   ========================================================================== */
.ad-spot {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.ad-spot--banner {
  width: 100%;
  min-height: 90px;
  margin: 2rem 0;
}

.ad-spot--sidebar {
  width: 100%;
  min-height: 250px;
  margin-bottom: 2rem;
}

.ad-spot--inline {
  width: 100%;
  min-height: 120px;
  margin: 1.5rem 0;
}

.ad-spot__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* When ad content is loaded, hide the label */
.ad-spot:has(img) .ad-spot__label,
.ad-spot:has(iframe) .ad-spot__label {
  display: none;
}

.ad-spot img,
.ad-spot iframe {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Editor's Picks Section
   ========================================================================== */
.editors-picks {
  background: var(--navy);
  padding: 3rem 0;
  color: #fff;
}

.editors-picks .section-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.editors-picks .section-header h2 {
  color: #fff;
}

.editors-picks .section-header h2::after {
  background: var(--ember);
}

.editors-picks .section-header a {
  color: var(--cyan);
}

.editors-picks-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.editors-pick-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
}

.editors-pick-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.editors-pick-card:hover img {
  transform: scale(1.05);
}

.editors-pick-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}

.editors-pick-card__content {
  position: relative;
  padding: 1.25rem;
  z-index: 1;
}

.editors-pick-card__title {
  font-size: 1rem;
  color: #fff;
  line-height: 1.35;
  margin-top: 0.375rem;
}

.editors-pick-card__title a {
  color: #fff;
}
.editors-pick-card__title a:hover {
  color: var(--cyan);
}

.editors-pick-card .post-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  margin-top: 0.375rem;
}

/* ==========================================================================
   Trending Carousel (Horizontal Scroll)
   ========================================================================== */
.trending-carousel {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.trending-carousel .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trending-carousel__label {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trending-carousel__label svg {
  width: 18px;
  height: 18px;
  color: var(--ember);
}

.trending-carousel__track {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  gap: 1.5rem;
}

.trending-carousel__track::-webkit-scrollbar {
  display: none;
}

.trending-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
}

.trending-carousel__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ember);
  opacity: 0.4;
  flex-shrink: 0;
}

.trending-carousel__title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-carousel__title a:hover {
  color: var(--ember);
}

.trending-carousel__nav {
  flex-shrink: 0;
  display: flex;
  gap: 0.25rem;
}

.trending-carousel__nav button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  color: var(--fg-muted);
  transition: all 0.2s;
}

.trending-carousel__nav button:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.trending-carousel__nav button svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Improved Sticky Header (Newspaper-style hide/show on scroll)
   ========================================================================== */
.site-header {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.header-visible {
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
  .top-bar {
    display: none;
  }

  .featured-card {
    min-height: 350px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
