/* ==========================================================================
   TrekFeed — Premium Travel Magazine Stylesheet
   Design System: Forest Teal (#123B36), Deep Forest (#0B2926), Sunset Gold (#E9A64A)
   Typography: Manrope (Headings) + Inter (Body)
   Layout Width: 1360px max-width container
   ========================================================================== */

:root {
  /* Exact Primary Brand Colors */
  --color-forest-teal: #123B36;
  --color-deep-forest: #0B2926;
  --color-sunset-gold: #E9A64A;
  --color-warm-white: #F6F7F3;
  --color-pure-white: #FFFFFF;
  --color-slate-navy: #243445;
  --color-body-text: #334155;
  --color-muted-text: #64748B;
  --color-border: #E2E8E4;
  --color-soft-bg: #EEF2EC;
  --color-hover-teal: #1B5951;

  /* Theme Mappings */
  --color-bg: var(--color-warm-white);
  --color-text: var(--color-body-text);
  --color-primary: var(--color-forest-teal);
  --color-primary-hover: var(--color-hover-teal);
  --color-accent: var(--color-sunset-gold);
  --bg-card: var(--color-pure-white);
  --border-color: var(--color-border);
  --header-bg: var(--color-forest-teal);
  --header-border: rgba(255, 255, 255, 0.1);
  --footer-bg: var(--color-deep-forest);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout Tokens */
  --max-content-width: 1360px;
  --card-radius: 14px;
  --hero-radius: 20px;
}

[data-theme="dark"] {
  --color-bg: #101B1A;
  --color-text: #F1F5F3;
  --color-body-text: #F1F5F3;
  --color-muted-text: #B5C6C0;
  --color-primary: #1B5951;
  --color-primary-hover: #237368;
  --color-accent: #E9A64A;
  --bg-card: #182927;
  --border-color: #314440;
  --color-border: #314440;
  --color-soft-bg: #142422;
  --header-bg: #0B2926;
  --header-border: #314440;
  --footer-bg: #071D1B;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1rem;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* ==========================================================================
   Global Layout Containers
   ========================================================================== */

.container-width {
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 1023px) {
  .container-width {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 639px) {
  .container-width {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   Typography Standards
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-deep-forest);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #F1F5F3;
}

.section-heading-wrap {
  margin-bottom: 24px;
}

.section-main-heading {
  font-size: 2.15rem; /* 34px */
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-subheading {
  font-size: 0.95rem; /* 15px */
  color: var(--color-muted-text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-main-heading {
    font-size: 1.65rem; /* 26px */
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 992px) {
  .header-inner {
    height: 64px;
  }
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-badge {
  background-color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.site-logo-badge:hover {
  transform: scale(1.02);
}

.site-logo-img {
  max-width: 150px;
  max-height: 44px;
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 639px) {
  .site-logo-badge {
    padding: 3px 6px;
    border-radius: 6px;
  }
  .site-logo-img {
    max-width: 110px;
    height: 30px;
  }
  .header-actions .medical-nav-btn-pulse,
  .header-actions .header-auth-links,
  .ticker-btn-mobile {
    display: none !important;
  }
  .header-container {
    padding: 0 12px;
  }
}

/* Desktop Navigation */
.header-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.header-nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: var(--color-accent);
}

.header-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* Destinations Dropdown */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  padding: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1050;
}

.nav-dropdown-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-dropdown-item a:hover {
  background-color: var(--color-soft-bg);
  color: var(--color-forest-teal);
}

[data-theme="dark"] .nav-dropdown-item a:hover {
  color: var(--color-accent);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2px 8px 2px 14px;
  transition: all 0.2s ease;
}

.header-search-form:focus-within {
  background: #FFFFFF;
  border-color: var(--color-accent);
}

.header-search-input {
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 13.5px;
  width: 130px;
  outline: none;
  transition: width 0.2s ease, color 0.2s ease;
}

.header-search-form:focus-within .header-search-input {
  color: #0F172A;
  width: 170px;
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-search-form:focus-within .header-search-input::placeholder {
  color: #64748B;
}

.header-search-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search-form:focus-within .header-search-btn {
  color: #0F172A;
}

/* Theme Toggle Button */
.header-theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-accent);
}

/* Support Treatment Pulsing Button */
.medical-nav-btn-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background-color: #E11D48;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6);
  animation: pulseGlow 2.5s infinite;
  transition: all 0.2s ease;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.medical-nav-btn-pulse:hover {
  transform: translateY(-1px);
  background-color: #BE123C;
}

/* Hamburger Button */
.public-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 1023px) {
  .public-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header-nav-list {
    display: none;
  }
  .header-search-form {
    display: none;
  }
}

/* ==========================================================================
   Mobile Navigation Slide-Over Drawer
   ========================================================================== */

.public-mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.public-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background-color: var(--bg-card);
  z-index: 1999;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
}

.public-mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--color-forest-teal);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  border-radius: 8px;
  text-decoration: none;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background-color: var(--color-soft-bg);
  color: var(--color-forest-teal);
}

