/* ==========================================================================
   EngageMinds — style.css
   Brand variables, typography, buttons, hexagon system, sections, footer.
   Built on Bootstrap 5. Custom overrides live in the "Bootstrap overrides"
   section near the bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours (from the EngageMinds proposal palette) */
  --em-orchid: #BE6CD2;
  --em-violet: #7D4DC1;
  --em-indigo: #3E2FAE;
  --em-blue: #5774F8;
  --em-aqua: #5CE1E6;
  --em-mist: #F1F9FB;
  --em-white: #FFFFFF;

  /* Neutral text tones (not brand colours — standard readable neutrals) */
  --em-text: #423C57;
  --em-text-soft: #6C6683;
  --em-border: #E4E1F2;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--em-orchid) 0%, var(--em-indigo) 100%);
  --grad-2: linear-gradient(135deg, var(--em-violet) 0%, var(--em-blue) 100%);
  --grad-3: linear-gradient(135deg, var(--em-blue) 0%, var(--em-aqua) 100%);
  --grad-4: linear-gradient(120deg, var(--em-orchid) 0%, var(--em-blue) 55%, var(--em-aqua) 100%);

  /* Layout */
  --header-height: 84px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -20px rgba(62, 47, 174, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(62, 47, 174, 0.18);

  /* Fonts */
  --font-heading: "Archivo Expanded", "Archivo", Arial, Helvetica, sans-serif;
  --font-body: "Archivo", Arial, Helvetica, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--em-text);
  background-color: var(--em-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--em-indigo);
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; }

p { line-height: 1.7; }

a {
  color: var(--em-indigo);
  text-decoration: none;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--em-violet);
  background: rgba(190, 108, 210, 0.1);
  border: 1px solid rgba(190, 108, 210, 0.25);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
}

.section-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--em-text-soft);
  font-size: 1.05rem;
  max-width: 640px;
}

section {
  position: relative;
}

.section-padding { padding: 5.5rem 0; }
.section-padding-sm { padding: 3.5rem 0; }

.bg-mist { background-color: var(--em-mist); }
.bg-indigo { background-color: var(--em-indigo); }

.bg-gradient-primary { background: var(--grad-primary); }
.bg-gradient-2 { background: var(--grad-2); }
.bg-gradient-3 { background: var(--grad-3); }
.bg-gradient-4 { background: var(--grad-4); }

.divider-line {
  height: 4px;
  width: 72px;
  border-radius: 4px;
  background: var(--grad-primary);
  margin: 0 0 1.5rem;
}

