/* ==========================================================================
   AVCO Design System - Certifications Page
   Matches certifications.html reference design.
   ========================================================================== */

/* ===== HERO SECTION ===== */
body.avco-page .avco-cert-hero {
  display: flex;
  justify-content: space-between;
  padding-left: 3.75rem;
  position: relative;
  width: 100%;
  min-height: 36.5625rem; /* 585px */
}

body.avco-page .avco-cert-hero__pattern {
  position: absolute;
  bottom: -0.5625rem; /* -9px */
  left: 0;
  width: 49.5rem; /* 792px */
  height: 12.8125rem; /* 205px */
  z-index: 0;
}

body.avco-page .avco-cert-hero__pattern img {
  width: 100%;
  height: 100%;
}

body.avco-page .avco-cert-hero__left {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 0 3rem 0;
  position: relative;
  z-index: 1;
}

body.avco-page .avco-cert-hero__top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.avco-page .avco-cert-hero__title {
  font-family: var(--avco-font-heading);
  font-size: 3.25rem; /* 52px */
  font-weight: 700;
  line-height: 1.2;
  color: var(--avco-primary-950);
  letter-spacing: -0.065rem; /* -1.04px */
  width: 33.75rem; /* 540px */
  margin: 0;
}

body.avco-page .avco-cert-hero__description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-gray-600);
  width: 33.75rem;
}

body.avco-page .avco-cert-hero__description p {
  margin: 0;
}

body.avco-page .avco-cert-hero__cta {
  margin-top: 0;
}

body.avco-page .avco-cert-hero__cta .avco-btn-primary {
  background: var(--avco-primary-800);
  color: var(--avco-white);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  min-width: 12.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

body.avco-page .avco-cert-hero__cta .avco-btn-primary:hover {
  background: var(--avco-primary-900);
}

body.avco-page .avco-cert-hero__stats {
  display: flex;
  gap: 3rem;
  margin-left: var(--avco-space-2);
}

body.avco-page .avco-cert-hero__stat {
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem;
}

body.avco-page .avco-cert-hero__stat-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--avco-primary-950);
}

body.avco-page .avco-cert-hero__stat-value {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-gray-600);
}

body.avco-page .avco-cert-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 45rem; /* 720px */
  flex-shrink: 0;
  z-index: 1;
}

body.avco-page .avco-cert-hero__image {
  width: 45rem;
  height: 36.5625rem; /* 585px */
}

body.avco-page .avco-cert-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CERTIFICATIONS SECTION ===== */
body.avco-page .avco-cert-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 4rem 3.75rem;
  width: 100%;
}

body.avco-page .avco-cert-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

/* ===== CERTIFICATION CARD ===== */
body.avco-page .avco-cert-card {
  border: 1px solid var(--avco-primary-100);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

body.avco-page .avco-cert-card__image {
  background-color: var(--avco-primary-50);
  height: 28.5625rem; /* 457px */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  width: 100%;
}

body.avco-page .avco-cert-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body.avco-page .avco-cert-card__image a {
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
  transition: opacity 0.2s ease;
}

body.avco-page .avco-cert-card__image a:hover {
  opacity: 0.85;
}

/* Border image variant (first 6 cards) */
body.avco-page .avco-cert-card__img--border img {
  max-width: 19rem; /* 304px */
  max-height: 24.5625rem; /* 393px */
  border: 1px solid var(--avco-primary-200);
}

/* V2 image variant (last 2 cards - smaller images) */
body.avco-page .avco-cert-card__img--v2 img {
  max-width: 21.75rem; /* 348px */
  max-height: 17.5rem; /* 280px */
  border: 1px solid var(--avco-primary-100);
}

body.avco-page .avco-cert-card__content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0;
  width: 100%;
}

body.avco-page .avco-cert-card__top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

body.avco-page .avco-cert-card__shield {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  color: var(--avco-secondary-700);
}

body.avco-page .avco-cert-card__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

body.avco-page .avco-cert-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--avco-primary-950);
  margin: 0;
}

body.avco-page .avco-cert-card__desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.avco-page .avco-cert-card__detail {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--avco-secondary-700);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

body.avco-page .avco-cert-card__detail:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1279px) {
  body.avco-page .avco-cert-hero {
    flex-direction: column;
    padding-left: 2rem;
  }
  body.avco-page .avco-cert-hero__stats {
    margin-top: 1rem;
    margin-left: 0;
  }

  body.avco-page .avco-cert-hero__left {
    width: 100%;
    padding: 3rem 0 2rem 0;
  }

  body.avco-page .avco-cert-hero__title {
    width: 100%;
    font-size: 2.5rem;
  }

  body.avco-page .avco-cert-hero__description {
    width: 100%;
  }

  body.avco-page .avco-cert-hero__right {
    width: 100%;
  }

  body.avco-page .avco-cert-hero__image {
    width: 100%;
  }

  body.avco-page .avco-cert-section {
    padding: 3rem 2rem;
  }

  body.avco-page .avco-cert-row {
    flex-direction: column;
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 767px) {
  body.avco-page .avco-cert-hero {
    padding: 0;
    flex-direction: column;
  }

  body.avco-page .avco-cert-hero__pattern {
    display: none;
  }

  body.avco-page .avco-cert-hero__left {
    padding: 2rem 1rem;
  }

  body.avco-page .avco-cert-hero__title {
    width: 100%;
    font-size: 2.5rem;
    letter-spacing: -0.04rem;
  }

  body.avco-page .avco-cert-hero__description {
    width: 100%;
  }

  body.avco-page .avco-cert-hero__stats {
    flex-wrap: wrap;
  }

  body.avco-page .avco-cert-hero__right {
    width: 100%;
  }

  body.avco-page .avco-cert-hero__image {
    width: 100%;
    height: auto;
    padding: 0 1rem;
  }

  body.avco-page .avco-cert-section {
    padding: 2rem 1rem;
    gap: 1rem;
  }

  body.avco-page .avco-cert-row {
    flex-direction: column;
    gap: 1rem;
  }

  body.avco-page .avco-cert-card__image {
    height: auto;
    min-height: 425px;
  }

  body.avco-page .avco-cert-card__top {
    gap: 1rem;
  }

  body.avco-page .avco-cert-card__shield {
    width: 3rem;
    height: 3rem;
  }

  body.avco-page .avco-cert-card__title {
    font-size: 1.25rem;
  }
}
@media (max-width: 430px) {
    body.avco-page .avco-cert-card__img--border img {
        max-width: 100%;
        max-height: 100%;
    }
}
@media (max-width: 390px) {
   body.avco-page .avco-cert-hero__stats {
     gap: 1.5rem;
   }
}

/* ===== RESPONSIVE: SMALL MOBILE ===== */
@media (max-width: 375px) {
  body.avco-page .avco-cert-hero__title {
      font-size: 2.5rem;
      width: 343px;
      letter-spacing: -0.04em;
      line-height: 130%;
  }

  body.avco-page .avco-cert-hero__description {
    width: 343px;
  }

  body.avco-page .avco-cert-hero__stats {
    flex-direction: column;
  }

  body.avco-page .avco-cert-card__shield {
    width: 2rem;
    height: 2rem;
  }

  body.avco-page .avco-cert-card__content {
    padding: 1rem;
  }

  body.avco-page .avco-cert-card__top {
    gap: 0.75rem;
  }

  body.avco-page .avco-cert-card__desc {
    font-size: 0.875rem !important;
  }

  body.avco-page .avco-cert-card__detail {
    font-size: 0.875rem;
  }

  body.avco-page .avco-cert-hero__left {
    padding: 2rem 1rem 1.5rem;
  }

}

