/* ==========================================================================
   Apollo Plus — Main Stylesheet
   BEM classes prefixed with `ap-` for redesigned pages
   Loaded after legacy CSS; overrides only on pages using ap- markup.
   ========================================================================== */

/* ------------------------------------------------------------------
   0. Base / Reset overrides for redesigned pages
   ------------------------------------------------------------------ */
.ap-page {
  font-family: var(--ap-font-body);
  font-weight: var(--ap-weight-regular);
  font-size: var(--ap-text-base);
  line-height: var(--ap-leading-normal);
  color: var(--ap-text-primary);
  background: var(--ap-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.ap-page *,
.ap-page *::before,
.ap-page *::after {
  box-sizing: border-box;
}

/* ------------------------------------------------------------------
   1. Container
   ------------------------------------------------------------------ */
.ap-container {
  width: 100%;
  max-width: var(--ap-container);
  margin: 0 auto;
  padding-left: var(--ap-container-px);
  padding-right: var(--ap-container-px);
}

.ap-container--narrow {
  max-width: var(--ap-container-narrow);
}

.ap-container--wide {
  max-width: var(--ap-container-wide);
}

/* ------------------------------------------------------------------
   2. Typography
   ------------------------------------------------------------------ */
.ap-page h1, .ap-page h2, .ap-page h3, .ap-page h4, .ap-page h5 {
  font-family: var(--ap-font-heading);
  font-weight: var(--ap-weight-bold);
  line-height: var(--ap-leading-tight);
  letter-spacing: var(--ap-tracking-tight);
  color: var(--ap-text-primary);
  margin: 0;
}

.ap-overline {
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-tracking-widest);
  text-transform: uppercase;
  color: var(--ap-accent);
}

.ap-overline--light {
  color: var(--ap-teal-300);
}

.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  padding: var(--ap-space-2) var(--ap-space-4);
  background: rgba(10,191,170,0.1);
  border: 1px solid rgba(10,191,170,0.2);
  border-radius: var(--ap-radius-full);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-tracking-wider);
  text-transform: uppercase;
  color: var(--ap-teal-300);
}

.ap-text-accent {
  color: var(--ap-accent);
}

/* ------------------------------------------------------------------
   3. Buttons
   ------------------------------------------------------------------ */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ap-space-2);
  padding: var(--ap-space-4) var(--ap-space-8);
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--ap-radius-full);
  cursor: pointer;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
  white-space: nowrap;
}

.ap-btn--primary {
  background: var(--ap-accent);
  color: var(--ap-white);
  border-color: var(--ap-accent);
}

.ap-btn--primary:hover {
  background: var(--ap-accent-hover);
  border-color: var(--ap-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,191,170,0.3);
}

.ap-btn--outline {
  background: transparent;
  color: var(--ap-white);
  border-color: rgba(255,255,255,0.4);
}

.ap-btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--ap-white);
  transform: translateY(-2px);
}

.ap-btn--outline-dark {
  color: var(--ap-text-primary);
  border-color: var(--ap-border);
}

.ap-btn--outline-dark:hover {
  border-color: var(--ap-accent);
  color: var(--ap-accent);
  transform: translateY(-2px);
}

.ap-btn--nav {
  padding: var(--ap-space-2) var(--ap-space-5);
  font-size: var(--ap-text-xs);
  background: var(--ap-accent);
  color: var(--ap-white);
  border-color: var(--ap-accent);
}

.ap-btn--nav:hover {
  background: var(--ap-accent-hover);
  border-color: var(--ap-accent-hover);
}

/* ------------------------------------------------------------------
   4. Navigation
   ------------------------------------------------------------------ */
.ap-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--ap-z-nav);
  padding: var(--ap-space-5) 0;
  background: var(--ap-white);  /* Fallback: solid white if JS fails */
  transition: all var(--ap-duration-slow) var(--ap-ease-smooth);
}

.ap-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ap-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: calc(var(--ap-z-nav) + 1);
}

.ap-nav__logo-img {
  height: 52px;
  width: auto;
  transition: opacity var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-nav__logo-img--white { display: none; }
.ap-nav__logo-img--dark  { display: block; }

.ap-nav--scrolled .ap-nav__logo-img--white { display: none; }
.ap-nav--scrolled .ap-nav__logo-img--dark  { display: block; }

.ap-nav__links {
  display: flex;
  align-items: center;
  gap: var(--ap-space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ap-nav__link {
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-medium);
  color: var(--ap-text-secondary);
  text-decoration: none;
  position: relative;
  padding: var(--ap-space-1) 0;
  transition: color var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ap-accent);
  transition: width var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-nav__link:hover::after,
.ap-nav__link--active::after {
  width: 100%;
}

.ap-nav__link:hover {
  color: var(--ap-text-primary);
}

/* Hero state — transparent overlay (JS adds this on homepage) */
.ap-nav--hero {
  background: transparent;
}
.ap-nav--hero .ap-nav__link {
  color: rgba(255,255,255,0.85);
}
.ap-nav--hero .ap-nav__link:hover,
.ap-nav--hero .ap-nav__link--active {
  color: var(--ap-white);
}
.ap-nav--hero .ap-nav__logo-img--white { display: block; }
.ap-nav--hero .ap-nav__logo-img--dark  { display: none; }
.ap-nav--hero .ap-nav__hamburger-line {
  background: var(--ap-white);
}
.ap-nav--hero .ap-btn--nav {
  border-color: rgba(255,255,255,0.3);
}

/* Scrolled state — solid white */
.ap-nav--scrolled {
  background: var(--ap-white);
  padding: var(--ap-space-3) 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.ap-nav--scrolled .ap-nav__link {
  color: var(--ap-text-secondary);
}

.ap-nav--scrolled .ap-nav__link:hover,
.ap-nav--scrolled .ap-nav__link--active {
  color: var(--ap-text-primary);
}

/* Inner page nav — solid white */
.ap-nav--inner {
  background: var(--ap-white);
  padding: var(--ap-space-3) 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.ap-nav--inner .ap-nav__link {
  color: var(--ap-text-secondary);
}

.ap-nav--inner .ap-nav__link:hover,
.ap-nav--inner .ap-nav__link--active {
  color: var(--ap-text-primary);
}

.ap-nav--inner .ap-nav__logo-img--white { display: none; }
.ap-nav--inner .ap-nav__logo-img--dark  { display: block; }

/* Hamburger */
.ap-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--ap-z-nav) + 1);
}

.ap-nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ap-text-primary);
  border-radius: 2px;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-nav__hamburger-line + .ap-nav__hamburger-line {
  margin-top: 6px;
}

.ap-nav--scrolled .ap-nav__hamburger-line,
.ap-nav--inner .ap-nav__hamburger-line {
  background: var(--ap-text-primary);
}

/* Mobile overlay */
.ap-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ap-bg-dark);
  z-index: var(--ap-z-nav);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ap-space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ap-duration-slow) var(--ap-ease-smooth),
              visibility var(--ap-duration-slow) var(--ap-ease-smooth);
}

.ap-nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ap-nav__overlay-link {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-3xl);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
}

@media (max-width: 767px) {
  .ap-nav__links { display: none; }
  .ap-nav .ap-btn--nav { display: none; }
  .ap-nav__hamburger { display: flex; }
  .ap-nav__overlay { display: flex; }
}

/* ------------------------------------------------------------------
   5. Hero — Full-viewport (Homepage)
   ------------------------------------------------------------------ */
.ap-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--ap-navy-900) 0%, #0d1f3c 50%, var(--ap-navy-800) 100%);
  overflow: hidden;
  padding-top: var(--ap-space-16);
}

.ap-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10,191,170,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ap-hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10,191,170,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ap-hero__content {
  position: relative;
  z-index: var(--ap-z-base);
  max-width: 900px;
}

.ap-hero__badge {
  margin-bottom: var(--ap-space-6);
}

h1.ap-hero__title {
  font-family: var(--ap-font-heading);
  font-weight: var(--ap-weight-extrabold);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  line-height: var(--ap-leading-tight);
  letter-spacing: var(--ap-tracking-tight);
  color: var(--ap-white);
  margin-bottom: var(--ap-space-8);
}

