/**
 * Resource-page block styles (2026 redesign).
 *
 * One shared stylesheet for the four resource blocks — sa/resource-hero,
 * sa/resource-carousel, sa/resource-banner, sa/resource-newsletter — because
 * they're always used together on the Podcasts / Blog / Webinars /
 * Downloadables landing pages and share the same card + token system.
 *
 * EVERYTHING is scoped under `.ci-rp` (the class on each block's <section>) so
 * the generic class names (.container, .eyebrow, .btn-primary, .podcast-card)
 * can never collide with the rest of the CI theme. Brand tokens (pine/teal/…)
 * and the self-hosted Montserrat + Lato faces come from the child theme, so no
 * external font request is made.
 *
 * Adapted from the "Podcast Homepage" mockup; the section spans full width via
 * the theme's .alignfull rule, and .container re-centers the content.
 *
 * @package classintercom
 */

/* ── Brand tokens (scoped) ─────────────────────────── */
.ci-rp {
  --pine:   #074240;
  --teal:   #0E6D6B;
  --sage:   #6FA3A2;
  --mint:   #E2F0EF;
  --navy:   #16243F;
  --gold:   #D9B86A;
  --ink:    #1A1F24;
  --white:  #ffffff;
  --mist-0: #FAFBFC;
  --mist-1: #F4F6F8;
  --mist-2: #E8EBEE;
  --mist-3: #D1D6DB;
  --mist-4: #9DA4AB;
  --mist-5: #6B737C;
  --mist-6: #44494F;
  --font-heading: 'Montserrat', 'Montserrat Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Lato', 'Lato Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lift: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.10);
  --shadow-form: 0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.08);

  font-family: var(--font-body);
  color: var(--ink);
  box-sizing: border-box;
}
.ci-rp *, .ci-rp *::before, .ci-rp *::after { box-sizing: border-box; }

.ci-rp .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Eyebrow pill ──────────────────────────────────── */
.ci-rp .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--mint);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0;
}
.ci-rp .eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,109,107,0.20);
  flex-shrink: 0;
}
.ci-rp .eyebrow.feature {
  background: none; padding: 0; border-radius: 0;
  color: var(--teal); font-size: 10px; letter-spacing: 0.15em; gap: 0;
}
.ci-rp .eyebrow.feature .dot { display: none; }
.ci-rp .eyebrow.feature.on-dark { color: rgba(226,240,239,0.70); }

/* ── Buttons ───────────────────────────────────────── */
.ci-rp .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  background: var(--teal); color: var(--white);
  border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--teal);
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s; white-space: nowrap; cursor: pointer;
}
.ci-rp .btn-primary:hover { background: var(--pine); border-color: var(--pine); box-shadow: 0 4px 16px rgba(14,109,107,0.30); }
.ci-rp .btn-primary svg { width: 16px; height: 16px; }
.ci-rp .btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  transition: border-color 0.15s, color 0.15s; white-space: nowrap;
}
.ci-rp .btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.ci-rp .btn-outline-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  background: transparent; color: var(--pine);
  border: 1.5px solid var(--pine);
  border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.ci-rp .btn-outline-dark:hover { background: var(--pine); color: var(--white); }

/* ══ HERO ═══════════════════════════════════════════ */
.ci-rp.rhero {
  padding: 64px 0 80px;
  background:
    radial-gradient(800px 360px at 80% -5%, rgba(14,109,107,0.09), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--mist-1) 100%);
  border-bottom: 1px solid var(--mist-2);
}
.ci-rp .hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: center; }
.ci-rp .hero-grid.no-featured { grid-template-columns: 1fr; }
.ci-rp .hero-brand-icon { margin-bottom: 16px; }
.ci-rp .hero-brand-icon svg { display: block; }
.ci-rp .hero-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(30px, 5vw, 48px); line-height: 1.15;
  color: var(--pine); margin: 14px 0 20px;
}
.ci-rp .hero-desc { font-size: 17px; line-height: 1.70; color: var(--mist-6); margin-bottom: 32px; max-width: 620px; }
.ci-rp .platform-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-rp .platform-label {
  font-family: var(--font-heading); font-weight: 700; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist-4); margin-right: 2px;
}
.ci-rp .platform-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  background: var(--white); border: 1px solid var(--mist-2); border-radius: 999px;
  font-family: var(--font-heading); font-weight: 700; font-size: 12px; color: var(--ink);
  text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.ci-rp .platform-badge:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(14,109,107,0.12); color: var(--teal); }
