/* ==========================================================================
   Tabuk PharmaEdge — home.css
   Sections that only exist on the landing page
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  background: linear-gradient(165deg, #f4fbfa 0%, #eaf4f8 45%, #f6faf3 100%);
  overflow: hidden;
}

/* The artwork is a real element at its natural ratio: the section is exactly as
   tall as the image, so nothing is ever cropped at any viewport width. */
.hero-art { display: block; width: 100%; height: auto; }

.hero-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  /* Padding at the foot pulls the centred copy block up, so it sits against the
     clear upper-left of the artwork instead of drifting toward its lower edge. */
  padding-bottom: clamp(2.5rem, 5.5vw, 6rem);
}

/* Legibility scrim over the calm left side of the artwork */
.hero-inner::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.92) 30%,
      rgba(244, 251, 251, 0.7) 46%,
      rgba(255, 255, 255, 0.16) 62%,
      rgba(255, 255, 255, 0) 74%);
}

.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: min(54%, 660px); }

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 18px;
}
.hero h1 .accent {
  position: relative;
  background: linear-gradient(100deg, var(--green-600) 10%, var(--teal-500) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.14em;
  background: linear-gradient(90deg, rgba(90, 170, 66, 0.25), rgba(13, 146, 184, 0.18));
  border-radius: 4px; z-index: -1;
}

.hero-lead {
  font-size: clamp(1.02rem, 0.96rem + 0.45vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-700);
  max-width: 52ch;
  margin-bottom: 26px;
}

.hero-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.hero-fact {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 700; color: var(--navy-700);
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(5, 52, 77, 0.1);
  border-radius: var(--r-full);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}
.hero-fact svg { color: var(--green-600); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 24px; }

.hero-note {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--ink-600);
}
.hero-note img { height: 28px; width: auto; opacity: 0.9; }
.hero-note .divider { width: 1px; height: 20px; background: var(--line-strong); }

/* On wide screens the artwork is tall enough to carry a bigger copy block, so
   every element ramps up together between 1400px and 1900px: ~15% wider and
   ~23% taller by the top of the range. Each clamp is built to land exactly on
   the base value at 1400px, so crossing the breakpoint produces no jump — and
   below it nothing changes, because there the block already fills the frame. */
@media (min-width: 1400px) {
  .hero-copy { max-width: clamp(660px, 380px + 20vw, 760px); }

  .hero h1 {
    font-size: clamp(4rem, 2.32rem + 1.92vw, 4.6rem);
    margin-bottom: clamp(18px, 2vw - 10px, 28px);
  }
  .hero-lead {
    font-size: clamp(1.25rem, 11.6px + 0.6vw, 1.44rem);
    margin-bottom: clamp(26px, 2.8vw - 13.2px, 40px);
  }

  .hero-facts {
    gap: clamp(9px, 0.8vw - 2.2px, 13px);
    margin-bottom: clamp(28px, 3.2vw - 16.8px, 44px);
  }
  .hero-fact {
    font-size: clamp(0.84rem, 8.06px + 0.384vw, 0.96rem);
    padding: clamp(9px, 0.6px + 0.6vw, 12px) clamp(15px, 3.8px + 0.8vw, 19px);
  }

  .hero-actions {
    gap: clamp(13px, 4.6px + 0.6vw, 16px);
    margin-bottom: clamp(24px, 2.8vw - 15.2px, 38px);
  }
  /* Scoped to the hero so the shared .btn--lg keeps its size everywhere else */
  .hero-actions .btn--lg {
    min-height: clamp(60px, 20.8px + 2.8vw, 74px);
    padding-inline: clamp(36px, 8px + 2vw, 46px);
    font-size: clamp(1.05rem, 11.87px + 0.352vw, 1.16rem);
  }

  .hero-note { font-size: clamp(0.82rem, 8.64px + 0.32vw, 0.92rem); }
  .hero-note img { height: clamp(28px, 16.8px + 0.8vw, 32px); }
}

/* Below this width the copy would no longer fit inside the artwork, so the two
   stack: text first, the full uncropped image underneath it. */
