/* ==========================================================================
   Promote Iligan — Theme Styles
   Modern magazine + directory layout
   Palette: deep teal #0B4F4A, sunset orange #F97316, warm paper #FAFAF5
   Typography: Fraunces (display serif) + Inter (UI sans)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #FAFAF5;
  color: #0B1F1E;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

:root {
  --ink: #0B1F1E;
  --paper: #FAFAF5;
  --surface: #FFFFFF;
  --muted: #64748B;
  --line: #E8E6DF;
  --teal-50: #ECFDF5;
  --teal-100: #D1FAE5;
  --teal-500: #14B8A6;
  --teal-700: #0F766E;
  --teal-800: #115E59;
  --teal-900: #0B4F4A;
  --teal-950: #063937;
  --sun-400: #FB923C;
  --sun-500: #F97316;
  --sun-600: #EA580C;
  --shadow-card: 0 1px 2px rgba(11,31,30,.04), 0 8px 24px -12px rgba(11,31,30,.10);
  --shadow-hover: 0 4px 8px rgba(11,31,30,.06), 0 16px 32px -16px rgba(11,31,30,.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--teal-950); color: #99F6E4; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar a { transition: color .2s ease; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-divider { color: #115E59; }
.topbar-social { display: flex; align-items: center; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(250,250,245,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,230,223,.7);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-900); color: #fff;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px;
}
.brand-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; line-height: 1.1; color: var(--ink); }
.brand-tagline { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.main-nav { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.main-nav a { position: relative; color: rgba(11,31,30,.8); transition: color .2s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--sun-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
@media (min-width: 1024px) { .main-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--teal-50); }
.btn-cta {
  display: none;
  align-items: center; gap: 8px;
  background: var(--sun-500); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 0 18px; height: 40px;
  border-radius: 999px;
  transition: background .2s ease;
  box-shadow: 0 1px 2px rgba(11,31,30,.04);
}
.btn-cta:hover { background: var(--sun-600); }
@media (min-width: 640px) { .btn-cta { display: inline-flex; } }

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

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { background: var(--teal-50); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; gap: 16px; height: 40px; }
.ticker-label {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sun-500); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
}
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.ticker-track-wrap { position: relative; flex: 1; overflow: hidden; }
.ticker-track {
  display: flex; gap: 48px; white-space: nowrap;
  font-size: 14px; color: rgba(255,255,255,.9);
  animation: ticker-scroll 45s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track .dot-sep { color: var(--teal-500); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 2fr 1fr; } }

.hero-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 460px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
@media (min-width: 1024px) { .hero-feature { min-height: 540px; } }
.hero-feature-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--teal-900);
}
.hero-feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,31,30,.95) 0%, rgba(11,31,30,.4) 50%, transparent 100%);
}
.hero-feature-content {
  position: relative; z-index: 1; height: 100%;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
@media (min-width: 1024px) { .hero-feature-content { padding: 40px; } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--teal-700);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.chip-dark { background: rgba(11,31,30,.7); color: #fff; }
.hero-title {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 32px; line-height: 1.05;
  max-width: 720px;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .hero-title { font-size: 40px; } }
@media (min-width: 1024px) { .hero-title { font-size: 52px; } }
.hero-excerpt { margin-top: 16px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.88); max-width: 600px; }
@media (min-width: 1024px) { .hero-excerpt { font-size: 18px; } }
.hero-meta { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

.hero-side { display: flex; flex-direction: column; gap: 24px; }
.hero-side-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-side-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.hero-side-thumb {
  width: 128px; flex-shrink: 0;
  background-size: cover; background-position: center;
  background-color: var(--teal-100);
}
.hero-side-body { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-side-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sun-600);
}
.hero-side-title {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 18px; line-height: 1.3; margin-top: 8px;
  color: var(--ink);
}
.hero-side-date { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Search strip ---------- */
.search-strip {
  position: relative;
  background: var(--teal-900);
  color: #fff;
  overflow: hidden;
}
.search-strip::before, .search-strip::after {
  content: ""; position: absolute; width: 384px; height: 384px;
  border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.search-strip::before { top: -128px; right: -128px; background: rgba(249,115,22,.2); }
.search-strip::after  { bottom: -128px; left: -128px; background: rgba(20,184,166,.2); }
.search-strip-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15,118,110,.18) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .35;
}
.search-strip-inner { position: relative; z-index: 1; padding: 56px 0; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .search-strip-inner { grid-template-columns: 2fr 3fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sun-400);
}
.eyebrow-line { width: 24px; height: 1px; background: currentColor; }
.section-title {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 30px; line-height: 1.15; margin: 12px 0 0;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) { .section-title { font-size: 38px; } }
.search-strip p { margin-top: 12px; color: rgba(209,250,229,.85); max-width: 480px; }
.search-strip p strong { color: #fff; font-weight: 600; }

.search-box {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .search-box { flex-direction: row; align-items: stretch; } }
.search-input-wrap { display: flex; align-items: center; gap: 12px; flex: 1; padding: 0 16px; }
.search-input-wrap input { width: 100%; padding: 12px 0; background: transparent; border: 0; outline: 0; font-size: 14px; }
.search-input-wrap input::placeholder { color: var(--muted); }
.search-divider { display: none; align-items: center; padding: 0 8px; }
.search-divider span { width: 1px; height: 28px; background: var(--line); }
@media (min-width: 640px) { .search-divider { display: flex; } }
.search-select-wrap { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.search-select-wrap select { background: transparent; border: 0; outline: 0; padding: 12px 24px 12px 0; font-size: 14px; }
.search-submit {
  background: var(--sun-500); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 12px;
  flex-shrink: 0;
  transition: background .2s ease;
}
.search-submit:hover { background: var(--sun-600); }

.popular-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; align-items: center; }
.popular-row .label { color: rgba(209,250,229,.85); margin-right: 4px; }
.popular-row a { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); transition: background .2s ease; }
.popular-row a:hover { background: rgba(255,255,255,.2); }