.ci-rp .platform-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.ci-rp .hero-right { display: flex; justify-content: flex-end; }
.ci-rp .hero-featured-card { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.ci-rp .hfc-label {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage);
}
.ci-rp .hfc-card { box-shadow: 0 8px 32px rgba(7,66,64,0.16); }

/* ══ CARD (shared: hero featured + carousel) ════════ */
.ci-rp .podcast-card {
  background: var(--white); border: 1px solid var(--mist-2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
}
.ci-rp .podcast-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ci-rp .podcast-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist-1); }
.ci-rp .podcast-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.30s ease; }
.ci-rp .podcast-card:hover .podcast-card-img img { transform: scale(1.04); }
.ci-rp .podcast-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ci-rp .podcast-card-tag {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); background: var(--mint);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}
.ci-rp .podcast-card-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.40;
  color: var(--pine); margin-bottom: 10px; transition: color 0.15s;
}
.ci-rp .podcast-card:hover .podcast-card-title { color: var(--teal); }
.ci-rp .podcast-card-excerpt { font-size: 14px; line-height: 1.65; color: var(--mist-5); flex: 1; margin-bottom: 18px; }
.ci-rp .podcast-card-cta {
  font-family: var(--font-heading); font-weight: 700; font-size: 11px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none; align-self: flex-start;
}
.ci-rp .podcast-card-cta svg { width: 12px; height: 12px; }

/* ══ SEASON / SECTION (carousel wrapper) ════════════ */
.ci-rp.season-section { padding: 72px 0; }
.ci-rp.season-section.alt { background: var(--mist-0); border-top: 1px solid var(--mist-2); border-bottom: 1px solid var(--mist-2); }
.ci-rp .season-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 24px; }
.ci-rp .season-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(20px, 3.5vw, 28px); color: var(--pine); margin: 10px 0 6px; line-height: 1.2; }
.ci-rp .season-desc { font-size: 15px; color: var(--mist-5); line-height: 1.6; max-width: 640px; }
.ci-rp .season-link {
  font-family: var(--font-heading); font-weight: 700; font-size: 11px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--teal); text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; transition: color 0.15s;
}
.ci-rp .season-link:hover { color: var(--pine); }
.ci-rp .season-link svg { width: 13px; height: 13px; }

/* ── Static grid (non-carousel option) ─────────────── */
.ci-rp .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ci-rp .see-all-row { text-align: center; margin-top: 48px; }

/* ══ CAROUSEL ═══════════════════════════════════════ */
.ci-rp .carousel-wrap { position: relative; }
.ci-rp .carousel-outer { overflow: hidden; }
.ci-rp .carousel-track { display: flex; gap: 24px; transition: transform 0.38s cubic-bezier(0.4,0,0.2,1); will-change: transform; align-items: stretch; }
.ci-rp .carousel-track .podcast-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; }
.ci-rp .carousel-cta-slide {
  flex: 0 0 calc((100% - 48px) / 3); min-width: 0; background: var(--pine);
  border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 28px; gap: 16px; color: var(--white);
}
.ci-rp .carousel-cta-slide .cta-icon {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; color: var(--white); margin-bottom: 4px;
}
.ci-rp .carousel-cta-slide h3 { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--white); line-height: 1.3; margin: 0; }
.ci-rp .carousel-cta-slide p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; margin: 0; }
.ci-rp .carousel-cta-slide .btn-primary { background: var(--white); color: var(--pine); border-color: var(--white); margin-top: 8px; }
.ci-rp .carousel-cta-slide .btn-primary:hover { background: var(--mint); border-color: var(--mint); }
.ci-rp .carousel-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.ci-rp .carousel-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--mist-2); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--pine);
  transition: border-color 0.15s, background 0.15s, opacity 0.15s; flex-shrink: 0;
}
.ci-rp .carousel-btn:hover:not([disabled]) { border-color: var(--teal); background: var(--mint); }
.ci-rp .carousel-btn[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }
.ci-rp .carousel-dots { display: flex; gap: 6px; align-items: center; }
.ci-rp .carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mist-3); border: none; cursor: pointer; padding: 0; transition: background 0.15s, transform 0.15s; }
.ci-rp .carousel-dot.active { background: var(--teal); transform: scale(1.45); }
.ci-rp .carousel-wrap.no-nav .carousel-nav { display: none; }

