/* ==========================================================================
   FloodCert Education / Learn Pages — Styles
   Colors: --bg-header:#00558a  --light-blue:#1982c6  --gray:#445b65
           --light:#e8f1f8  --white:#feffff  --black:#151d20
   Font:   Poppins 400/500/600 (inherited from base)
   Breakpoints: 768px, 1200px (same as marketing.css)
   Prefix: learn-  (avoids conflicts with mktg- classes)
   ========================================================================== */

/* ---------- Full-width breakout ---------- */
.learn-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ---------- Section spacing ---------- */
.learn-section {
  padding: 60px 20px;
}

@media screen and (min-width: 768px) {
  .learn-section {
    padding: 80px 40px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-section {
    padding: 100px 60px;
  }
}

.learn-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.learn-hero {
  background: linear-gradient(135deg, #00558a 0%, #1982c6 100%);
  color: #feffff;
  text-align: center;
  padding: 60px 20px;
}

@media screen and (min-width: 768px) {
  .learn-hero {
    padding: 80px 40px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-hero {
    padding: 100px 60px;
  }
}

/* Compact hero variant — less vertical padding for sub-pages */
.learn-hero.learn-hero-compact {
  padding: 40px 20px;
}

@media screen and (min-width: 768px) {
  .learn-hero.learn-hero-compact {
    padding: 48px 40px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-hero.learn-hero-compact {
    padding: 56px 60px;
  }
}

.learn-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.learn-hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

@media screen and (min-width: 768px) {
  .learn-hero h1 {
    font-size: 44px;
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-hero h1 {
    font-size: 56px;
  }
}

.learn-hero p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 32px;
}

@media screen and (min-width: 768px) {
  .learn-hero p {
    font-size: 18px;
  }
}

/* Hero CTAs row */
.learn-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

/* Hero badges row (used in zone detail hero) */
.learn-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.learn-hero-badges .learn-risk-badge,
.learn-hero-badges .learn-insurance-badge {
  font-size: 14px;
  padding: 8px 18px;
}

/* Hero search form */
.learn-hero-search {
  max-width: 560px;
  margin: 0 auto 24px;
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.learn-hero-search input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #151d20;
  outline: none;
  min-width: 0;
}

.learn-hero-search input::placeholder {
  color: #445b65;
  opacity: 0.7;
}

.learn-hero-search button {
  padding: 16px 28px;
  background-color: #00558a;
  color: #feffff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.learn-hero-search button:hover {
  background-color: #003d66;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.learn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  opacity: 0.85;
}

.learn-breadcrumb a {
  color: #feffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.learn-breadcrumb a:hover {
  opacity: 0.7;
}

.learn-breadcrumb span {
  opacity: 0.6;
}

.learn-breadcrumb i {
  font-size: 14px;
  opacity: 0.6;
}

/* ==========================================================================
   ARTICLE CARD GRID
   ========================================================================== */
.learn-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .learn-article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.learn-article-card {
  background-color: #feffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .learn-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
}

.learn-article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.learn-article-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #00558a 0%, #1982c6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #feffff;
  font-size: 48px;
}

.learn-article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.learn-article-card-category {
  display: inline-block;
  background-color: #e8f1f8;
  color: #00558a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.learn-article-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #151d20;
  margin-bottom: 8px;
  line-height: 1.3;
}

.learn-article-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.learn-article-card-title a:hover {
  color: #00558a;
}

.learn-article-card-excerpt {
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
  flex: 1;
}

.learn-article-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #445b65;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e8f1f8;
}

.learn-article-card-meta i {
  margin-right: 4px;
  color: #00558a;
}

.learn-article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00558a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-top: 16px;
  transition: gap 0.2s ease;
}

.learn-article-card-link:hover {
  gap: 10px;
}

/* ==========================================================================
   ARTICLE DETAIL
   ========================================================================== */
.learn-article-header {
  background: linear-gradient(135deg, #00558a 0%, #1982c6 100%);
  color: #feffff;
  padding: 60px 20px;
}

@media screen and (min-width: 768px) {
  .learn-article-header {
    padding: 80px 40px;
  }
}

.learn-article-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.learn-article-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

@media screen and (min-width: 768px) {
  .learn-article-header h1 {
    font-size: 40px;
  }
}

.learn-article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  opacity: 0.85;
}

.learn-article-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.learn-article-header-meta i {
  font-size: 16px;
}

/* Article content — prose typography */
.learn-article-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

@media screen and (min-width: 768px) {
  .learn-article-content {
    padding: 56px 40px 72px;
  }
}

.learn-article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8f1f8;
}