.ap-hero__title-line {
  display: block;
  overflow: hidden;
}

.ap-hero__title-inner {
  display: block;
}

.ap-hero__rotating {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.15em;
}

.ap-hero__rotating-word {
  display: block;
  color: var(--ap-accent);
}

.ap-hero__subtitle {
  font-family: var(--ap-font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.35rem);
  font-weight: var(--ap-weight-medium);
  line-height: var(--ap-leading-snug);
  color: var(--ap-text-on-dark-muted);
  max-width: 600px;
  margin-bottom: var(--ap-space-10);
}

.ap-hero__ctas {
  display: flex;
  gap: var(--ap-space-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.ap-hero__scroll {
  position: absolute;
  bottom: var(--ap-space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ap-space-2);
  color: rgba(255,255,255,0.4);
  font-size: var(--ap-text-xs);
  letter-spacing: var(--ap-tracking-wider);
  text-transform: uppercase;
  animation: ap-bounce 2s infinite;
}

.ap-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes ap-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero — Compact (inner pages) */
.ap-hero--compact {
  min-height: 60vh;
  padding-top: var(--ap-space-32);
  padding-bottom: var(--ap-space-16);
}

.ap-hero--compact::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10,191,170,0.1) 0%, transparent 70%);
}

.ap-hero--compact::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(10,191,170,0.07) 0%, transparent 70%);
}

.ap-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
  margin-bottom: var(--ap-space-6);
  font-size: var(--ap-text-sm);
}

.ap-hero__breadcrumb a {
  color: var(--ap-text-on-dark-muted);
  text-decoration: none;
  transition: color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-hero__breadcrumb a:hover {
  color: var(--ap-white);
}

.ap-hero__breadcrumb-sep {
  color: var(--ap-text-on-dark-muted);
  font-size: var(--ap-text-xs);
}

/* ------------------------------------------------------------------
   Hero — Background Image
   ------------------------------------------------------------------ */
.ap-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ap-hero__bg img,
.ap-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%; /* Anchor on the facility band */
}

/* ------------------------------------------------------------------
   Hero — Split Layout
   ------------------------------------------------------------------ */
.ap-hero--split {
  background: linear-gradient(135deg, var(--ap-navy-900) 0%, #0d1f3c 50%, var(--ap-navy-800) 100%);
}

.ap-hero--split .ap-hero__bg {
  display: block;
  left: auto;
  right: 0;
  width: 50%;
}

/* Soft gradient bleed at boundary */
.ap-hero--split .ap-hero__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  background: linear-gradient(to right, var(--ap-navy-800), transparent);
}

/* Teal accent line at boundary */
.ap-hero--split .ap-hero__bg::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 0;
  bottom: 15%;
  width: 3px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--ap-accent), transparent);
}

.ap-hero--split::before,
.ap-hero--split::after {
  display: none;
}

.ap-hero--split .ap-hero__content {
  z-index: 2;
  max-width: min(560px, 45%);
}

.ap-hero--split .ap-hero__scroll {
  left: 25%;
  z-index: 2;
}

/* Tablet: show facility (bottom-up) instead of just sky */
@media (max-width: 1023px) and (min-width: 768px) {
  .ap-hero--split .ap-hero__bg img,
  .ap-hero--split .ap-hero__bg video {
    object-position: center bottom;
  }
}

@media (max-width: 767px) {
  .ap-hero--split {
    flex-direction: column;
    align-items: stretch;
  }

  .ap-hero--split .ap-hero__bg {
    position: relative;
    width: 100%;
    height: 40vh;
    order: -1;
    flex-shrink: 0;
  }

  .ap-hero--split .ap-hero__bg::before {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--ap-navy-900), transparent);
  }

  .ap-hero--split .ap-hero__bg::after {
    display: none;
  }

  .ap-hero--split .ap-hero__content {
    max-width: 100%;
    padding-top: var(--ap-space-6);
  }

  .ap-hero--split .ap-hero__scroll {
    left: 50%;
  }
}

/* ------------------------------------------------------------------
   Hero — Cinematic (full-width video)
   ------------------------------------------------------------------ */
.ap-hero--cinematic {
  flex-direction: column;
  align-items: stretch;
  padding-top: 0;
}

/* Video area: relative-positioned flex child, takes available space */
.ap-hero--cinematic .ap-hero__bg {
  position: relative;
  flex: 1 1 0%;
  width: 100%;
  inset: auto;
  background: var(--ap-navy-900);
}

/* Crop bottom 5%: anchor video to top, overflow clips bottom */
.ap-hero--cinematic .ap-hero__bg video,
.ap-hero--cinematic .ap-hero__bg img {
  object-position: center top;
}

/* Hide the split-hero pseudo-elements (gradient bleed / teal line) */
.ap-hero--cinematic .ap-hero__bg::before,
.ap-hero--cinematic .ap-hero__bg::after,
.ap-hero--cinematic::before,
.ap-hero--cinematic::after {
  display: none;
}

/* Gradient overlay for text readability on video */
.ap-hero--cinematic .ap-hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom,
    rgba(10, 20, 40, 0.85) 0%,
    rgba(10, 20, 40, 0.4) 70%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Content: absolutely positioned over video, in top 30% */
.ap-hero--cinematic .ap-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  height: auto;
}

.ap-hero--cinematic .ap-hero__content {
  max-width: 80%;
  padding-top: calc(80px + var(--ap-space-8));
}

/* Dark band at bottom with scroll indicator */
.ap-hero__scroll-band {
  flex: 0 0 auto;
  min-height: 80px;
  background: linear-gradient(135deg, var(--ap-navy-900) 0%, #0d1f3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Gradient seam from video to dark band */
.ap-hero__scroll-band::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--ap-navy-900));
  pointer-events: none;
}

/* Move scroll indicator into the band */
.ap-hero--cinematic .ap-hero__scroll {
  position: static;
  transform: none;
}

@media (max-width: 767px) {
  .ap-hero--cinematic .ap-hero__content {
    max-width: 100%;
    padding-top: calc(60px + var(--ap-space-6));
  }
  .ap-hero__scroll-band {
    min-height: 60px;
  }
}

.ap-hero__breadcrumb-current {
  color: var(--ap-white);
}

/* ------------------------------------------------------------------
   6. Section helpers
   ------------------------------------------------------------------ */
.ap-section {
  padding: var(--ap-section-py) 0;
}

.ap-section--gray {
  background: var(--ap-bg-secondary);
}

.ap-section--dark {
  background: var(--ap-bg-dark);
  color: var(--ap-text-on-dark);
}

.ap-section--dark h2,
.ap-section--dark h3 {
  color: var(--ap-white);
}

.ap-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--ap-space-16);
}

.ap-section__header .ap-overline {
  margin-bottom: var(--ap-space-4);
  display: block;
}

.ap-section__header h2 {
  font-size: var(--ap-text-4xl);
  margin-bottom: var(--ap-space-4);
}

@media (max-width: 767px) {
  .ap-section__header h2 {
    font-size: var(--ap-text-3xl);
  }
}

/* ------------------------------------------------------------------
   7. Pillars (homepage features)
   ------------------------------------------------------------------ */
.ap-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ap-space-8);
}

.ap-pillar {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-10);
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
  position: relative;
}

.ap-pillar:hover {
  border-color: var(--ap-accent);
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-md);
}

.ap-pillar__number {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-5xl);
  font-weight: var(--ap-weight-extrabold);
  color: var(--ap-accent);
  line-height: 1;
  margin-bottom: var(--ap-space-4);
}

.ap-pillar__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-xl);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-pillar__desc {
  font-size: var(--ap-text-base);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-6);
}

.ap-pillar__line {
  width: 40px;
  height: 3px;
  background: var(--ap-accent);
  border-radius: 2px;
  transition: width var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-pillar:hover .ap-pillar__line {
  width: 80px;
}

@media (max-width: 1023px) {
  .ap-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-pillars { grid-template-columns: 1fr; }
  .ap-pillar { padding: var(--ap-space-8); }
}

/* ------------------------------------------------------------------
   8. Partners / Logo marquee
   ------------------------------------------------------------------ */
.ap-partners__track {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ap-partners__slide {
  display: flex;
  align-items: center;
  gap: var(--ap-space-16);
  animation: ap-marquee 45s linear infinite;
  flex-shrink: 0;
  padding-right: var(--ap-space-16);
}

.ap-partners__track:hover .ap-partners__slide {
  animation-play-state: paused;
}

.ap-partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 90px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-partners__logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.ap-partners__logo img {
  max-height: 75px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}

@keyframes ap-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ------------------------------------------------------------------
   9. CTA / Contact section
   ------------------------------------------------------------------ */
.ap-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-16);
  align-items: center;
}