/* ══ BANNER (Coming Soon / Archive / generic) ═══════ */
.ci-rp.rbanner { padding: 64px 0; position: relative; overflow: hidden; }
.ci-rp.rbanner--navy { background: var(--navy); }
.ci-rp.rbanner--pine { background: var(--pine); }
.ci-rp.rbanner--mint { background: var(--mint); border-top: 1px solid var(--mist-2); border-bottom: 1px solid var(--mist-2); padding: 48px 0; }
.ci-rp.rbanner--navy::before, .ci-rp.rbanner--pine::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 60%, transparent 100%);
}
.ci-rp.rbanner--navy::after, .ci-rp.rbanner--pine::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 50% 50%, rgba(14,109,107,0.15), transparent 70%); pointer-events: none;
}
.ci-rp .rbanner-inner { position: relative; z-index: 1; }
/* centered variant */
.ci-rp .rbanner-inner.center { max-width: 720px; margin: 0 auto; text-align: center; }
.ci-rp .rbanner-inner.center .rbanner-desc { max-width: 560px; margin: 0 auto; }
.ci-rp .rbanner-inner.center .rbanner-ctas { justify-content: center; }
/* split variant */
.ci-rp .rbanner-inner.split { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ci-rp .rbanner-inner.split .rbanner-text { flex: 1; }
.ci-rp .rbanner-inner.split .rbanner-ctas { flex-shrink: 0; }
.ci-rp .rbanner-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(20px, 3.5vw, 32px); margin: 12px 0 10px; line-height: 1.2; }
.ci-rp.rbanner--navy .rbanner-title, .ci-rp.rbanner--pine .rbanner-title { color: var(--white); }
.ci-rp.rbanner--mint .rbanner-title { color: var(--pine); }
.ci-rp .rbanner-desc { font-size: 16px; line-height: 1.65; margin: 0; }
.ci-rp.rbanner--navy .rbanner-desc, .ci-rp.rbanner--pine .rbanner-desc { color: rgba(255,255,255,0.60); }
.ci-rp.rbanner--mint .rbanner-desc { color: var(--teal); max-width: 520px; }
.ci-rp .rbanner-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.ci-rp .rbanner-inner.split .rbanner-ctas { margin-top: 0; }

/* ══ NEWSLETTER ═════════════════════════════════════ */
.ci-rp.rnews { background: var(--pine); padding: 72px 0; position: relative; overflow: hidden; }
.ci-rp.rnews::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 300px at 10% 50%, rgba(14,109,107,0.22), transparent 60%); pointer-events: none;
}
.ci-rp .newsletter-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ci-rp .newsletter-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(20px, 3.5vw, 30px); color: var(--white); margin: 14px 0 12px; line-height: 1.25; }
.ci-rp .newsletter-desc { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.60); }
.ci-rp .newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.ci-rp .newsletter-form form { display: flex; flex-direction: column; gap: 12px; }
.ci-rp .newsletter-input {
  padding: 14px 18px; border-radius: var(--radius-md); border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07); color: var(--white); font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color 0.15s, background 0.15s; width: 100%;
}
.ci-rp .newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.ci-rp .newsletter-input:focus { border-color: var(--teal); background: rgba(255,255,255,0.10); }
.ci-rp .newsletter-privacy { font-size: 12px; color: rgba(255,255,255,0.38); line-height: 1.5; }
.ci-rp .newsletter-privacy a { color: rgba(255,255,255,0.55); text-decoration: underline; }