@media (max-width: 1240px) {
  .hero {
    display: flex; flex-direction: column-reverse;
    padding: clamp(2.25rem, 3.5vw, 3.25rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  }
  .hero-art {
    width: calc(100% - 2 * var(--gutter));
    margin: 30px auto 0;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
  }
  .hero-inner { position: static; padding-bottom: 0; }
  .hero-inner::before { display: none; }
  .hero-copy { max-width: none; }
}

/* --------------------------------------------------------------------------
   2. Metrics strip
   -------------------------------------------------------------------------- */
.metrics { position: relative; margin-top: -2.25rem; z-index: 5; }
.metrics-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}
.metric { text-align: center; position: relative; }
.metric + .metric::before {
  content: ""; position: absolute; left: calc(clamp(1rem, 2vw, 2rem) / -2); top: 12%; bottom: 12%;
  width: 1px; background: var(--line);
}
.metric-icon {
  width: 46px; height: 46px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-100), var(--green-100));
  color: var(--navy-600);
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 800; line-height: 1;
  color: var(--navy-800);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.metric-value .suffix { color: var(--green-600); }
.metric-label { font-size: 0.84rem; font-weight: 600; color: var(--ink-500); }

@media (max-width: 780px) {
  .metrics { margin-top: -2.5rem; }
  .metrics-card { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .metric:nth-child(3)::before, .metric:nth-child(1)::before { display: none; }
  .metric:nth-child(3), .metric:nth-child(4) { padding-top: 1.5rem; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .metric-icon { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 11px; }
  .metric-icon svg { width: 18px; height: 18px; }
  .metric-label { font-size: 0.76rem; }
}

/* --------------------------------------------------------------------------
   3. Programme highlights (feature grid)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
}
.feature {
  display: flex; gap: 16px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(90, 170, 66, 0.28); }
.feature-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--green-50); color: var(--green-700);
  border: 1px solid rgba(90, 170, 66, 0.18);
}
.feature h4 { margin-bottom: 5px; }
.feature p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   4. Why / about
   -------------------------------------------------------------------------- */
.why { position: relative; overflow: hidden; }
.why .ornament--green { width: 460px; height: 460px; top: -160px; right: -140px; opacity: 0.35; }
.why-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  align-items: stretch;
}

/* The artwork stretches to the height of the points column so the row never
   ends up with a band of empty space above and below the image. */
.why-media { position: relative; display: flex; }
.why-media-frame {
  position: relative;
  flex: 1;
  display: flex;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
}
.why-media-frame img {
  width: 100%; height: 100%;
  min-height: clamp(320px, 34vw, 520px);
  object-fit: cover; object-position: 60% center;
  transition: transform 0.9s var(--ease-out);
}
.why-media-frame:hover img { transform: scale(1.045); }
.why-media-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(0, 75, 115, 0.05), rgba(90, 170, 66, 0.1));
  pointer-events: none;
}
.why-badge {
  position: absolute; right: -14px; bottom: -22px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-width: 290px;
}
.why-badge-icon {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 12px; background: var(--grad-green); color: var(--white);
  box-shadow: var(--shadow-green);
}
.why-badge strong { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--navy-800); }
.why-badge span { font-size: 0.78rem; color: var(--ink-500); font-weight: 600; }

.why-content { display: flex; flex-direction: column; justify-content: center; }
.why-content .section-head { margin-bottom: clamp(1.25rem, 0.8rem + 1.4vw, 1.75rem); }
.why-points { display: flex; flex-direction: column; gap: 10px; }
.why-point {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
}
.why-point:hover { transform: translateX(5px); box-shadow: var(--shadow-md); border-color: rgba(90, 170, 66, 0.3); }
.why-point-icon {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 12px; background: var(--navy-800); color: var(--white);
  transition: background var(--t-base);
}
.why-point:hover .why-point-icon { background: var(--green-600); }
.why-point h4 { font-size: 1.02rem; margin-bottom: 3px; }
.why-point p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-500); }

@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-media { order: -1; }
  .why-media-frame img { min-height: 0; aspect-ratio: 16 / 10; }
  .why-badge { right: 12px; bottom: -18px; }
}
@media (max-width: 560px) {
  .why-badge { position: static; margin-top: 16px; max-width: none; }
}