.ap-cta__heading {
  font-size: var(--ap-text-3xl);
  color: var(--ap-white);
  margin-bottom: var(--ap-space-6);
}

.ap-cta__text {
  color: var(--ap-text-on-dark-muted);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-8);
}

.ap-cta__contact-label {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
  margin-bottom: var(--ap-space-2);
}

.ap-cta__contact-email {
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-accent);
  text-decoration: none;
  transition: color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-cta__contact-email:hover {
  color: var(--ap-teal-300);
}

/* Form card */
.ap-form-card {
  background: var(--ap-white);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-10);
  box-shadow: var(--ap-shadow-xl);
}

.ap-form-card label {
  display: block;
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-medium);
  color: var(--ap-text-secondary);
  margin-bottom: var(--ap-space-2);
}

.ap-form-card input[type="text"],
.ap-form-card input[type="email"],
.ap-form-card textarea {
  width: 100%;
  padding: var(--ap-space-3) var(--ap-space-4);
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-base);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  background: var(--ap-bg-secondary);
  color: var(--ap-text-primary);
  transition: border-color var(--ap-duration-fast) var(--ap-ease-smooth);
  outline: none;
}

.ap-form-card input:focus,
.ap-form-card textarea:focus {
  border-color: var(--ap-accent);
  box-shadow: 0 0 0 3px rgba(10,191,170,0.1);
}

.ap-form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.ap-form-card .ap-form-group {
  margin-bottom: var(--ap-space-5);
}

.ap-form-card .ap-btn {
  width: 100%;
  margin-top: var(--ap-space-4);
}

.ap-form-card .success-message,
.ap-form-card .w-form-done {
  padding: var(--ap-space-4);
  background: var(--ap-accent-light);
  color: var(--ap-teal-700);
  border-radius: var(--ap-radius-sm);
  text-align: center;
}

.ap-form-card .error-message,
.ap-form-card .w-form-fail {
  padding: var(--ap-space-4);
  background: #fef2f2;
  color: #dc2626;
  border-radius: var(--ap-radius-sm);
  text-align: center;
}

@media (max-width: 767px) {
  .ap-cta { grid-template-columns: 1fr; gap: var(--ap-space-10); }
}

/* ------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------ */
.ap-footer {
  background: var(--ap-bg-dark);
  padding: var(--ap-space-16) 0 var(--ap-space-8);
}

.ap-footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--ap-space-16);
  padding-bottom: var(--ap-space-10);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ap-footer__brand {
  max-width: 360px;
}

.ap-footer__logo {
  display: inline-block;
  margin-bottom: var(--ap-space-5);
}

.ap-footer__logo img {
  height: 44px;
  width: auto;
}

.ap-footer__about {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-5);
}

.ap-footer__memberships {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
  line-height: var(--ap-leading-relaxed);
}

.ap-footer__memberships strong {
  color: var(--ap-white);
  display: block;
  margin-bottom: var(--ap-space-2);
}

.ap-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-3);
}

.ap-footer__link {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
  text-decoration: none;
  transition: color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-footer__link:hover {
  color: var(--ap-white);
}

.ap-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--ap-space-8);
  font-size: var(--ap-text-xs);
  color: var(--ap-text-on-dark-muted);
}

.ap-footer__legal {
  display: flex;
  gap: var(--ap-space-6);
}

.ap-footer__legal a {
  color: var(--ap-text-on-dark-muted);
  text-decoration: none;
  transition: color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-footer__legal a:hover {
  color: var(--ap-white);
}

@media (max-width: 767px) {
  .ap-footer__top {
    flex-direction: column;
    gap: var(--ap-space-10);
  }
  .ap-footer__bottom {
    flex-direction: column;
    gap: var(--ap-space-4);
    text-align: center;
  }
}

/* ------------------------------------------------------------------
   11. Service cards grid
   ------------------------------------------------------------------ */
.ap-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ap-space-8);
}

.ap-service-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ap-accent);
  transform: scaleX(0);
  transition: transform var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-md);
  border-color: transparent;
}

.ap-service-card:hover::before {
  transform: scaleX(1);
}

.ap-service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--ap-accent-light);
  border-radius: var(--ap-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ap-space-6);
}

.ap-service-card__icon img {
  width: 32px;
  height: 32px;
}

.ap-service-card__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-service-card__desc {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  flex: 1;
}

.ap-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  margin-top: var(--ap-space-6);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-accent);
  text-decoration: none;
  transition: gap var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-service-card__link:hover {
  gap: var(--ap-space-3);
}

.ap-service-card__link::after {
  content: '\2192';
}

@media (max-width: 1023px) {
  .ap-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-services-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   12. Editorial split sections (services page)
   ------------------------------------------------------------------ */
.ap-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-16);
  align-items: center;
}

.ap-editorial--reversed {
  direction: rtl;
}

.ap-editorial--reversed > * {
  direction: ltr;
}

.ap-editorial__image {
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ap-editorial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-editorial__content {
  padding: var(--ap-space-4) 0;
}

.ap-editorial__overline {
  margin-bottom: var(--ap-space-4);
}

.ap-editorial__title {
  font-size: var(--ap-text-2xl);
  font-weight: var(--ap-weight-bold);
  margin-bottom: var(--ap-space-4);
}

.ap-editorial__text {
  font-size: var(--ap-text-base);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
}

@media (max-width: 767px) {
  .ap-editorial {
    grid-template-columns: 1fr;
    gap: var(--ap-space-8);
  }
  .ap-editorial--reversed { direction: ltr; }
}

/* ------------------------------------------------------------------
   13. Compliance / checklist
   ------------------------------------------------------------------ */
.ap-compliance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-16);
  align-items: start;
}

.ap-compliance__heading {
  font-size: var(--ap-text-2xl);
  margin-bottom: var(--ap-space-4);
}

.ap-compliance__desc {
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
}

.ap-compliance__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.ap-compliance__item {
  display: flex;
  align-items: center;
  gap: var(--ap-space-3);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-medium);
  color: var(--ap-text-primary);
}

.ap-compliance__check {
  width: 24px;
  height: 24px;
  background: var(--ap-accent-light);
  border-radius: var(--ap-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ap-accent);
}

.ap-compliance__check svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  .ap-compliance {
    grid-template-columns: 1fr;
    gap: var(--ap-space-8);
  }
  .ap-compliance__list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   14. Team cards (about page)
   ------------------------------------------------------------------ */
.ap-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ap-space-8);
}

.ap-team-card {
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-lg);
}

.ap-team-card__photo {
  position: relative;
  padding: var(--ap-space-8) var(--ap-space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ap-gray-50);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Background pattern variants — cycled across cards */
.ap-team-card--bg1 .ap-team-card__photo { background-image: url('../images/cardbg1.png'); }
.ap-team-card--bg2 .ap-team-card__photo { background-image: url('../images/cardbg2.png'); }
.ap-team-card--bg3 .ap-team-card__photo { background-image: url('../images/cardbg3.png'); }
.ap-team-card--bg4 .ap-team-card__photo { background-image: url('../images/cardbg4.png'); }

.ap-team-card__photo img {
  width: 220px;
  height: 220px;
  border-radius: var(--ap-radius-full);
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid var(--ap-white);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.12);
  transition: transform var(--ap-duration-slow) var(--ap-ease-smooth),
              box-shadow var(--ap-duration-normal) var(--ap-ease-smooth);
  position: relative;
  z-index: 1;
}

/* Zoom-out modifier for tightly-cropped portraits */
.ap-team-card__photo img.ap-team-card__photo--zoom-out {
  object-fit: contain;
  background: var(--ap-gray-100);
}

.ap-team-card:hover .ap-team-card__photo img {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(10, 191, 170, 0.18);
}

