/* About HAE Page Specific Styles */
/* Only unique styles that don't exist in the component system */

/* Statistics Section - Unique spacing for overlapping design */
.section--lg:first-of-type {
  position: relative;
  padding: 228px 0 0;
}

.section--lg:first-of-type .card-grid {
  margin-top: -162px;
  position: relative;
  z-index: var(--z-base);
}

/* Statistics Cards - Only unique styling */
.stats-card {
  /*border: 8px solid var(--color-gray-300);*/
  text-align: center;
  background: linear-gradient(white, white) padding-box, /* Inner background */ linear-gradient(90deg, #DEE1E3, #FFFBE6, #D4CBBF, #EDECEC, #D6D4BA) border-box;
  border: 8px solid transparent;
  border-radius: 24px;
}

.stats-card .card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 40px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
}

.stats-card__header {
  font-family: var(--font-agenda);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-card__number-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 80px;
  position: relative;
  top: -5px;
}

.stats-card__number--large {
  font-family: var(--font-agenda);
  font-weight: var(--font-weight-bold);
  font-size: 76px;
  color: var(--color-primary);
  line-height: 1;
}

.stats-card__fraction {
  display: flex;
  flex-direction: column;
  font-family: var(--font-agenda);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  color: var(--color-primary);
}

.stats-card__percentage {
  font-family: var(--font-agenda);
  font-weight: var(--font-weight-bold);
  font-size: 76px;
  color: var(--color-primary);
  text-align: center;
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  top: -5px;
}

.stats-card__large-text {
  font-family: var(--font-agenda);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  line-height: 1;
  color: var(--color-primary);
  text-align: center;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -5px;
}

.stats-footnote {
  bottom: 43.5px;
  left: var(--container-padding);
  right: var(--container-padding);
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: left;
  line-height: var(--line-height-normal);
  margin-top: 32px;
  margin-bottom: 26px;
  margin-left: 6px;
}

.hang-note {
  margin-left: -6px;
}

/* Piping Decorative Elements */
.piping-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 120px;
  height: 228px;
  transform: rotate(180deg) scaleY(-1);
  z-index: var(--z-negative);
}

.piping-asset {
  width: 100%;
  height: 100%;
}

.cards-section {
  padding: 0;
  z-index: 4;
}

/* Action Ccards-sectionards Section - Background customization only */
.action-cards-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}

.card__body .card__title {
  text-align: center;
  margin-bottom: 16px;
}

.card__body .abh-card {
  font-size: 20px;
  padding-left: 16px;
  padding-right: 16px;
  line-height: normal;
}

.abh-action {
  justify-self: center;
}

.action-cards-section .section__container {
  position: relative;
  z-index: 2;
}

.section--pipes-mobile {
  display: none;
}
@media (max-width: 641px) {
  .action-cards-section {
    padding-top: 0;
  }
  .section--pipes-mobile {
    display: block;
    margin-bottom: 50px;
  }
}

.action-cards-section .card-grid {
  position: relative;
  z-index: var(--z-base);
}

/* Action Cards */
.action-card {
  background: linear-gradient(white, white) padding-box, /* Inner background */ linear-gradient(90deg, #DEE1E3, #FFFBE6, #D4CBBF, #EDECEC, #D6D4BA) border-box;
  border: 8px solid transparent;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  padding-top: var(--space-4xl);
  overflow: visible;
  position: relative;
  text-align: left;
}

.action-card__icon {
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  z-index: var(--z-dropdown);
}

.action-card__icon-bg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  position: relative;
}

.action-card__icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.action-card__icon-element {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Section Background */
.section-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 1440px;
  height: 500px;
  transform: rotate(0);
  z-index: 1;
  width: 100%;
}

.bg-circles {
  width: 100%;
  height: 100%;
  object-fit: cover;

  @media (max-width: 767px) {
    object-fit: fill;
  }
}

.piping-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  transform: rotate(180deg);
  z-index: var(--z-negative);
}

.placeholder-text {
  color: var(--color-placeholder) !important;
}

.prescribing-info {
  font-weight: var(--font-weight-bold);
}

.underline {
  text-decoration: underline;
  color: var(--color-text-secondary);
}