/* --------------------------------------------------------------------------
   5. Subprogram cards
   -------------------------------------------------------------------------- */
.subprograms { position: relative; overflow: hidden; }
.subprograms .ornament--teal { width: 520px; height: 520px; bottom: -220px; left: -180px; opacity: 0.3; }

.sp-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
}

.sp-card {
  --accent: var(--green-600);
  --accent-soft: var(--green-50);
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
}
.sp-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.sp-card::after {
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0; transition: opacity var(--t-base) var(--ease-out);
}
.sp-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(5, 52, 77, 0.14); }
.sp-card:hover::before { transform: scaleX(1); }
.sp-card:hover::after { opacity: 0.85; }
.sp-card > * { position: relative; z-index: 1; }

.sp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sp-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid currentColor;
  transition: transform var(--t-base) var(--ease-spring), background var(--t-base), color var(--t-base);
}
.sp-card:hover .sp-icon { transform: rotate(-6deg) scale(1.06); background: var(--accent); color: var(--white); }
.sp-hours {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--navy-600); background: var(--navy-100);
  padding: 6px 12px; border-radius: var(--r-full);
}
.sp-code {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 7px;
}
.sp-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.sp-sub { font-size: 0.92rem; font-weight: 600; color: var(--ink-600); margin-bottom: 14px; }
.sp-desc { font-size: 0.89rem; line-height: 1.65; color: var(--ink-500); margin-bottom: 18px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.sp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-strong);
}
.sp-foot .link-arrow { color: var(--accent); }
.sp-go {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink-100); color: var(--navy-700);
  transition: background var(--t-base), color var(--t-base), transform var(--t-base) var(--ease-out);
}
.sp-card:hover .sp-go { background: var(--accent); color: var(--white); transform: translateX(3px); }
.sp-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

/* Subprograms that have not launched: the card is frosted over and inert.
   The copy underneath stays in the DOM so it is ready the day it goes live. */
.sp-card--soon { cursor: default; }
.sp-card--soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.sp-card--soon:hover::before { transform: scaleX(0); }
.sp-card--soon:hover::after { opacity: 0; }
.sp-card--soon:hover .sp-icon { transform: none; background: var(--accent-soft); color: var(--accent); }
.sp-card--soon:hover .sp-go { transform: none; background: var(--ink-100); color: var(--navy-700); }
.sp-soon-note {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700; color: var(--ink-400);
}

.sp-card > .sp-soon {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(7px) saturate(0.75);
  -webkit-backdrop-filter: blur(7px) saturate(0.75);
}
/* Without backdrop-filter the veil has to do the obscuring on its own */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .sp-card > .sp-soon { background: rgba(255, 255, 255, 0.93); }
}
.sp-soon-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-700);
}
.sp-soon-badge svg { color: var(--accent); }