/* Decorative dot grid used across the deck's visual language */
.dot-grid {
  position: absolute;
  width: 120px;
  height: 90px;
  background-image: radial-gradient(var(--em-orchid) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.blob-shape {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(0px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-gradient {
  background: var(--grad-primary);
  background-size: 160% 160%;
  background-position: left center;
  color: var(--em-white);
  border: none;
  box-shadow: 0 12px 24px -10px rgba(62, 47, 174, 0.55);
}

.btn-gradient:hover,
.btn-gradient:focus-visible {
  background-position: right center;
  color: var(--em-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(62, 47, 174, 0.6);
}

.btn-outline-brand {
  border: 2px solid var(--em-indigo);
  color: var(--em-indigo);
  background: transparent;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus-visible {
  background: var(--em-indigo);
  color: var(--em-white);
  transform: translateY(-2px);
}

.btn-outline-light-brand {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--em-white);
  background: transparent;
}

.btn-outline-light-brand:hover,
.btn-outline-light-brand:focus-visible {
  background: var(--em-white);
  color: var(--em-indigo);
  transform: translateY(-2px);
}

.btn-white-soft {
  background: var(--em-white);
  color: var(--em-indigo);
  border: none;
}

.btn-white-soft:hover { transform: translateY(-2px); color: var(--em-indigo); }

.btn-sm-pill {
  font-size: 0.82rem;
  padding: 0.5rem 1.15rem;
}

.btn:focus-visible {
  outline: 3px solid var(--em-aqua);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Header / Navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--em-white);
  border-bottom: 1px solid var(--em-border);
  color: var(--em-text);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--em-text);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topbar__contact a:hover,
.topbar__contact a:focus-visible { color: var(--em-indigo); }

.topbar__contact i {
  color: var(--em-violet);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.topbar__website {
  padding-left: 1.5rem;
  border-left: 1px solid var(--em-border);
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.topbar__social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--em-violet);
  background: rgba(190, 108, 210, 0.1);
  font-size: 0.76rem;
  pointer-events: none;
  cursor: default;
  transition: none;
}

.topbar__social a[aria-disabled="true"] { opacity: 0.55; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(241, 249, 251, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(62, 47, 174, 0.35);
  border-bottom-color: var(--em-border);
  background: rgba(255, 255, 255, 0.97);
}

.navbar { padding: 0.85rem 0; }

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--em-text);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--em-indigo);
  background: rgba(94, 116, 248, 0.08);
}

.navbar-nav .nav-link.active {
  color: var(--em-indigo);
  background: rgba(190, 108, 210, 0.12);
}

.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.6rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--em-text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dropdown-item i {
  color: var(--em-white);
  background: var(--grad-primary);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: var(--em-mist);
  color: var(--em-indigo);
}

.nav-cta { margin-left: 0.5rem; }

/* --------------------------------------------------------------------------
   5. Hexagon system
   -------------------------------------------------------------------------- */
.engage-hex {
  --hex-clip: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  clip-path: var(--hex-clip);
  background: var(--grad-primary);
  padding: 10px;
  filter: drop-shadow(var(--shadow-soft));
}

.engage-hex__inner {
  width: 100%;
  height: 100%;
  clip-path: var(--hex-clip);
  background: var(--em-mist);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engage-hex__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engage-hex--aqua { background: var(--grad-3); }
.engage-hex--soft { background: var(--grad-2); }

.hex-icon {
  --hex-clip: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  width: 64px;
  height: 64px;
  clip-path: var(--hex-clip);
  background: var(--grad-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--em-white);
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hex-icon--lg { width: 84px; height: 84px; font-size: 2.1rem; }
.hex-icon--sm { width: 48px; height: 48px; font-size: 1.25rem; }
.hex-icon--2 { background: var(--grad-2); }
.hex-icon--3 { background: var(--grad-3); }
.hex-icon--4 { background: var(--grad-4); }

.hex-badge {
  --hex-clip: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  width: 54px;
  height: 54px;
  clip-path: var(--hex-clip);
  background: var(--grad-primary);
  color: var(--em-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Floating decorative mini hexagons */
.hex-float {
  --hex-clip: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  position: absolute;
  clip-path: var(--hex-clip);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em-white);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--em-indigo);
}

/* Page hero used on inner pages (About, Programmes, Contact, etc.) */
.page-hero {
  padding: 2.75rem 0 4rem;
  background: var(--grad-primary);
  color: var(--em-white);
  position: relative;
  overflow: hidden;
}

.page-hero h1 { color: var(--em-white); }

.page-hero .section-lead { color: rgba(255, 255, 255, 0.86); }

.page-hero .section-eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--em-white);
}

.page-hero .section-eyebrow::before { background: var(--em-white); }

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--em-mist);
  border-bottom: 1px solid var(--em-border);
  padding: 0.85rem 0;
  font-size: 0.88rem;
}

.breadcrumb-bar .breadcrumb { margin-bottom: 0; }

.breadcrumb-bar a { color: var(--em-text-soft); font-weight: 600; }
.breadcrumb-bar a:hover { color: var(--em-indigo); }
.breadcrumb-bar .active { color: var(--em-indigo); font-weight: 700; }

/* --------------------------------------------------------------------------
   8. Programme cards
   -------------------------------------------------------------------------- */
.programme-card {
  border: 1px solid var(--em-border);
  border-radius: var(--radius-lg);
  background: var(--em-white);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(190, 108, 210, 0.4);
}

