/* ==========================================================================
   Imani Premium Templates — v2.0.1  (Readdy 9013703 replica)
   Fonts: Manrope (body) + Plus Jakarta Sans (display)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;0,800;0,900;1,800&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --ims-navy:       #263856;
  --ims-navy-deep:  #172540;
  --ims-coral:      #f06452;
  --ims-teal:       #50c3bd;
  --ims-purple:     #b5a0dd;
  --ims-gold:       #f4c34f;
  --ims-mint:       #e9f8f6;
  --ims-pink:       #fff0ee;
  --ims-lilac:      #f5f0ff;
  --ims-cream:      #fffaf3;
  --ims-peach:      #fff3ec;
  --ims-ink:        #273653;
  --ims-muted:      #6f7890;
  --ims-line:       rgba(38,56,86,.12);
  --ims-max:        1180px;
  --ims-radius:     22px;
  --ims-sans:       'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ims-display:    'Plus Jakarta Sans', 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.imani-premium-body {
  margin: 0;
  background: var(--ims-cream);
  color: var(--ims-ink);
  font-family: var(--ims-sans);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body.imani-premium-body :where(h1,h2,h3,h4,p,ul,ol,figure) { margin-top: 0; }
body.imani-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Theme bleed suppression */
body.imani-premium-body > :not(#wpadminbar):not(.ims-site-wrap):not(.ims-announce):not(script):not(style):not(link):not(svg):not(.grecaptcha-badge):not(iframe) { display: none; }
body.imani-premium-body :where(#masthead,.site-header,.header-wrapper,.top-bar,.topbar,.navbar,.menu-primary-container,.mobile-menu) { display: none; }
html:has(body.imani-premium-body) { margin-top: 0 !important; }
body.imani-premium-body #wpadminbar { display: none !important; }

.ims-site-wrap { overflow: hidden; background: var(--ims-cream); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.ims-container, .imani-container {
  width: min(var(--ims-max), calc(100% - 96px));
  margin-inline: auto;
}
.ims-section { padding: 96px 0; }

/* Accessibility */
.imani-skip {
  position: absolute; left: -999px; top: 12px;
  background: #fff; color: #000; padding: 8px 12px; z-index: 1000;
}
.imani-skip:focus { left: 12px; }

/* ── Announcement bar ────────────────────────────────────────────────────── */
.ims-announce {
  position: relative;
  z-index: 60;
  background: var(--ims-navy-deep);
  color: rgba(255,255,255,.9);
  text-align: center;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.ims-announce a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ims-gold);
  color: #5c3c00;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ims-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 24px;
  font-family: var(--ims-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none;
}
.ims-btn:hover { transform: translateY(-2px); }
.ims-btn--coral  { background: var(--ims-coral); color: #fff; box-shadow: 0 18px 42px rgba(240,100,82,.28); }
.ims-btn--navy   { background: var(--ims-navy); color: #fff; box-shadow: 0 16px 38px rgba(38,56,86,.19); }
.ims-btn--frost  { background: rgba(255,255,255,.11); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(22px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.ims-btn--green  { width: 100%; background: var(--ims-coral); color: #fff; border-radius: 12px; min-height: 54px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }

/* ── Dot-line label ──────────────────────────────────────────────────────── */
.ims-dotline {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .23em;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}
.ims-dotline i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.ims-dotline i:nth-child(1) { background: var(--ims-coral); }
.ims-dotline i:nth-child(2) { background: var(--ims-teal); }
.ims-dotline i:nth-child(3) { background: var(--ims-purple); }
.ims-dotline i:nth-child(4) { background: var(--ims-gold); }
.ims-dotline--dark { color: #9a9eae; }
.ims-dotline.one-dot i:not(:first-child) { display: none; }

/* Reveal cards */
.reveal-card { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal-card.in-view { opacity: 1; transform: none; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.ims-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 0; right: 0;
  color: #fff;
  transition: top .24s ease, background .24s ease, box-shadow .24s ease;
}
/* Push down when announce bar present */
body.has-announce .ims-header { top: calc(18px + var(--ims-announce-h, 42px)); }

.ims-header__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 22px 70px rgba(19,28,45,.18), inset 0 1px 0 rgba(255,255,255,.18);
}
.ims-header.is-scrolled .ims-header__inner {
  background: rgba(255,250,243,.88);
  border-color: rgba(38,56,86,.1);
  box-shadow: 0 18px 55px rgba(19,28,45,.13);
  color: var(--ims-ink);
}

.ims-brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; min-width: 160px; }
.ims-brand__tree { font-size: 28px; line-height: 1; }
.ims-brand__text { text-transform: uppercase; font-size: 10px; line-height: 1.08; letter-spacing: .08em; font-weight: 900; }
.ims-brand img, .ims-brand .custom-logo { max-height: 48px; width: auto; object-fit: contain; }
.ims-header:not(.is-scrolled) .ims-brand img,
.ims-header:not(.is-scrolled) .ims-brand .custom-logo { filter: brightness(0) invert(1); }

.ims-nav ul { display: flex; align-items: center; justify-content: center; gap: 38px; list-style: none; margin: 0; padding: 0; }
.ims-nav__item { position: relative; }
.ims-nav a { font-size: 13px; font-weight: 800; color: inherit; }
.ims-nav__link { opacity: .9; }

.ims-nav__panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 220px;
  transform: translateX(-50%) translateY(8px);
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,250,243,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 70px rgba(19,28,45,.18);
  border: 1px solid rgba(38,56,86,.1);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.ims-nav__panel a { display: block; color: var(--ims-ink); padding: 11px 12px; border-radius: 12px; }
.ims-nav__panel a:hover { background: rgba(240,100,82,.1); color: var(--ims-coral); }
.has-panel:hover .ims-nav__panel,
.has-panel:focus-within .ims-nav__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.ims-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: var(--ims-coral);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 45px rgba(0,0,0,.1);
  white-space: nowrap;
}
.ims-header.is-scrolled .ims-header-cta { background: #2b5c2c; color: #fff; }

.ims-menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  padding: 0; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.ims-menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 99px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
/* FIX: removed margin:16px — was adding a white border around the hero */
.ims-modern-hero {
  position: relative;
  min-height: 730px;
  background: var(--ims-hero-image) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.ims-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,24,42,.72), rgba(18,24,42,.34) 44%, rgba(18,24,42,.22)),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(12,17,31,.66));
  z-index: 1;
}
.ims-hero__inner {
  position: relative; z-index: 3;
  height: 730px;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 52px;
}
/* When announce bar is present, compensate the hero top padding */
body.has-announce .ims-hero__inner { padding-top: calc(52px + var(--ims-announce-h, 42px)); }

.ims-hero__meta {
  font-size: 12px; letter-spacing: .5em; text-transform: uppercase;
  color: rgba(255,255,255,.54); font-weight: 800; margin-bottom: 24px;
}
.ims-hero h1 {
  font-family: var(--ims-display);
  font-size: clamp(62px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -.07em;
  margin: 28px 0 24px;
  max-width: 840px;
  font-weight: 800;
  text-shadow: 0 18px 55px rgba(0,0,0,.28);
}
.ims-hero h1 span, .ims-hero h1 strong { display: block; }
.ims-hero h1 strong { color: var(--ims-gold); font-weight: 800; }
.ims-hero p {
  max-width: 590px;
  color: rgba(255,255,255,.77);
  font-size: 16px; line-height: 1.85;
  margin: 0 0 30px;
}
.ims-hero__actions { display: flex; gap: 16px; align-items: center; }
.ims-hero__stats {
  display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap;
}
.ims-hero__stats div {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 17px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ims-hero__stats strong { font-size: 20px; font-weight: 900; }
.ims-hero__stats div:nth-child(1) strong { color: var(--ims-coral); }
.ims-hero__stats div:nth-child(2) strong { color: var(--ims-teal); }
.ims-hero__stats div:nth-child(3) strong { color: var(--ims-purple); }
.ims-hero__stats div:nth-child(4) strong { color: var(--ims-gold); }
.ims-hero__stats span { font-size: 11px; color: rgba(255,255,255,.72); font-weight: 800; }

.ims-admission-pill {
  position: absolute; right: 92px; top: 112px; z-index: 3;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.23);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 62px rgba(0,0,0,.18);
  font-size: 12px; font-weight: 700;
}
.ims-admission-pill span {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ims-gold); margin-right: 8px;
}
.ims-admission-pill small { opacity: .78; margin-left: 8px; }

.ims-hero__slider {
  position: absolute; right: 70px; bottom: 46px;
  display: flex; align-items: center; gap: 8px;
}
.ims-hero__slider b { width: 22px; height: 6px; border-radius: 999px; background: var(--ims-gold); display: block; }
.ims-hero__slider i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.42); display: block; }

/* Floating orbs */
.ims-orb {
  position: absolute; z-index: 2; border-radius: 50%;
  opacity: .9;
  filter: drop-shadow(0 12px 35px rgba(0,0,0,.18));
  animation: floaty 7s ease-in-out infinite;
}
.ims-orb--coral  { width: 54px; height: 54px; background: var(--ims-coral); right: 17%; top: 26%; }
.ims-orb--teal   { width: 44px; height: 44px; background: var(--ims-teal); right: 8%; top: 34%; animation-delay: -1.8s; }
.ims-orb--purple { width: 32px; height: 32px; background: var(--ims-purple); left: 5%; top: 43%; animation-delay: -3s; }
.ims-orb--gold   { width: 52px; height: 52px; background: var(--ims-gold); right: 19%; bottom: 28%; animation-delay: -4.5s; }
@keyframes floaty {
  0%,100% { transform: translate3d(0,0,0); }
  50%      { transform: translate3d(0,-18px,0); }
}

/* ── Proof bar ───────────────────────────────────────────────────────────── */
.ims-proofbar { padding: 22px 0 14px; background: var(--ims-cream); }
.ims-proofbar__inner { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; min-height: 38px; padding: 0 20px;
  border-radius: 999px; font-size: 12px; font-weight: 900;
}
.pill.coral  { background: #ffe9e6; color: var(--ims-coral); }
.pill.teal   { background: #e5faf8; color: #249b95; }
.pill.purple { background: #f0eafb; color: #8872c5; }
.pill.gold   { background: #fff4d7; color: #c49420; }

/* ── Section head ────────────────────────────────────────────────────────── */
.ims-modern-head { align-items: end; }
.ims-section-head--split {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  margin-bottom: 50px;
}
.ims-modern-head h2 {
  font-family: var(--ims-display);
  font-size: clamp(38px,5vw,56px);
  line-height: 1.05;
  letter-spacing: -.055em;
  margin: 16px 0 0;
  color: var(--ims-navy);
  font-weight: 900;
  max-width: 670px;
}
.ims-modern-head h2 span { color: var(--ims-coral); }

/* ── Programs ────────────────────────────────────────────────────────────── */
.ims-programs { background: var(--ims-cream); padding-top: 62px; }
.ims-program-grid--modern { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }

.ims-program-card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--ims-line);
  box-shadow: 0 20px 60px rgba(38,56,86,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ims-program-card:hover { transform: translateY(-6px); box-shadow: 0 26px 80px rgba(38,56,86,.15); }
.ims-program-card__image { height: 210px; display: block; position: relative; overflow: hidden; }
.ims-program-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ims-program-card:hover .ims-program-card__image img { transform: scale(1.06); }
.ims-program-card__image span {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; color: #fff;
  padding: 9px 16px; font-size: 12px; font-weight: 900;
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.tone-coral    .ims-program-card__image span { background: var(--ims-coral); }
.tone-teal     .ims-program-card__image span { background: var(--ims-teal); }
.tone-lavender .ims-program-card__image span { background: var(--ims-purple); }
.tone-gold     .ims-program-card__image span { background: var(--ims-gold); color: #6d5112; }

.ims-program-card__body { padding: 24px 28px 30px; min-height: 222px; }
.tone-coral    .ims-program-card__body { background: #fff1f0; }
.tone-teal     .ims-program-card__body { background: #ebfbfa; }
.tone-lavender .ims-program-card__body { background: #f6f1ff; }
.tone-gold     .ims-program-card__body { background: #fff8e6; }

.ims-program-card small { display: block; color: currentColor; font-weight: 900; margin-bottom: 8px; }
.tone-coral    small, .tone-coral    a { color: var(--ims-coral); }
.tone-teal     small, .tone-teal     a { color: #259b95; }
.tone-lavender small, .tone-lavender a { color: #8b74cb; }
.tone-gold     small, .tone-gold     a { color: #c89522; }

.ims-program-card h3 {
  font-family: var(--ims-display);
  font-size: 24px; letter-spacing: -.03em; line-height: 1.16;
  color: var(--ims-navy); margin: 0 0 13px; font-weight: 850;
}
.ims-program-card p { font-size: 13.5px; color: #59627a; line-height: 1.75; margin: 0 0 22px; }
.ims-program-card a:not(.ims-program-card__image) { font-size: 13px; font-weight: 900; display: inline-flex; gap: 10px; align-items: center; }

/* ── Philosophy band ─────────────────────────────────────────────────────── */
.ims-philosophy-band {
  position: relative;
  background: linear-gradient(135deg,#1d2d4c,#263856);
  color: #fff; padding: 70px 0; overflow: hidden;
}
.ims-philosophy-band .ims-container { position: relative; }
.ims-philosophy-band span {
  display: block; text-transform: uppercase; letter-spacing: .28em;
  color: rgba(255,255,255,.5); font-weight: 900; font-size: 12px; margin-top: 22px;
}
.ims-philosophy-band h2 {
  font-family: var(--ims-display);
  font-size: clamp(36px,5vw,54px); line-height: 1.13;
  letter-spacing: -.05em; max-width: 980px; margin: 18px 0 0; font-weight: 900;
}
.ims-philosophy-band mark { background: var(--ims-gold); color: #fff; padding: 0 .08em; }
.ims-philosophy-band strong { color: var(--ims-gold); }
.shape { position: absolute; display: block; opacity: .18; }
.shape-one   { right: -40px; top: -70px; width: 210px; height: 210px; border-radius: 50%; background: var(--ims-coral); }
.shape-two   { left: -80px; bottom: -90px; width: 170px; height: 170px; border-radius: 50%; background: var(--ims-teal); }
.shape-three { left: 340px; bottom: 18px; width: 90px; height: 90px; background: var(--ims-gold); opacity: .9; }

/* ── Why Imani ───────────────────────────────────────────────────────────── */
.ims-why { background: #fff; padding: 90px 0; }
.ims-why__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 78px; align-items: center; }
.ims-why__media { position: relative; min-height: 500px; }
.ims-block { position: absolute; display: block; z-index: 0; }
.ims-block.peach { left: -28px; top: 22px; width: 250px; height: 240px; background: #ffe0dc; }
.ims-block.mint  { right: 28px; bottom: 28px; width: 225px; height: 118px; background: #e6f7f4; }
.ims-float-dot { position: absolute; width: 25px; height: 25px; border-radius: 50%; z-index: 3; }
.ims-float-dot.gold   { background: var(--ims-gold); right: 40px; top: 86px; }
.ims-float-dot.purple { background: var(--ims-purple); left: 18px; bottom: 88px; }

.ims-why__main {
  position: relative; z-index: 2;
  width: 405px; height: 315px; border-radius: 22px; object-fit: cover;
  margin: 70px 0 0 22px;
  box-shadow: 0 24px 70px rgba(38,56,86,.13);
}
.ims-why__small {
  position: absolute; z-index: 4;
  left: 300px; top: 238px; width: 222px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 22px 70px rgba(38,56,86,.16);
  overflow: hidden; text-align: center;
}
.ims-why__small strong { display: block; font-size: 36px; color: var(--ims-coral); font-family: var(--ims-display); font-weight: 900; padding-top: 20px; line-height: 1; }
.ims-why__small span { display: block; font-size: 12px; color: #6c7386; font-weight: 800; margin: 6px 0 16px; }
.ims-why__small img { height: 145px; width: 100%; object-fit: cover; }

.ims-why__copy h2 {
  font-family: var(--ims-display);
  font-size: clamp(38px,5vw,54px); line-height: 1.05;
  letter-spacing: -.06em; color: var(--ims-navy);
  margin: 16px 0 24px; font-weight: 900;
}
.ims-why__copy h2 span { display: block; color: var(--ims-teal); }
.ims-why__copy > p { font-size: 15px; color: #566077; line-height: 1.82; margin: 0 0 26px; max-width: 580px; }

.ims-feature-list--cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin: 28px 0; }
.ims-feature-list--cards article { border-radius: 18px; padding: 22px; min-height: 170px; }
.ims-feature-list--cards article span {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; color: #fff; font-weight: 900; margin-bottom: 12px;
}
.ims-feature-list--cards h3 { margin: 0 0 8px; font-size: 14px; color: var(--ims-navy); font-weight: 900; }
.ims-feature-list--cards p  { margin: 0; color: #4f596e; font-size: 12.5px; line-height: 1.65; }
.ims-feature-list--cards .tone-coral    { background: #ffe8e5; }
.ims-feature-list--cards .tone-coral    span { background: var(--ims-coral); }
.ims-feature-list--cards .tone-teal     { background: #e4f8f6; }
.ims-feature-list--cards .tone-teal     span { background: var(--ims-teal); }
.ims-feature-list--cards .tone-lavender { background: #f1ebfb; }
.ims-feature-list--cards .tone-lavender span { background: var(--ims-purple); }
.ims-feature-list--cards .tone-gold     { background: #fff3d4; }
.ims-feature-list--cards .tone-gold     span { background: var(--ims-gold); }

/* ── Stories ─────────────────────────────────────────────────────────────── */
.ims-stories--modern { background: #fff7f3; padding: 82px 0 72px; }
.ims-stories__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; }

.ims-story-photo { position: relative; min-height: 430px; }
.ims-story-photo img { width: 100%; height: 100%; object-fit: cover; }
.ims-graduate-card {
  position: absolute; left: 26px; bottom: 34px;
  background: #fff; border-radius: 16px; padding: 18px 24px;
  box-shadow: 0 20px 55px rgba(38,56,86,.18);
}
.ims-graduate-card strong { display: block; font-size: 34px; color: var(--ims-coral); font-family: var(--ims-display); font-weight: 900; line-height: 1; }
.ims-graduate-card span   { font-size: 12px; color: #71788a; font-weight: 800; }

.ims-story-feature {
  position: relative; padding: 70px 70px 64px;
  background: #fff7f3; overflow: hidden;
}
.ims-story-feature:after {
  content: ''; position: absolute; right: 0; top: 0;
  width: 190px; height: 128px; background: #ffe6e2;
}
.ims-stars { color: var(--ims-gold); font-size: 21px; letter-spacing: .16em; margin: 26px 0; }
.ims-quote-mark { font-size: 58px; color: #d6f4f1; line-height: 1; font-weight: 900; }

.ims-story-feature blockquote {
  position: relative; z-index: 1;
  font-family: var(--ims-display);
  font-size: 24px; line-height: 1.35; letter-spacing: -.03em; font-weight: 800;
  color: var(--ims-navy); margin: 12px 0 34px;
  transition: opacity .13s ease;
}
.ims-story-author { display: flex; align-items: center; gap: 16px; }
.ims-story-author span {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  background: var(--ims-coral); border-radius: 50%;
  color: #fff; font-weight: 900;
  transition: opacity .13s ease;
}
.ims-story-author strong { display: block; color: var(--ims-navy); font-size: 14px; transition: opacity .13s ease; }
.ims-story-author small  { color: #768096; font-weight: 700; }
.ims-story-dots { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.ims-story-dots button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ims-coral); background: transparent;
  color: var(--ims-coral); font-size: 18px; cursor: pointer;
}
.ims-story-dots i { width: 11px; height: 11px; background: #d7d7d7; border-radius: 50%; display: block; }
.ims-story-dots i.active { width: 32px; border-radius: 999px; background: var(--ims-coral); }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.ims-blog { background: #fff7f3; }
.ims-blog-grid--modern {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: repeat(2,1fr);
  gap: 28px;
}
.ims-blog-card {
  border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--ims-line);
  box-shadow: 0 18px 58px rgba(38,56,86,.08);
  transition: .25s ease;
}
.ims-blog-card:hover { transform: translateY(-5px); box-shadow: 0 24px 75px rgba(38,56,86,.13); }
.ims-blog-card--large { grid-row: 1 / span 2; }

.ims-blog-card__image { height: 205px; display: block; position: relative; overflow: hidden; }
.ims-blog-card--large .ims-blog-card__image { height: 310px; }
.ims-blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.ims-blog-card:hover img { transform: scale(1.05); }
.ims-blog-card__image span {
  position: absolute; top: 18px; left: 18px;
  border-radius: 999px; background: var(--ims-coral);
  color: #fff; padding: 9px 16px; font-size: 12px; font-weight: 900;
}
.ims-blog-card:nth-child(2) .ims-blog-card__image span { background: var(--ims-teal); }
.ims-blog-card:nth-child(3) .ims-blog-card__image span { background: var(--ims-purple); }

.ims-blog-card__body { padding: 24px 28px 30px; }
.ims-blog-card small { display: block; color: #767f92; font-weight: 800; margin-bottom: 13px; }
.ims-blog-card h3 { font-family: var(--ims-display); font-size: 20px; line-height: 1.3; letter-spacing: -.035em; color: var(--ims-navy); margin: 0 0 20px; font-weight: 850; }
.ims-blog-card--large h3 { font-size: 25px; }
/* FIX: was margin:80px — corrected to normal value */
.ims-blog-card p { color: #667087; font-size: 13px; line-height: 1.7; margin: 0 0 20px; }
.ims-read { display: inline-flex; align-items: center; gap: 10px; color: var(--ims-coral); font-size: 13px; font-weight: 900; }

/* ── Tour / CTA ──────────────────────────────────────────────────────────── */
.ims-tour { background: #fff7f3; padding: 0 0 72px; }
.ims-tour__wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; }

.ims-tour__copy {
  position: relative; padding: 82px 70px; color: #fff;
  background: center/cover no-repeat; overflow: hidden;
}
.ims-tour__copy::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg,rgba(29,40,62,.86),rgba(29,40,62,.56));
  z-index: 0;
}
.ims-tour__copy > * { position: relative; z-index: 1; }
.ims-tour__copy h2 { font-family: var(--ims-display); font-size: clamp(38px,5vw,56px); line-height: 1.06; letter-spacing: -.055em; font-weight: 900; margin: 16px 0 22px; }
.ims-tour__copy h2 span { display: block; color: var(--ims-gold); }
.ims-tour__copy p { color: rgba(255,255,255,.82); max-width: 530px; }
.ims-tour__copy ul { display: grid; gap: 20px; padding: 0; margin: 34px 0; list-style: none; }
.ims-tour__copy li { display: flex; gap: 14px; align-items: center; color: rgba(255,255,255,.85); font-weight: 800; }
.ims-tour__copy li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.13); color: var(--ims-coral); }
.ims-tour__copy blockquote { border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; margin-top: 36px; font-size: 18px; font-weight: 800; font-style: italic; color: rgba(255,255,255,.9); }

.ims-tour__form-wrap {
  position: relative; background: #fff1ec; padding: 70px;
}
.ims-tour__form-wrap::before { content: ''; position: absolute; right: 0; top: 0; width: 165px; height: 165px; background: #ffd9d2; }
.ims-tour__form-wrap::after  { content: ''; position: absolute; left: 0; bottom: 0; width: 158px; height: 132px; background: #eef6f0; }

.ims-tour__form { position: relative; z-index: 1; }
.ims-tour__form h3 { font-family: var(--ims-display); font-size: 30px; letter-spacing: -.04em; color: var(--ims-navy); margin: 0; }
.ims-tour__form > p { color: #787f91; margin: 2px 0 30px; font-size: 13px; }
.ims-tour__form label { display: block; color: #566078; font-size: 12px; font-weight: 900; margin-bottom: 18px; }
.ims-tour__form input,
.ims-tour__form select {
  width: 100%; height: 48px; border: 1px solid rgba(38,56,86,.12);
  border-radius: 11px; background: #fff;
  padding: 0 16px; margin-top: 7px;
  color: var(--ims-ink); font: inherit; font-size: 14px; outline: none;
}
.ims-tour__form input:focus,
.ims-tour__form select:focus {
  border-color: var(--ims-coral);
  box-shadow: 0 0 0 4px rgba(240,100,82,.12);
}
.ims-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ims-tour__form small { display: block; text-align: center; color: #9b9faa; font-weight: 700; margin-top: 16px; }

/* WPForms / CF7 button override */
.ims-tour__form .wpforms-submit,
.ims-tour__form .wpcf7-submit {
  width: 100%; background: var(--ims-coral); color: #fff; border: 0;
  border-radius: 12px; min-height: 54px; font-family: var(--ims-sans);
  font-weight: 900; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 18px 42px rgba(240,100,82,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ims-tour__form .wpforms-submit:hover,
.ims-tour__form .wpcf7-submit:hover { transform: translateY(-2px); }

/* Form feedback */
.ims-form-msg { margin: 8px 0; font-size: 13px; min-height: 18px; border-radius: 8px; }
.ims-form-msg.success { color: #285523; background: rgba(40,85,35,.08); padding: 10px 14px; }
.ims-form-msg.error   { color: #8b2c2c; background: rgba(139,44,44,.08); padding: 10px 14px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.ims-footer { background: #fff1ec; color: var(--ims-ink); padding: 68px 0 0; }
.ims-footer__grid { display: grid; grid-template-columns: 1.25fr repeat(3,1fr); gap: 72px; padding-bottom: 56px; }
.ims-footer .ims-brand img, .ims-footer .ims-brand .custom-logo { filter: none; max-height: 58px; }
.ims-footer__brand p { max-width: 310px; color: #4f596c; font-weight: 700; line-height: 1.65; }
.ims-footer__colors { display: flex; gap: 9px; margin: 24px 0; }
.ims-footer__colors i { width: 17px; height: 17px; border-radius: 50%; display: block; }
.ims-footer__colors i:nth-child(1) { background: var(--ims-coral); }
.ims-footer__colors i:nth-child(2) { background: var(--ims-teal); }
.ims-footer__colors i:nth-child(3) { background: var(--ims-purple); }
.ims-footer__colors i:nth-child(4) { background: var(--ims-gold); }
.ims-footer__social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ims-coral); color: #fff; font-weight: 900; }
.ims-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .22em; margin: 0 0 22px; color: var(--ims-navy); font-weight: 900; }
.ims-footer h4::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ims-coral); margin-right: 10px; }
.ims-footer nav:nth-child(3) h4::before { background: var(--ims-teal); }
.ims-footer nav:nth-child(4) h4::before { background: var(--ims-purple); }
.ims-footer nav a { display: block; color: #4f596c; font-weight: 750; margin: 0 0 13px; }
.ims-footer__contact { display: flex; gap: 36px; flex-wrap: wrap; border-top: 1px solid rgba(38,56,86,.1); padding: 25px 0; color: #566078; font-weight: 750; }
.ims-footer__bottom { height: 46px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(38,56,86,.08); font-size: 12px; color: #697185; }

/* ── Inner templates ─────────────────────────────────────────────────────── */
.ims-page-template .ims-header,
.single .ims-header,
.archive .ims-header,
.search .ims-header { position: sticky; top: 0; background: transparent; }
.imani-page-wrap, .imani-article, .imani-archive { padding: 150px 0 80px; min-height: 60vh; }
.imani-page-wrap h1, .imani-article h1, .imani-archive h1 { font-family: var(--ims-display); font-size: clamp(40px,6vw,68px); letter-spacing: -.06em; color: var(--ims-navy); }

/* ── Responsive: tablet ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .ims-container, .imani-container { width: min(calc(100% - 48px), var(--ims-max)); }

  .ims-header { top: 0; }
  body.has-announce .ims-header { top: var(--ims-announce-h, 42px); }
  .ims-header__inner { height: 70px; border-radius: 0; margin-inline: -24px; padding-inline: 32px; }

  .ims-nav {
    position: fixed; left: 18px; right: 18px; top: 84px;
    max-height: calc(100vh - 105px); overflow: auto;
    padding: 18px; border-radius: 26px;
    background: rgba(255,250,243,.92);
    backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
    box-shadow: 0 30px 90px rgba(19,28,45,.24);
    border: 1px solid rgba(38,56,86,.12);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: .22s ease;
  }
  .imani-menu-open .ims-nav { opacity: 1; visibility: visible; transform: none; }
  .ims-nav ul { display: grid; gap: 6px; }
  .ims-nav a { color: var(--ims-ink); display: block; padding: 14px 12px; }
  .ims-nav__panel { position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: rgba(255,255,255,.48); padding: 4px; margin: 0 0 8px; }
  .ims-header-cta { display: none; }
  .ims-menu-toggle { display: flex; color: inherit; }

  .ims-modern-hero { min-height: 650px; }
  .ims-hero__inner { height: auto; min-height: 650px; padding: 110px 0 48px; }
  .ims-hero h1 { font-size: clamp(43px,11vw,64px); }
  .ims-hero__actions { display: grid; }
  .ims-hero__actions .ims-btn { width: 100%; }
  .ims-admission-pill { display: none; }
  .ims-orb--coral { right: 6%; top: 20%; }
  .ims-orb--teal  { right: 4%; top: 33%; }

  .ims-proofbar__inner { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
  .ims-section-head--split { grid-template-columns: 1fr; }
  .ims-section-head--split .ims-btn { width: 100%; }

  .ims-program-grid--modern,
  .ims-why__grid,
  .ims-stories__grid,
  .ims-blog-grid--modern,
  .ims-tour__wrap,
  .ims-footer__grid { grid-template-columns: 1fr; }

  .ims-philosophy-band h2 { font-size: 34px; }
  .shape-three { left: 48%; bottom: 24px; }

  .ims-why__media { min-height: 440px; }
  .ims-why__main { width: 76%; height: 260px; }
  .ims-why__small { left: auto; right: 0; top: 220px; width: 210px; }
  .ims-feature-list--cards { grid-template-columns: 1fr; }

  .ims-story-feature { padding: 48px 32px; }
  .ims-blog-card--large { grid-row: auto; }
  .ims-blog-card--large .ims-blog-card__image, .ims-blog-card__image { height: 230px; }

  .ims-tour__copy, .ims-tour__form-wrap { padding: 48px 32px; }
  .ims-footer__contact, .ims-footer__bottom { display: grid; gap: 14px; height: auto; padding-block: 24px; }
}

/* ── Responsive: mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ims-container, .imani-container { width: calc(100% - 32px); }
  .ims-header__inner { margin-inline: -16px; padding-inline: 24px; }
  .ims-brand { min-width: 0; }
  .ims-brand__text { font-size: 9px; }
  .ims-modern-head h2, .ims-why__copy h2 { font-size: 34px; }
  .ims-hero__meta { font-size: 10px; letter-spacing: .32em; }
  .ims-dotline { letter-spacing: .15em; }
  .ims-program-card__body { padding: 22px; }
  .ims-program-card__image { height: 190px; }
  .ims-form-row { grid-template-columns: 1fr; }
  .ims-tour__copy h2 { font-size: 36px; }
  .ims-story-feature blockquote { font-size: 21px; }
  .ims-footer { padding-top: 48px; }
  .ims-proofbar__inner { grid-template-columns: 1fr; }
}
