/* ============================================================
   FINANCE PULSE — Global Stylesheet (Light Edition)
   Light Editorial Financial News Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* === CSS Variables === */
:root {
  --bg: #f5f2ec;
  --bg-alt: #ede8df;
  --surface: #ffffff;
  --surface-light: #faf8f4;
  --surface-hover: #f9f7f2;
  --border: #e2ddd3;
  --border-light: #d4cfc5;
  --gold: #b8860b;
  --gold-bright: #d4a017;
  --gold-dark: #8b6508;
  --gold-light: #fdf5e0;
  --gold-bg: rgba(184,134,11,0.06);
  --text: #1a1612;
  --text-secondary: #5c564c;
  --text-muted: #9a9389;
  --green: #1a7a4c;
  --green-bg: #e6f5ed;
  --red: #c0392b;
  --red-bg: #fce8e6;
  --blue: #2563eb;
  --blue-bg: #eef0ff;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(26,22,18,0.06);
  --shadow-md: 0 4px 16px rgba(26,22,18,0.08);
  --shadow-lg: 0 12px 40px rgba(26,22,18,0.10);
  --shadow-gold: 0 4px 24px rgba(184,134,11,0.10);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1280px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* === Grain Overlay === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245,242,236,0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  color: var(--text);
}

.logo .logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-search {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.nav-search:hover {
  background: var(--gold-bg);
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 85vw);
  height: 100vh;
  background: var(--surface);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 100px 40px 40px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(26,22,18,0.08);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
  padding-left: 12px;
}

.mobile-menu .mobile-search {
  margin-top: 32px;
  display: flex;
  gap: 0;
}

.mobile-menu .mobile-search input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-body);
}

.mobile-menu .mobile-search input::placeholder {
  color: var(--text-muted);
}

.mobile-menu .mobile-search button {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-body);
}

/* ============================================================
   TICKER BAR
   ============================================================ */
.ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
  padding-left: 20px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px;
  font-size: 0.78rem;
  font-weight: 500;
}

.ticker-item .symbol {
  color: var(--text-muted);
  font-weight: 600;
}

.ticker-item .price {
  color: var(--text);
}

.ticker-item .change {
  font-weight: 600;
  font-size: 0.72rem;
}

.ticker-item .change.up { color: var(--green); }
.ticker-item .change.down { color: var(--red); }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #faf6ee 0%, #f0eadf 30%, #e8e0d2 60%, #f5f0e5 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.54;
  background-image:
    radial-gradient(circle at 25% 35%, var(--gold) 0.8px, transparent 0.8px),
    radial-gradient(circle at 75% 65%, var(--gold) 0.5px, transparent 0.5px);
  background-size: 50px 50px, 35px 35px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,11,0.06) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-bg);
  border: 1px solid rgba(184,134,11,0.18);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-cat {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-excerpt {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-meta .author {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 24px;
  transition: var(--transition);
}

.hero-link:hover { gap: 14px; }

.hero-link .arrow {
  transition: var(--transition);
  font-size: 1.1rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section {
  padding: 52px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.section-title .accent-bar {
  width: 4px;
  height: 24px;
  background: var(--gold);
  border-radius: 2px;
}

.section-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-link:hover { gap: 10px; }

/* ============================================================
   CARD: HIGHLIGHT (3-col grid)
   ============================================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.card-highlight:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.card-highlight .card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-highlight .card-img .img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.card-highlight:hover .img-inner {
  transform: scale(1.06);
}

.card-highlight .card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--surface), transparent);
}

.card-highlight .card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: var(--transition);
  color: var(--text);
}

.card-highlight:hover .card-title {
  color: var(--gold);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ============================================================
   CARD: MEDIUM (with side image)
   ============================================================ */
.medium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card-medium {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-medium:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.card-medium .card-img {
  width: 200px;
  min-height: 175px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.card-medium .card-img .img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.card-medium:hover .img-inner {
  transform: scale(1.06);
}

.card-medium .card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-medium .card-title {
  font-size: 1.08rem;
}

.card-medium:hover .card-title {
  color: var(--gold);
}

.card-medium .card-excerpt {
  -webkit-line-clamp: 2;
}

/* ============================================================
   CARD: COMPACT (horizontal, small)
   ============================================================ */
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-compact:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.card-compact .card-img {
  width: 130px;
  min-height: 95px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-compact .card-img .img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.card-compact:hover .img-inner {
  transform: scale(1.05);
}

.card-compact .card-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-compact .card-title {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.card-compact:hover .card-title {
  color: var(--gold);
}

.card-compact .card-meta {
  font-size: 0.73rem;
}

/* ============================================================
   CARD: MINIMAL (text only, numbered)
   ============================================================ */
.minimal-list {
  display: flex;
  flex-direction: column;
}

.card-minimal {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.card-minimal:last-child {
  border-bottom: none;
}

.card-minimal:hover {
  padding-left: 8px;
}

.card-minimal .card-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  min-width: 32px;
  padding-top: 2px;
  transition: var(--transition);
}

.card-minimal:hover .card-num {
  opacity: 0.8;
  color: var(--gold-bright);
}

.card-minimal .card-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.card-minimal:hover .card-title {
  color: var(--gold);
}

.card-minimal .card-meta {
  font-size: 0.73rem;
}

/* ============================================================
   CARD: LIST (full-width, for category page)
   ============================================================ */
.card-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-list:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.card-list .card-img {
  width: 280px;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.card-list .card-img .img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.card-list:hover .img-inner {
  transform: scale(1.06);
}

.card-list .card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-list .card-title {
  font-size: 1.25rem;
}

.card-list:hover .card-title {
  color: var(--gold);
}

/* ============================================================
   TWO-COL LAYOUT (index page)
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.two-col .sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
}

.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.cat-hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
}

.cat-hero .gold-line {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: 20px;
  border-radius: 2px;
}

/* Filters */
.filters {
  display: flex;
  gap: 8px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 60px;
}

.page-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}

.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-hero {
  position: relative;
  height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #faf6ee 0%, #f0eadf 40%, #e8e0d2 100%);
}

.detail-hero .hero-pattern {
  opacity: 0.04;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 5%, transparent 60%);
  z-index: 1;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
}

.detail-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 0 28px;
}

.detail-header .card-cat {
  margin-bottom: 16px;
}

.detail-header .detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail-meta .author-name {
  color: var(--text);
  font-weight: 600;
}

.detail-meta .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
}

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 60px;
}

/* Article Body */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 18px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 14px;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--gold-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
}

.article-body ul, .article-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
  list-style: disc;
  color: var(--text-secondary);
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body .stat-box {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.article-body .stat-box .stat-item .stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.article-body .stat-box .stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 36px;
}

.share-bar span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.share-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-self: start;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.sidebar-title .accent-bar {
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}

.sidebar-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-card:last-child {
  border-bottom: none;
}

.sidebar-card:hover {
  padding-left: 6px;
}

.sidebar-card .sb-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  min-width: 24px;
  line-height: 1.2;
}

.sidebar-card:hover .sb-num {
  opacity: 0.7;
}

.sidebar-card .sb-title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: var(--transition);
}

.sidebar-card:hover .sb-title {
  color: var(--gold);
}

.sidebar-card .sb-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Author Card */
.author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.author-card .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 auto 14px;
}