.programme-card .hex-icon { margin-bottom: 1.25rem; }

.programme-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.programme-card p {
  color: var(--em-text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.programme-card .card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--em-indigo);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.programme-card .card-link i { transition: transform 0.25s ease; }
.programme-card:hover .card-link i { transform: translateX(4px); }

/* Module list item used on programme detail pages */
.module-card {
  border: 1px solid var(--em-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  height: 100%;
  background: var(--em-white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.module-card h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }

.module-card p { color: var(--em-text-soft); font-size: 0.92rem; margin-bottom: 0; }

/* Engagement areas grid — About page "Seven engagement areas, one partner".
   Flex-wrap with justify-content:center auto-centres a short final row
   (e.g. the 3 remaining cards on desktop) without any nth-child math. */
.engagement-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.engagement-card {
  flex: 1 1 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--em-border);
  border-radius: var(--radius-md);
  background: var(--em-white);
  padding: 1.75rem 1.25rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.engagement-card:hover,
.engagement-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.engagement-card__title {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .engagement-card { flex: 1 1 calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
}

@media (min-width: 1200px) {
  .engagement-card { flex: 1 1 calc(25% - 1.125rem); max-width: calc(25% - 1.125rem); }
}

/* --------------------------------------------------------------------------
   9. Why EngageMinds / feature split sections
   -------------------------------------------------------------------------- */
.why-section { background: var(--em-mist); position: relative; overflow: hidden; }

.feature-check-list { list-style: none; padding: 0; margin: 1.5rem 0; }

.feature-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
  color: var(--em-text);
}

.feature-check-list i {
  color: var(--em-white);
  background: var(--grad-3);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   10. Engagement journey
   -------------------------------------------------------------------------- */
.journey-step {
  position: relative;
  text-align: center;
  padding: 1rem 0.75rem;
}

.journey-step .hex-badge {
  margin: 0 auto 1.25rem;
  width: 68px;
  height: 68px;
  font-size: 1.3rem;
}

.journey-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.journey-step p { color: var(--em-text-soft); font-size: 0.92rem; margin-bottom: 0; }

.journey-connector {
  display: none;
}

@media (min-width: 992px) {
  .journey-connector {
    display: block;
    position: absolute;
    top: 34px;
    left: 58%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--em-orchid) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
  .journey-step:last-child .journey-connector { display: none; }
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonials-section { overflow: hidden; }

.testimonial-card {
  background: var(--em-white);
  border: 1px solid var(--em-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(190, 108, 210, 0.35);
}

.testimonial-card__mark {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--em-orchid);
  opacity: 0.22;
  margin-bottom: 0.35rem;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.testimonial-rating .bi-star-fill { color: var(--em-orchid); }
.testimonial-rating .bi-star { color: rgba(66, 60, 87, 0.22); }

.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--em-text);
  margin-bottom: 1.75rem;
  flex: 1;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--em-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.testimonial-avatar--photo { background: var(--em-mist); overflow: hidden; }
.testimonial-avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Unapproved sample cards: initials are built from the role, not a real
   name, so they get a slightly softer treatment to read as a category
   marker rather than a person's monogram. */
.testimonial-avatar--role { background: var(--grad-2); font-size: 1rem; }

.testimonial-person .name { font-weight: 700; color: var(--em-indigo); font-size: 0.95rem; }
.testimonial-person .role { font-size: 0.85rem; color: var(--em-text-soft); font-weight: 600; }
.testimonial-person .role--standalone { color: var(--em-indigo); font-size: 0.92rem; }

.testimonial-card__footer {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--em-border);
}

.testimonial-programme-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.8rem;
  border-radius: 50px;
  background: rgba(87, 116, 248, 0.08);
  color: var(--em-indigo);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .testimonial-card blockquote { font-size: 1.2rem; line-height: 1.6; }
  .testimonial-card__mark { font-size: 2.75rem; }
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  color: var(--em-white);
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: var(--em-white); }
.cta-band p { color: rgba(255, 255, 255, 0.88); }

/* --------------------------------------------------------------------------
   13. Gallery
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gallery-filter-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--em-border);
  background: var(--em-white);
  color: var(--em-text);
  border-radius: 50px;
  padding: 0.55rem 1.2rem;
  transition: all 0.25s ease;
}

.gallery-filter-btn:hover { border-color: var(--em-orchid); color: var(--em-indigo); }

.gallery-filter-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: var(--em-white);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--em-border);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--grad-2);
  color: var(--em-white);
  text-align: center;
  padding: 1rem;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-placeholder { transform: scale(1.06); }

.gallery-placeholder i { font-size: 2rem; opacity: 0.9; }
.gallery-placeholder .ph-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-placeholder .ph-cat { font-size: 0.78rem; opacity: 0.85; }

.gallery-item::after {
  content: "\F52A";
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--em-white);
  background: rgba(62, 47, 174, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }

/* --------------------------------------------------------------------------
   14. Contact page
   -------------------------------------------------------------------------- */
.contact-info-card {
  border: 1px solid var(--em-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--em-white);
  height: 100%;
}

.contact-info-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.contact-info-card p { margin-bottom: 0; color: var(--em-text-soft); font-size: 0.92rem; }
.contact-info-card a { color: var(--em-text-soft); }
.contact-info-card a:hover { color: var(--em-indigo); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--em-border);
  box-shadow: var(--shadow-card);
  background: var(--em-mist);
  width: 100%;
  height: 460px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 991.98px) {
  .contact-map { height: 350px; }
}

@media (max-width: 575.98px) {
  .contact-map { height: 300px; }
}

.form-floating > label { color: var(--em-text-soft); }

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--em-border);
  padding: 0.85rem 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--em-orchid);
  box-shadow: 0 0 0 0.2rem rgba(190, 108, 210, 0.18);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545;
}