.privacy-choices {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.privacy-icon {
  width: 30px;
  height: 14px;
}

.product-code {
  color: var(--color-white);
}

.accessibility-logo {
  position: absolute;
  left: var(--space-2xl);
  bottom: -57px;
  width: 80px;
  height: 83px;
  background-size: 116.46% 113.41%;
  background-position: 76.92% 100%;
  background-repeat: no-repeat;
  border-radius: 79px;
  overflow: hidden;
}

.accessibility-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section--pipes {
  max-width: 1440px;
  height: 1px;
  margin: 0 auto;
  position: relative;

  @media (max-width: 1370px) {
    display: none;
  }
}
.rotate-180 {
  transform: rotate(180deg);
}
/* Desktop */
.pipes-container {
  img {
    display: none;
  }
}
@media (min-width: 992px) {
  .pipes-container {
    background: unset;
    height: 700px;
    width: 86px;
    margin-bottom: 50px;
    position: absolute;
    top: -242px;
    right: 0;
    z-index: 2;
  }

  .pipes-container img {
    display: block;
    max-height: 690px;
  }
}


@media (min-width:769px) and (max-width: 1370px) {
  .hero__title {
    font-size: var(--font-size-4xl);
    margin-bottom: 1rem;
    line-height: normal;
  }

  .hero__subtitle {
    font-size: 22px;
    margin-bottom: 16px;
  }  
}


@media (max-width: 992px) {  

  .section--lg:first-of-type .card-grid {
    margin-top: -120px;
  }


  .stats-card__number--large {
    font-size: 60px;
  }

  .stats-card__percentage {
    font-size: 60px;
  }

  .stats-card__large-text {
    font-size: 36px;
  }

  .about-hae-hero {
    padding-bottom: 0px;
  }
}

@media (max-width: 767px) {
  .hero__background {
    img {
      height: 50% !important;
    }
  }
  .hero--overlay {
    min-height: 400px;
  }

  .hero__title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 22px;
    color: var(--color-charcol);
    font-weight: 400;
  }

  .section--lg:first-of-type .card-grid {
    margin-top: -80px;
  }

  .footer-nav {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .accessibility-logo {
    position: static;
    margin-top: var(--space-lg);
  }
}

@media (max-width: 479px) {
  .stats-card__number--large {
    font-size: 76px;
  }

  .stats-card__percentage {
    font-size: 76px;
  }

  .stats-card__large-text {
    font-size: 48px;
  }
}

@media (max-width: 1400px) {
  .hero__background {
    img {
      height: 70%;
    }
  }
}

@media (min-width: 1025px) {
  .hero--overlay .hero__subtitle {
    color: var(--color-charcol);
    font-weight: 400;
    margin-bottom: 24px;
  }

  .hero--overlay .hero_description {
    color: var(--color-white);
    width: 790px;
  }
}

.card__title {
  text-align: center;
}

.card__actions {
  justify-content: center;
}

.stats-card__header {
  font-size: 24px;
}

.card__text {
  font-size: 20px;
  line-height: normal;

  @media (min-width: 992px) {
    margin-top: auto;
  }
}

.common {
  @media (min-width: 992px) {
    margin-top: auto;
  }
}

.stats-card__text {
  font-size: 24px;
  line-height: 20px;
}

.action-card {
  .card__body {
    padding: 6px 40px 40px 40px;
    gap: 16px;
    display: flex;
    flex-direction: column;

    @media (max-width: 425px) {
      padding: 6px 24px 40px 24px;
      gap: 24px;
    }

    .card__title{
      font-size: 26px;
      text-align: center;
      margin-bottom: 0px;
    }

    .card_common {

      display: flex;
      flex-direction: column;
      gap: 24px;

      .card__text {
        margin-bottom: 0px;
      }
      .card__actions {
        margin-top: 0px;

        a.download-guide-link {
          color: #FFFFFF;
        }

        a.btn-card {
          width: 100%;
          padding-right: 16px;
          height:48px;
        }
      }
    }

    .card__actions {
      justify-content: center;
    }
  }
}

.hero__container.about-hae-hero-description {
  font-size: 20px;
  line-height: normal;
}

.action-cards-wrapper {
  @media (max-width: 872px) {
    gap: 80px;
  }
}

.hero__text {
  max-width: 720px;
  margin-bottom: 0;

  .ahe-second-subtitle {
    margin-bottom: 0;
  }
}

.about-hae-hero {
  gap: 35px;

  @media (min-width: 769px) and (max-width: 992px) {
    padding-top: 20px;
  }
}

.hero__title {
  color: var(--color-charcol);
  text-shadow: none;
  max-width: 720px;
}

.hero--overlay .hero__subtitle {
  color: var(--color-charcol);
  text-shadow: none;
  font-weight: 400;
  width: 100%;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

@media (min-width:769px) and (max-width: 1370px) {
  .hero__content {
    width: 90%;
    max-width: none;
    .hero__title {
      max-width: none;
    }
 
  }
}

@media (min-width: 769px) and (max-width: 825px) {
  .hero__content {
    width: 100%;
    max-width: none;
    
  }
  
}
