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

:root {
  --navy:   #1E3A5F;
  --navy2:  #162d4a;
  --orange: #F97316;
  --orange2:#EA6010;
  --white:  #FFFFFF;
  --gray:   #F8FAFC;
  --text:   #0F172A;
  --muted:  #64748B;
  --border: #E2E8F0;
}

html { scroll-behavior: smooth; }

/* ─── PERSISTENT BEACON BACKDROP (shared with main site) ──
   Same fixed photo + revolving-beam effect as the main site. Fixed
   full-viewport, z-index BELOW every section so opaque sections (blog
   card backgrounds, footer) naturally cover it on scroll -- it only
   shows through .blog-hero / .article-hero, whose backgrounds are
   overridden below to a translucent scrim instead of a solid fill. */
.beacon-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.beacon-frame { position: absolute; top: 130px; left: 0; width: 100%; height: 100vh; }
.beacon-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.beacon-lamp {
  position: absolute; top: 16.8%; left: 50%; width: 46px; height: 46px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,251,235,1) 0%, rgba(253,214,150,0.9) 40%, rgba(249,168,90,0.5) 65%, rgba(249,168,90,0) 80%);
  filter: blur(2px);
  animation: beaconPulse 2.3s ease-in-out infinite, beaconFlash 10s linear infinite;
  mix-blend-mode: screen;
}
.beacon-beam {
  position: absolute; top: 16.8%; left: 50%; width: 46vw; max-width: 640px; height: 90px;
  transform-origin: 0% 50%;
  transform: translateY(-50%) scaleX(1);
  background: linear-gradient(90deg,
    rgba(255,251,235,0.95) 0%,
    rgba(253,200,130,0.55) 40%,
    rgba(253,200,130,0.15) 75%,
    transparent 100%);
  clip-path: polygon(0% 38%, 100% 0%, 100% 100%, 0% 62%);
  filter: blur(6px);
  animation: beaconSweep 10s linear infinite;
  mix-blend-mode: screen;
}
@keyframes beaconSweep {
  0%   { transform: translateY(-50%) scaleX(1);     opacity: 0.95; }
  22%  { transform: translateY(-50%) scaleX(0.12);  opacity: 0.25; }
  25%  { transform: translateY(-50%) scaleX(0);     opacity: 0; }
  28%  { transform: translateY(-50%) scaleX(-0.12); opacity: 0.25; }
  50%  { transform: translateY(-50%) scaleX(-1);    opacity: 0.95; }
  72%  { transform: translateY(-50%) scaleX(-0.12); opacity: 0.25; }
  75%  { transform: translateY(-50%) scaleX(0);     opacity: 0; }
  78%  { transform: translateY(-50%) scaleX(0.12);  opacity: 0.25; }
  100% { transform: translateY(-50%) scaleX(1);     opacity: 0.95; }
}
@keyframes beaconFlash {
  0%, 20%, 30%, 70%, 80%, 100% { filter: blur(2px) brightness(1); }
  25%, 75% { filter: blur(2px) brightness(1.9); }
}
@keyframes beaconPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .beacon-lamp, .beacon-beam { animation: none; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

/* ─── NAV (shared with main site) ─────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-brand span { color: var(--white); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-badge {
  background: var(--orange); color: var(--white); font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ─── ARTICLE HEADER ──────────────────────────────── */
.article-hero {
  background: linear-gradient(100deg, rgba(9,20,36,0.62) 0%, rgba(9,20,36,0.4) 55%, rgba(9,20,36,0.2) 100%);
  color: var(--white);
  padding: 56px 5% 48px;
}
.article-hero-inner { max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.article-eyebrow {
  display: inline-block; background: rgba(249,115,22,0.2); border: 1px solid rgba(249,115,22,0.4);
  color: #FCA663; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.article-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.2;
  letter-spacing: -0.5px; margin-bottom: 14px;
}
.article-meta { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ─── ARTICLE BODY ────────────────────────────────── */
.article-body { max-width: 720px; margin: 0 auto; padding: 48px 5% 24px; }
.article-body h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 40px 0 16px; letter-spacing: -0.3px;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 28px 0 12px;
}
.article-body p { font-size: 1.02rem; color: var(--text); margin-bottom: 18px; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { font-size: 1.02rem; color: var(--text); margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--navy); }
.article-body table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.92rem; }
.article-body th {
  background: var(--navy); color: var(--white); text-align: left; padding: 10px 14px; font-weight: 700;
}
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: var(--gray); }

/* ─── FEATURE CALLOUT ─────────────────────────────── */
.callout {
  background: var(--gray); border: 1.5px solid var(--border); border-left: 4px solid var(--orange);
  border-radius: 12px; padding: 22px 24px; margin: 32px 0;
}
.callout-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--orange2); margin-bottom: 8px;
}
.callout p { margin-bottom: 0; font-size: 0.96rem; color: var(--text); }
.callout a { color: var(--orange2); font-weight: 700; text-decoration: none; }
.callout a:hover { text-decoration: underline; }

/* ─── DISCLAIMER ──────────────────────────────────── */
.disclaimer {
  max-width: 720px; margin: 24px auto 0; padding: 16px 5% 0;
  font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px;
}

/* ─── RELATED / BACK LINK ─────────────────────────── */
.back-link {
  max-width: 720px; margin: 0 auto; padding: 0 5% 56px;
}
.back-link a {
  color: var(--orange2); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.back-link a:hover { text-decoration: underline; }

/* ─── BLOG INDEX ──────────────────────────────────── */
.blog-hero {
  background: linear-gradient(100deg, rgba(9,20,36,0.62) 0%, rgba(9,20,36,0.4) 55%, rgba(9,20,36,0.2) 100%);
  color: var(--white); padding: 64px 5% 48px; text-align: center;
}
.blog-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.blog-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.blog-grid {
  max-width: 960px; margin: 0 auto; padding: 56px 5%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  text-decoration: none; display: block; transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(30,58,95,0.1); }
.blog-card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--orange2); background: #FFF7ED; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px;
}
.blog-card h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ─── FOOTER (shared with main site) ──────────────── */
footer {
  background: var(--navy2); color: rgba(255,255,255,0.6); padding: 40px 5%;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; border-radius: 6px; }
.footer-brand span { color: var(--white); font-weight: 700; font-size: 0.95rem; }
footer p { font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