/* Per-subprogram accents */
.sp-card[data-accent="wellness"] { --accent: #b8860b; --accent-soft: #fdf4dd; }
.sp-card[data-accent="breath"]   { --accent: #0d92b8; --accent-soft: #ddf2f8; }
.sp-card[data-accent="gastro"]   { --accent: #c1642c; --accent-soft: #fdeee2; }
.sp-card[data-accent="mind"]     { --accent: #7a4bbd; --accent-soft: #f0e9fb; }
.sp-card[data-accent="cardio"]   { --accent: #c33b48; --accent-soft: #fdeaec; }
.sp-card[data-accent="pharma"]   { --accent: #459334; --accent-soft: #e9f6e2; }

/* --------------------------------------------------------------------------
   6. Accreditation
   -------------------------------------------------------------------------- */
.accred-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.accred-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.accred-item { display: flex; gap: 14px; align-items: flex-start; }
.accred-check {
  width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 8px; background: var(--green-600); color: var(--white);
}
.accred-item p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-600); }
.accred-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.accred-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.accred-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.accred-badge svg { color: var(--green-600); }

.certificate {
  position: relative;
  padding: clamp(2rem, 1.4rem + 2vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.certificate::before {
  content: ""; position: absolute; inset: 14px; border-radius: calc(var(--r-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.18); pointer-events: none;
}
.certificate::after {
  content: ""; position: absolute; top: -80px; right: -80px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(124, 196, 95, 0.22); filter: blur(30px);
}
.certificate > * { position: relative; z-index: 1; }
.cert-seal {
  width: 76px; height: 76px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--green-300);
}
.cert-number {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 2.4rem + 4vw, 5.2rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 6px;
}
.certificate h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 14px; }
.certificate p { font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.78); }
.cert-divider { width: 60px; height: 3px; margin: 18px auto; border-radius: 3px; background: var(--green-400); }

@media (max-width: 980px) { .accred-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   7. How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, rgba(90, 170, 66, 0.1), rgba(90, 170, 66, 0.55), rgba(13, 146, 184, 0.4), rgba(90, 170, 66, 0.1));
}
.step { position: relative; text-align: center; }
.step-num {
  position: absolute; top: -6px; left: 50%; margin-left: 20px;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 800;
  color: var(--green-700); background: var(--white);
  border: 1px solid rgba(90, 170, 66, 0.3);
  border-radius: var(--r-full); padding: 2px 8px;
}
.step-circle {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green-400);
  color: var(--green-700);
  box-shadow: 0 10px 26px -12px rgba(90, 170, 66, 0.6);
  transition: transform var(--t-base) var(--ease-spring), background var(--t-base), color var(--t-base);
}
.step:hover .step-circle { transform: scale(1.09) translateY(-3px); background: var(--green-600); color: var(--white); }
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; line-height: 1.55; color: var(--ink-500); }

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.25rem 1rem; }
  .steps::before { display: none; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .steps { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. Course catalog frame (TebZone embed)
   -------------------------------------------------------------------------- */
.catalog-shell {
  position: relative;
  border-radius: var(--r-lg);
  padding: 10px;
  background: linear-gradient(150deg, rgba(5, 52, 77, 0.08), rgba(90, 170, 66, 0.12));
  box-shadow: var(--shadow-xl);
}
.catalog-window {
  position: relative;
  background: var(--white);
  border-radius: calc(var(--r-lg) - 6px);
  overflow: hidden;
  border: 1px solid var(--line);
}
.catalog-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #fbfdfe, #f2f7fa);
  border-bottom: 1px solid var(--line);
}
.catalog-dots { display: flex; gap: 6px; flex-shrink: 0; }
.catalog-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.catalog-dots i:nth-child(1) { background: #ef6a5f; }
.catalog-dots i:nth-child(2) { background: #f5bf4f; }
.catalog-dots i:nth-child(3) { background: #62c554; }
.catalog-url {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 0.8rem; color: var(--ink-600);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.catalog-url svg { color: var(--green-600); flex-shrink: 0; }
.catalog-url strong { color: var(--navy-800); font-weight: 700; }
.catalog-actions { display: flex; gap: 7px; flex-shrink: 0; }
.catalog-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; color: var(--navy-700);
  background: var(--white); border: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-base) var(--ease-out);
}
.catalog-btn:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); }
.catalog-btn--label {
  width: auto; gap: 8px; padding: 0 16px;
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  background: var(--green-500); color: var(--white); border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(90, 170, 66, 0.8);
}
.catalog-btn--label:hover { background: var(--green-600); color: var(--white); }

.catalog-viewport { position: relative; background: var(--ink-50); height: clamp(460px, 68vh, 760px); }
.catalog-viewport iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--white); }