.contact-form-card {
  background: var(--em-white);
  border: 1px solid var(--em-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(160deg, var(--em-indigo) 0%, #241a5e 100%);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer h3 {
  color: var(--em-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer a:hover { color: var(--em-aqua); }

.footer-logo-plate {
  background: var(--em-mist);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: inline-flex;
  margin-bottom: 1.1rem;
}

.footer-logo-plate img { height: 34px; width: auto; display: block; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.65rem; font-size: 0.92rem; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
}

.footer-contact-item i {
  color: var(--em-white);
  background: rgba(255, 255, 255, 0.12);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icons { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  cursor: default;
}

.social-icons a[aria-disabled="true"] { opacity: 0.5; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 3rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------------------
   16. Floating action buttons
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--em-white);
  font-size: 1.4rem;
  box-shadow: 0 14px 28px -10px rgba(62, 47, 174, 0.5);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  border: none;
}

.fab-whatsapp { background: #25D366; }
.fab-whatsapp:hover { transform: scale(1.08); color: var(--em-white); }

.fab-top {
  background: var(--grad-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-top:hover { transform: translateY(-4px); }

/* --------------------------------------------------------------------------
   17. Related programmes / misc cards
   -------------------------------------------------------------------------- */
.related-card {
  border: 1px solid var(--em-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--em-white);
}

.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.related-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.related-card p { font-size: 0.85rem; color: var(--em-text-soft); margin-bottom: 0; }

/* Stat / audience chips */
.audience-chip {
  border: 1px solid var(--em-border);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--em-indigo);
  background: var(--em-mist);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Accordion (FAQ-style / used on 10-page condense option) */
.accordion-item {
  border: 1px solid var(--em-border);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--em-indigo);
  background: var(--em-white);
}

.accordion-button:not(.collapsed) {
  background: var(--em-mist);
  color: var(--em-indigo);
  box-shadow: none;
}

.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(190, 108, 210, 0.18); }

/* --------------------------------------------------------------------------
   18. 404 page
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: var(--em-mist);
  position: relative;
  overflow: hidden;
}

.error-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   19. Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--em-indigo);
  color: var(--em-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top 0.2s ease;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  color: var(--em-white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid var(--em-aqua);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   20. Bootstrap overrides
   -------------------------------------------------------------------------- */
.badge-soft {
  background: rgba(94, 116, 248, 0.12);
  color: var(--em-indigo);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.5em 0.9em;
  border-radius: 50px;
}

.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}

.modal-header { border-bottom: none; }

.card { border-radius: var(--radius-md); }

.container, .container-lg, .container-xl { max-width: 1240px; }

/* --------------------------------------------------------------------------
   21. Image utility system
   Reusable classes for the photography introduced across the redesign.
   -------------------------------------------------------------------------- */
.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-rounded { border-radius: var(--radius-lg); }

.image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  background: var(--em-mist);
}

.image-hover { overflow: hidden; }
.image-hover img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.image-hover:hover img { transform: scale(1.07); }

.image-overlay { position: relative; }
.image-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 47, 174, 0) 45%, rgba(28, 20, 74, 0.82) 100%);
  pointer-events: none;
}