.ap-team-card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.06) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--ap-space-6);
  opacity: 0;
  transition: opacity var(--ap-duration-normal) var(--ap-ease-smooth);
  z-index: 2;
}

.ap-team-card:hover .ap-team-card__photo-overlay {
  opacity: 1;
}

.ap-team-card__social-icon {
  width: 36px;
  height: 36px;
  background: var(--ap-white);
  border-radius: var(--ap-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-team-card__social-icon:hover {
  background: var(--ap-accent);
}

.ap-team-card__social-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--ap-text-primary);
}

.ap-team-card__social-icon:hover svg {
  fill: var(--ap-white);
}

.ap-team-card__info {
  padding: var(--ap-space-6);
}

.ap-team-card__role {
  display: inline-block;
  padding: var(--ap-space-1) var(--ap-space-3);
  background: var(--ap-accent-light);
  color: var(--ap-accent-hover);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  border-radius: var(--ap-radius-full);
  margin-bottom: var(--ap-space-3);
}

.ap-team-card__name {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-team-card__bio {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-4);
}

.ap-team-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-accent);
  text-decoration: none;
}

.ap-team-card__linkedin:hover {
  color: var(--ap-accent-hover);
}

@media (max-width: 1023px) {
  .ap-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-team-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   15. Mission section (about page)
   ------------------------------------------------------------------ */
.ap-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-16);
  align-items: center;
}

.ap-mission__image {
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ap-mission__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-mission__title {
  font-size: var(--ap-text-3xl);
  margin-bottom: var(--ap-space-6);
}

.ap-mission__text {
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-6);
}

.ap-mission__sdg {
  margin-bottom: var(--ap-space-8);
}

.ap-mission__sdg img {
  max-width: 120px;
}

.ap-mission__stats {
  display: flex;
  gap: var(--ap-space-8);
}

.ap-mission__stat {
  padding: var(--ap-space-4) var(--ap-space-6);
  background: var(--ap-bg-secondary);
  border-radius: var(--ap-radius-md);
  border-left: 3px solid var(--ap-accent);
}

.ap-mission__stat-value {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-md);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-1);
}

.ap-mission__stat-label {
  font-size: var(--ap-text-xs);
  color: var(--ap-text-muted);
}

@media (max-width: 767px) {
  .ap-mission {
    grid-template-columns: 1fr;
    gap: var(--ap-space-8);
  }
  .ap-mission__stats {
    flex-direction: column;
    gap: var(--ap-space-4);
  }
}

/* ------------------------------------------------------------------
   16. Careers section (about page)
   ------------------------------------------------------------------ */
.ap-careers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-16);
  align-items: center;
}

.ap-careers__heading {
  font-size: var(--ap-text-3xl);
  margin-bottom: var(--ap-space-6);
}

.ap-careers__text {
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-8);
}

.ap-careers__card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ap-space-6);
}

.ap-careers__location {
  font-size: var(--ap-text-xs);
  color: var(--ap-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ap-tracking-wide);
  margin-bottom: var(--ap-space-2);
}

.ap-careers__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
}

.ap-careers__apply {
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-accent);
  text-decoration: none;
  white-space: nowrap;
}

.ap-careers__apply:hover {
  color: var(--ap-accent-hover);
}

@media (max-width: 767px) {
  .ap-careers {
    grid-template-columns: 1fr;
    gap: var(--ap-space-8);
  }
}

/* ------------------------------------------------------------------
   17. Custom cursor
   ------------------------------------------------------------------ */
.ap-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--ap-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width var(--ap-duration-fast) var(--ap-ease-spring),
              height var(--ap-duration-fast) var(--ap-ease-spring);
}

.ap-cursor--hover {
  width: 30px;
  height: 30px;
}

@media (hover: none) {
  .ap-cursor { display: none !important; }
}

/* ------------------------------------------------------------------
   18. Utility / Animation states
   ------------------------------------------------------------------ */
[data-anim] {
  opacity: 0;
}

[data-anim].is-visible {
  opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
  .ap-partners__slide {
    animation: none;
  }
}

/* Fallback: if JS ran but GSAP animations haven't fired after 2s, reveal content */
.site-loaded [data-anim] {
  animation: ap-fallback-reveal 0s 2s forwards;
}
@keyframes ap-fallback-reveal {
  to { opacity: 1; }
}
/* GSAP overrides inline styles, so this fallback is harmless when animations work */

/* ------------------------------------------------------------------
   19. Section border dividers
   ------------------------------------------------------------------ */
.ap-section + .ap-section {
  border-top: 1px solid var(--ap-border-light);
}

.ap-section--dark + .ap-section,
.ap-section + .ap-section--dark {
  border-top: none;
}

.ap-section--gray + .ap-section,
.ap-section + .ap-section--gray {
  border-top: none;
}

/* ------------------------------------------------------------------
   20. Background gradient (careers section)
   ------------------------------------------------------------------ */
.ap-section--gradient {
  background: linear-gradient(135deg, var(--ap-gray-50) 0%, var(--ap-teal-50) 100%);
}

/* Remove border between gradient and adjacent sections */
.ap-section--gradient + .ap-section,
.ap-section + .ap-section--gradient {
  border-top: none;
}

/* ------------------------------------------------------------------
   21. Section subtitle
   ------------------------------------------------------------------ */
.ap-section__subtitle {
  font-size: var(--ap-text-base);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ------------------------------------------------------------------
   22. Capabilities cards (Mintlify-inspired)
   ------------------------------------------------------------------ */
.ap-capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ap-space-8);
}

.ap-capability-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-8);
  position: relative;
  overflow: hidden;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-teal-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
  border-color: transparent;
}

.ap-capability-card:hover::before {
  transform: scaleX(1);
}

.ap-capability-card__badge {
  display: inline-block;
  padding: var(--ap-space-1) var(--ap-space-3);
  background: rgba(10,191,170,0.08);
  color: var(--ap-accent);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-tracking-wide);
  text-transform: uppercase;
  border-radius: var(--ap-radius-full);
  margin-bottom: var(--ap-space-5);
}

.ap-capability-card__icon {
  width: 48px;
  height: 48px;
  background: var(--ap-accent-light);
  border-radius: var(--ap-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ap-space-5);
  color: var(--ap-accent);
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-capability-card:hover .ap-capability-card__icon {
  background: var(--ap-accent);
  color: var(--ap-white);
}

.ap-capability-card__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-capability-card__desc {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-6);
}

.ap-capability-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-accent);
  text-decoration: none;
  transition: gap var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-capability-card__link::after {
  content: '\2192';
  transition: transform var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-capability-card__link:hover {
  gap: var(--ap-space-3);
}

.ap-capability-card__link:hover::after {
  transform: translateX(2px);
}

@media (max-width: 767px) {
  .ap-capabilities { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   23. Legal / Prose content (privacy, terms pages)
   ------------------------------------------------------------------ */
.ap-legal-content {
  max-width: var(--ap-container-narrow);
  margin: 0 auto;
}

.ap-legal-content p {
  font-size: var(--ap-text-base);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0 0 var(--ap-space-5);
}

.ap-legal-content p:last-child {
  margin-bottom: 0;
}

.ap-legal-content h5 {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin: var(--ap-space-10) 0 var(--ap-space-4);
}

.ap-legal-content h5:first-child {
  margin-top: 0;
}

.ap-legal-content ul {
  padding-left: var(--ap-space-6);
  margin: 0 0 var(--ap-space-5);
}

.ap-legal-content li {
  font-size: var(--ap-text-base);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-2);
}

.ap-legal-content a {
  color: var(--ap-accent);
  text-decoration: none;
  transition: color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-legal-content a:hover {
  color: var(--ap-accent-hover);
}

/* ------------------------------------------------------------------
   24. Blog listing & post pages
   ------------------------------------------------------------------ */

/* --- Shared metadata row (date · read time) --- */
.ap-blog-meta {
  display: flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-size: var(--ap-text-xs);
  color: var(--ap-text-muted);
}

.ap-blog-meta__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ap-gray-400);
  flex-shrink: 0;
}

/* --- Featured post card --- */
.ap-blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-10);
  max-height: 50vh;
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-xl);
  border-color: transparent;
}