/* ---------- Section common ---------- */
.section { padding: 80px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--teal-soft { background: var(--teal-50); }
.section--ink { background: var(--ink); color: #fff; }
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-head .eyebrow { color: var(--teal-700); }
.section-head .eyebrow--sun { color: var(--sun-600); }
.section-head .section-title { color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.view-all {
  font-size: 14px; font-weight: 600; color: var(--teal-700);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s ease;
}
.view-all:hover { color: var(--sun-600); }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: all .25s ease;
}
.cat-tile:hover {
  border-color: var(--teal-700);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-100); color: var(--teal-800);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .25s ease;
}
.cat-tile:hover .cat-icon { background: var(--teal-700); color: #fff; }
.cat-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--ink); }
.cat-count { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Filter pills ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 12px; font-weight: 600;
  transition: background .2s ease;
}
.pill:hover { background: var(--teal-100); }
.pill.is-active { background: var(--ink); color: #fff; }

/* ---------- Article cards (Latest) ---------- */
.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: var(--teal-100);
}
.card-thumb .chip { position: absolute; top: 16px; left: 16px; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 20px; line-height: 1.3;
  color: var(--ink);
}
.card-excerpt {
  font-size: 14px; color: var(--muted); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: 16px; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}

.section-bottom-cta { margin-top: 48px; text-align: center; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 999px;
  transition: background .2s ease;
}
.btn-pill:hover { background: var(--teal-900); }

/* ---------- Editor's picks mosaic ---------- */
.mosaic {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 1024px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }
.mosaic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 300px;
  background-size: cover; background-position: center;
  background-color: var(--teal-800);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mosaic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mosaic-card--lg { min-height: 400px; }
@media (min-width: 1024px) { .mosaic-card--span2 { grid-column: span 2; } }
.mosaic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top right, rgba(11,31,30,.9), rgba(11,31,30,.4), transparent);
}
.mosaic-body {
  position: relative; z-index: 1; height: 100%;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.mosaic-card--lg .mosaic-body { padding: 32px; }
.mosaic-title {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 22px; line-height: 1.2;
}
.mosaic-card--lg .mosaic-title { font-size: 30px; }
@media (min-width: 1024px) { .mosaic-card--lg .mosaic-title { font-size: 36px; } }
.mosaic-excerpt { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.85); max-width: 520px; }
.mosaic-rating { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.8); }
.mosaic-stars { color: var(--sun-400); letter-spacing: 1px; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  text-align: center;
}
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); text-align: left; } }
.stat-num { font-family: 'Fraunces', serif; font-weight: 700; font-size: 40px; color: var(--sun-400); line-height: 1; }
.stat-label { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* ---------- Dual CTAs ---------- */
.dual-cta { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .dual-cta { grid-template-columns: 1fr 1fr; } }
.feature-block {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.feature-block--teal { background: var(--teal-900); }
.feature-block--sun { background: var(--sun-500); }
.feature-block::after {
  content: ""; position: absolute;
  width: 192px; height: 192px; border-radius: 50%;
  filter: blur(40px);
  transition: transform .25s ease;
}
.feature-block--teal::after { top: -40px; right: -40px; background: rgba(249,115,22,.25); }
.feature-block--sun::after  { bottom: -40px; left: -40px;  background: rgba(15,118,110,.35); }
.feature-block:hover::after { transform: scale(1.1); }
.feature-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 12px;
}
.feature-block--teal .feature-eyebrow { color: var(--sun-400); }
.feature-block--sun  .feature-eyebrow { color: var(--teal-900); }
.feature-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 28px; line-height: 1.15; }
.feature-block p { margin-top: 12px; max-width: 420px; }
.feature-block--teal p { color: rgba(209,250,229,.85); }
.feature-block--sun  p { color: rgba(255,255,255,.92); }
.feature-arrow {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
}

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.newsletter .eyebrow { color: var(--teal-700); justify-content: center; }
.newsletter .section-title { color: var(--ink); }
.newsletter p { color: var(--muted); margin-top: 12px; }
.newsletter-form {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 440px; margin-left: auto; margin-right: auto;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  outline: 0;
  transition: border-color .2s ease;
}
.newsletter-form input:focus { border-color: var(--teal-700); }
.newsletter-form button {
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 14px 24px; border-radius: 999px;
  transition: background .2s ease;
}
.newsletter-form button:hover { background: var(--teal-900); }
.newsletter-fine { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer-inner { padding: 64px 0 40px; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .site-footer-inner { grid-template-columns: repeat(12, 1fr); } }
.footer-brand { grid-column: span 12; }
@media (min-width: 768px) { .footer-brand { grid-column: span 4; } }
.footer-brand .brand-name, .footer-brand .brand-tagline { color: #fff; }
.footer-brand .brand-tagline { color: rgba(255,255,255,.6); }
.footer-brand .brand-mark { background: var(--sun-500); color: var(--ink); }
.footer-about { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 20px; max-width: 360px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--sun-500); }

.footer-col { grid-column: span 6; }
@media (min-width: 768px) { .footer-col { grid-column: span 2; } }
.footer-col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(255,255,255,.8); }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: var(--sun-400); }