.image-frame {
  padding: 6px;
  background: var(--grad-4);
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: var(--shadow-soft);
}

.image-frame .image-card { box-shadow: none; }

/* Fixed-ratio media containers used throughout split/alternating sections */
.media-box { position: relative; overflow: hidden; }
.media-box--wide { aspect-ratio: 16 / 10; }
.media-box--tall { aspect-ratio: 4 / 5; }
.media-box--square { aspect-ratio: 1 / 1; }
.media-box--portrait { aspect-ratio: 3 / 4; }

/* Small badge that floats on the corner of a photo card (brand accent, used sparingly) */
.photo-badge {
  position: absolute;
  z-index: 2;
  width: 84px;
  filter: drop-shadow(var(--shadow-soft));
}

@media (max-width: 767.98px) {
  .photo-badge { width: 62px; }
}

/* --------------------------------------------------------------------------
   22. Hero carousel — full-width photographic banner
   -------------------------------------------------------------------------- */
/* Grid-stack technique: carousel-inner (photo) and hero-content-wrap (copy)
   occupy the same cell so the hero always grows to fit whichever is taller —
   the photo never gets clipped shorter than the overlaid copy needs. */
.hero-carousel {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: minmax(600px, auto);
}

.hero-carousel .carousel-inner,
.hero-carousel .hero-content-wrap {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-inner { position: relative; z-index: 1; }

.hero-carousel .carousel-item { height: 100%; }

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Subtle left-to-right gradient so text stays readable without hiding the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(32, 22, 65, 0.8) 0%,
    rgba(50, 32, 90, 0.58) 38%,
    rgba(50, 32, 90, 0.2) 70%,
    rgba(50, 32, 90, 0.05) 100%
  );
}

/* Static hero content, layered above every slide so copy never flashes/reflows */
.hero-content-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  pointer-events: none;
}

.hero-content { max-width: 650px; pointer-events: auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--em-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-4);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--em-white);
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(20, 14, 56, 0.45);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(20, 14, 56, 0.35);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Controls cluster — prev arrow, dots, next arrow grouped in one row,
   centered at the bottom. Bottom-center keeps it clear of the left-aligned
   copy above and the site's fixed WhatsApp button in the bottom-right corner
   at every viewport size. */
.hero-carousel__controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-carousel__controls .carousel-control-prev,
.hero-carousel__controls .carousel-control-next {
  position: static;
  width: 40px;
  height: 40px;
  opacity: 1;
}

.hero-carousel__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--em-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-control-prev:hover .hero-carousel__arrow,
.carousel-control-next:hover .hero-carousel__arrow,
.carousel-control-prev:focus-visible .hero-carousel__arrow,
.carousel-control-next:focus-visible .hero-carousel__arrow {
  background: var(--grad-primary);
  border-color: transparent;
  transform: scale(1.06);
}

