@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

/* Basic reset - nothing fancy here */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --dark: #0f1923;
  --accent: #c7420d;
  --accent-hover: #a83509;
  --bg: #f7f5f1;
  --bg-card: #ffffff;
  --text: #222222;
  --text-mid: #555555;
  --text-light: #888888;
  --border: #e0dbd3;
  --nav-bg: #0f1923;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Inter', -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ==============================
   TYPOGRAPHY
============================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--dark);
}

p {
  margin-bottom: 1em;
}

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

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==============================
   HEADER & NAVIGATION
============================== */

.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span:first-child {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.logo-text span:last-child {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Navigation links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.main-nav a.active {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.25s;
}

.mobile-nav {
  display: none;
  background: #151f2c;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: #fff;
}

/* ==============================
   TOP TICKER / BREAKING BAR
============================== */

.top-bar {
  background: var(--accent);
  padding: 6px 0;
  overflow: hidden;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar .label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background: rgba(0,0,0,0.2);
  padding: 2px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.top-bar .ticker-text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

/* ==============================
   HERO SECTION
============================== */

.hero {
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto;
  gap: 24px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dark);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-main .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Fallback gradient when no image */
.hero-main .hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #2c1654 60%, #0f1923 100%);
}

.hero-main .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.hero-main-content .cat-badge {
  margin-bottom: 10px;
}

.hero-main-content h1 {
  font-size: 2.1rem;
  color: #fff;
  margin-bottom: 12px;
  max-width: 620px;
}

.hero-main-content .excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta .author {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-ui);
}

.hero-meta .date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-ui);
}

/* Hero sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  gap: 14px;
  padding: 14px;
  -webkit-transition: -webkit-box-shadow 0.2s;
  transition: box-shadow 0.2s;
}

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

.hero-side-card .thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 3px;
  overflow: hidden;
}

.hero-side-card .card-body {
  flex: 1;
  min-width: 0;
}

.hero-side-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-card h3 a:hover {
  color: var(--accent);
}

.hero-side-card .meta {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: var(--text-light);
}

/* ==============================
   CATEGORY BADGE / TAGS
============================== */

.cat-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
}

.cat-badge:hover {
  background: var(--accent);
  color: #fff;
}

.cat-badge.filled {
  background: var(--accent);
  color: #fff;
}

