/**
 * lead-sarsa.css
 * Sarsa News/Magazine structural classes — adapted for template-lead-gen.
 *
 * Class naming: Sarsa's `tgbanner__*` / `section__*` / `featured__*` etc.
 * are ported with the `lead-sarsa-` prefix to avoid collisions with existing styles.
 *
 * Color, font, radius values are expressed as CSS vars from the theme so
 * the DB-driven brand still controls visual output.
 *
 * Structural properties (grid, flex, aspect-ratio, position) are set here.
 * Do not add fallback color values — missing vars surface loudly.
 *
 * Sections:
 *   1. Shared section header (section__title-wrap)
 *   2. Cover banner grid (tgbanner — Section 1)
 *   3. Trending news row (Section 2)
 *   4. Featured coverage grid (Section 3)
 *   5. Tools video-area layout (Section 4)
 *   6. Hand-picked articles dark band (Section 5)
 *   7. Newsletter / capture band (Section 6)
 */

/* ─── 1. Shared Section Header ──────────────────────────────────────────────── */

.lead-sarsa-section__title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--primary-color);
}

.lead-sarsa-section__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-sarsa-section__sub-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.lead-sarsa-section__main-title {
  font-family: var(--font-display, var(--display-font));
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin: 0;
  line-height: 1.2;
}

.lead-sarsa-section__read-more a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}

.lead-sarsa-section__read-more a:hover {
  text-decoration: underline;
}

/* Light modifier — white type for dark-band sections */
.lead-sarsa-section__title-wrap--light .lead-sarsa-section__sub-title {
  color: rgba(255, 255, 255, 0.6);
}

.lead-sarsa-section__title-wrap--light .lead-sarsa-section__main-title {
  color: #ffffff;
}

.lead-sarsa-section__title-wrap--light {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.lead-sarsa-section__title-wrap--light .lead-sarsa-section__read-more a {
  color: rgba(255, 255, 255, 0.75);
}

/* ─── 2. Cover Banner Grid (Section 1) ──────────────────────────────────────── */

.lead-sarsa-banner__area {
  padding-block: 0;
}

.lead-sarsa-banner__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  min-height: 520px;
}

@media (max-width: 768px) {
  .lead-sarsa-banner__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.lead-sarsa-banner__post {
  position: relative;
  overflow: hidden;
}

.lead-sarsa-banner__post.big-post {
  /* spans full height of grid */
}

.lead-sarsa-banner__thumb {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.lead-sarsa-banner__thumb--hover:hover .lead-sarsa-banner__img {
  transform: scale(1.04);
}

.lead-sarsa-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.big-post .lead-sarsa-banner__thumb {
  min-height: 520px;
}

.lead-sarsa-banner__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-sarsa-banner__side .lead-sarsa-banner__post {
  flex: 1;
  min-height: 258px;
}

.lead-sarsa-banner__side .lead-sarsa-banner__thumb {
  min-height: 258px;
}

.lead-sarsa-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
  pointer-events: none;
}

.lead-sarsa-banner__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 20px;
  color: #ffffff;
}

.lead-sarsa-banner__meta {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-sarsa-banner__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary-color);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 2px;
}

.lead-sarsa-banner__title--big {
  font-family: var(--font-display, var(--display-font));
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #ffffff;
}

.lead-sarsa-banner__title--small {
  font-family: var(--font-display, var(--display-font));
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #ffffff;
}

.lead-sarsa-banner__title-link {
  color: inherit;
  text-decoration: none;
}

.lead-sarsa-banner__title-link:hover {
  text-decoration: underline;
}