/* Indicators — minimal pill dots, gradient active state */
.hero-carousel__indicators {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.hero-carousel__indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-carousel__indicators [data-bs-target].active { width: 26px; background: var(--grad-4); }

@media (min-width: 992px) {
  .hero-carousel { grid-template-rows: minmax(650px, auto); }
}

@media (max-width: 767.98px) {
  .hero-carousel { grid-template-rows: minmax(600px, auto); }
  .hero-content-wrap { padding: 2.5rem 0 3.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 575.98px) {
  .hero-carousel__controls { gap: 0.65rem; }
  .hero-carousel__controls .carousel-control-prev,
  .hero-carousel__controls .carousel-control-next,
  .hero-carousel__arrow {
    width: 34px;
    height: 34px;
  }
  .hero-carousel__arrow { font-size: 0.9rem; }
}

/* --------------------------------------------------------------------------
   23. Stats band
   -------------------------------------------------------------------------- */
.stats-band {
  background: var(--grad-primary);
  color: var(--em-white);
  position: relative;
  overflow: hidden;
}

.stat-item { text-align: center; padding: 1rem 0.5rem; position: relative; }

.stat-item + .stat-item::before {
  content: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem);
  line-height: 1;
  color: var(--em-white);
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-label {
  margin-top: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
  align-self: stretch;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .stats-band .col-6 { margin-bottom: 1.5rem; }
}

/* --------------------------------------------------------------------------
   24. Programme cards v2 — photography-led
   -------------------------------------------------------------------------- */
.programme-card-v2 {
  position: relative;
  height: 100%;
  background: var(--em-white);
  border: 1px solid var(--em-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.programme-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(190, 108, 210, 0.35);
}

.programme-card-v2__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.programme-card-v2__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.programme-card-v2:hover .programme-card-v2__media img { transform: scale(1.09); }

.programme-card-v2__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 20, 74, 0) 55%, rgba(28, 20, 74, 0.55) 100%);
}

.programme-card-v2__badge {
  position: absolute;
  left: 1.5rem;
  bottom: -28px;
  width: 56px;
  height: 56px;
  z-index: 2;
}

.programme-card-v2__body {
  padding: 2.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.programme-card-v2__body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

.programme-card-v2__body p {
  color: var(--em-text-soft);
  font-size: 0.94rem;
  margin-bottom: 1.4rem;
  flex: 1;
}

.programme-card-v2__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--em-indigo);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.programme-card-v2__link i { transition: transform 0.25s ease; }
.programme-card-v2:hover .programme-card-v2__link i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   25. Gallery photo cards
   -------------------------------------------------------------------------- */
.gallery-photo { position: relative; width: 100%; height: 100%; }

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-photo img { transform: scale(1.08); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1rem 0.9rem;
  background: linear-gradient(0deg, rgba(28, 20, 74, 0.88) 0%, rgba(28, 20, 74, 0) 100%);
  color: var(--em-white);
  z-index: 1;
}

.gallery-caption .cap-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
}