.ap-blog-featured__image {
  position: relative;
  overflow: hidden;
}

.ap-blog-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ap-duration-slow) var(--ap-ease-smooth);
}

.ap-blog-featured:hover .ap-blog-featured__image img {
  transform: scale(1.04);
}

.ap-blog-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--ap-space-10) var(--ap-space-10) var(--ap-space-10) 0;
}

.ap-blog-featured__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-2xl);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  line-height: var(--ap-leading-snug);
  margin: var(--ap-space-4) 0 var(--ap-space-4);
}

.ap-blog-featured__excerpt {
  font-size: var(--ap-text-base);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ap-blog-featured__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-accent);
  transition: gap var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-blog-featured:hover .ap-blog-featured__link {
  gap: var(--ap-space-3);
}

@media (max-width: 767px) {
  .ap-blog-featured {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .ap-blog-featured__image {
    max-height: 220px;
  }
  .ap-blog-featured__content {
    padding: var(--ap-space-6);
  }
}

/* --- Post card grid --- */
.ap-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--ap-space-8);
}

.ap-blog-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ap-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-teal-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
  border-color: transparent;
}

.ap-blog-card:hover::before {
  transform: scaleX(1);
}

/* Card background pattern — fades in behind the text area (top = white, bottom = pattern visible) */

.ap-blog-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ap-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ap-duration-slow) var(--ap-ease-smooth);
}

.ap-blog-card:hover .ap-blog-card__image img {
  transform: scale(1.05);
}

.ap-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--ap-space-6);
  background: var(--ap-white);
}

/* Geometric pattern fade-in: white at top → pattern visible at bottom */
.ap-blog-card:nth-child(4n+1) .ap-blog-card__body {
  background: linear-gradient(to bottom, var(--ap-white) 20%, rgba(255,255,255,0) 100%),
              url('../images/cardbg1.png') center / cover no-repeat;
}
.ap-blog-card:nth-child(4n+2) .ap-blog-card__body {
  background: linear-gradient(to bottom, var(--ap-white) 20%, rgba(255,255,255,0) 100%),
              url('../images/cardbg2.png') center / cover no-repeat;
}
.ap-blog-card:nth-child(4n+3) .ap-blog-card__body {
  background: linear-gradient(to bottom, var(--ap-white) 20%, rgba(255,255,255,0) 100%),
              url('../images/cardbg3.png') center / cover no-repeat;
}
.ap-blog-card:nth-child(4n) .ap-blog-card__body {
  background: linear-gradient(to bottom, var(--ap-white) 20%, rgba(255,255,255,0) 100%),
              url('../images/cardbg4.png') center / cover no-repeat;
}

.ap-blog-card__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  line-height: var(--ap-leading-snug);
  margin: var(--ap-space-3) 0 var(--ap-space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ap-blog-card__excerpt {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ap-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  margin-top: var(--ap-space-5);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-accent);
  transition: gap var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-blog-card:hover .ap-blog-card__link {
  gap: var(--ap-space-3);
}

@media (max-width: 400px) {
  .ap-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Post page: meta bar --- */
.ap-blog-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ap-space-3);
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  margin-bottom: var(--ap-space-8);
}

.ap-blog-post-meta__author {
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-text-primary);
}

/* --- Post page: hero image --- */
.ap-blog-post-hero__img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--ap-radius-lg);
  margin-bottom: var(--ap-space-12);
}

@media (max-width: 767px) {
  .ap-blog-post-hero__img {
    aspect-ratio: 16 / 9;
    border-radius: var(--ap-radius-md);
  }
}

/* --- Post page: prose content --- */
.ap-blog-prose {
  max-width: var(--ap-container-narrow);
  margin: 0 auto;
}

.ap-blog-prose p {
  font-size: var(--ap-text-md);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0 0 var(--ap-space-6);
}

.ap-blog-prose h2 {
  font-size: var(--ap-text-2xl);
  margin: var(--ap-space-12) 0 var(--ap-space-5);
}

.ap-blog-prose h3 {
  font-size: var(--ap-text-xl);
  margin: var(--ap-space-10) 0 var(--ap-space-4);
}

.ap-blog-prose h4 {
  font-size: var(--ap-text-lg);
  margin: var(--ap-space-8) 0 var(--ap-space-3);
}

.ap-blog-prose ul,
.ap-blog-prose ol {
  padding-left: var(--ap-space-6);
  margin: 0 0 var(--ap-space-6);
}

.ap-blog-prose li {
  font-size: var(--ap-text-md);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-2);
}

.ap-blog-prose li::marker {
  color: var(--ap-accent);
}

.ap-blog-prose blockquote {
  border-left: 4px solid var(--ap-accent);
  margin: var(--ap-space-8) 0;
  padding: var(--ap-space-4) var(--ap-space-6);
  background: var(--ap-bg-secondary);
  border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0;
}

.ap-blog-prose blockquote p {
  font-style: italic;
  color: var(--ap-text-primary);
  margin-bottom: 0;
}

.ap-blog-prose figure {
  margin: var(--ap-space-8) 0;
}

.ap-blog-prose figure img {
  width: 100%;
  border-radius: var(--ap-radius-md);
}

.ap-blog-prose figcaption {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-muted);
  text-align: center;
  margin-top: var(--ap-space-3);
}

.ap-blog-prose a {
  color: var(--ap-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-blog-prose a:hover {
  color: var(--ap-accent-hover);
}

.ap-blog-prose strong {
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-text-primary);
}

.ap-blog-prose code {
  font-size: 0.9em;
  background: var(--ap-bg-secondary);
  padding: 0.15em 0.4em;
  border-radius: var(--ap-radius-sm);
  color: var(--ap-teal-700);
}

/* ------------------------------------------------------------------
   25. Core Services — Accordion cards (services page)
   ------------------------------------------------------------------ */

/* Section-level treatment with teal radial glows */
.ap-core {
  position: relative;
  overflow: hidden;
}

.ap-core::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10,191,170,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ap-core::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(10,191,170,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ap-core > .ap-container {
  position: relative;
  z-index: var(--ap-z-base);
}

/* Two-column grid */
.ap-core__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ap-space-8);
  align-items: start;
}

@media (max-width: 767px) {
  .ap-core__grid {
    grid-template-columns: 1fr;
    gap: var(--ap-space-6);
  }
}

/* Card container */
.ap-core__card {
  background: var(--ap-white);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  box-shadow: var(--ap-shadow-xl);
  position: relative;
  transition: transform var(--ap-duration-normal) var(--ap-ease-smooth),
              box-shadow var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-core__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-teal-300));
  z-index: 1;
}

.ap-core__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-2xl);
}

/* Card header */
.ap-core__card-header {
  padding: var(--ap-space-8) var(--ap-space-8) var(--ap-space-6);
  border-bottom: 1px solid var(--ap-border-light);
}

.ap-core__card-icon {
  width: 48px;
  height: 48px;
  background: var(--ap-accent-light);
  border-radius: var(--ap-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-accent);
  margin-bottom: var(--ap-space-5);
}

.ap-core__card-title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-xl);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin: 0 0 var(--ap-space-2);
}

.ap-core__card-subtitle {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0;
}

/* Accordion list */
.ap-core__accordion {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual item */
.ap-core__item {
  border-bottom: 1px solid var(--ap-border-light);
  position: relative;
}

.ap-core__item:last-child {
  border-bottom: none;
}

/* Active item left accent */
.ap-core__item--active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--ap-accent);
  border-radius: 0 2px 2px 0;
}

/* Trigger button */
.ap-core__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--ap-space-5) var(--ap-space-8);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ap-font-body);
  font-size: var(--ap-text-base);
  font-weight: var(--ap-weight-medium);
  color: var(--ap-text-primary);
  text-align: left;
  line-height: var(--ap-leading-snug);
  transition: background var(--ap-duration-fast) var(--ap-ease-smooth),
              color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-core__trigger:hover {
  background: var(--ap-bg-secondary);
  color: var(--ap-accent);
}

.ap-core__trigger:focus-visible {
  outline: 2px solid var(--ap-accent);
  outline-offset: -2px;
  border-radius: 2px;
}

