/* ═══════════════════════════════════════════════════════════════
   Open Day CTA Section

   Reusable closing-CTA block shared by Home, Course Overview,
   Curriculum and About-Lecturer. Replaces the ad-hoc
   `.landing-cta` variant that was duplicated across views.

   Eyebrow uses the typographic gradient-rule treatment introduced
   in AboutLecturerView (see `.lecturer-section__eyebrow`) — a
   quiet, editorial kicker paired with a 56px × 2px three-stop
   brand gradient. No pill, no backdrop-blur.
   ═══════════════════════════════════════════════════════════════ */

.open-day-cta-section {
  padding: var(--space-3xl) 24px;
  background: linear-gradient(180deg, #DBEAFE 0%, #C7DBFA 100%);
}

.open-day-cta-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* -- Eyebrow (typographic gradient-rule, consistent with lecturer surfaces) -- */

.open-day-cta-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
}

.open-day-cta-section__eyebrow::before,
.open-day-cta-section__eyebrow::after {
  content: '';
  flex-shrink: 0;
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0894FF 0%, #BD32D6 50%, #FFA304 100%);
}

/* -- Title & lead ------------------------------------------------ */

.open-day-cta-section__title {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 14px;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.open-day-cta-section__title-accent {
  color: var(--primary-color);
}

.open-day-cta-section__lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 400;
}

/* -- Facts row --------------------------------------------------- */

.open-day-cta-section .open-day-facts {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.open-day-cta-section .open-day-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 2px rgba(0, 60, 130, 0.04),
    0 6px 20px rgba(0, 60, 130, 0.06);
  text-align: right;
  margin: 0;
}

.open-day-cta-section .open-day-fact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--primary-color);
}

.open-day-cta-section .fact-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.open-day-cta-section .fact-icon--clock {
  -webkit-mask-image: url('/icons/pillars/clock.svg');
  mask-image: url('/icons/pillars/clock.svg');
}

.open-day-cta-section .fact-icon--user {
  -webkit-mask-image: url('/icons/pillars/user-tie.svg');
  mask-image: url('/icons/pillars/user-tie.svg');
}

.open-day-cta-section .fact-icon--tag {
  -webkit-mask-image: url('/icons/pillars/tag.svg');
  mask-image: url('/icons/pillars/tag.svg');
}

.open-day-cta-section .open-day-fact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.open-day-cta-section .open-day-fact-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
}

.open-day-cta-section .open-day-fact-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* -- Register button breathing room ----------------------------- */

.open-day-cta-section__register {
  margin-top: 32px;
}

/* -- Tablet (<= 1024px) ----------------------------------------- */

@media (max-width: 1024px) {
  .open-day-cta-section {
    padding: var(--space-2xl) 20px;
  }

  .open-day-cta-section__title {
    font-size: 32px;
  }

  .open-day-cta-section .open-day-facts {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 10px;
  }
}

/* -- Mobile (<= 768px) ------------------------------------------ */

@media (max-width: 768px) {
  .open-day-cta-section__eyebrow {
    font-size: 12px;
    letter-spacing: 0.24em;
    gap: 10px;
  }

  .open-day-cta-section__eyebrow::before,
  .open-day-cta-section__eyebrow::after {
    width: 36px;
    height: 1.5px;
  }

  .open-day-cta-section__title {
    font-size: 28px;
  }

  .open-day-cta-section__lead {
    font-size: 16px;
  }
}