.lead-sarsa-banner__byline {
  font-size: 12px;
  color: var(--ink-soft, #666);
  margin: 10px 0 0;
  text-align: right;
  font-style: italic;
}

/* ─── 3. Trending News Row (Section 2) ──────────────────────────────────────── */

.lead-sarsa-trending-section {
  padding-block: clamp(40px, 5vw, 64px);
}

.lead-sarsa-trending-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.lead-sarsa-trending-row::-webkit-scrollbar {
  height: 4px;
}

.lead-sarsa-trending-row::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.lead-sarsa-trending__post {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: var(--bg-white, #ffffff);
  border: 1px solid var(--rule, #e8e8e8);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-sarsa-trending__post:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lead-sarsa-trending__thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted, #f5f5f5);
}

.lead-sarsa-trending__thumb-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.lead-sarsa-trending__post:hover .lead-sarsa-trending__thumb-img {
  transform: scale(1.05);
}

.lead-sarsa-trending__thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-muted, #f0f0f0);
}

.lead-sarsa-trending__category {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary-color);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
}

.lead-sarsa-trending__content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.lead-sarsa-trending__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-soft, #888);
}

.lead-sarsa-trending__favicon {
  border-radius: 2px;
  flex-shrink: 0;
}

.lead-sarsa-trending__sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-soft, #aaa);
}

.lead-sarsa-trending__title {
  font-family: var(--font-display, var(--display-font));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink, #1a1a1a);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── 4. Featured Coverage Grid (Section 3) ─────────────────────────────────── */

.lead-sarsa-featured-section {
  padding-block: clamp(40px, 5vw, 64px);
}

.lead-sarsa-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .lead-sarsa-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .lead-sarsa-featured__grid {
    grid-template-columns: 1fr;
  }
}