.ap-core__trigger[aria-expanded="true"] {
  color: var(--ap-accent);
  font-weight: var(--ap-weight-semibold);
}

/* +/- icon */
.ap-core__trigger-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--ap-space-4);
  color: var(--ap-gray-400);
  transition: color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-core__trigger:hover .ap-core__trigger-icon,
.ap-core__trigger[aria-expanded="true"] .ap-core__trigger-icon {
  color: var(--ap-accent);
}

.ap-core__icon-v {
  transition: transform var(--ap-duration-normal) var(--ap-ease-smooth),
              opacity var(--ap-duration-normal) var(--ap-ease-smooth);
  transform-origin: center;
}

.ap-core__trigger[aria-expanded="true"] .ap-core__icon-v {
  transform: rotate(90deg);
  opacity: 0;
}

/* Expandable panel */
.ap-core__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--ap-duration-slow) var(--ap-ease-smooth);
}

.ap-core__panel[hidden] {
  display: block !important;
  max-height: 0;
  visibility: hidden;
}

.ap-core__panel.is-open {
  visibility: visible;
}

.ap-core__panel-inner {
  padding: 0 var(--ap-space-8) var(--ap-space-6);
}

.ap-core__panel-inner p {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
  .ap-core__card-header {
    padding: var(--ap-space-6) var(--ap-space-6) var(--ap-space-5);
  }
  .ap-core__trigger {
    padding: var(--ap-space-4) var(--ap-space-6);
    font-size: var(--ap-text-sm);
  }
  .ap-core__panel-inner {
    padding: 0 var(--ap-space-6) var(--ap-space-5);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ap-core__panel {
    transition: none;
  }
  .ap-core__icon-v {
    transition: none;
  }
  .ap-core__card {
    transition: none;
  }
}

/* ============================
   Stakeholder-Driven Selector
   ============================ */

/* Disable hover lift on interactive cards */
.ap-core__card--selector:hover,
.ap-core__card--services:hover {
  transform: none;
}

/* Card background image strips */
.ap-core__card--selector::after,
.ap-core__card--services::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background-size: cover;
  background-position: center top;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.ap-core__card--selector::after {
  background-image: url('../images/cardbg2.png');
}

.ap-core__card--services::after {
  background-image: url('../images/cardbg4.png');
}

.ap-core__card--selector .ap-core__card-header,
.ap-core__card--services .ap-core__card-header {
  position: relative;
  z-index: 1;
}

/* Selector tablist container */
.ap-core__selector {
  display: flex;
  flex-direction: column;
}

/* Selector button */
.ap-core__selector-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--ap-space-4) var(--ap-space-8);
  border: none;
  border-bottom: 1px solid var(--ap-border-light);
  background: transparent;
  color: var(--ap-text-primary);
  font-family: inherit;
  font-size: var(--ap-text-base);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--ap-duration-fast) var(--ap-ease-smooth),
              color var(--ap-duration-fast) var(--ap-ease-smooth);
}

.ap-core__selector-btn:last-child {
  border-bottom: none;
}

.ap-core__selector-btn:hover {
  background-color: var(--ap-bg-secondary);
  color: var(--ap-accent);
}

.ap-core__selector-btn:focus-visible {
  outline: 2px solid var(--ap-accent);
  outline-offset: -2px;
  z-index: 1;
}

/* Selected state */
.ap-core__selector-btn[aria-selected="true"] {
  color: var(--ap-accent);
  font-weight: 600;
  background-color: rgba(10, 191, 170, 0.06);
}

/* Accent bar */
.ap-core__selector-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--ap-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--ap-duration-normal) var(--ap-ease-smooth);
  border-radius: 0 2px 2px 0;
}

.ap-core__selector-btn[aria-selected="true"] .ap-core__selector-bar {
  transform: scaleY(1);
}

/* Selector text */
.ap-core__selector-text {
  padding-left: var(--ap-space-3);
}

/* Prompt (no stakeholder selected) */
.ap-core__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: var(--ap-space-8);
  text-align: center;
}

.ap-core__prompt-icon {
  color: var(--ap-gray-400);
  margin-bottom: var(--ap-space-4);
  opacity: 0.6;
}

.ap-core__prompt-text {
  color: var(--ap-text-secondary);
  font-size: var(--ap-text-sm);
  margin: 0;
}

/* Services wrapper */
.ap-core__services-wrap {
  position: relative;
}

/* Service group transition */
.ap-core__service-group {
  transition: opacity 150ms var(--ap-ease-smooth),
              transform 150ms var(--ap-ease-smooth);
}

.ap-core__service-group[hidden] {
  display: none;
}

.ap-core__service-group.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.ap-core__service-group.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

/* Responsive */
@media (max-width: 767px) {
  .ap-core__selector-btn {
    padding: var(--ap-space-3) var(--ap-space-6);
    font-size: var(--ap-text-sm);
  }
  .ap-core__prompt {
    min-height: 150px;
    padding: var(--ap-space-6);
  }
}

/* Reduced motion for stakeholder selector */
@media (prefers-reduced-motion: reduce) {
  .ap-core__service-group {
    transition: none;
  }
  .ap-core__selector-bar {
    transition: none;
  }
  .ap-core__selector-btn {
    transition: none;
  }
}

/* ==================================================================
   26. Standards Comparison Page — .ap-sc-* components
   ================================================================== */

/* ------------------------------------------------------------------
   26a. Four-Phase Timeline
   ------------------------------------------------------------------ */
.ap-sc-timeline {
  position: relative;
  padding-top: var(--ap-space-8);
}

.ap-sc-timeline__track {
  position: absolute;
  top: calc(var(--ap-space-8) + 24px);
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-teal-300));
  border-radius: 2px;
  transform-origin: left center;
  z-index: 0;
}

.ap-sc-timeline__phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ap-space-8);
  position: relative;
  z-index: 1;
}

.ap-sc-timeline__phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ap-sc-timeline__node {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ap-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-accent);
  background: var(--ap-bg-secondary);
  margin-bottom: var(--ap-space-5);
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-sc-timeline__phase:hover .ap-sc-timeline__node {
  background: var(--ap-accent);
  color: var(--ap-white);
}

.ap-sc-timeline__label {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-base);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-sc-timeline__desc {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  max-width: 240px;
  margin: 0;
}

@media (max-width: 767px) {
  .ap-sc-timeline__track {
    top: 0;
    left: 24px;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .ap-sc-timeline__phases {
    grid-template-columns: 1fr;
    gap: var(--ap-space-8);
    padding-left: var(--ap-space-16);
  }

  .ap-sc-timeline__phase {
    align-items: flex-start;
    text-align: left;
    position: relative;
  }

  .ap-sc-timeline__node {
    position: absolute;
    left: calc(-1 * var(--ap-space-16) + 0px);
    top: 0;
    width: 48px;
    height: 48px;
  }

  .ap-sc-timeline__desc {
    max-width: none;
  }
}

/* ------------------------------------------------------------------
   26b. Six Comparison Categories — Card Grid
   ------------------------------------------------------------------ */
.ap-sc-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ap-space-8);
}

.ap-sc-category {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-8);
  position: relative;
  overflow: hidden;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-sc-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.ap-sc-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow-lg);
  border-color: transparent;
}