.cat-badge.lifestyle { border-color: #2e7d32; color: #2e7d32; }
.cat-badge.lifestyle:hover, .cat-badge.lifestyle.filled { background: #2e7d32; color: #fff; }

.cat-badge.technology { border-color: #1565c0; color: #1565c0; }
.cat-badge.technology:hover, .cat-badge.technology.filled { background: #1565c0; color: #fff; }

.cat-badge.travel { border-color: #6a1b9a; color: #6a1b9a; }
.cat-badge.travel:hover, .cat-badge.travel.filled { background: #6a1b9a; color: #fff; }

.cat-badge.food { border-color: #e65100; color: #e65100; }
.cat-badge.food:hover, .cat-badge.food.filled { background: #e65100; color: #fff; }

.cat-badge.culture { border-color: #00695c; color: #00695c; }
.cat-badge.culture:hover, .cat-badge.culture.filled { background: #00695c; color: #fff; }

/* ==============================
   SECTION DIVIDER
============================== */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dark);
}

.section-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.section-head .see-all {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.section-head .see-all:hover {
  text-decoration: underline;
}

/* ==============================
   ARTICLE CARDS
============================== */

.articles-section {
  padding: 40px 0;
}

.articles-section + .articles-section {
  border-top: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-thumb {
  width: 100%;
  padding-top: 58%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card-thumb-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Placeholder gradients for article thumbnails */
.grad-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.grad-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.grad-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.grad-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.grad-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.grad-6 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.grad-7 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.grad-8 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
.grad-9 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.grad-10 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.grad-11 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.grad-12 { background: linear-gradient(135deg, #fda085 0%, #f6d365 100%); }
.grad-13 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.grad-14 { background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%); }
.grad-15 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .cat-badge {
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.35;
  flex: 1;
}

.card-body h3 a {
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
}

.card-body h3 a:hover {
  color: var(--accent);
}

.card-body .excerpt {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta .author {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-mid);
  font-weight: 500;
}

.card-meta .date {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: var(--text-light);
}

.read-time {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Featured card (bigger) */
.card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.card.featured .card-thumb {
  width: 46%;
  padding-top: 0;
  flex-shrink: 0;
}

.card.featured .card-body {
  padding: 24px;
}

.card.featured h3 {
  font-size: 1.3rem;
}

/* ==============================
   AD BLOCKS
============================== */

.ad-block {
  margin: 32px 0;
}

.ad-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 6px;
}

.ad-container {
  background: #f0ede8;
  border: 1px solid #ddd9d3;
  border-radius: 3px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-container.leaderboard {
  min-height: 90px;
}

.ad-container.rectangle {
  min-height: 250px;
  max-width: 336px;
  margin: 0 auto;
}

.ad-container.billboard {
  min-height: 250px;
}

/* ==============================
   CATEGORY PAGE HERO
============================== */

.cat-hero {
  background: var(--dark);
  padding: 48px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    45deg,
    #ffffff 0px,
    #ffffff 1px,
    transparent 1px,
    transparent 20px
  );
}

.cat-hero-inner {
  position: relative;
  z-index: 1;
}

.cat-hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.cat-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0;
}

.cat-accent-bar {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px 0;
}

/* ==============================
   SINGLE ARTICLE PAGE
============================== */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0 64px;
}

.article-main {
  min-width: 0;
}

.article-header {
  margin-bottom: 32px;
}

.article-header .cat-badge {
  margin-bottom: 14px;
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-header .article-deck {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  font-family: var(--font-head);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
}

.byline-info {
  flex: 1;
}

.byline-info .name {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.byline-info .date-read {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

.article-featured-img {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}

.article-featured-img .img-placeholder {
  width: 100%;
  padding-top: 52%;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.article-featured-img .img-placeholder-inner {
  position: absolute;
  inset: 0;
}

.article-featured-img figcaption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* Article body typography */
.article-body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.8;
  color: #1e1e1e;
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.7em;
  padding-top: 0.3em;
  border-top: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1.18rem;
  margin: 1.6em 0 0.6em;
  color: var(--dark);
}

.article-body ul, .article-body ol {
  list-style: disc;
  padding-left: 1.8em;
  margin-bottom: 1.4em;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.8em 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-mid);
  font-family: var(--font-head);
}

.article-body strong {
  font-weight: 700;
  color: var(--dark);
}

/* Comparison tables */
.article-body .comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9rem;
  font-family: var(--font-ui);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.article-body .comparison-table th {
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.article-body .comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-body .comparison-table tr:nth-child(even) td {
  background: #f8f6f2;
}

.article-body .comparison-table tr:last-child td {
  border-bottom: none;
}

.article-body .comparison-table td.highlight {
  font-weight: 600;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  -webkit-overflow-scrolling: touch;
}

/* Verdict box */
.verdict-box {
  background: #fef8f0;
  border: 1px solid #f0c88a;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 2em 0;
}

.verdict-box h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.verdict-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #4a3520;
}

/* Tip/note box */
.tip-box {
  background: #f0f7ff;
  border: 1px solid #b3d4f7;
  border-left: 4px solid #1565c0;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 1.6em 0;
}

.tip-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #1a3c6e;
}

/* Tags */
.article-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-mid);
  background: #eee;
  padding: 4px 10px;
  border-radius: 30px;
  -webkit-transition: background 0.15s;
  transition: background 0.15s;
}

.tag:hover {
  background: #ddd;
  color: var(--text);
}

/* Article sidebar */
.article-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 88px;
  height: fit-content;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-section h4 {
  font-size: 0.85rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-article {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-article .s-thumb {
  width: 58px;
  height: 58px;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sidebar-article h5 {
  font-size: 0.85rem;
  line-height: 1.35;
  flex: 1;
}

.sidebar-article h5 a:hover {
  color: var(--accent);
}

.sidebar-article .s-cat {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ==============================
   FOOTER
============================== */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  margin-top: 48px;
}

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

.footer-brand .logo-area {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.55);
}

.footer-brand .company-info {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-col h5 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.footer-contact a {
  color: rgba(255,255,255,0.75);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* ==============================
   COOKIE CONSENT BANNER
============================== */

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cookie-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--accent);
  z-index: 9999;
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
}

.cookie-banner h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cookie-banner > .cookie-banner-inner > p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  -webkit-transition: all 0.18s;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #f0ede8;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e5e2dd;
}

.btn-outline {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-mid);
  color: var(--text);
}

/* Cookie settings panel */
.cookie-settings-panel {
  display: none;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.cookie-settings-panel.open {
  display: block;
}

.cookie-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-toggle-row:last-child {
  border-bottom: none;
}

.cookie-toggle-info h4 {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-toggle-info p {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin: 0;
  max-width: 520px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  background: #4CAF50;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ==============================
   LEGAL PAGES
============================== */

.legal-page-hero {
  background: var(--dark);
  padding: 44px 0;
  margin-bottom: 0;
}

.legal-page-hero h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 6px;
}

.legal-page-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin: 0;
}

.legal-content {
  max-width: 860px;
  padding: 48px 24px 64px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.2em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.5em 0 0.5em;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 1em;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.8em;
  margin-bottom: 1.2em;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.4em;
  color: #333;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.88rem;
}

.legal-content th {
  background: #f0ede8;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.legal-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

/* ==============================
   BREADCRUMBS
============================== */

.breadcrumbs {
  padding: 12px 0;
  margin-bottom: 4px;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumbs li {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-light);
}

.breadcrumbs li a {
  color: var(--text-light);
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
}

.breadcrumbs li a:hover {
  color: var(--accent);
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 6px;
  opacity: 0.4;
}

.breadcrumbs li:last-child::after {
  display: none;
}

/* ==============================
   PAGINATION
============================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}

.page-btn {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: var(--text-mid);
  cursor: pointer;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
}

.page-btn:hover, .page-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* ==============================
   UTILITIES & MISC
============================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.83rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent);
}

.back-link::before {
  content: '←';
  font-size: 1rem;
}

/* Star rating */
.star-rating {
  color: #f5a623;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ==============================
   RESPONSIVE / MEDIA QUERIES
============================== */

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

  .hero-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card.featured {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .article-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-main h1 {
    font-size: 1.55rem;
  }

  .hero-sidebar {
    grid-template-columns: 1fr;
  }

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

  .card.featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .card.featured .card-thumb {
    width: 100%;
    padding-top: 56%;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-main-content {
    padding: 20px;
  }

  .hero-main-content h1 {
    font-size: 1.3rem;
  }

  .cat-hero h1 {
    font-size: 2rem;
  }
}

/* ── YouTube / Video Embed ─────────────────────────────── */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin: 24px 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  font-size: 0.78rem;
  color: #888;
  margin: -16px 0 24px;
  padding-left: 4px;
}

.scene-entry {
  border-bottom: 1px solid #e8e5e0;
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.scene-entry:last-child {
  border-bottom: none;
}

.scene-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #c7420d;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 12px;
  font-family: var(--font-ui);
}

.reader-quote {
  border-left: 3px solid #c7420d;
  margin: 16px 0;
  padding: 12px 18px;
  background: #faf8f5;
  font-style: italic;
  color: #444;
  font-size: 0.93rem;
  border-radius: 0 3px 3px 0;
}

/* ── YouTube Search Placeholder ─────────────────────────── */
.yt-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 24px 0;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
}

.yt-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.yt-placeholder-icon {
  width: 56px;
  height: 56px;
  background: #ff0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-placeholder-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.yt-placeholder-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
}

.yt-placeholder-title {
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.3;
  max-width: 380px;
}

.yt-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: background 0.15s;
}

.yt-search-btn:hover {
  background: #cc0000;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .yt-placeholder-title { font-size: 0.78rem; }
  .yt-search-btn { font-size: 0.78rem; padding: 8px 14px; }
}