.lead-sarsa-featured__post {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid var(--rule, #e8e8e8);
  background: var(--bg-white, #ffffff);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-sarsa-featured__post:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.lead-sarsa-featured__thumb {
  aspect-ratio: 4/3;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lead-sarsa-featured__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-sarsa-featured__num-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-display, var(--display-font));
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  line-height: 1;
  user-select: none;
}

.lead-sarsa-featured__num {
  font-family: var(--font-display, var(--display-font));
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  user-select: none;
}

.lead-sarsa-featured__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lead-sarsa-featured__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.lead-sarsa-featured__title {
  font-family: var(--font-display, var(--display-font));
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, #1a1a1a);
  margin: 0;
}

.lead-sarsa-featured__summary {
  font-size: 13px;
  color: var(--ink-soft, #666);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── 5. Tools Video-Area Layout (Section 4) ─────────────────────────────────── */

.lead-sarsa-tools-section {
  padding-block: clamp(40px, 5vw, 64px);
}

.lead-sarsa-tools-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .lead-sarsa-tools-row {
    grid-template-columns: 1fr;
  }
}

.lead-sarsa-tools-col--side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Big tool card */
.lead-sarsa-tool-item--big {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid var(--rule, #e8e8e8);
  background: var(--bg-white, #ffffff);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-sarsa-tool-item--big:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lead-sarsa-tool-thumb--big {
  aspect-ratio: 16/9;
  background: var(--primary-dark, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-sarsa-tool-icon {
  width: 48px;
  height: 48px;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}

.lead-sarsa-tool-item--big .lead-sarsa-tool-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lead-sarsa-tool-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
}

.lead-sarsa-tool-title {
  font-family: var(--font-display, var(--display-font));
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin: 0;
  line-height: 1.25;
}

.lead-sarsa-tool-item--big .lead-sarsa-tool-title {
  font-size: 22px;
}

.lead-sarsa-tool-desc {
  font-size: 14px;
  color: var(--ink-soft, #666);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-sarsa-tool-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: auto;
  padding-top: 8px;
}

/* Side tool cards */
.lead-sarsa-tool-item--side {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--rule, #e8e8e8);
  background: var(--bg-white, #ffffff);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
  flex: 1;
}

.lead-sarsa-tool-item--side:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.lead-sarsa-tool-thumb--side {
  width: 64px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm, 4px);
  background: var(--primary-tint-08, rgba(var(--primary-color-rgb, 30, 80, 160), 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-sarsa-tool-item--side .lead-sarsa-tool-icon {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  filter: none;
}

.lead-sarsa-tool-item--side .lead-sarsa-tool-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.lead-sarsa-tool-item--side .lead-sarsa-tool-title {
  font-size: 15px;
}

.lead-sarsa-tool-item--side .lead-sarsa-tool-desc {
  font-size: 13px;
}

/* ─── 6. Hand-Picked Articles Dark Band (Section 5) ─────────────────────────── */

.lead-sarsa-handpicked-area {
  background: var(--primary-dark, #1a3a5c) !important;
  padding-block: clamp(48px, 6vw, 80px);
}

.lead-sarsa-handpicked-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lead-sarsa-handpicked-row::-webkit-scrollbar {
  height: 4px;
}

.lead-sarsa-handpicked-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.lead-sarsa-handpicked__post {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: var(--bg-white, #ffffff);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-sarsa-handpicked__post:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.lead-sarsa-handpicked__thumb {
  position: relative;
  overflow: hidden;
}

.lead-sarsa-handpicked__thumb-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.lead-sarsa-handpicked__post:hover .lead-sarsa-handpicked__thumb-img {
  transform: scale(1.05);
}

.lead-sarsa-handpicked__thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-sarsa-handpicked__category {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary-color);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
}

.lead-sarsa-handpicked__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lead-sarsa-handpicked__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-soft, #888);
  flex-wrap: wrap;
}

.lead-sarsa-handpicked__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-soft, #aaa);
}

.lead-sarsa-handpicked__title {
  font-family: var(--font-display, var(--display-font));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink, #1a1a1a);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-sarsa-handpicked__stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft, #888);
  border-top: 1px solid var(--rule, #e8e8e8);
  padding-top: 8px;
  margin-top: auto;
}

/* ─── 7. Newsletter / Capture Band (Section 6) ──────────────────────────────── */

.lead-sarsa-newsletter {
  background: var(--primary-color);
  padding-block: 48px;
}

.lead-sarsa-newsletter__wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.lead-sarsa-newsletter__title {
  flex: 1;
  min-width: 200px;
}

.lead-sarsa-newsletter__kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.lead-sarsa-newsletter__heading {
  font-family: var(--font-display, var(--display-font));
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.lead-sarsa-newsletter__form-wrap {
  flex: 1;
  min-width: 260px;
}

.lead-sarsa-newsletter__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-sarsa-newsletter__input {
  flex: 1;
  min-width: 200px;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm, 4px);
  padding: 0 16px;
  font-size: 14px;
  font-family: var(--font-body, inherit);
  outline: none;
}

.lead-sarsa-newsletter__btn {
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-sm, 4px);
  background: var(--primary-dark, #1a3a5c);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.lead-sarsa-newsletter__btn:hover {
  opacity: 0.88;
}

.lead-sarsa-newsletter__success {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  margin: 0;
}

.lead-sarsa-newsletter__error {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin: 8px 0 0;
}

/* ─── Ticker Bar ─────────────────────────────────────────────────────────── */

.lead-ticker-bar {
  background: var(--primary-dark, #0d2240);
  overflow: hidden;
  padding: 10px 0;
  width: 100%;
}

.lead-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: lead-ticker-scroll 40s linear infinite;
  width: max-content;
}

.lead-ticker-bar:hover .lead-ticker-track {
  animation-play-state: paused;
}

.lead-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  padding: 0 8px;
}

.lead-ticker-weather {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
}

.lead-ticker-sep {
  color: var(--primary-color, #2563eb);
  font-size: 14px;
  opacity: 0.7;
  margin-left: 8px;
}

@keyframes lead-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FAQ Two-Column Grid ────────────────────────────────────────────────── */

.lead-sarsa-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .lead-sarsa-faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.lead-sarsa-faq-item {
  border-left: 3px solid var(--primary-color);
  padding-left: 18px;
}

.lead-sarsa-faq-num {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.lead-sarsa-faq-q {
  font-family: var(--font-display, var(--display-font));
  font-weight: 700;
  font-size: 16px;
  color: var(--ink, #1a2332);
  margin: 0 0 10px;
  line-height: 1.35;
}

.lead-sarsa-faq-a {
  font-size: 14px;
  color: var(--ink-soft, #4a5568);
  line-height: 1.7;
  margin: 0;
}