/* Skeleton loader */
.catalog-skeleton {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 16px; padding: 26px;
  background: var(--white);
  transition: opacity var(--t-slow) var(--ease-out), visibility var(--t-slow);
}
.catalog-skeleton.is-hidden { opacity: 0; visibility: hidden; }
.sk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.sk-block, .sk-line {
  border-radius: var(--r-sm);
  background: linear-gradient(100deg, var(--ink-100) 20%, #f7fbfd 42%, var(--ink-100) 64%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.sk-block { height: 132px; }
.sk-line { height: 13px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* Fallback when the platform cannot be embedded on this domain */
.catalog-fallback {
  position: absolute; inset: 0; z-index: 3;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, var(--navy-50), var(--white) 60%);
}
.catalog-fallback.is-shown { display: flex; }
.catalog-fallback img { height: 62px; width: auto; margin-bottom: 4px; }
.catalog-fallback h3 { font-size: 1.35rem; }
.catalog-fallback p { font-size: 0.94rem; color: var(--ink-500); max-width: 52ch; }
.catalog-fallback-link {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-500);
  text-decoration: underline; text-underline-offset: 3px;
}
.catalog-fallback-link:hover { color: var(--green-700); }
.catalog-fallback .catalog-preview {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; width: 100%; max-width: 620px; margin-top: 6px;
}
.catalog-preview-item {
  padding: 14px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 700; color: var(--navy-700);
  display: flex; align-items: center; gap: 9px; text-align: left;
}
.catalog-preview-item svg { color: var(--green-600); flex-shrink: 0; }

.catalog-caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 20px;
}
.catalog-caption p { font-size: 0.85rem; color: var(--ink-500); display: inline-flex; align-items: center; gap: 8px; }
.catalog-caption svg { color: var(--green-600); }

/* Fullscreen presentation of the embed */
.catalog-window.is-expanded {
  position: fixed; inset: 12px; z-index: 9998;
  border-radius: var(--r-md);
  box-shadow: 0 60px 120px -30px rgba(4, 26, 38, 0.7);
}
.catalog-window.is-expanded .catalog-viewport { height: calc(100% - 59px); }

@media (max-width: 720px) {
  .catalog-btn--label span { display: none; }
  .catalog-btn--label { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 620px) {
  .catalog-shell { padding: 6px; }
  .catalog-url { font-size: 0.72rem; padding: 6px 10px; }
  .catalog-viewport { height: 78vh; }
}

/* --------------------------------------------------------------------------
   9. Faculty
   -------------------------------------------------------------------------- */
.faculty-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(0.9rem, 0.5rem + 1vw, 1.4rem);
}
.faculty-card {
  position: relative;
  text-align: center; padding: 26px 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
}
.faculty-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 74px;
  background: var(--grad-soft);
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(90, 170, 66, 0.3); }
.faculty-photo {
  position: relative; z-index: 1;
  width: 92px; height: 92px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card h4 { position: relative; z-index: 1; font-size: 0.94rem; margin-bottom: 4px; }
.faculty-role { font-size: 0.78rem; font-weight: 700; color: var(--green-700); margin-bottom: 3px; }
.faculty-org { font-size: 0.74rem; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq-item.is-open { border-color: rgba(90, 170, 66, 0.4); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--navy-800); text-align: left;
}
.faq-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--green-50); color: var(--green-700);
  transition: transform var(--t-base) var(--ease-out), background var(--t-base), color var(--t-base);
}
.faq-item.is-open .faq-icon { transform: rotate(135deg); background: var(--green-600); color: var(--white); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-base) var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; font-size: 0.93rem; line-height: 1.72; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   11. Closing CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-block: clamp(3.5rem, 2.4rem + 3.2vw, 5.25rem);
  background-image: url("../img/cta-background.jpg");
  background-size: cover; background-position: center;
  text-align: center; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(4, 37, 54, 0.9) 0%, rgba(0, 75, 115, 0.78) 48%, rgba(13, 146, 184, 0.6) 100%);
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 110%, rgba(90, 170, 66, 0.34), transparent 70%);
}
.cta .container { position: relative; z-index: 2; }
.cta-inner { max-width: 780px; margin-inline: auto; }
.cta-icon {
  width: 72px; height: 72px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cta h2 { color: var(--white); font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); margin-bottom: 16px; }
.cta p { font-size: var(--fs-lead); line-height: 1.72; color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-meta {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  font-size: 0.84rem; color: rgba(255, 255, 255, 0.75);
}
.cta-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cta-meta svg { color: var(--green-400); }

@media (max-width: 520px) {
  .cta-actions .btn { width: 100%; }
}