/* ==========================================================================
   SECTION 02: Hero Featured Story
   ========================================================================== */

.homepage-hero-section {
  margin-top: 24px;
  margin-bottom: 32px;
}

.hero-editorial-card {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: var(--hero-radius);
  overflow: hidden;
  box-shadow: 0 12px 32px -4px rgba(11, 41, 38, 0.15);
  background-color: var(--color-deep-forest);
  display: flex;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .hero-editorial-card {
    height: 430px;
  }
}

.hero-media-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-editorial-card:hover .hero-media-backdrop img {
  transform: scale(1.02);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 41, 38, 0.95) 0%, rgba(11, 41, 38, 0.55) 45%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 768px) {
  .hero-content-wrapper {
    padding: 24px;
    gap: 10px;
  }
}

.hero-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background-color: rgba(233, 166, 74, 0.2);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.hero-headline {
  font-size: 3.5rem; /* 56px */
  font-weight: 800;
  line-height: 1.08;
  color: #FFFFFF !important;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-headline a {
  color: #FFFFFF !important;
  text-decoration: none;
}

.hero-headline a:hover {
  color: var(--color-accent) !important;
}

@media (max-width: 1023px) {
  .hero-headline {
    font-size: 2.75rem; /* 44px */
  }
}

@media (max-width: 639px) {
  .hero-headline {
    font-size: 2.15rem; /* ~34-36px */
    line-height: 1.15;
  }
}

.hero-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem; /* 17px */
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 639px) {
  .hero-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
  }
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--color-accent);
  color: var(--color-deep-forest) !important;
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 14.5px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(233, 166, 74, 0.35);
  transition: all 0.2s ease;
}

.hero-cta-btn:hover {
  background-color: #F1B765;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 166, 74, 0.45);
}

.hero-meta-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   SECTION 03: Top Homepage Ad Slot
   ========================================================================== */

.ad-container {
  text-align: center;
  margin: 32px auto;
  max-width: 728px;
  width: 100%;
}

.ad-container iframe {
  max-width: 100%;
}

/* ==========================================================================
   SECTION 04: Featured Travel Stories (1 Large + 2 Smaller)
   ========================================================================== */

.featured-stories-section {
  margin-bottom: 48px;
}

.featured-stories-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

@media (max-width: 992px) {
  .featured-stories-grid {
    grid-template-columns: 1fr;
  }
}

/* Large Lead Card */
.lead-story-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-story-card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.lead-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 340px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-soft-bg);
}

.lead-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lead-story-card:hover .lead-card-media img {
  transform: scale(1.025);
}

.lead-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.lead-story-title {
  font-size: 1.85rem; /* ~30px */
  font-weight: 750;
  line-height: 1.25;
}

.lead-story-title a {
  color: var(--color-deep-forest);
  text-decoration: none;
}

[data-theme="dark"] .lead-story-title a {
  color: #FFFFFF;
}

.lead-story-title a:hover {
  color: var(--color-forest-teal);
}

.lead-story-excerpt {
  color: var(--color-muted-text);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stacked Sub-Stories */
.sub-stories-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-story-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-story-card:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.sub-card-media {
  width: 180px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-soft-bg);
}

.sub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sub-story-card:hover .sub-card-media img {
  transform: scale(1.025);
}

.sub-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.sub-story-title {
  font-size: 1.25rem; /* ~20px */
  font-weight: 700;
  line-height: 1.35;
}

.sub-story-title a {
  color: var(--color-deep-forest);
  text-decoration: none;
}

[data-theme="dark"] .sub-story-title a {
  color: #FFFFFF;
}

.sub-story-title a:hover {
  color: var(--color-forest-teal);
}

@media (max-width: 639px) {
  .sub-story-card {
    flex-direction: column;
  }
  .sub-card-media {
    width: 100%;
    max-height: 180px;
  }
}

/* ==========================================================================
   SECTION 05: Explore Destinations
   ========================================================================== */

.destinations-section {
  margin-bottom: 56px;
  background-color: var(--color-soft-bg);
  padding: 40px 0;
  border-radius: var(--hero-radius);
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1023px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .destinations-grid {
    grid-template-columns: 1fr;
  }
}

.destination-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background-color: var(--color-deep-forest);
}

.destination-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.destination-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 41, 38, 0.9) 0%, rgba(11, 41, 38, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.destination-card-content {
  position: relative;
  z-index: 2;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.destination-card-title {
  color: #FFFFFF !important;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.destination-card-count {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION 06: Latest Travel Guides & Sidebar
   ========================================================================== */

.editorial-split-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 992px) {
  .editorial-split-layout {
    grid-template-columns: 1fr;
  }
}

.guides-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 639px) {
  .guides-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Standard Editorial Card */
.editorial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.editorial-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-soft-bg);
}