.footer-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.6);
}
@media (min-width: 640px) { .footer-base { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Single post ---------- */
.single-hero { padding: 60px 0 32px; background: var(--paper); }
.single-hero .container { max-width: 800px; }
.single-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.single-meta a { color: var(--sun-600); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.single-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 38px; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
@media (min-width: 1024px) { .single-title { font-size: 52px; } }
.single-featured { margin: 32px 0; border-radius: var(--radius-lg); overflow: hidden; max-width: 1000px; margin-left: auto; margin-right: auto; }
.single-featured img { width: 100%; height: auto; display: block; }
.single-content { padding: 0 0 80px; }
.single-content .container { max-width: 720px; }
.single-content p, .single-content ul, .single-content ol { font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 20px; }
.single-content ul, .single-content ol { padding-left: 24px; }
.single-content ul li, .single-content ol li { margin-bottom: 8px; list-style: disc; }
.single-content ol li { list-style: decimal; }
.single-content h2 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 28px; line-height: 1.2; margin: 40px 0 16px; color: var(--ink); }
.single-content h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; margin: 32px 0 12px; color: var(--ink); }
.single-content a { color: var(--teal-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.single-content a:hover { color: var(--sun-600); }
.single-content blockquote { border-left: 4px solid var(--sun-500); padding: 4px 0 4px 24px; font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; color: var(--ink); margin: 32px 0; }
.single-content img { border-radius: var(--radius-md); margin: 24px 0; }

/* ---------- Archive / Category ---------- */
.archive-header { background: var(--teal-900); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.archive-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 14px 14px;
}
.archive-header .container { position: relative; z-index: 1; }
.archive-header .eyebrow { color: var(--sun-400); }
.archive-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 42px; line-height: 1.1; margin-top: 12px; color: #fff; letter-spacing: -0.01em; }
@media (min-width: 1024px) { .archive-title { font-size: 56px; } }
.archive-desc { color: rgba(209,250,229,.85); margin-top: 12px; max-width: 640px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: all .2s ease;
}
.pagination .page-numbers:hover { background: var(--teal-50); border-color: var(--teal-700); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Utilities ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.placeholder-gradient { background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 60%, var(--sun-500) 130%); }
.ph-2 { background: linear-gradient(135deg, #115E59 0%, #0E5E5A 50%, #F97316 120%); }
.ph-3 { background: linear-gradient(135deg, #422006 0%, #C2410C 60%, #FB923C 100%); }
.ph-4 { background: linear-gradient(135deg, #064E3B 0%, #047857 60%, #FBBF24 110%); }
.ph-5 { background: linear-gradient(135deg, #1E3A8A 0%, #0E7490 50%, #14B8A6 110%); }
.ph-6 { background: linear-gradient(135deg, #831843 0%, #BE185D 60%, #FB923C 110%); }
.ph-7 { background: linear-gradient(135deg, #064E3B 0%, #0F766E 60%, #99F6E4 110%); }
.ph-8 { background: linear-gradient(135deg, #7C2D12 0%, #C2410C 60%, #FED7AA 110%); }
.ph-9 { background: linear-gradient(135deg, #0B4F4A 0%, #115E59 60%, #6EE7B7 110%); }

/* ==========================================================================
   Mobile responsive fixes (v1.0.2)
   ========================================================================== */

@media (max-width: 720px) {
  .topbar-inner { padding: 0 14px; }
  .topbar-left span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: inline-block; max-width: 100%;
  }
  .topbar-right .topbar-utility,
  .topbar-right > a:not([aria-label]),
  .topbar-divider { display: none; }
  .topbar-social { gap: 12px; }
  .topbar-right { gap: 12px; flex-shrink: 0; align-items: center; }
}
@media (max-width: 480px) {
  .topbar { font-size: 11px; }
  .topbar-inner { height: 34px; padding: 0 12px; }
  .topbar-social a svg { width: 13px; height: 13px; }
}

@media (max-width: 1024px) {
  .header-inner { padding: 0 16px; gap: 14px; height: 70px; }
  .brand { min-width: 0; flex-shrink: 1; overflow: hidden; gap: 10px; }
  .brand > span { min-width: 0; overflow: hidden; }
  .brand-name { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-tagline { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
  .header-actions { gap: 4px; flex-shrink: 0; }
  .icon-btn { width: 40px; height: 40px; }
  .menu-toggle { display: grid !important; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; gap: 10px; height: 62px; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; font-size: 17px; }
  .header-actions { gap: 2px; }
  .icon-btn { width: 38px; height: 38px; }
}

.mobile-menu ul { padding: 0; margin: 0; list-style: none; }
.mobile-menu li { display: block; }
.mobile-menu li a {
  display: block; padding: 14px 20px;
  font-size: 15px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-menu li a:hover,
.mobile-menu li a:active { background: var(--teal-50); }
.mobile-menu li:last-child a { border-bottom: 0; }

@media (max-width: 720px) {
  .hero { padding: 24px 0 36px; }
  .ticker-inner { padding: 0 14px; gap: 10px; }
  .ticker-label { font-size: 10px; padding: 4px 8px; }
  .ticker-track { font-size: 13px; gap: 28px; }
  .hero-feature { min-height: 380px; border-radius: 18px; }
  .hero-feature-content { padding: 22px; }
  .hero-title { font-size: 26px; }
  .hero-excerpt { font-size: 14px; margin-top: 10px; }
  .hero-side-card { border-radius: 14px; }
  .hero-side-thumb { width: 96px; }
  .hero-side-body { padding: 14px; }
  .hero-side-title { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
}

/* === Category tile + horizontal overflow fix (v1.0.3) === */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 720px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .cat-tile { padding: 14px; gap: 12px; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-icon svg { width: 18px; height: 18px; }
  .cat-name { font-size: 14px; line-height: 1.2; }
  .cat-count { font-size: 11px; }
  .section-head { gap: 10px; }
  .view-all { font-size: 13px; }
  .card-grid { gap: 18px; }
  .card-title { font-size: 18px; }
  .card-body { padding: 16px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .cat-tile { padding: 14px 16px; gap: 14px; align-items: center; }
  .cat-icon { width: 42px; height: 42px; flex-shrink: 0; }
  .cat-icon svg { width: 20px; height: 20px; }
  .cat-name { font-size: 16px; }
}

/* === Footer mobile fix (v1.0.4) === */

@media (max-width: 720px) {
  .newsletter { padding: 0 20px; }
  .newsletter .section-title { font-size: 22px; line-height: 1.25; }
  .newsletter p { font-size: 14px; }
  .newsletter-form {
    flex-direction: column !important;
    gap: 10px; max-width: 100%; width: 100%;
  }
  .newsletter-form input,
  .newsletter-form button { width: 100%; max-width: 100%; box-sizing: border-box; }
  .newsletter-form input { padding: 13px 18px; }
  .newsletter-form button { padding: 13px 24px; }
}

@media (max-width: 767px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 20px;
    padding: 48px 0 28px;
  }
  .footer-brand { grid-column: 1 / -1 !important; }
  .footer-col { grid-column: span 1 !important; min-width: 0; }
  .footer-col h4 { margin-bottom: 12px; font-size: 10px; }
  .footer-col ul { gap: 9px; font-size: 13px; }
  .footer-col a {
    display: inline-block;
    word-wrap: break-word; overflow-wrap: break-word; max-width: 100%;
  }
  .footer-about { font-size: 13px; line-height: 1.55; max-width: 100%; }
}

@media (max-width: 460px) {
  .site-footer-inner {
    grid-template-columns: 1fr !important; gap: 26px;
  }
  .footer-col { grid-column: 1 / -1 !important; }
  .footer-col ul { font-size: 14px; gap: 10px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-brand { margin-bottom: 4px; }
}

@media (max-width: 720px) {
  .footer-base {
    padding-top: 20px; margin-top: 40px;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px; font-size: 11px;
  }
}

.site-footer, .site-footer * { box-sizing: border-box; }
@media (max-width: 720px) {
  .site-footer .container { max-width: 100%; overflow: hidden; }
}