/* ── Embedded HubSpot / third-party form on the pine surface ──
   HubSpot ships its own light-theme styles (dark labels, white inputs) that
   are unreadable on the dark band, so we re-skin the common markup to match
   the placeholder form. Scoped tight to .newsletter-embed. */
.ci-rp .newsletter-embed { color: var(--white); font-family: var(--font-body); }
.ci-rp .newsletter-embed label,
.ci-rp .newsletter-embed legend,
.ci-rp .newsletter-embed .hs-field-desc,
.ci-rp .newsletter-embed .hs-richtext,
.ci-rp .newsletter-embed .hs-richtext p { color: rgba(255,255,255,0.85); font-size: 14px; }
.ci-rp .newsletter-embed .hs-form-field { margin-bottom: 14px; }
.ci-rp .newsletter-embed input[type=email],
.ci-rp .newsletter-embed input[type=text],
.ci-rp .newsletter-embed input[type=tel],
.ci-rp .newsletter-embed input[type=number],
.ci-rp .newsletter-embed select,
.ci-rp .newsletter-embed textarea,
.ci-rp .newsletter-embed .hs-input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.07);
  color: var(--white); font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.ci-rp .newsletter-embed .hs-input:focus,
.ci-rp .newsletter-embed input:focus,
.ci-rp .newsletter-embed select:focus,
.ci-rp .newsletter-embed textarea:focus { border-color: var(--teal); background: rgba(255,255,255,0.10); }
.ci-rp .newsletter-embed ::placeholder { color: rgba(255,255,255,0.35); }
.ci-rp .newsletter-embed select option { color: var(--ink); }
.ci-rp .newsletter-embed .hs-button,
.ci-rp .newsletter-embed input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 6px; padding: 14px 28px; border: none; cursor: pointer;
  background: var(--gold); color: var(--pine);
  border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 700;
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: filter 0.15s, transform 0.05s;
}
.ci-rp .newsletter-embed .hs-button:hover,
.ci-rp .newsletter-embed input[type=submit]:hover { filter: brightness(1.06); }
.ci-rp .newsletter-embed .hs-error-msg,
.ci-rp .newsletter-embed .hs-error-msgs label { color: #FFD7C2; font-size: 13px; }
.ci-rp .newsletter-embed a { color: var(--gold); text-decoration: underline; }
.ci-rp .newsletter-embed--placeholder {
  border: 1.5px dashed rgba(255,255,255,0.25); border-radius: var(--radius-md);
  padding: 28px; text-align: center; color: rgba(255,255,255,0.6); font-size: 14px;
}

/* ══ RESPONSIVE ═════════════════════════════════════ */
@media (max-width: 960px) {
  .ci-rp .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ci-rp .hero-right { display: none; }
  .ci-rp .card-grid { grid-template-columns: repeat(2, 1fr); }
  .ci-rp .newsletter-inner { grid-template-columns: 1fr; gap: 36px; }
  .ci-rp .season-header { flex-direction: column; align-items: flex-start; }
  .ci-rp .rbanner-inner.split { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .ci-rp .carousel-track .podcast-card, .ci-rp .carousel-cta-slide { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .ci-rp .container { padding: 0 20px; }
  .ci-rp .card-grid { grid-template-columns: 1fr; }
  .ci-rp.rhero { padding: 48px 0 60px; }
  .ci-rp.season-section { padding: 52px 0; }
}
@media (max-width: 580px) {
  .ci-rp .carousel-track .podcast-card, .ci-rp .carousel-cta-slide { flex: 0 0 90%; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-rp .carousel-track { transition: none; }
  .ci-rp .podcast-card, .ci-rp .podcast-card-img img { transition: none; }
}
