/* ===== GLOBAL ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #f3f2f7; /* palette soft bg */
  overflow-x: hidden;
}

/* Optional: use for big headings */
.heading-font {
  font-family: "Analogue Reduced", "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== TYPING EFFECT (hero) ===== */
.typing-text {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(0.95rem, 2.1vw, 1.6rem);
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: clip;
  border-right: 3px solid #2f4acd;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@media (min-width: 768px) {
  .typing-wrap {
    min-height: 2.6em;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .typing-text {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .typing-text {
    font-size: clamp(0.62rem, 1.8vw, 0.86rem);
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .typing-text {
    font-size: clamp(0.54rem, 2.4vw, 0.74rem);
  }
}

@media (max-width: 480px) {
  .typing-text {
    font-size: clamp(0.52rem, 2.2vw, 0.7rem);
    letter-spacing: -0.01em;
  }
}

@media (max-width: 420px) {
  .typing-text {
    font-size: clamp(0.48rem, 2vw, 0.66rem);
    letter-spacing: -0.012em;
  }
}

/* ===== EMBLA VIDEO SLIDER WIDTHS ===== */
/* 5 cards desktop, 3 tablet, 1 mobile */
[data-embla="videoCards"] .embla__slide {
  flex: 0 0 20%;
}

@media (max-width: 1024px) {
  [data-embla="videoCards"] .embla__slide {
    flex: 0 0 33.3333%;
  }
}

@media (max-width: 640px) {
  [data-embla="videoCards"] .embla__slide {
    flex: 0 0 100%;
  }
}

/* Fix thumbnail height so layout doesn't jump */
.video-card img {
  height: 130px;
}

.embla__container {
  display: flex;
}

.embla__slide {
  flex: 0 0 100%;
}
.hero-section {
  padding-bottom: 12rem; /* eliminates any possible 1px line */
}
/* Make testimonial video cards auto-stretch to tallest card */
.video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Embla slides stretch automatically */
.embla__slide {
  height: auto;
}

/* Consistent thumbnail height */
.video-thumb {
  height: 140px;       /* You can increase to 160/180 if you want taller thumbnails */
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Base state */
.curriculum-card{
  background-color: #ffffff;
  border-color: #e5e7eb;
  transition:
    background 800ms ease,
    border-color 800ms ease,
    color 800ms ease;
  will-change: background, border-color, color;
}

/* ✅ Active (in-view) state — GRADIENT */
.curriculum-card.visible{
  background: linear-gradient(
    135deg,
    #202B6D 0%,
    #2F4ACD 100%
  ) !important;
  border-color: #FF8B00 !important;
}

/* Text & icons turn white */
.curriculum-card.visible h3,
.curriculum-card.visible p,
.curriculum-card.visible .fas{
  color: #ffffff !important;
}

/* Optional: icon container contrast */
.curriculum-card.visible .icon-wrap{
  background-color: rgba(255,255,255,0.18) !important;
}
