/**
 * 5WH Featured Articles Stylesheet
 * Location: home/css/featured-articles.css
 * Styled according to 5WH Website Font and Color Theme:
 * - Fonts: 'Karla' (Body & UI), 'Playfair Display' (Headings)
 * - Brand Theme: #ffdb43 (Gold/Yellow), #183153 (Navy Dark), #000000 (Black), #1b75ba (Link Blue)
 */

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

:root {
  --fa-primary: #ffdb43;        /* 5WH Signature Brand Gold/Yellow */
  --fa-primary-hover: #e5c430;  /* 5WH Yellow Hover */
  --fa-dark: #183153;           /* 5WH Navy Dark */
  --fa-black: #000000;          /* Pure Black */
  --fa-accent: #1b75ba;         /* 5WH Link Blue */
  --fa-accent-hover: #0b408d;   /* 5WH Link Blue Hover */
  --fa-body: #222222;           /* 5WH Primary Body Color */
  --fa-muted: #555555;          /* Neutral Muted Text */
  --fa-border: #e2e8f0;         /* Border Color */
  --fa-bg-light: #f8fafc;       /* Light Container BG */
  --fa-font-body: 'Karla', sans-serif;
  --fa-font-heading: 'Playfair Display', Georgia, serif;
}

.fa-container-wrap,
.fa-detail-wrap {
  font-family: var(--fa-font-body);
  color: var(--fa-body);
  background-color: #ffffff;
}

/* ========================================================
   LISTING PAGE (HERO BANNER, FILTERS, GRID)
   ======================================================== */

.fa-hero-banner {
  position: relative;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: #f8fafc;
  padding: 60px 0 55px 0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.fa-hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 38%, rgba(255, 255, 255, 0.55) 62%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.fa-hero-banner .container {
  z-index: 2;
}

.fa-hero-banner-content {
  text-align: left;
}

.fa-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--fa-primary);
  color: #000000;
  font-family: var(--fa-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 14px;
}

.fa-hero-title {
  font-family: var(--fa-font-heading);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--fa-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.fa-hero-subtitle {
  font-family: var(--fa-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  max-width: 530px;
  margin-bottom: 0;
}

/* Filter Pills & Sorting */
.fa-filters-bar {
  padding: 22px 0 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid #eef2f6;
  margin-bottom: 32px;
}

.fa-filter-active-badge {
  background-color: var(--fa-primary);
  color: #000000;
  font-family: var(--fa-font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fa-filter-clear-btn {
  color: #000000;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.15s;
}

.fa-filter-clear-btn:hover {
  opacity: 1;
  color: #000000;
}

.fa-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fa-pill {
  font-family: var(--fa-font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  color: var(--fa-dark);
  background-color: transparent;
  border: 1px solid transparent;
  transition: all 0.18s;
  text-decoration: none !important;
  display: inline-block;
}

.fa-pill:hover {
  background-color: #fff9db;
  color: #000000;
}

.fa-pill.active {
  background-color: var(--fa-primary);
  color: #000000 !important;
  font-weight: 700;
  border-color: var(--fa-primary);
}

.fa-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fa-muted);
  font-family: var(--fa-font-body);
}

.fa-sort-select {
  font-family: var(--fa-font-body);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fa-dark);
  background-color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.fa-sort-select:focus {
  border-color: var(--fa-dark);
}

/* Left Column: Big Hero Article Card */
.fa-hero-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 38px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #0f172a;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.14);
}

.fa-hero-card img.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fa-hero-card:hover img.bg-img {
  transform: scale(1.025);
}

.fa-hero-card .gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(15, 23, 42, 0.96) 100%);
}

.fa-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background-color: var(--fa-primary);
  color: #000000;
  font-family: var(--fa-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.fa-hero-card-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #ffffff;
}