/* Color-coded top borders */
.ap-sc-category--equivalent::before  { background: #22c55e; }
.ap-sc-category--similar::before     { background: #3b82f6; }
.ap-sc-category--different::before   { background: #f59e0b; }
.ap-sc-category--contradictory::before { background: #ef4444; }
.ap-sc-category--gap-a::before       { background: #8b5cf6; }
.ap-sc-category--gap-b::before       { background: #6366f1; }

/* Badge pills */
.ap-sc-category__badge {
  display: inline-block;
  padding: var(--ap-space-1) var(--ap-space-3);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-tracking-wide);
  text-transform: uppercase;
  border-radius: var(--ap-radius-full);
  margin-bottom: var(--ap-space-5);
}

.ap-sc-category__badge--equivalent  { background: rgba(34,197,94,0.1);  color: #16a34a; }
.ap-sc-category__badge--similar     { background: rgba(59,130,246,0.1); color: #2563eb; }
.ap-sc-category__badge--different   { background: rgba(245,158,11,0.1); color: #d97706; }
.ap-sc-category__badge--contradictory { background: rgba(239,68,68,0.1); color: #dc2626; }
.ap-sc-category__badge--gap-a       { background: rgba(139,92,246,0.1); color: #7c3aed; }
.ap-sc-category__badge--gap-b       { background: rgba(99,102,241,0.1); color: #4f46e5; }

.ap-sc-category__icon {
  width: 48px;
  height: 48px;
  background: var(--ap-accent-light);
  border-radius: var(--ap-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-accent);
  margin-bottom: var(--ap-space-5);
}

.ap-sc-category__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-sc-category__desc {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0;
}

@media (max-width: 1023px) {
  .ap-sc-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-sc-categories { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   26c. Real-World Examples — Layout + Color Tags
   ------------------------------------------------------------------ */
.ap-sc-examples {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--ap-space-12);
  align-items: center;
}

.ap-sc-examples__text {
  font-size: var(--ap-text-base);
  color: var(--ap-text-on-dark-muted);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-8);
}

.ap-sc-examples__stats {
  display: flex;
  gap: var(--ap-space-6);
}

.ap-sc-examples__stat {
  padding: var(--ap-space-4) var(--ap-space-5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ap-radius-md);
  border-left: 3px solid var(--ap-accent);
}

.ap-sc-examples__stat-value {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-xl);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-white);
  margin-bottom: var(--ap-space-1);
}

.ap-sc-examples__stat-label {
  font-size: var(--ap-text-xs);
  color: var(--ap-text-on-dark-muted);
}

/* Inline color tags for accordion triggers */
.ap-sc-tag {
  display: inline-block;
  padding: 2px var(--ap-space-2);
  font-size: 0.6875rem;
  font-weight: var(--ap-weight-semibold);
  letter-spacing: var(--ap-tracking-wide);
  text-transform: uppercase;
  border-radius: var(--ap-radius-full);
  margin-right: var(--ap-space-2);
  vertical-align: middle;
  line-height: 1.5;
}

.ap-sc-tag--equivalent    { background: rgba(34,197,94,0.15);  color: #22c55e; }
.ap-sc-tag--similar       { background: rgba(59,130,246,0.15); color: #60a5fa; }
.ap-sc-tag--different     { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ap-sc-tag--contradictory { background: rgba(239,68,68,0.15);  color: #f87171; }
.ap-sc-tag--gap-a         { background: rgba(139,92,246,0.15); color: #a78bfa; }
.ap-sc-tag--gap-b         { background: rgba(99,102,241,0.15); color: #818cf8; }

@media (max-width: 767px) {
  .ap-sc-examples {
    grid-template-columns: 1fr;
    gap: var(--ap-space-8);
  }
  .ap-sc-examples__stats {
    flex-direction: column;
    gap: var(--ap-space-4);
  }
}

/* ------------------------------------------------------------------
   26d. Synthesis — Teal-bordered list
   ------------------------------------------------------------------ */
.ap-sc-synthesis__list {
  margin-top: var(--ap-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-5);
}

.ap-sc-synthesis__item {
  padding-left: var(--ap-space-5);
  border-left: 3px solid var(--ap-accent);
}

.ap-sc-synthesis__item-title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-base);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin: 0 0 var(--ap-space-1);
}

.ap-sc-synthesis__item-desc {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0;
}

/* ------------------------------------------------------------------
   26e. Value Proposition — 5-Pillar Flex Wrapper
   ------------------------------------------------------------------ */
.ap-sc-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-8);
  justify-content: center;
}

.ap-sc-pillars > .ap-pillar {
  flex: 0 1 calc(33.333% - var(--ap-space-8));
  min-width: 280px;
}

.ap-sc-pillars > .ap-pillar .ap-pillar__number {
  font-size: 0;
  color: var(--ap-accent);
  margin-bottom: var(--ap-space-4);
}

@media (max-width: 1023px) {
  .ap-sc-pillars > .ap-pillar {
    flex: 0 1 calc(50% - var(--ap-space-8));
  }
}

@media (max-width: 767px) {
  .ap-sc-pillars > .ap-pillar {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Trainings Page — ap-trn- prefixed components
   ========================================================================== */

/* ------------------------------------------------------------------
   Training Topic Cards
   ------------------------------------------------------------------ */
.ap-trn-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ap-space-8);
}

.ap-trn-topic {
  position: relative;
  background: var(--ap-white);
  border-radius: var(--ap-radius-lg);
  border: 1px solid var(--ap-border);
  padding: var(--ap-space-8) var(--ap-space-6) var(--ap-space-6);
  overflow: hidden;
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
  background-size: cover;
  background-position: center;
}

.ap-trn-topic:hover {
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-lg);
}

.ap-trn-topic:nth-child(4n+1) { background-image: url('../images/cardbg1.png'); }
.ap-trn-topic:nth-child(4n+2) { background-image: url('../images/cardbg2.png'); }
.ap-trn-topic:nth-child(4n+3) { background-image: url('../images/cardbg3.png'); }
.ap-trn-topic:nth-child(4n)   { background-image: url('../images/cardbg4.png'); }

/* Fade background image to white in the lower portion */
.ap-trn-topic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 15%, var(--ap-white) 55%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure all card content sits above the fade overlay */
.ap-trn-topic > * {
  position: relative;
  z-index: 1;
}

/* Color-coded top border — sits above the fade */
.ap-trn-topic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
}

.ap-trn-topic--green::before  { background: #16a34a; }
.ap-trn-topic--blue::before   { background: #2563eb; }
.ap-trn-topic--red::before    { background: #dc2626; }
.ap-trn-topic--purple::before { background: #7c3aed; }
.ap-trn-topic--amber::before  { background: #d97706; }
.ap-trn-topic--indigo::before { background: #4f46e5; }

.ap-trn-topic__badge {
  display: inline-block;
  padding: var(--ap-space-1) var(--ap-space-3);
  font-size: var(--ap-text-xs);
  font-weight: var(--ap-weight-semibold);
  border-radius: var(--ap-radius-full);
  margin-bottom: var(--ap-space-4);
}

.ap-trn-topic--green .ap-trn-topic__badge  { background: #dcfce7; color: #15803d; }
.ap-trn-topic--blue .ap-trn-topic__badge   { background: #dbeafe; color: #1d4ed8; }
.ap-trn-topic--red .ap-trn-topic__badge    { background: #fee2e2; color: #b91c1c; }
.ap-trn-topic--purple .ap-trn-topic__badge { background: #ede9fe; color: #6d28d9; }
.ap-trn-topic--amber .ap-trn-topic__badge  { background: #fef3c7; color: #b45309; }
.ap-trn-topic--indigo .ap-trn-topic__badge { background: #e0e7ff; color: #4338ca; }

.ap-trn-topic__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--ap-space-4);
}

.ap-trn-topic__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-trn-topic--green .ap-trn-topic__icon  { color: #16a34a; }
.ap-trn-topic--blue .ap-trn-topic__icon   { color: #2563eb; }
.ap-trn-topic--red .ap-trn-topic__icon    { color: #dc2626; }
.ap-trn-topic--purple .ap-trn-topic__icon { color: #7c3aed; }
.ap-trn-topic--amber .ap-trn-topic__icon  { color: #d97706; }
.ap-trn-topic--indigo .ap-trn-topic__icon { color: #4f46e5; }

.ap-trn-topic__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-trn-topic__desc {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0;
}

@media (max-width: 1023px) {
  .ap-trn-topics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-trn-topics { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   How We Deliver — Glass Cards
   ------------------------------------------------------------------ */
.ap-trn-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ap-space-8);
}

.ap-trn-delivery {
  position: relative;
  background: rgba(15, 33, 55, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-10) var(--ap-space-8);
  overflow: hidden;
  transition: transform var(--ap-duration-normal) var(--ap-ease-smooth),
              box-shadow var(--ap-duration-normal) var(--ap-ease-smooth),
              border-color var(--ap-duration-normal) var(--ap-ease-smooth);
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.ap-trn-delivery:nth-child(1) { background-image: url('../images/cardbg2.png'); }
.ap-trn-delivery:nth-child(2) { background-image: url('../images/cardbg4.png'); }

/* Fade background image to dark in the lower portion */
.ap-trn-delivery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 10%, rgba(15, 33, 55, 0.85) 45%);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Ensure all delivery card content sits above the fade overlay */
.ap-trn-delivery > * {
  position: relative;
  z-index: 1;
}

.ap-trn-delivery:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.14);
}

/* Gradient top accent — above the fade overlay */
.ap-trn-delivery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
}

.ap-trn-delivery:nth-child(1)::before {
  background: linear-gradient(90deg, #16a34a, var(--ap-accent));
}

.ap-trn-delivery:nth-child(2)::before {
  background: linear-gradient(90deg, #2563eb, var(--ap-accent));
}

.ap-trn-delivery__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--ap-space-6);
  color: var(--ap-accent);
}

.ap-trn-delivery__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-trn-delivery__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-2xl);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-white);
  margin-bottom: var(--ap-space-4);
}

.ap-trn-delivery__desc {
  font-size: var(--ap-text-base);
  color: var(--ap-text-on-dark-muted);
  line-height: var(--ap-leading-relaxed);
  margin-bottom: var(--ap-space-6);
}

.ap-trn-delivery__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-3);
}

.ap-trn-delivery__features li {
  display: flex;
  align-items: center;
  gap: var(--ap-space-3);
  font-size: var(--ap-text-sm);
  color: rgba(255,255,255,0.85);
}

.ap-trn-delivery__features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--ap-accent);
  border-radius: var(--ap-radius-full);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
}

@media (max-width: 767px) {
  .ap-trn-delivery-grid { grid-template-columns: 1fr; }
  .ap-trn-delivery { padding: var(--ap-space-8) var(--ap-space-6); }
}

/* ------------------------------------------------------------------
   Stakeholder Cards
   ------------------------------------------------------------------ */
.ap-trn-stakeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ap-space-8);
}

.ap-trn-stakeholder {
  text-align: center;
  background: var(--ap-white);
  border-radius: var(--ap-radius-lg);
  border: 1px solid var(--ap-border);
  padding: var(--ap-space-8) var(--ap-space-6);
  transition: all var(--ap-duration-normal) var(--ap-ease-smooth);
}

.ap-trn-stakeholder:hover {
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-lg);
}

.ap-trn-stakeholder__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--ap-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--ap-space-5);
}

.ap-trn-stakeholder__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-trn-stakeholder--blue .ap-trn-stakeholder__icon   { background: #dbeafe; color: #2563eb; }
.ap-trn-stakeholder--green .ap-trn-stakeholder__icon  { background: #dcfce7; color: #16a34a; }
.ap-trn-stakeholder--purple .ap-trn-stakeholder__icon { background: #ede9fe; color: #7c3aed; }
.ap-trn-stakeholder--amber .ap-trn-stakeholder__icon  { background: #fef3c7; color: #d97706; }
.ap-trn-stakeholder--red .ap-trn-stakeholder__icon    { background: #fee2e2; color: #dc2626; }
.ap-trn-stakeholder--indigo .ap-trn-stakeholder__icon { background: #e0e7ff; color: #4f46e5; }

.ap-trn-stakeholder__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-text-primary);
  margin-bottom: var(--ap-space-3);
}

.ap-trn-stakeholder__desc {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-secondary);
  line-height: var(--ap-leading-relaxed);
  margin: 0;
}

@media (max-width: 1023px) {
  .ap-trn-stakeholders { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-trn-stakeholders { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Global Reach — Stats & Countries
   ------------------------------------------------------------------ */
.ap-trn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ap-space-8);
  margin-bottom: var(--ap-space-16);
}

.ap-trn-stat {
  position: relative;
  background: rgba(15, 33, 55, 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ap-radius-lg);
  padding: var(--ap-space-8) var(--ap-space-6);
  text-align: center;
  overflow: hidden;
}

.ap-trn-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-teal-300));
}

.ap-trn-stat__value {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-4xl);
  font-weight: var(--ap-weight-extrabold);
  color: var(--ap-accent);
  line-height: var(--ap-leading-tight);
  margin-bottom: var(--ap-space-2);
}

.ap-trn-stat__label {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: var(--ap-tracking-wider);
}

.ap-trn-countries {
  text-align: center;
}

.ap-trn-countries__title {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-lg);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-white);
  margin-bottom: var(--ap-space-6);
}

.ap-trn-countries__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ap-space-2) var(--ap-space-4);
}

.ap-trn-countries__list span {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
  padding: var(--ap-space-1) var(--ap-space-3);
  background: rgba(255,255,255,0.06);
  border-radius: var(--ap-radius-full);
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .ap-trn-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-trn-stats { grid-template-columns: 1fr; }
  .ap-trn-stat__value { font-size: var(--ap-text-3xl); }
}

/* ------------------------------------------------------------------
   28. Supplier Database — Stat grid (dark section)
   ------------------------------------------------------------------ */
.ap-sdb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ap-space-6);
}

.ap-sdb-stat {
  padding: var(--ap-space-6) var(--ap-space-6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ap-radius-md);
  border-left: 3px solid var(--ap-accent);
}

.ap-sdb-stat__value {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-3xl);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-white);
  margin-bottom: var(--ap-space-1);
}

.ap-sdb-stat__label {
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
}

@media (max-width: 1023px) {
  .ap-sdb-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ap-sdb-stats { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   29. Supplier Database — Geographic section layout
   ------------------------------------------------------------------ */
.ap-sdb-geo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--ap-space-12);
  align-items: start;
}

@media (max-width: 767px) {
  .ap-sdb-geo { grid-template-columns: 1fr; gap: var(--ap-space-8); }
}

/* ------------------------------------------------------------------
   30. Supplier Database — Horizontal bar chart
   ------------------------------------------------------------------ */
.ap-sdb-bars {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-5);
  margin-bottom: var(--ap-space-8);
}

.ap-sdb-bar {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: var(--ap-space-4);
  align-items: center;
}

.ap-sdb-bar__label {
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-semibold);
  color: var(--ap-white);
  white-space: nowrap;
}