.editorial-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.editorial-card:hover .editorial-card-media img {
  transform: scale(1.025);
}

.editorial-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.editorial-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(18, 59, 54, 0.08);
  color: var(--color-forest-teal);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

[data-theme="dark"] .editorial-badge {
  background-color: rgba(233, 166, 74, 0.15);
  color: var(--color-accent);
}

.editorial-card-title {
  font-size: 1.25rem; /* ~20px */
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-card-title a {
  color: var(--color-deep-forest);
  text-decoration: none;
}

[data-theme="dark"] .editorial-card-title a {
  color: #FFFFFF;
}

.editorial-card-title a:hover {
  color: var(--color-forest-teal);
}

.editorial-card-excerpt {
  color: var(--color-muted-text);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-muted-text);
}

.editorial-read-link {
  font-weight: 700;
  color: var(--color-forest-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

[data-theme="dark"] .editorial-read-link {
  color: var(--color-accent);
}

.editorial-read-link:hover {
  gap: 6px;
}

/* ==========================================================================
   SECTION 08: Travel Planning Tiles
   ========================================================================== */

.planning-section {
  margin-bottom: 56px;
}

.planning-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1023px) {
  .planning-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .planning-tiles-grid {
    grid-template-columns: 1fr;
  }
}

.planning-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.planning-tile:hover {
  transform: translateY(-3px);
  border-color: var(--color-forest-teal);
  box-shadow: 0 10px 24px rgba(18, 59, 54, 0.08);
}

.planning-icon {
  font-size: 2rem;
  line-height: 1;
}

.planning-tile-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--color-deep-forest);
  margin: 0;
}

[data-theme="dark"] .planning-tile-title {
  color: #FFFFFF;
}

.planning-tile-desc {
  font-size: 13.5px;
  color: var(--color-muted-text);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   SECTION 09: Popular Stories (Ranked 01-04)
   ========================================================================== */

.popular-editorial-section {
  margin-bottom: 56px;
}

.popular-editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .popular-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .popular-editorial-grid {
    grid-template-columns: 1fr;
  }
}

.popular-rank-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease;
}

.popular-rank-card:hover {
  transform: scale(1.02);
}

.popular-rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-accent);
  color: var(--color-deep-forest);
  font-family: var(--font-heading);
  font-weight: 850;
  font-size: 13px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popular-rank-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-soft-bg);
}

.popular-rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-rank-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.popular-rank-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-rank-title a {
  color: var(--color-deep-forest);
  text-decoration: none;
}

[data-theme="dark"] .popular-rank-title a {
  color: #FFFFFF;
}

/* ==========================================================================
   Sidebar Styling
   ========================================================================== */

.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.widget-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-deep-forest);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .widget-title {
  color: #FFFFFF;
}

/* ==========================================================================
   SECTION 11: Footer
   ========================================================================== */

.site-footer {
  background-color: var(--footer-bg);
  color: #94A3B8;
  padding: 64px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 992px) {
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .footer-columns-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 750;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: #94A3B8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--color-accent);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

/* ==========================================================================
   Pagination Styling (Preserves ?page=X)
   ========================================================================== */

.pagination-controls nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pagination-controls nav svg {
  width: 16px !important;
  height: 16px !important;
  display: inline-block;
  vertical-align: middle;
}

.pagination-controls nav > div:last-child {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.pagination-controls nav a,
.pagination-controls nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-controls nav a:hover {
  background-color: var(--color-forest-teal);
  color: #FFFFFF !important;
  border-color: var(--color-forest-teal);
}

.pagination-controls nav [aria-current="page"] > span {
  background-color: var(--color-forest-teal) !important;
  color: #FFFFFF !important;
  border-color: var(--color-forest-teal) !important;
}

/* ==========================================================================
   AIO Definition & AEO FAQ Block Stylings
   ========================================================================== */

.aio-definition-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-forest-teal) !important;
  border-radius: var(--card-radius);
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.aio-definition-title {
  font-family: var(--font-heading);
  color: var(--color-deep-forest);
  font-weight: 750;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

[data-theme="dark"] .aio-definition-title {
  color: var(--color-accent) !important;
}

.aeo-faq-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.aeo-faq-item {
  margin-bottom: 20px;
}

.aeo-faq-question {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--color-forest-teal);
  margin-bottom: 6px;
}

[data-theme="dark"] .aeo-faq-question {
  color: var(--color-accent);
}

.aeo-faq-answer {
  font-size: 14.5px;
  color: var(--color-muted-text);
  line-height: 1.6;
}

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */

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