/* =========================================================
   Premium design system for the "Who We Serve" audience pages:
   students / professionals / companies / government / universities / partners
   Built on top of css/common.css tokens and base styles.
   ========================================================= */

/* ---------- Cinematic page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  color: var(--white);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: var(--navy-deep);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(2, 8, 18, 0.97) 0%, rgba(6, 26, 64, 0.93) 34%, rgba(6, 26, 64, 0.64) 64%, rgba(6, 26, 64, 0.28) 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}

/* Subtle institutional seal watermark on the hero's visual (right) side.
   Sits above the dark overlay but behind the heading/panel, so it reads as a
   faint prestige stamp and never competes with the copy. Hidden on phones. */
.page-hero-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -54px;
  right: -40px;
  width: clamp(230px, 24vw, 330px);
  aspect-ratio: 1 / 1;
  background: url("../assets/logos/aidt-seal.png") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

/* Page-specific hero framing (desktop). Background image is set inline;
   only the crop position is adjusted here. */
.page-hero--students {
  background-position: 74% center;
}

.page-hero--government {
  background-position: center right;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 34px;
  padding-bottom: 54px;
}

.page-hero-grid {
  display: grid;
  gap: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--gold-light);
}

.breadcrumb .crumb-sep {
  color: var(--gold);
}

.breadcrumb .crumb-current {
  color: var(--gold-light);
}

.page-hero .eyebrow {
  color: var(--gold-light);
}

.page-hero h1 {
  max-width: 760px;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.06;
}

.page-hero .hero-subtitle {
  max-width: 620px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.62;
}

.page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-hero .hero-actions .btn {
  width: 100%;
}

/* ---------- Floating hero panel ---------- */
.hero-panel {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(2, 8, 18, 0.68);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid var(--gold);
}

.hero-panel-header {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-panel-header span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel-header strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.hero-panel-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-panel-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.hero-panel-list em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--navy), var(--red));
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
}

.hero-panel-list strong {
  display: block;
  color: var(--white);
  font-size: 0.86rem;
  line-height: 1.3;
}

/* ---------- Quick value strip ---------- */
.facts-strip {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  margin-top: -32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid rgba(229, 199, 119, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(179, 25, 66, 0.12), rgba(229, 199, 119, 0.16), rgba(6, 26, 64, 0.12)),
    rgba(6, 26, 64, 0.14);
  box-shadow: 0 20px 52px rgba(2, 8, 18, 0.28);
  backdrop-filter: blur(14px);
  padding: 6px;
}

.facts-strip::-webkit-scrollbar {
  display: none;
}

.facts-strip div {
  position: relative;
  min-width: 78%;
  min-height: 82px;
  padding: 16px 18px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.95)),
    var(--ivory-2);
}

.facts-strip div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.facts-strip strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.3;
}

/* ---------- Section rhythm ---------- */
.alt-section {
  position: relative;
  background: linear-gradient(180deg, var(--ivory), rgba(255, 250, 240, 0.9)), var(--ivory);
}

.pattern-section {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(247, 242, 231, 0.4), rgba(247, 242, 231, 0.5)),
    url("../assets/images/audience-pattern-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.navy-section {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(229, 199, 119, 0.14), transparent 21rem),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 62%, var(--navy) 100%);
}

.navy-section::before,
.alt-section::before,
.pattern-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}

.navy-section .section-kicker {
  color: var(--gold-light);
}

.navy-section .section-header h2,
.navy-section .section-header p {
  color: var(--white);
}

.navy-section .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Cinematic image sections (Quality / final CTA) ---------- */
.cinematic-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--navy-deep);
}

.cinematic-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(2, 8, 18, 0.82) 0%, rgba(6, 26, 64, 0.72) 44%, rgba(6, 26, 64, 0.5) 76%, rgba(6, 26, 64, 0.3) 100%);
}

.cinematic-section::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}

.cinematic-section .container {
  position: relative;
  z-index: 1;
}

.cinematic-section .section-kicker {
  color: var(--gold-light);
}

.cinematic-section .section-header h2,
.cinematic-section .section-header p {
  color: var(--white);
}

.cinematic-section .section-header p {
  color: rgba(255, 255, 255, 0.76);
}

/* Glass cards on cinematic dark backgrounds */
.glass-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.glass-grid article {
  position: relative;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.glass-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 199, 119, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
}

.glass-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.glass-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--navy-2), var(--red));
  box-shadow: 0 10px 20px rgba(2, 8, 18, 0.32);
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 800;
}

.glass-grid article strong {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.35;
}

/* ---------- What AIDT Offers (offer cards) ---------- */
.offer-grid {
  display: grid;
  gap: 16px;
}

.offer-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(6, 26, 64, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 240, 0.86));
  box-shadow: 0 14px 38px rgba(6, 26, 64, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red), var(--gold));
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 138, 45, 0.36);
  box-shadow: 0 22px 52px rgba(6, 26, 64, 0.13);
}

.offer-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--navy), var(--red));
  box-shadow: 0 10px 20px rgba(6, 26, 64, 0.24);
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 800;
}