.gallery-caption .cap-cat {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Featured gallery tile — larger, with a signature-gradient ring */
.gallery-item--featured {
  aspect-ratio: 16 / 11;
  position: relative;
}

.gallery-item--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 3px;
  background: var(--grad-primary);
  opacity: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item--featured:hover::before,
.gallery-item--featured:focus-visible::before {
  opacity: 1;
}

.gallery-item--featured .gallery-caption {
  padding: 1.5rem 1.5rem 1.15rem;
}

.gallery-item--featured .gallery-caption .cap-title {
  font-size: 1.15rem;
}

@media (max-width: 767.98px) {
  .gallery-item--featured { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   26. Feature points (numbered, used in Why EngageMinds sections)
   -------------------------------------------------------------------------- */
.feature-point {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.feature-point:last-child { margin-bottom: 0; }

.feature-point .feature-point__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--em-white);
  background: var(--grad-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-point h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.feature-point p { font-size: 0.9rem; color: var(--em-text-soft); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   27. Testimonial-ready placeholder band
   -------------------------------------------------------------------------- */
.testimonial-soon {
  border: 1.5px dashed rgba(190, 108, 210, 0.4);
  border-radius: var(--radius-lg);
  background: var(--em-mist);
  padding: 3rem 2rem;
  text-align: center;
}

.testimonial-soon .hex-icon { margin: 0 auto 1.25rem; }

/* --------------------------------------------------------------------------
   28. Auto-rotating carousel (Programmes, Related Programmes + Testimonials
       on the homepage and every programme page)
   -------------------------------------------------------------------------- */
.em-carousel__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.em-carousel__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.em-carousel__viewport:focus-visible {
  outline: 3px solid var(--em-aqua);
  outline-offset: 6px;
}

.em-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-carousel__slide { flex: 0 0 auto; }
.em-carousel__slide[data-clone] { pointer-events: none; }

.em-carousel__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--em-white);
  border: 1px solid var(--em-border);
  color: var(--em-indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.em-carousel__arrow:hover,
.em-carousel__arrow:focus-visible {
  background: var(--grad-primary);
  color: var(--em-white);
  border-color: transparent;
  transform: translateY(-2px);
}

.em-carousel__arrow:focus-visible { outline: 3px solid var(--em-aqua); outline-offset: 2px; }

.em-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.em-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  padding: 0;
  border: none;
  background: rgba(66, 60, 87, 0.2);
  transition: width 0.3s ease, background 0.3s ease;
}

.em-carousel__dot:hover { background: rgba(66, 60, 87, 0.35); }
.em-carousel__dot.is-active { width: 26px; background: var(--grad-primary); }
.em-carousel__dot:focus-visible { outline: 3px solid var(--em-aqua); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .em-carousel__track { transition: none !important; }
  .testimonial-card,
  .programme-card-v2,
  .em-carousel__arrow { transition: none !important; }
}

/* --------------------------------------------------------------------------
   29. FAQ accordion (homepage)
   -------------------------------------------------------------------------- */
.faq-section { overflow: hidden; }

.faq-accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  position: relative;
  background: var(--em-white);
  border: 1px solid var(--em-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:last-child { margin-bottom: 0; }

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  transform: scaleY(0);
  transition: transform 0.35s ease;
}

.faq-item.is-open {
  border-color: rgba(190, 108, 210, 0.35);
  box-shadow: var(--shadow-soft);
}

.faq-item.is-open::before { transform: scaleY(1); }

.faq-item__heading { margin: 0; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--em-indigo);
  cursor: pointer;
}

.faq-question span:first-child { flex: 1; }

.faq-question:hover { color: var(--em-violet); }

.faq-question:focus-visible {
  outline: 3px solid var(--em-aqua);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}

.faq-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--em-mist);
  transition: background 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--em-indigo);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%) scaleY(1); }

.faq-item.is-open .faq-icon { background: var(--grad-primary); }

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--em-white); }

.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.faq-answer__inner { overflow: hidden; min-height: 0; }

.faq-answer p {
  margin: 0;
  padding: 0 1.75rem 1.5rem;
  color: var(--em-text-soft);
  line-height: 1.75;
}

@media (max-width: 575.98px) {
  .faq-question { padding: 1.1rem 1.25rem; font-size: 0.95rem; gap: 0.85rem; }
  .faq-answer p { padding: 0 1.25rem 1.25rem; }
  .faq-icon { width: 28px; height: 28px; }
}

/* --------------------------------------------------------------------------
   30. Full-width photographic hero — .about-hero (about.html) and
       .photo-hero (the 7 programme detail pages) share this styling.
       Reuses .hero-eyebrow / .hero-lead / .hero-actions from section 22
       for the hero copy.
   -------------------------------------------------------------------------- */
.about-hero,
.photo-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--em-indigo);
}

