/**
 * MDACS Figures at a Glance Component
 * Statistics section with animated numbers
 */

/* Section Container */
.mdacs-figures-section {
  padding: 60px 12vw;
  margin: 0 auto;
}

/* Title - Purple */
.mdacs-figures-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #622bcc;
  margin: 0 0 10px 0;
  text-align: left;
  padding-left: 1.5vw;
}

/* Subtitle - Gray */
.mdacs-figures-subtitle {
  font-size: 1em;
  color: #555;
  margin: 0 0 40px 0;
  text-align: left;
  padding-left: 1.5vw;
}

/* Grid Layout */
.mdacs-figures-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: center;
}

/* Card Container */
.mdacs-figures-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}

/* Add divider after cards except last one */
.mdacs-figures-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 100px;
  background-color: #ddd;
}

.mdacs-figures-card:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

/* Number Wrapper */
.mdacs-figures-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

/* Number - Orange */
.mdacs-figures-number {
  font-size: 8em;
  font-weight: 700;
  color: #F76926;
  line-height: 1;
}

/* Suffix (plus sign) - Purple */
.mdacs-figures-suffix {
  font-size: 2.5em;
  font-weight: 700;
  color: #622bcc;
  margin-left: 2px;
}

/* Subtitle Text */
.mdacs-figures-subtitle-text {
  font-size: 1.2em;
  color: #555;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Logo */
.mdacs-figures-logo {
  max-width: 190px;
  height: auto;
  margin-top: 8px;
  display: block;
}

/* 2nd grid item padding top to align with number height */
.mdacs-figures-card:nth-child(2) {
  padding-top: 100px;
}

/* Responsive - Tablet */
@media screen and (max-width: 1280px) {
  .mdacs-figures-section {
    padding: 40px 60px;
  }

  .mdacs-figures-title {
    font-size: 2em;
    text-align: left;
  }

  .mdacs-figures-subtitle {
    text-align: left;
  }

  .mdacs-figures-number {
    font-size: 8em;
  }

  .mdacs-figures-suffix {
    font-size: 7em;
  }

  .mdacs-figures-card:not(:last-child)::after {
    height: 60px;
  }

  /* Adjust padding for tablet */
  .mdacs-figures-card:nth-child(2) {
    padding-top: 20px;
  }

  /* Tablet divider height */
  .mdacs-figures-card:not(:last-child)::after {
    height: 100px;
  }
}

/* Responsive - Mobile */
@media screen and (max-width: 768px) {
  .mdacs-figures-section {
    padding: 40px 24px;
  }

  .mdacs-figures-title {
    font-size: 1.75em;
    text-align: left;
  }

  .mdacs-figures-subtitle {
    font-size: 0.7em;
    margin-bottom: 30px;
    text-align: left;
  }

  /* Vertical stack */
  .mdacs-figures-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mdacs-figures-card {
    padding: 24px 16px;
  }

  .mdacs-figures-number {
    font-size: 6em;
  }

  .mdacs-figures-suffix {
    font-size: 2em;
  }

  .mdacs-figures-subtitle-text {
    font-size: 1em;
  }

  .mdacs-figures-logo {
    max-width: 160px;
  }

  /* Horizontal divider on mobile - use pseudo-element */
  .mdacs-figures-card:not(:last-child)::after {
    right: auto;
    left: 5%;
    top: auto;
    bottom: 0;
    transform: none;
    width: 90%;
    height: 1px;
  }

  /* Remove extra padding on mobile */
  .mdacs-figures-card:nth-child(2) {
    padding-top: 24px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .mdacs-figures-section {
    padding: 30px 15px;
  }

  .mdacs-figures-title {
    font-size: 1.5em;
    text-align: left;
  }

  .mdacs-figures-subtitle {
    font-size: 0.7em;
    text-align: left;
  }

  .mdacs-figures-number {
    font-size: 6em;
  }

  .mdacs-figures-suffix {
    font-size: 2em;
  }

  .mdacs-figures-subtitle-text {
    font-size: 0.9em;
  }

  .mdacs-figures-logo {
    max-width: 160px;
  }

  /* Remove extra padding on small mobile */
  .mdacs-figures-card:nth-child(2) {
    padding-top: 24px;
  }
}
