/* ===== CSFC PAGE ===== */
main.csfc-main {
  padding: 0;
  min-height: 0;
}

/* Shared overrides */
.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--bg-light);
}

.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.375rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.section-header {
  margin-bottom: 3rem;
}
.section-header.centered {
  text-align: center;
}

.btn-lg {
  padding: 0.8125rem 1.875rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn-ghost-white {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #fff !important;
}

.fade-up {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ===== HERO ===== */
.csfc-hero {
  background: var(--bg-dark) center / cover no-repeat;
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.csfc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 23, 42, 0.65) 55%,
      rgba(15, 23, 42, 0.3) 100%
    ),
    radial-gradient(
      ellipse 60% 70% at 30% 50%,
      rgba(246, 153, 50, 0.12) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.csfc-hero-inner {
  position: relative;
  z-index: 1;
}

.csfc-hero .eyebrow {
  color: var(--primary);
}

.csfc-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.csfc-hero-sub {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.csfc-pills {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.csfc-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(246, 153, 50, 0.14);
  border: 1px solid rgba(246, 153, 50, 0.35);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
}

.csfc-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== THE SHIFT ===== */
.csfc-shift-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: none !important;
  margin-bottom: 0;
}

/* ===== PROGRAMME SESSIONS ===== */
.csfc-sessions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.csfc-session-card {
  grid-column: span 2;
}
.csfc-session-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.csfc-session-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.csfc-session-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.875rem 2rem;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

.csfc-session-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.csfc-session-header {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  margin-bottom: 0.875rem;
}

.csfc-session-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  flex: 0 0 3.25rem;
  width: 3.25rem;
  padding-top: 0.125rem;
}

.csfc-session-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}

.csfc-session-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: none;
  margin: 0 0 1.375rem;
}

/* Infographic figure — bleeds to card edges */
.csfc-session-fig {
  position: relative;
  margin: 0 -2rem 1rem -2rem;
  cursor: zoom-in;
  overflow: hidden;
  outline: none;
}

.csfc-session-fig img {
  display: block;
  width: 100%;
  transition: transform 0.35s ease;
}

.csfc-session-fig:hover img,
.csfc-session-fig:focus-visible img {
  transform: scale(1.025);
}

.csfc-session-zoom {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.csfc-session-fig:hover .csfc-session-zoom,
.csfc-session-fig:focus-visible .csfc-session-zoom {
  opacity: 1;
}

/* ===== Lightbox modal ===== */
.csfc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.csfc-modal[hidden] {
  display: none;
}

.csfc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.csfc-modal-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: min(92vw, 80rem);
}

.csfc-modal-close {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.csfc-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.csfc-modal-img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 3.5rem);
  border-radius: 0.5rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

/* ===== CERTIFICATE SHOWCASE ===== */
.csfc-cert-section {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.csfc-cert-header {
  margin-bottom: 2.5rem;
}

.csfc-cert-header .section-title {
  color: #fff;
}

.csfc-cert-header .section-desc {
  color: rgba(255, 255, 255, 0.72);
  max-width: 38rem;
  margin: 0 auto;
}

.csfc-cert-preview {
  max-width: 36rem;
  margin: 0 auto;
}

.csfc-cert-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ===== OUTCOMES ===== */
.csfc-outcomes {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}

.csfc-outcomes li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.csfc-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===== CSR SECTION ===== */
.csfc-csr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.csfc-csr-left .section-title {
  margin-bottom: 0;
}

.csfc-csr-p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 0.875rem;
}

.csfc-csr-p:last-child {
  margin-bottom: 0;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--bg-dark);
  color: #fff;
  padding: 5.5rem 0;
  text-align: center;
}

.cta-banner .section-title {
  color: #fff;
  margin-bottom: 0.875rem;
}

.cta-banner .section-desc {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.cta-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
/* 3+2 → 2+2+1 at tablet */
@media (max-width: 900px) {
  .csfc-sessions {
    grid-template-columns: repeat(4, 1fr);
  }
  .csfc-session-card {
    grid-column: span 2;
  }
  .csfc-session-card:nth-child(4) {
    grid-column: 1 / span 2;
  }
  .csfc-session-card:nth-child(5) {
    grid-column: 3 / span 2;
  }
}

@media (max-width: 820px) {
  .csfc-outcomes {
    grid-template-columns: 1fr;
  }

  .csfc-csr-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .csfc-session-card {
    padding: 1.5rem 1.25rem;
  }

  .csfc-session-fig {
    margin: 0 -1.25rem -1.5rem;
  }

  .csfc-session-num {
    font-size: 1.375rem;
    flex: 0 0 2.5rem;
    width: 2.5rem;
  }

  .csfc-modal {
    padding: 1rem;
  }
}

/* 2+2+1 → single column at mobile */
@media (max-width: 560px) {
  .csfc-sessions {
    grid-template-columns: 1fr;
  }
  .csfc-session-card,
  .csfc-session-card:nth-child(4),
  .csfc-session-card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .csfc-hero {
    padding: 4.5rem 0 3.5rem;
  }

  .csfc-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .csfc-pills {
    gap: 0.5rem;
  }
}

/* ===== CSFC TEASER (shared include — seemeadvisory & csr pages) ===== */
.csfc-teaser-section {
  background: var(--bg-dark);
  color: #fff;
}

.csfc-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 76rem;
}

.csfc-teaser-inner .section-title {
  color: #fff;
  margin-bottom: 1.25rem;
}

.csfc-teaser-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
}

/* Process view */
.csfc-process {
  margin: 1.75rem 0 2rem;
}

.csfc-process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.csfc-process-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 2rem;
}

.csfc-process-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.csfc-process-connector {
  width: 2px;
  height: 1.375rem;
  background: linear-gradient(
    to bottom,
    var(--primary),
    rgba(246, 153, 50, 0.18)
  );
  margin: 0.25rem 0;
}

.csfc-process-step:last-child .csfc-process-connector {
  display: none;
}

.csfc-process-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  padding-top: 0.3125rem;
  line-height: 1.4;
}

.csfc-teaser-cert img {
  width: 100%;
  border-radius: 0.875rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: block;
}

@media (max-width: 60em) {
  .csfc-teaser-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .csfc-teaser-cert {
    order: -1;
    max-width: 32rem;
    margin: 0 auto;
  }
}
