/* ========================
   Data Impact Feature Section
   ======================== */
.data-impact-header-section {
  gap: var(--space-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-9);
}

.data-impact-feature-section .text-description {
  margin: 0 auto;
  margin-bottom: var(--space-12);
  max-width: 40rem;
}

/* Mobile First - Base Styles for < 576px */
.data-impact-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: white;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

/* Image Section */
.data-impact-media {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  min-height: 12.5rem;
}

.data-impact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Panel Section (Right side with emerald background) */
.data-impact-panel {
  background-color: var(--bs-success);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  min-width: auto;
  color: var(--bs-white);
}

.panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-6);
  width: 100%;
}

/* Percentage Value */
.percentage-value {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 3rem;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
}

/* Percentage Content (Text + Separator) */
.percentage-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-12);
  width: 100%;
}

/* Separator Line */
.separator {
  width: 6.25rem;
  height: 0.1875rem;
  background-color: var(--bs-white);
  border-radius: 0.125rem;
}

/* Percentage Text */
.percentage-text {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
  max-width: 18.75rem;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .data-impact-feature-section .text-description {
    margin-bottom: var(--space-14);
  }

  .data-impact-media {
    min-height: 15.625rem;
  }

  .data-impact-panel {
    padding: var(--space-7);
  }

  .percentage-value {
    font-size: 3.75rem;
  }

  .separator {
    width: 7.5rem;
  }

  .percentage-text {
    font-size: var(--font-size-14);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .data-impact-feature-section .text-description {
    margin-bottom: var(--space-16);
  }

  .data-impact-media {
    min-height: 18.75rem;
  }

  .data-impact-panel {
    padding: var(--space-8);
  }

  .percentage-value {
    font-size: 5rem;
  }

  .separator {
    width: 8.75rem;
  }

  .percentage-text {
    font-size: var(--font-size-16);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .data-impact-feature-section .text-description {
    margin-bottom: var(--space-18);
  }

  .data-impact-card {
    flex-direction: row;
  }

  .data-impact-media {
    border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
    height: 30.125rem;
  }

  .data-impact-panel {
    border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
    min-width: 26.5rem;
    padding: var(--space-10);
  }

  .percentage-value {
    font-size: 7.5rem;
  }

  .separator {
    width: 10rem;
  }

  .percentage-text {
    font-size: var(--font-size-18);
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .data-impact-feature-section .text-description {
    margin-bottom: var(--space-22);
  }

  .percentage-value {
    font-size: 9.375rem;
  }

  .data-impact-panel {
    padding: var(--space-20);
  }

  .separator {
    width: 11.25rem;
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Inherits from 1200px and up */
}

/* XXX-Large devices (1600px and up) */
@media (min-width: 1600px) {
  /* Inherits from 1400px and up */
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .data-impact-card {
    transition: none;
  }
}
