
/* ==========================================================================
   Clean Editorial & Magazine CSS Framework v3 (100% Independent & Responsive)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; /* 17px readable base */
  line-height: 1.72;
  color: #1e293b;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: #0284c7; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #0369a1; }

.fw-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Utility Bar */
.fw-topbar-tl {
  background-color: #020617;
  color: #cbd5e1;
  font-size: 0.82rem;
  border-bottom: 1px solid #1e293b;
  padding: 7px 0;
}
.fw-topbar-sk {
  background-color: #064e3b;
  color: #ecfdf5;
  font-size: 0.82rem;
  border-bottom: 1px solid #047857;
  padding: 7px 0;
}
.fw-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fw-topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.fw-topbar-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}
.fw-topbar-links a:hover { opacity: 1; text-decoration: underline; }

/* Main Sticky Header */
.fw-header-tl {
  background-color: #0f172a;
  color: #ffffff;
  border-bottom: 3px solid #f59e0b;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.18);
}
.fw-header-sk {
  background-color: #ffffff;
  color: #0f172a;
  border-bottom: 3px solid #059669;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.fw-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.fw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.fw-logo {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  flex-shrink: 0;
  display: block;
  border-radius: 9px;
}
.fw-brand-title-tl {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}
.fw-brand-sub-tl {
  font-size: 0.8rem;
  color: #7dd3fc;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}
.fw-brand-title-sk {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}
.fw-brand-sub-sk {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* Main Navigation */
.fw-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fw-nav-link-tl {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9 !important;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.fw-nav-link-tl:hover { background-color: #1e293b; color: #ffffff !important; }
.fw-nav-cta-tl {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a !important;
  background-color: #f59e0b;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}
.fw-nav-cta-tl:hover { background-color: #fbbf24; }

.fw-nav-link-sk {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b !important;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.fw-nav-link-sk:hover { background-color: #f1f5f9; color: #059669 !important; }
.fw-nav-cta-sk {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff !important;
  background-color: #059669;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}
.fw-nav-cta-sk:hover { background-color: #047857; }

/* Hero Section */
.fw-hero-tl {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%);
  color: #ffffff;
  padding: 40px 0;
  border-bottom: 1px solid #1e293b;
}
.fw-hero-sk {
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 55%, #e0f2fe 100%);
  color: #0f172a;
  padding: 40px 0;
  border-bottom: 1px solid #cbd5e1;
}
.fw-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) {
  .fw-hero-grid { grid-template-columns: 7fr 5fr; }
}
.fw-hero-kicker-tl {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde047;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fw-hero-kicker-sk {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fw-hero-h1-tl {
  font-size: 2rem;
  line-height: 1.22;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}
.fw-hero-h1-sk {
  font-size: 2rem;
  line-height: 1.22;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .fw-hero-h1-tl, .fw-hero-h1-sk { font-size: 2.35rem; }
}
.fw-hero-lead-tl {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 0 0 22px 0;
  max-width: 780px;
}
.fw-hero-lead-sk {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 22px 0;
  max-width: 780px;
}
.fw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fw-btn-amber {
  display: inline-block;
  background-color: #f59e0b;
  color: #0f172a !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none !important;
}
.fw-btn-amber:hover { background-color: #fbbf24; }
.fw-btn-emerald {
  display: inline-block;
  background-color: #059669;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none !important;
}
.fw-btn-emerald:hover { background-color: #047857; }
.fw-btn-ghost-dark {
  display: inline-block;
  background-color: rgba(30, 41, 59, 0.85);
  color: #ffffff !important;
  border: 1px solid #475569;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none !important;
}
.fw-btn-ghost-dark:hover { background-color: #334155; }
.fw-btn-ghost-light {
  display: inline-block;
  background-color: #ffffff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none !important;
}
.fw-btn-ghost-light:hover { background-color: #f1f5f9; }

.fw-hero-card {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.25);
}
.fw-hero-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.fw-hero-card-caption {
  padding: 11px 16px;
  font-size: 0.84rem;
  color: #cbd5e1;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.fw-breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fw-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  margin-top: 14px;
}
.fw-meta-pill-dark {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 5px 14px;
  border-radius: 999px;
}
.fw-meta-pill-light {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600;
}

/* Magazine Section & Grids */
.fw-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.fw-section-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.fw-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.fw-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.fw-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.fw-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .fw-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fw-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .fw-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .fw-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Magazine Article Card */
.fw-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.fw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #64748b;
}
.fw-card-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.fw-card-body {
  padding: 18px 20px;
}
.fw-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #64748b;
}
.fw-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px 0;
}
.fw-card-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}
.fw-card-title a:hover { color: #0284c7 !important; }
.fw-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}
.fw-card-foot {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Badges */
.fw-badge-sky { display: inline-block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: #e0f2fe; color: #0369a1; }
.fw-badge-amber { display: inline-block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: #fef3c7; color: #b45309; }
.fw-badge-emerald { display: inline-block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: #d1fae5; color: #047857; }
.fw-badge-slate { display: inline-block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: #e2e8f0; color: #334155; }

/* Main 2-Column Layout (Article + Sidebar) */
.fw-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 992px) {
  .fw-main-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

.fw-article-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
@media (min-width: 640px) {
  .fw-article-box { padding: 38px 42px; }
}

/* Readable Article Typography (.prose) */
.prose {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.78;
  color: #1e293b;
}
.prose h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.3rem;
  margin-bottom: 0.9rem;
  line-height: 1.3;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.45rem;
  scroll-margin-top: 5rem;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.prose p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  line-height: 1.78;
  color: #1e293b;
}
.prose ul, .prose ol {
  padding-left: 1.6rem;
  margin-bottom: 1.3rem;
  color: #1e293b;
}
.prose li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
}
.prose a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
}
.prose a:hover { color: #0369a1; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.prose th {
  background-color: #0f172a;
  color: #ffffff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
}
.prose td {
  border-bottom: 1px solid #cbd5e1;
  padding: 11px 14px;
  vertical-align: top;
}
.prose tr:nth-child(even) td { background-color: #f8fafc; }
.prose figure {
  margin: 2rem 0;
  padding: 14px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
}
.prose figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.prose figcaption {
  font-size: 0.88rem;
  color: #475569;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 500;
}

/* TOC */
.fw-toc {
  margin-bottom: 28px;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 18px 22px;
}
.fw-toc-title {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 10px;
}
.fw-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.96rem;
  line-height: 1.65;
}
.fw-toc li { margin-bottom: 4px; }
.fw-toc a { color: #0f172a; font-weight: 600; text-decoration: none; }
.fw-toc a:hover { color: #0284c7; text-decoration: underline; }

/* Sidebar Widgets */
.fw-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.fw-widget {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.fw-widget-dark {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px;
}
.fw-widget-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
  margin: 0 0 14px 0;
}
.fw-thumb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fw-thumb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.fw-thumb-item:hover { background-color: #f1f5f9; }
.fw-thumb-img {
  width: 72px !important;
  height: 52px !important;
  min-width: 72px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
.fw-thumb-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0284c7;
  display: block;
}
.fw-thumb-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  display: block;
}

.fw-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fw-link-item {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155 !important;
  text-decoration: none !important;
}
.fw-link-item:hover { background-color: #f1f5f9; color: #0f172a !important; }
.fw-link-active {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  background-color: #0f172a;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Footer */
.fw-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  border-top: 2px solid #1e293b;
  padding: 44px 0 32px 0;
  margin-top: 48px;
  font-size: 0.9rem;
}
.fw-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}
@media (min-width: 768px) {
  .fw-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.fw-footer a { color: #cbd5e1; text-decoration: none; }
.fw-footer a:hover { color: #ffffff; text-decoration: underline; }