.fa-card-category-sm {
  font-family: var(--fa-font-body);
  color: var(--fa-primary);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.fa-hero-card-title {
  font-family: var(--fa-font-heading);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.18s;
}

.fa-hero-card-title:hover {
  color: var(--fa-primary);
}

.fa-hero-card-desc {
  font-family: var(--fa-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 18px;
}

.fa-hero-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.fa-author-info {
  font-family: var(--fa-font-body);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.fa-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.fa-read-link {
  font-family: var(--fa-font-body);
  color: var(--fa-primary);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.fa-read-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Section Title */
.fa-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.fa-section-title {
  font-family: var(--fa-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--fa-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.fa-section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background-color: var(--fa-primary);
  border-radius: 2px;
}

.fa-view-all {
  font-family: var(--fa-font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fa-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.15s;
}

.fa-view-all:hover {
  color: var(--fa-accent);
}

/* Articles Grid (3 Columns) */
.fa-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.fa-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.fa-card:hover {
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.fa-card-img-wrap {
  width: 100%;
  height: 155px;
  overflow: hidden;
  background-color: #e2e8f0;
  display: block;
}

.fa-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.fa-card:hover .fa-card-img-wrap img {
  transform: scale(1.04);
}

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

.fa-card-tag {
  font-family: var(--fa-font-body);
  color: var(--fa-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fa-card-title {
  font-family: var(--fa-font-heading);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--fa-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.15s;
}

.fa-card-title:hover {
  color: var(--fa-accent);
}

.fa-card-desc {
  font-family: var(--fa-font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fa-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.fa-card-footer {
  font-family: var(--fa-font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.fa-card-footer img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sidebar Cards */
.fa-sidebar-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.fa-widget-header {
  font-family: var(--fa-font-heading);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fa-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.fa-widget-header i {
  color: var(--fa-dark);
}

/* Trending List */
.fa-trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fa-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fa-trending-num {
  font-family: var(--fa-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fa-dark);
  width: 16px;
  line-height: 1;
  padding-top: 4px;
}

.fa-trending-thumb {
  width: 60px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f1f5f9;
}

.fa-trending-content {
  flex: 1;
}

.fa-trending-tag {
  font-family: var(--fa-font-body);
  color: var(--fa-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.fa-trending-title {
  font-family: var(--fa-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fa-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
  text-decoration: none;
  transition: color 0.15s;
}

.fa-trending-title:hover {
  color: var(--fa-accent);
}

.fa-trending-date {
  font-family: var(--fa-font-body);
  font-size: 11px;
  color: #94a3b8;
}

/* Editor's Picks */
.fa-editors-featured {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.fa-editors-featured img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.fa-editors-featured .fa-card-tag {
  margin-bottom: 4px;
}

.fa-editors-featured .fa-card-title {
  font-family: var(--fa-font-heading);
  font-size: 15px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--fa-dark);
}

.fa-editors-featured .fa-card-desc {
  font-family: var(--fa-font-body);
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--fa-muted);
}

/* ========================================================
   DETAIL PAGE (HERO, SHARE STRIP, CONTENT, TOC)
   ======================================================== */

.fa-detail-hero {
  padding: 36px 0 24px 0;
  background-color: #ffffff;
}

.fa-detail-hero-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 330px;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.14);
  background-color: #0f172a;
}

.fa-detail-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fa-detail-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--fa-primary);
  color: #000000;
  font-family: var(--fa-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.fa-detail-badge-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: rgba(24, 49, 83, 0.92);
  backdrop-filter: blur(4px);
  color: var(--fa-primary);
  font-family: var(--fa-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.fa-detail-header-content {
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.fa-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--fa-primary);
  color: #000000;
  font-family: var(--fa-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.fa-detail-title {
  font-family: var(--fa-font-heading);
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--fa-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.fa-detail-deck {
  font-family: var(--fa-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 20px;
}

.fa-detail-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.fa-detail-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.fa-detail-author-name {
  font-family: var(--fa-font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--fa-dark);
  line-height: 1.2;
}

.fa-detail-author-role {
  font-family: var(--fa-font-body);
  font-size: 12px;
  color: var(--fa-muted);
}

.fa-detail-date-wrap {
  font-family: var(--fa-font-body);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fa-muted);
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid #e2e8f0;
}

.fa-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fa-tag-pill {
  font-family: var(--fa-font-body);
  background-color: #f1f5f9;
  color: var(--fa-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  text-decoration: none !important;
  display: inline-block;
}

.fa-tag-pill:hover {
  background-color: var(--fa-primary);
  color: #000000;
  border-color: var(--fa-primary);
}

/* Action Strip: Share & Save */
.fa-action-strip {
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  padding: 12px 0;
  margin: 18px 0 36px 0;
}

.fa-action-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fa-share-left {
  font-family: var(--fa-font-body);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #475569;
  font-weight: 600;
}

.fa-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--fa-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.fa-share-btn:hover {
  background: var(--fa-primary);
  color: #000000;
  border-color: var(--fa-primary);
}

.fa-save-btn {
  font-family: var(--fa-font-body);
  background: transparent;
  border: 1px solid var(--fa-dark);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fa-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.fa-save-btn:hover {
  background-color: #fff9db;
  border-color: var(--fa-primary);
  color: #000000;
}

.fa-save-btn.saved {
  background-color: var(--fa-primary);
  color: #000000;
  border-color: var(--fa-primary);
}

/* Main Article Body */
.fa-article-body {
  font-family: var(--fa-font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--fa-body);
}

.fa-article-body p {
  margin-bottom: 22px;
  font-family: var(--fa-font-body);
  color: var(--fa-body);
}

.fa-article-body h2,
.fa-article-body h3 {
  font-family: var(--fa-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--fa-dark);
  margin: 36px 0 16px 0;
  scroll-margin-top: 90px;
}

.fa-article-body a {
  color: var(--fa-accent);
  text-decoration: underline;
  transition: color 0.15s;
}

.fa-article-body a:hover {
  color: var(--fa-accent-hover);
}

.fa-in-article-img-wrap {
  margin: 32px 0;
  border-radius: 10px;
  overflow: hidden;
}

.fa-in-article-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 10px;
}

.fa-img-caption {
  font-family: var(--fa-font-body);
  font-size: 12.5px;
  color: var(--fa-muted);
  margin-top: 8px;
  text-align: left;
}

/* Pull Quote Box */
.fa-pull-quote {
  background-color: #fffdf0;
  border-left: 4px solid var(--fa-primary);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 36px 0;
  position: relative;
}

.fa-pull-quote-icon {
  color: var(--fa-dark);
  font-size: 26px;
  margin-bottom: 8px;
}

.fa-pull-quote-text {
  font-family: var(--fa-font-heading);
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--fa-dark);
  margin-bottom: 12px;
}

.fa-pull-quote-author {
  font-family: var(--fa-font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: #555555;
}

/* Bottom Share & Tags */
.fa-bottom-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Author Box */
.fa-author-box {
  background-color: #fbfbfb;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.fa-author-box-left {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.fa-author-box-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fa-author-box-name {
  font-family: var(--fa-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--fa-dark);
  margin-bottom: 2px;
}

.fa-author-box-title {
  font-family: var(--fa-font-body);
  font-size: 12px;
  color: var(--fa-muted);
  margin-bottom: 8px;
}

.fa-author-box-bio {
  font-family: var(--fa-font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.fa-author-box-link {
  font-family: var(--fa-font-body);
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  background-color: var(--fa-primary);
  padding: 8px 18px;
  border-radius: 25px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.fa-author-box-link:hover {
  background-color: #000000;
  color: var(--fa-primary);
}

/* Table of Contents */
.fa-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fa-toc-link {
  font-family: var(--fa-font-body);
  font-size: 13.5px;
  color: #475569;
  display: block;
  transition: all 0.18s;
  line-height: 1.4;
  text-decoration: none;
}

.fa-toc-link:hover {
  color: var(--fa-dark);
  font-weight: 700;
  transform: translateX(4px);
}

/* Newsletter Strip */
.fa-newsletter-section {
  background-color: var(--fa-dark);
  color: #ffffff;
  border-radius: 12px;
  padding: 32px 36px;
  margin: 45px 0 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.fa-newsletter-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fa-newsletter-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 219, 67, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--fa-primary);
  flex-shrink: 0;
}

.fa-newsletter-title {
  font-family: var(--fa-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fa-newsletter-desc {
  font-family: var(--fa-font-body);
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
}

.fa-newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 480px;
}

.fa-newsletter-input {
  font-family: var(--fa-font-body);
  flex: 1;
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: #ffffff;
  color: var(--fa-dark);
  outline: none;
}

.fa-newsletter-btn {
  font-family: var(--fa-font-body);
  background-color: var(--fa-primary);
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.fa-newsletter-btn:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .fa-hero-banner {
    padding: 48px 0 42px 0;
    background-position: 75% center;
  }
  .fa-hero-banner-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.70) 100%);
  }
  .fa-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .fa-hero-title { font-size: 34px; }
  .fa-detail-header-content { padding-left: 0; margin-top: 24px; }
  .fa-detail-title { font-size: 30px; }
}

@media (max-width: 640px) {
  .fa-hero-banner {
    padding: 36px 0 32px 0;
    background-position: center right;
  }
  .fa-hero-banner-overlay {
    background: rgba(255, 255, 255, 0.95);
  }
  .fa-articles-grid { grid-template-columns: 1fr; }
  .fa-newsletter-section { flex-direction: column; align-items: flex-start; }
  .fa-newsletter-form { width: 100%; }
  .fa-hero-title { font-size: 28px; line-height: 1.2; }
  .fa-hero-subtitle { font-size: 14.5px; }
  .fa-detail-author-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fa-detail-date-wrap { margin-left: 0; padding-left: 0; border-left: none; }
}

/* ========================================================
   RIGHT SIDEBAR CATEGORY FILTER WIDGET
   ======================================================== */
.fa-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.fa-category-item {
  font-family: var(--fa-font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fa-dark);
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
  background-color: #f8fafc;
  border: 1px solid #eef2f6;
}

.fa-category-item:hover {
  background-color: #fff9db;
  color: #000000;
  border-color: var(--fa-primary);
  transform: translateX(3px);
}

.fa-category-item.active {
  background-color: var(--fa-primary);
  color: #000000 !important;
  border-color: var(--fa-primary);
  font-weight: 700;
}

.fa-category-item .fa-cat-count {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: #ffffff;
  color: var(--fa-dark);
  font-weight: 700;
}

.fa-category-item.active .fa-cat-count {
  background-color: #000000;
  color: var(--fa-primary);
}

/* Media Badges (Video & Audio) on Cards */
.fa-media-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  font-family: var(--fa-font-body);
}

.fa-media-badge.video {
  background-color: #e11d48;
  color: #ffffff;
}

.fa-media-badge.audio {
  background-color: var(--fa-dark);
  color: var(--fa-primary);
}

.fa-media-badge.multi {
  background-color: var(--fa-accent);
  color: #ffffff;
}

/* Video & Audio Players on Detail Page */
.fa-detail-media-player {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.fa-detail-media-player video {
  width: 100%;
  max-height: 480px;
  display: block;
  background: #000000;
}

.fa-detail-media-player iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.fa-media-caption-bar {
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 13px;
  background: #183153;
  border-top: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fa-font-body);
}

.fa-detail-audio-player {
  background: #fffdf0;
  border: 1px solid #ffeaa0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.fa-detail-audio-player .fa-audio-title {
  font-family: var(--fa-font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--fa-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fa-detail-audio-player audio {
  width: 100%;
}