.offer-card h3 {
  margin-top: 16px;
  font-size: 1.04rem;
}

.offer-card p {
  margin-top: 8px;
}

/* ---------- Compact course gateway ---------- */
.course-gateway-section {
  padding: 44px 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(183, 138, 45, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(247, 242, 231, 0.96));
}

.course-gateway {
  min-height: 224px;
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(6, 26, 64, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.88)),
    var(--ivory-2);
  box-shadow: 0 18px 42px rgba(6, 26, 64, 0.08);
}

.course-gateway h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.course-gateway p {
  max-width: 720px;
  margin-top: 10px;
}

.course-gateway .btn {
  justify-self: start;
}

/* ---------- Example pathways ---------- */
.pathway-chip-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.pathway-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 18px;
  border: 1px solid rgba(6, 26, 64, 0.12);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 240, 0.8)),
    var(--white);
  box-shadow: 0 10px 26px rgba(6, 26, 64, 0.06);
}

.pathway-chip::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.pathway-chip strong {
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.35;
}

/* ---------- Engagement steps timeline ---------- */
.steps-track {
  position: relative;
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.step-stage {
  position: relative;
  padding: 24px 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(6, 26, 64, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(6, 26, 64, 0.06);
}

.step-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red), var(--gold));
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--navy), var(--red));
  box-shadow: 0 10px 20px rgba(6, 26, 64, 0.24);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 800;
}

.step-stage h3 {
  margin-top: 16px;
  font-size: 1.02rem;
}

.step-stage p {
  margin-top: 8px;
}

/* ---------- Final CTA ---------- */
.audience-cta {
  padding: 76px 0;
}

.cta-panel {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(229, 199, 119, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(2, 8, 18, 0.32);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-strong);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  max-width: 700px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-panel .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cta-panel .hero-actions .btn {
  width: 100%;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 700px) {
  .page-hero-inner {
    padding-top: 50px;
    padding-bottom: 64px;
  }

  .facts-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    margin-top: -36px;
  }

  .facts-strip div {
    min-width: 0;
  }

  .offer-grid,
  .pathway-chip-grid,
  .steps-track,
  .glass-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero .hero-actions .btn,
  .cta-panel .hero-actions .btn {
    width: auto;
  }

  .cta-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 40px;
  }

  .course-gateway {
    min-height: 240px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px 38px;
  }
}

@media (min-width: 980px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    align-items: center;
    gap: 40px;
  }

  .page-hero-inner {
    min-height: 440px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 699px) {
  .page-hero-inner {
    padding-top: 20px;
    padding-bottom: 26px;
  }

  .page-hero h1 {
    font-size: clamp(1.68rem, 7vw, 2.05rem);
  }

  .page-hero::before {
    background: linear-gradient(180deg, rgba(2, 8, 18, 0.88) 0%, rgba(6, 26, 64, 0.8) 28%, rgba(6, 26, 64, 0.4) 38%, rgba(6, 26, 64, 0.3) 100%);
  }

  /* Seal watermark is hidden on phones so it never crowds the compact hero. */
  .page-hero-inner::after {
    display: none;
  }

  /* Phone-specific crops: keep the key subject and setting in frame. */
  .page-hero--students {
    background-position: 70% center;
  }

  .page-hero--government {
    background-position: 50% center;
  }

  .page-hero .hero-actions {
    margin-top: 22px;
  }

  /* Quick Facts: compact 2-column chip row instead of a tall stacked card */
  .hero-panel {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
  }

  .hero-panel-header {
    padding-bottom: 8px;
  }

  .hero-panel-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .hero-panel-list div {
    gap: 8px;
    padding: 9px 10px;
  }

  .hero-panel-list em {
    width: 26px;
    height: 26px;
    font-size: 0.6rem;
  }

  .hero-panel-list strong {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .section {
    padding: 48px 0;
  }

  .glass-grid {
    gap: 10px;
  }

  .glass-grid article {
    min-height: 76px;
  }

  .audience-cta {
    padding: 40px 0;
  }

  .cta-panel {
    padding: 22px;
  }

  .course-gateway-section {
    padding: 30px 0;
  }

  .course-gateway {
    min-height: 0;
    padding: 22px;
  }

  .offer-card,
  .step-stage,
  .glass-grid article {
    padding: 16px;
  }
}

@media (min-width: 1024px) {
  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pathway-chip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-track {
    grid-template-columns: repeat(5, 1fr);
  }

  .step-stage:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 30px;
    right: -18px;
    z-index: 1;
    color: var(--gold);
    font-size: 1rem;
  }

  .glass-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }

  .breadcrumb {
    font-size: 0.68rem;
  }

  .facts-strip div {
    padding: 14px 16px;
  }

  .offer-card,
  .step-stage,
  .glass-grid article {
    padding: 14px;
  }

  .cta-panel {
    padding: 20px;
  }

  .hero-panel {
    padding: 10px;
  }

  .hero-panel-list div {
    padding: 8px;
  }

  .hero-panel-list strong {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card,
  .glass-grid article {
    transition: none;
  }
}