.author-card .author-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.author-card .author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.author-card .author-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
  margin: 20px 0 52px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,134,11,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  color: var(--text);
}

.newsletter p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95rem;
  position: relative;
}

.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  padding: 14px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-body);
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

.newsletter-form button {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--gold-bright);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {

  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: var(--transition);
  color: var(--text-secondary);
  background: var(--surface);
}

.footer-socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ============================================================   LEGAL PAGES (Privacy & Terms)   ============================================================ */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 48px 40px;
  border: 1px solid var(--border);
}

.legal-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-content .title {
  margin-bottom: 40px;
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-content .title:first-child {
  border-top: none;
  padding-top: 0;
}

.legal-content .title h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-content .anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.legal-content .anchor-link:hover {
  background: var(--gold);
  color: #fff;
  transform: scale(1.1);
}

/* Table of Contents */
.toc-container {
  background: var(--gold-light);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
}

.toc-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}

.toc-container h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.toc-container p {
  margin-bottom: 8px;
}

.toc-container a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 4px 0;
}

.toc-container a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

/* Highlighted text */
.legal-content .highlight {
  color: var(--gold);
  font-weight: 500;
}

/* Lists in legal content */
.legal-content ul {
  margin: 20px 0;
  padding-left: 24px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================   ANIMATIONS   ============================================================ */
.reveal {
  opacity: 1;
  transform: translateY(0px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   IMAGE GRADIENT BACKGROUNDS (Light)
   ============================================================ */
.grad-gold    { background: linear-gradient(135deg, #fdf5e0 0%, #f5ead0 50%, #ede0c4 100%); }
.grad-blue    { background: linear-gradient(135deg, #e8eef8 0%, #dbe5f5 50%, #cdd9ee 100%); }
.grad-green   { background: linear-gradient(135deg, #e2f2e8 0%, #d4eadb 50%, #c6e2ce 100%); }
.grad-red     { background: linear-gradient(135deg, #fce8e6 0%, #f5d6d3 50%, #ecc4c0 100%); }
.grad-purple  { background: linear-gradient(135deg, #eee8f5 0%, #e2d9ee 50%, #d6cae8 100%); }
.grad-teal    { background: linear-gradient(135deg, #e0f0f0 0%, #d0e8e8 50%, #c0e0e0 100%); }
.grad-warm    { background: linear-gradient(135deg, #faf0e0 0%, #f2e4ce 50%, #e8d8ba 100%); }

.img-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  opacity: 0.2;
  color: var(--gold);
  user-select: none;
}

.card-compact .img-inner {
  font-size: 1.6rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights-grid .card-highlight:last-child {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 420px; }
  .hero-content { padding: 40px 0; }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid .card-highlight:last-child {
    display: block;
  }

  .medium-grid {
    grid-template-columns: 1fr;
  }

  .card-medium .card-img {
    width: 150px;
    min-height: 140px;
  }

  .card-list {
    flex-direction: column;
  }

  .card-list .card-img {
    width: 100%;
    min-height: 180px;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .newsletter {
    padding: 36px 20px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input {
    border-right: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .newsletter-form button {
    border-radius: var(--radius-sm);
  }

  .article-body .stat-box {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-hero {
    height: 300px;
  }

  /* Legal pages responsive */
  .legal-content {
    padding: 32px 24px;
  }

  .legal-content .title h3 {
    font-size: 1.2rem;
  }

  .toc-container {
    padding: 20px 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .card-compact .card-img {
    width: 100px;
    min-height: 80px;
  }

  .card-medium {
    flex-direction: column;
  }

  .card-medium .card-img {
    width: 100%;
    min-height: 180px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .section {
    padding: 6px 0;
  }

  /* Legal pages responsive */
  .legal-content {
    padding: 24px 16px;
  }

  .legal-content .title h3 {
    font-size: 1.1rem;
  }

  .toc-container {
    padding: 16px 20px;
  }

  .toc-container h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .card-compact .card-img {
    width: 100px;
    min-height: 80px;
  }

  .card-medium {
    flex-direction: column;
  }

  .card-medium .card-img {
    width: 100%;
    min-height: 180px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .section {
    padding: 6px 0;
  }
}
