/* ==========================================================================
   Events intro ("Η γνώση ταξιδεύει σε όλη την Ελλάδα") — Figma 126:251,
   Δράσεις page. Heading left; lead text + key-figures strip right.
   .event-stats           strip with 3 figures split by thin dividers, on a
                          soft warm-to-blue gradient with a faint wave mark
   .event-stat            icon + value + label
   ========================================================================== */

.events-intro {
  padding-block: 100px 103px; /* Figma: 100px under the hero, 103px above the map */
}

.events-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 46.68%) minmax(0, 1fr); /* Figma: text column at x 909.5 */
  align-items: start;
}

.events-intro__title {
  margin-top: 7px; /* Figma: title y 606, text y 599 */
  color: var(--color-heading);
  font-size: var(--text-xl);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--leading-title);
  text-wrap: balance;
}

.events-intro__text {
  max-width: 712px;
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--leading-prose);
  text-wrap: pretty;
}

.events-intro__text strong {
  font-weight: var(--font-weight-semibold);
}

/* ---- Key figures ---------------------------------------------------------- */
.event-stats {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  margin-top: 40px;
  padding: 15px 30px;
  background: var(--gradient-stats);
}

/* Faint wave mark at the right edge */
.event-stats::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 116.57px;
  height: 93.96px;
  background: url("../../assets/images/stats-wash.svg") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.event-stat {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Figma column widths: 151 | 157 (24 inset) | 207 (27 inset), 1px dividers */
.event-stat:nth-child(1) { width: 151px; }

.event-stat:nth-child(2) {
  width: 158px;
  gap: 14px;
  padding-left: 24px;
}

.event-stat:nth-child(3) {
  width: 208px;
  gap: 10px;
  padding-left: 27px;
}

.event-stat + .event-stat {
  border-left: 1px solid var(--color-stat-divider);
}

/* The Figma icons carry a soft shadow, so the SVGs overflow the 36px box */
.event-stat__icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
}

.event-stat__icon img {
  position: absolute;
  max-width: none;
}

.event-stat:nth-child(1) .event-stat__icon img { inset: -5.25px -2.25px; width: 40.5px; height: 46.5px; }
.event-stat:nth-child(2) .event-stat__icon img { inset: -3.75px -5.25px; width: 46.5px; height: 43.5px; }
.event-stat:nth-child(3) .event-stat__icon img { inset: -5.25px -3.75px; width: 43.5px; height: 46.5px; }

.event-stat__copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-stat__value {
  color: var(--color-stat-value);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* "Σε όλη την Ελλάδα" is a phrase, not a number */
.event-stat__value--text {
  font-size: var(--text-md);
  line-height: 20px; /* sits on the same line as the 20px numbers */
}

.event-stat__label {
  color: var(--color-stat-label);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-snug);
}

/* ---- Laptop / tablet: stacked ------------------------------------------------ */
@media (max-width: 1500px) {
  .events-intro__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .events-intro__title {
    margin-top: 0;
  }
}

@media (max-width: 1100px) {
  .events-intro {
    padding-block: 72px;
  }
}

/* ---- Phone: figures as a column ------------------------------------------- */
@media (max-width: 700px) {
  .events-intro {
    padding-block: 56px;
  }

  .event-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
    padding: 20px;
  }

  .event-stat:nth-child(n) {
    width: auto;
    align-items: center;
    padding-left: 0;
  }

  /* Full width here: Figma's line breaks only fit the narrow desktop columns */
  .event-stat br {
    display: none;
  }

  .event-stat + .event-stat {
    padding-top: 16px;
    border-top: 1px solid var(--color-stat-divider);
    border-left: 0;
  }
}