.ap-sdb-bar__track {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--ap-radius-full);
  overflow: hidden;
}

.ap-sdb-bar__fill {
  height: 100%;
  border-radius: var(--ap-radius-full);
  transition: width 1s var(--ap-ease-smooth);
}

.ap-sdb-bar__fill--green  { background: #22c55e; }
.ap-sdb-bar__fill--blue   { background: #3b82f6; }
.ap-sdb-bar__fill--purple { background: #8b5cf6; }
.ap-sdb-bar__fill--amber  { background: #f59e0b; }

.ap-sdb-bar__value {
  font-family: var(--ap-font-heading);
  font-size: var(--ap-text-sm);
  font-weight: var(--ap-weight-bold);
  color: var(--ap-white);
  min-width: 48px;
  text-align: right;
}

@media (max-width: 767px) {
  .ap-sdb-bar { grid-template-columns: 120px 1fr auto; }
}

/* ------------------------------------------------------------------
   31. Supplier Database — Country badges
   ------------------------------------------------------------------ */
.ap-sdb-countries {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-2) var(--ap-space-3);
}

.ap-sdb-country {
  display: inline-flex;
  align-items: center;
  gap: var(--ap-space-2);
  font-size: var(--ap-text-sm);
  color: var(--ap-text-on-dark-muted);
  padding: var(--ap-space-1) var(--ap-space-3);
  background: rgba(255,255,255,0.06);
  border-radius: var(--ap-radius-full);
  white-space: nowrap;
}

.ap-sdb-country strong {
  color: var(--ap-white);
  font-weight: var(--ap-weight-semibold);
}

/* ------------------------------------------------------------------
   32. Supplier Database — Audience checkmark list
   ------------------------------------------------------------------ */
.ap-sdb-audience {
  list-style: none;
  padding: 0;
  margin: var(--ap-space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-4);
}

.ap-sdb-audience li {
  display: flex;
  align-items: flex-start;
  gap: var(--ap-space-3);
  font-size: var(--ap-text-base);
  color: var(--ap-text-on-dark-muted);
  line-height: var(--ap-leading-relaxed);
}

.ap-sdb-audience li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ap-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}