@media screen and (min-width: 768px) {
  .learn-article-content h2 {
    font-size: 26px;
  }
}

.learn-article-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 36px;
  margin-bottom: 12px;
}

@media screen and (min-width: 768px) {
  .learn-article-content h3 {
    font-size: 21px;
  }
}

.learn-article-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin-top: 28px;
  margin-bottom: 10px;
}

.learn-article-content p {
  font-size: 17px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 24px;
}

.learn-article-content > p:first-child {
  font-size: 19px;
  color: #222;
  line-height: 1.7;
}

.learn-article-content ul,
.learn-article-content ol {
  font-size: 17px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 24px;
  padding-left: 28px;
}

.learn-article-content li {
  margin-bottom: 10px;
}

.learn-article-content li::marker {
  color: #00558a;
}

.learn-article-content blockquote {
  border-left: 3px solid #00558a;
  padding: 16px 24px;
  margin: 32px 0;
  background-color: #f8fafb;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #444;
}

.learn-article-content blockquote p {
  margin-bottom: 0;
  font-size: 16px;
}

.learn-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px 0;
}

.learn-article-content pre,
.learn-article-content code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 15px;
}

.learn-article-content code {
  background-color: #f0f4f8;
  padding: 2px 6px;
  border-radius: 4px;
  color: #00558a;
}

.learn-article-content pre {
  background-color: #1a1a2e;
  color: #e8e8e8;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 28px 0;
  line-height: 1.6;
}

.learn-article-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.learn-article-content hr {
  border: none;
  border-top: 1px solid #e8f1f8;
  margin: 40px 0;
}

.learn-article-content a {
  color: #00558a;
  text-decoration: underline;
  text-decoration-color: rgba(0, 85, 138, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.learn-article-content a:hover {
  text-decoration-color: #00558a;
}

/* Article tags */
.learn-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 0;
  border-top: 1px solid #e8f1f8;
  padding-top: 24px;
}

@media screen and (min-width: 768px) {
  .learn-article-tags {
    padding: 24px 40px 0;
  }
}

.learn-tag-pill {
  display: inline-block;
  background-color: #e8f1f8;
  color: #00558a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.learn-tag-pill:hover {
  background-color: #d0e4f0;
}

/* Share bar */
.learn-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 0;
  border-top: 1px solid #e8f1f8;
  margin-top: 24px;
}

@media screen and (min-width: 768px) {
  .learn-share-bar {
    padding: 24px 40px 0;
  }
}

.learn-share-bar-label {
  font-size: 14px;
  font-weight: 600;
  color: #151d20;
}

.learn-share-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e8f1f8;
  color: #00558a;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.learn-share-bar a:hover {
  background-color: #00558a;
  color: #feffff;
}

/* Related articles grid */
.learn-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .learn-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   FLOOD ZONE QUICK REFERENCE TABLE
   ========================================================================== */
.learn-ref-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.learn-ref-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .learn-ref-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
  }
}