.about-hero__img,
.photo-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.about-hero__overlay,
.photo-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 17, 64, 0.62) 0%, rgba(24, 17, 64, 0.72) 55%, rgba(18, 13, 48, 0.9) 100%),
    linear-gradient(100deg, rgba(62, 47, 174, 0.6) 0%, rgba(62, 47, 174, 0.08) 55%);
}

.about-hero__content,
.photo-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 4.5rem 0;
}

.about-hero__tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--em-white);
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 14px rgba(20, 14, 56, 0.4);
}

@media (max-width: 767.98px) {
  .about-hero, .photo-hero { min-height: 540px; text-align: center; }
  .about-hero__content, .photo-hero__content { padding: 3.5rem 0; margin: 0 auto; }
  .about-hero .hero-actions, .photo-hero .hero-actions { justify-content: center; }
}

/* Founder section — premium portrait with gradient frame + highlighted quote */
.founder-photo-frame {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--grad-primary);
  box-shadow: var(--shadow-soft);
}

.founder-photo-card {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.founder-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--em-indigo);
  margin-bottom: 0.25rem;
}

.founder-title {
  font-weight: 700;
  color: var(--em-violet);
  margin-bottom: 1.25rem;
}

.founder-bio {
  color: var(--em-text-soft);
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}

.founder-bio p { margin-bottom: 1rem; }
.founder-bio p:last-child { margin-bottom: 0; }

.founder-quote {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.75rem 1.5rem 2.25rem;
  background: var(--em-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.founder-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--grad-primary);
}

.founder-quote__mark {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--em-orchid);
  opacity: 0.3;
  margin-bottom: 0.25rem;
}

.founder-quote p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--em-indigo);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.founder-quote footer {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--em-violet);
  font-style: normal;
}

/* "Who We Are" keyword pills */
.tag-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-pill {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--em-indigo);
  background: rgba(94, 116, 248, 0.1);
  border: 1px solid rgba(94, 116, 248, 0.25);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
}

/* --------------------------------------------------------------------------
   31. Alternating section backgrounds
   -------------------------------------------------------------------------- */
.section-white { background-color: var(--em-white); }
.section-light { background-color: var(--em-mist); }

/* --------------------------------------------------------------------------
   32. Programme modules — premium image-led card grid
   ("What's Included" sections on the 7 programme pages)
   -------------------------------------------------------------------------- */
.programme-modules { }

.programme-module-card {
  background: var(--em-white);
  border: 1px solid var(--em-border);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px -10px rgba(62, 47, 174, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.programme-module-card:hover,
.programme-module-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(190, 108, 210, 0.35);
}

.programme-module-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.programme-module-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.programme-module-card:hover .programme-module-image img { transform: scale(1.045); }

.programme-module-content {
  padding: 1.5rem 1.5rem 1.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.programme-module-content h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.programme-module-content p {
  color: var(--em-text-soft);
  font-size: 0.93rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.programme-module-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--em-indigo);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.programme-module-link i { transition: transform 0.25s ease; }
.programme-module-card:hover .programme-module-link i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   33. Programme about — editorial content + image collage
   ("About This Programme" sections on the 7 programme pages)
   -------------------------------------------------------------------------- */
.programme-about { }

.programme-about-content .section-lead:last-of-type { margin-bottom: 1.5rem; }

.programme-about-collage {
  position: relative;
  padding-bottom: 2rem;
}

.programme-collage-main {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
}

.programme-collage-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.programme-collage-small {
  position: absolute;
  bottom: -1.75rem;
  left: -1.75rem;
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--em-white);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.programme-collage-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.programme-collage-small--right {
  left: auto;
  right: -1.75rem;
}

@media (max-width: 575.98px) {
  .programme-about-collage {
    padding: 0 1.5rem 1.5rem;
  }
  .programme-collage-small {
    width: 48%;
    bottom: -1.25rem;
    left: -0.75rem;
    border-width: 5px;
  }
  .programme-collage-small--right {
    left: auto;
    right: -0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .programme-module-card,
  .programme-module-image img,
  .programme-module-link i { transition: none !important; }
}