/* Risk-level left border colors */
.learn-ref-row.learn-ref-risk-high    { border-left-color: #c45a52; }
.learn-ref-row.learn-ref-risk-moderate { border-left-color: #d97706; }
.learn-ref-row.learn-ref-risk-low     { border-left-color: #16a34a; }
.learn-ref-row.learn-ref-risk-minimal  { border-left-color: #9ca3af; }

.learn-ref-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}

.learn-ref-risk-high    .learn-ref-code { color: #dc2626; }
.learn-ref-risk-moderate .learn-ref-code { color: #d97706; }
.learn-ref-risk-low     .learn-ref-code { color: #16a34a; }
.learn-ref-risk-minimal  .learn-ref-code { color: #6b7280; }

.learn-ref-details {
  flex: 1;
  min-width: 0;
}

.learn-ref-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.learn-ref-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 2px 0 0;
}

.learn-ref-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.learn-ref-arrow {
  color: #ccc;
  font-size: 20px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.learn-ref-row:hover .learn-ref-arrow {
  color: #00558a;
}

@media screen and (max-width: 767px) {
  .learn-ref-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .learn-ref-code {
    font-size: 24px;
    min-width: 48px;
  }

  .learn-ref-badges {
    width: 100%;
    padding-left: 68px;
  }

  .learn-ref-arrow {
    display: none;
  }
}

/* ==========================================================================
   FLOOD ZONE CARDS (guide list page)
   ========================================================================== */
.learn-zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .learn-zone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-zone-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1400px) {
  .learn-zone-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.learn-zone-card {
  background-color: #feffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8f1f8;
}

@media (hover: hover) and (pointer: fine) {
  .learn-zone-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
}

.learn-zone-card-header {
  background: #00558a;
  color: #feffff;
  padding: 20px 24px;
  text-align: center;
}

.learn-zone-card-code {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.learn-zone-card-name {
  font-size: 13px;
  opacity: 0.8;
}

.learn-zone-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.learn-zone-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* ---------- Risk badge ---------- */
.learn-risk-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.learn-risk-badge.high,
.learn-risk-high {
  background-color: #fdf5f4;
  color: #c45a52;
}

.learn-risk-badge.moderate,
.learn-risk-moderate {
  background-color: #fffbeb;
  color: #d97706;
}

.learn-risk-badge.low,
.learn-risk-low {
  background-color: #f0fdf4;
  color: #16a34a;
}

.learn-risk-badge.minimal,
.learn-risk-minimal {
  background-color: #f3f4f6;
  color: #6b7280;
}

/* ---------- Insurance badge ---------- */
.learn-insurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.learn-insurance-badge.required {
  background-color: #fdf5f4;
  color: #c45a52;
}

.learn-insurance-badge.not-required {
  background-color: #f0fdf4;
  color: #16a34a;
}

/* Fallback colors when no modifier is present */
.learn-insurance-badge:not(.required):not(.not-required) {
  background-color: #e8f1f8;
  color: #00558a;
}

.learn-zone-card-desc {
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.learn-zone-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e8f1f8;
}

.learn-zone-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00558a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.learn-zone-card-link:hover {
  gap: 10px;
}

/* ==========================================================================
   ZONE DETAIL
   ========================================================================== */
.learn-zone-header {
  background: linear-gradient(135deg, #00558a 0%, #1982c6 100%);
  color: #feffff;
  padding: 60px 20px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .learn-zone-header {
    padding: 80px 40px;
  }
}

.learn-zone-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.learn-zone-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

@media screen and (min-width: 768px) {
  .learn-zone-header h1 {
    font-size: 44px;
  }
}

.learn-zone-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.learn-zone-header .learn-risk-badge,
.learn-zone-header .learn-insurance-badge {
  font-size: 14px;
  padding: 6px 16px;
}

/* Zone detail content body */
.learn-zone-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

@media screen and (min-width: 768px) {
  .learn-zone-content {
    padding: 60px 40px;
  }
}

.learn-zone-content p {
  font-size: 16px;
  color: #445b65;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Info box */
.learn-info-box {
  background-color: #e8f1f8;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.learn-info-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: #00558a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.learn-info-box h3 i {
  font-size: 20px;
}

.learn-info-box p {
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
  margin: 0;
}

/* Key facts list */
.learn-key-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.learn-key-facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
  border-bottom: 1px solid rgba(0, 85, 138, 0.1);
}

.learn-key-facts-list li:last-child {
  border-bottom: none;
}

.learn-key-facts-list li i {
  color: #22c55e;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   GLOSSARY
   ========================================================================== */
.learn-glossary-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 40px;
}

.learn-glossary-alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #00558a;
  background-color: #e8f1f8;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.learn-glossary-alpha-nav a:hover,
.learn-glossary-alpha-nav a.active {
  background-color: #00558a;
  color: #feffff;
}

/* Glossary content wrapper */
.learn-glossary-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

@media screen and (min-width: 768px) {
  .learn-glossary-content {
    padding: 0 40px 60px;
  }
}

.learn-glossary-letter-heading {
  font-size: 28px;
  font-weight: 700;
  color: #00558a;
  padding: 12px 0;
  margin-top: 40px;
  margin-bottom: 0;
  border-bottom: 2px solid #e8f1f8;
  position: sticky;
  top: 0;
  background-color: #f0f4f8;
  z-index: 5;
}

.learn-glossary-letter-heading:first-of-type {
  margin-top: 0;
}

.learn-glossary-list {
  margin-bottom: 16px;
}

.learn-glossary-item {
  padding: 16px 0;
  border-bottom: 1px solid #e8f1f8;
}

.learn-glossary-item:last-child {
  border-bottom: none;
}

.learn-glossary-term {
  font-size: 17px;
  font-weight: 600;
  color: #151d20;
  margin-bottom: 6px;
}

.learn-glossary-definition {
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
}

/* ==========================================================================
   SEARCH
   ========================================================================== */
.learn-search-form {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.learn-search-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #151d20;
  outline: none;
  min-width: 0;
}

.learn-search-form input::placeholder {
  color: #445b65;
  opacity: 0.7;
}

.learn-search-form button {
  padding: 16px 28px;
  background-color: #00558a;
  color: #feffff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.learn-search-form button:hover {
  background-color: #003d66;
}

/* Search results content wrapper */
.learn-search-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

@media screen and (min-width: 768px) {
  .learn-search-content {
    padding: 60px 40px;
  }
}

.learn-search-count {
  font-size: 15px;
  color: #445b65;
  margin-bottom: 24px;
}

.learn-search-count strong {
  color: #151d20;
}

.learn-search-result {
  padding: 24px 0;
  border-bottom: 1px solid #e8f1f8;
}

.learn-search-result:last-child {
  border-bottom: none;
}

.learn-search-result h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.learn-search-result h3 a {
  color: #00558a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.learn-search-result h3 a:hover {
  color: #1982c6;
}

.learn-search-result p {
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */
.learn-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .learn-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.learn-category-card {
  background-color: #feffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .learn-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
}

.learn-category-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: #e8f1f8;
  color: #00558a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.learn-category-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #151d20;
  margin-bottom: 8px;
}

.learn-category-card p {
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
  flex: 1;
}

.learn-category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00558a;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  transition: gap 0.2s ease;
}

.learn-category-card:hover .learn-category-card-link {
  gap: 10px;
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.learn-newsletter {
  background-color: #e8f1f8;
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .learn-newsletter {
    padding: 60px 48px;
  }
}

.learn-newsletter h2 {
  font-size: 24px;
  font-weight: 600;
  color: #151d20;
  margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
  .learn-newsletter h2 {
    font-size: 28px;
  }
}

.learn-newsletter p {
  font-size: 15px;
  color: #445b65;
  line-height: 1.6;
  margin-bottom: 24px;
}

.learn-newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.learn-newsletter-form input {
  flex: 1;
  padding: 14px 24px;
  border: 2px solid #feffff;
  border-right: none;
  border-radius: 50px 0 0 50px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #151d20;
  outline: none;
  background-color: #feffff;
  min-width: 0;
}

.learn-newsletter-form input:focus {
  border-color: #00558a;
}

.learn-newsletter-form button {
  padding: 14px 28px;
  background-color: #00558a;
  color: #feffff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.learn-newsletter-form button:hover {
  background-color: #1982c6;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.learn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.learn-pagination a,
.learn-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.learn-pagination a {
  color: #445b65;
  background-color: #feffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.learn-pagination a:hover {
  background-color: #e8f1f8;
  color: #00558a;
}

.learn-pagination span.active {
  background-color: #00558a;
  color: #feffff;
  font-weight: 600;
}

.learn-pagination span.ellipsis {
  background: none;
  box-shadow: none;
  color: #445b65;
}

/* ==========================================================================
   FILTER PILLS
   ========================================================================== */
.learn-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

@media screen and (max-width: 767px) {
  .learn-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
}

.learn-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: #445b65;
  background-color: #feffff;
  border: 2px solid #e8f1f8;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.learn-filter-pill:hover {
  border-color: #00558a;
  color: #00558a;
}

.learn-filter-pill.active {
  background-color: #00558a;
  border-color: #00558a;
  color: #feffff;
  font-weight: 600;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.learn-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.learn-section-title {
  font-size: 28px;
  font-weight: 600;
  color: #151d20;
  margin-bottom: 12px;
}

@media screen and (min-width: 768px) {
  .learn-section-title {
    font-size: 36px;
  }
}

.learn-section-subtitle {
  font-size: 16px;
  color: #445b65;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media screen and (min-width: 768px) {
  .learn-section-subtitle {
    font-size: 18px;
  }
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.learn-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.learn-empty-state i {
  font-size: 48px;
  color: #00558a;
  margin-bottom: 16px;
  opacity: 0.5;
  display: block;
}

.learn-empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: #151d20;
  margin-bottom: 8px;
}

.learn-empty-state p {
  font-size: 15px;
  color: #445b65;
  max-width: 400px;
  margin: 0 auto;
}

.learn-empty-state a {
  color: #00558a;
}

/* ==========================================================================
   VIEW ALL LINK
   ========================================================================== */
.learn-view-all {
  text-align: center;
  margin-top: 32px;
}

.learn-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00558a;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.learn-view-all a:hover {
  gap: 12px;
}

/* ==========================================================================
   FLOOD ZONE LIST — V2 CARDS
   ========================================================================== */
.learn-zone-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .learn-zone-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (min-width: 1200px) {
  .learn-zone-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.learn-zcard {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8f1f8;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .learn-zcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
}

.learn-zcard-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 24px 12px;
  flex-shrink: 0;
}

.learn-zcard-code {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Risk-level accent backgrounds — muted tones */
.learn-zcard-high    .learn-zcard-accent { background: #b05450; }
.learn-zcard-moderate .learn-zcard-accent { background: #b45309; }
.learn-zcard-low     .learn-zcard-accent { background: #15803d; }
.learn-zcard-minimal  .learn-zcard-accent { background: #6b7280; }

.learn-zcard-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.learn-zcard-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.learn-zcard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.learn-zcard-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 16px;
}

.learn-zcard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00558a;
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.learn-zcard:hover .learn-zcard-link {
  gap: 10px;
}

/* ==========================================================================
   FLOOD ZONE DETAIL — HERO CODE + INFO CARDS + FACTS
   ========================================================================== */

/* Large zone code in hero */
.learn-zone-hero-code {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.3;
}

@media screen and (min-width: 768px) {
  .learn-zone-hero-code {
    font-size: 80px;
  }
}

/* ==========================================================================
   FLOOD ZONE DETAIL — LAYOUT
   ========================================================================== */
.learn-zd {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

@media screen and (min-width: 768px) {
  .learn-zd {
    padding: 32px 40px 48px;
  }
}

/* Subtle bg wrapper so white cards pop */
.learn-zd-bg {
  background: #f5f8fb;
}

.learn-zd-bg .learn-zd {
  /* inherits max-width/padding */
}

.learn-zd-heading {
  font-size: 18px;
  font-weight: 700;
  color: #151d20;
  margin: 28px 0 14px;
  letter-spacing: -0.01em;
  padding-left: 12px;
  border-left: 3px solid #00558a;
}

/* ── Quick actions bar ── */
.learn-zd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8f1f8;
}

.learn-zd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.learn-zd-action-btn.primary {
  background: #00558a;
  color: #fff;
}

.learn-zd-action-btn.primary:hover {
  background: #003d63;
}

.learn-zd-action-btn.secondary {
  background: #e8f1f8;
  color: #00558a;
}

.learn-zd-action-btn.secondary:hover {
  background: #d0e4f0;
}

/* ── Top: overview + sidebar ── */
.learn-zd-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

@media screen and (min-width: 768px) {
  .learn-zd-top {
    flex-direction: row;
    gap: 28px;
  }
}

.learn-zd-overview {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  padding: 20px 22px;
}

.learn-zd-overview-label {
  font-size: 13px;
  font-weight: 700;
  color: #00558a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8f1f8;
}

.learn-zd-overview-label i {
  font-size: 15px;
}

.learn-zd-body {
  font-size: 17px;
  color: #2a2a2a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.learn-zd-body p {
  margin-bottom: 10px;
}

.learn-zd-body p:last-child {
  margin-bottom: 0;
}

.learn-zd-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00558a;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 9px 16px;
  background: #e8f1f8;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.learn-zd-inline-cta:hover {
  background: #d0e4f0;
}

/* Sidebar */
.learn-zd-sidebar {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.learn-zd-sidebar-label {
  font-size: 13px;
  font-weight: 700;
  color: #00558a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid #e8f1f8;
}

.learn-zd-sidebar-label i {
  font-size: 15px;
}

@media screen and (min-width: 768px) {
  .learn-zd-sidebar {
    width: 210px;
  }
}

.learn-zd-stat {
  padding: 10px 0;
  border-bottom: 1px solid #e4eaf0;
}

.learn-zd-stat:first-child {
  padding-top: 0;
}

.learn-zd-stat:last-of-type {
  border-bottom: none;
}

.learn-zd-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.learn-zd-stat-label i {
  font-size: 13px;
  color: #00558a;
}

.learn-zd-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: #151d20;
}

.learn-zd-sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 16px;
  background: #00558a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.learn-zd-sidebar-cta:hover {
  background: #003d63;
}

/* ── Details: building reqs + key facts ── */
.learn-zd-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media screen and (min-width: 768px) {
  .learn-zd-details {
    grid-template-columns: 1fr 1fr;
  }
}

.learn-zd-detail-block {
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  padding: 18px 20px;
}

.learn-zd-detail-block h2 {
  font-size: 15px;
  font-weight: 700;
  color: #151d20;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.learn-zd-detail-block h2 i {
  color: #00558a;
  font-size: 17px;
}

.learn-zd-detail-block p {
  font-size: 15px;
  color: #2a2a2a;
  line-height: 1.7;
  margin: 0;
}

.learn-zd-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.learn-zd-facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: #2a2a2a;
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px solid #e4eaf0;
}

.learn-zd-facts-list li:last-child {
  border-bottom: none;
}

.learn-zd-facts-list li i {
  color: #00558a;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Audience cards ── */
.learn-zd-audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

@media screen and (min-width: 768px) {
  .learn-zd-audience {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.learn-zd-audience-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.learn-zd-audience-card:hover {
  border-color: #c0d4e4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.learn-zd-audience-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f1f8;
  border-radius: 8px;
  color: #00558a;
  font-size: 18px;
  margin-bottom: 10px;
}

.learn-zd-audience-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #151d20;
  margin: 0 0 6px;
}

.learn-zd-audience-card p {
  font-size: 14px;
  color: #3a3a3a;
  line-height: 1.65;
  margin: 0 0 10px;
  flex: 1;
}

.learn-zd-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #00558a;
  text-decoration: none;
  transition: gap 0.15s ease;
  margin-top: auto;
}

.learn-zd-card-action:hover {
  gap: 7px;
}

/* ── Resources row ── */
.learn-zd-resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

@media screen and (min-width: 768px) {
  .learn-zd-resources {
    grid-template-columns: repeat(2, 1fr);
  }
}

.learn-zd-resource-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.learn-zd-resource-link:hover {
  border-color: #00558a;
  box-shadow: 0 2px 8px rgba(0, 85, 138, 0.08);
}

.learn-zd-resource-link i:first-child {
  font-size: 20px;
  color: #00558a;
  flex-shrink: 0;
}

.learn-zd-resource-link .learn-zd-resource-text {
  flex: 1;
  min-width: 0;
}

.learn-zd-resource-link .learn-zd-resource-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #151d20;
  margin-bottom: 2px;
}

.learn-zd-resource-link .learn-zd-resource-text span {
  font-size: 13px;
  color: #666;
}

.learn-zd-resource-link i:last-child {
  font-size: 16px;
  color: #ccc;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.learn-zd-resource-link:hover i:last-child {
  color: #00558a;
}

/* FAQ accordion */
.learn-zone-faq {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.learn-zone-faq-item {
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 8px;
  overflow: hidden;
}

.learn-zone-faq-item summary {
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #151d20;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.learn-zone-faq-item summary::-webkit-details-marker {
  display: none;
}

.learn-zone-faq-item summary::after {
  content: "\ea4d";
  font-family: "remixicon";
  font-size: 18px;
  color: #999;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.learn-zone-faq-item[open] summary::after {
  transform: rotate(180deg);
  color: #00558a;
}

.learn-zone-faq-item summary:hover {
  background: #f8fafb;
}

.learn-zone-faq-item p {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #2a2a2a;
  line-height: 1.7;
  margin: 0;
}

.learn-zone-faq-item p a {
  color: #00558a;
  text-decoration: underline;
  text-decoration-color: rgba(0, 85, 138, 0.3);
  text-underline-offset: 2px;
}

.learn-zone-faq-item p a:hover {
  text-decoration-color: #00558a;
}

/* ==========================================================================
   ARTICLE DETAIL — REDESIGNED
   ========================================================================== */

/* ── Hero (enhanced) ── */
.article-hero {
  padding-bottom: 48px !important;
}

@media screen and (min-width: 768px) {
  .article-hero {
    padding-bottom: 56px !important;
  }
}

.article-hero-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.article-hero .learn-hero-inner h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-hero-excerpt {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .article-hero-excerpt {
    font-size: 20px;
  }
}

/* ── Featured Image ── */
.article-featured-image-wrap {
  max-width: 820px;
  margin: -32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  .article-featured-image-wrap {
    margin-top: -40px;
    padding: 0 40px;
  }
}

.article-featured-image {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

/* ── White Article Card ── */
.article-card-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 768px) {
  .article-card-wrap {
    padding: 0;
  }
}

/* ── Article Meta Bar (below hero, above prose) ── */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  padding: 24px 28px;
  margin-top: 32px;
  border-bottom: 1px solid #edf2f7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 768px) {
  .article-meta-bar {
    padding: 24px 56px;
    margin-top: 40px;
  }
}

@media screen and (min-width: 1200px) {
  .article-meta-bar {
    padding: 24px 72px;
  }
}

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

.article-meta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00558a 0%, #1982c6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.article-meta-author-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
}

.article-meta-date {
  display: block;
  font-size: 13px;
  color: #718096;
}

.article-meta-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #718096;
}

.article-meta-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta-stats i {
  font-size: 16px;
  color: #a0aec0;
}

/* ── Article Prose Typography ── */
.article-prose {
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  padding: 40px 28px 48px;
  margin-top: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  max-width: none;
}

@media screen and (min-width: 768px) {
  .article-prose {
    padding: 48px 56px 64px;
  }
}

@media screen and (min-width: 1200px) {
  .article-prose {
    padding: 48px 72px 72px;
  }
}

/* Drop cap on first paragraph */
.article-prose > p:first-child::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.85;
  font-weight: 700;
  color: #00558a;
  margin-right: 10px;
  margin-top: 4px;
}

.article-prose > p:first-child {
  font-size: 20px;
  color: #1a1a1a;
  line-height: 2;
}

@media screen and (min-width: 768px) {
  .article-prose > p:first-child {
    font-size: 22px;
  }
}

/* Body text */
.article-prose p {
  font-size: 19px;
  color: #2d3748;
  line-height: 2;
  margin-bottom: 30px;
  letter-spacing: 0.01em;
  word-spacing: 0.02em;
}

@media screen and (min-width: 768px) {
  .article-prose p {
    font-size: 20px;
  }
}

/* Headings */
.article-prose h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f1f8;
  position: relative;
}

.article-prose h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #00558a;
}

@media screen and (min-width: 768px) {
  .article-prose h2 {
    font-size: 28px;
  }
}

.article-prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin-top: 44px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

@media screen and (min-width: 768px) {
  .article-prose h3 {
    font-size: 22px;
  }
}

.article-prose h4 {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  margin-top: 32px;
  margin-bottom: 12px;
}

@media screen and (min-width: 768px) {
  .article-prose h4 {
    font-size: 18px;
  }
}

/* Lists */
.article-prose ul,
.article-prose ol {
  font-size: 19px;
  color: #2d3748;
  line-height: 2;
  margin-bottom: 30px;
  padding-left: 24px;
}

@media screen and (min-width: 768px) {
  .article-prose ul,
  .article-prose ol {
    font-size: 20px;
  }
}

.article-prose li {
  margin-bottom: 14px;
  padding-left: 4px;
}

.article-prose li::marker {
  color: #00558a;
  font-weight: 600;
}

/* Blockquotes */
.article-prose blockquote {
  border-left: 4px solid #00558a;
  padding: 24px 28px;
  margin: 36px 0;
  background: linear-gradient(135deg, #f7fafd 0%, #eef4f9 100%);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.article-prose blockquote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 48px;
  color: #00558a;
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.article-prose blockquote p {
  margin-bottom: 0;
  font-size: 19px;
  font-style: italic;
  color: #334155;
  line-height: 2;
  position: relative;
}

/* Images */
.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Code */
.article-prose code {
  background-color: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  color: #00558a;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
}

.article-prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px 28px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 32px 0;
  line-height: 1.7;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-prose pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* Links */
.article-prose a {
  color: #00558a;
  text-decoration: underline;
  text-decoration-color: rgba(0, 85, 138, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.article-prose a:hover {
  color: #1982c6;
  text-decoration-color: #1982c6;
}

/* Horizontal rule */
.article-prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0dce6, transparent);
  margin: 48px 0;
}

/* Tables */
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.article-prose th {
  background: #00558a;
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.article-prose td {
  padding: 12px 18px;
  border-bottom: 1px solid #e8f1f8;
  color: #334155;
}

.article-prose tr:last-child td {
  border-bottom: none;
}

.article-prose tbody tr:nth-child(even) {
  background: #f8fafb;
}

/* ── Tags Section ── */
.article-tags-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 768px) {
  .article-tags-section {
    padding: 24px 56px;
  }
}

.article-tags-section > i {
  color: #00558a;
  font-size: 18px;
}

.article-tags-section .learn-tag-pill {
  font-size: 14px;
  padding: 8px 18px;
}

/* ── Share Section ── */
.article-share-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 16px;
  margin-bottom: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 768px) {
  .article-share-section {
    padding: 24px 56px;
  }
}

.article-share-label {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
}

.article-share-buttons {
  display: flex;
  gap: 10px;
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.article-share-btn:hover {
  background: #00558a;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Related Articles Section ── */
.article-related-section {
  background: #f8fafb;
}
