/* ==========================================================================
   IMS Noida — theme, header and footer
   Follows the IMS Noida brand guide:
     Primary   Forest Green #1b3c1c, Olive Green #587b1d (also as a gradient)
     Secondary Ivory #f2e5d7, Beige #e1c7a0, Sand #bf9355,
               Chestnut #653205, Cognac #3c1c03, Coffee #2f1402
     Fonts     Playfair Display (primary), Inter (secondary)
     Schools   Management Sprig Meadow #d7e0c0, IT Amber Glow #d17130,
               Journalism Lemon Kiss #ffe477, Law Autumn Flame #762634
   Loaded last by header.php (main site only; the blog keeps its own files).
   ========================================================================== */

:root {
  /* brand guide: primary */
  --brand-forest: #1b3c1c;
  --brand-olive: #587b1d;
  --brand-gradient: linear-gradient(90deg, #1b3c1c 0%, #587b1d 100%);
  /* brand guide: secondary */
  --brand-ivory: #f2e5d7;
  --brand-beige: #e1c7a0;
  --brand-sand: #bf9355;
  --brand-chestnut: #653205;
  --brand-cognac: #3c1c03;
  --brand-coffee: #2f1402;
  /* brand guide: school colours */
  --school-management: #d7e0c0;
  --school-it: #d17130;
  --school-journalism: #ffe477;
  --school-law: #762634;

  /* working scale built from the brand colours */
  --ims-950: #0e2010;
  --ims-900: #132d14;
  --ims-800: #1b3c1c;   /* Forest Green */
  --ims-700: #2a4f1e;
  --ims-600: #41651e;
  --ims-500: #587b1d;   /* Olive Green */
  --ims-300: #a3b878;
  --ims-200: #e1c7a0;   /* Beige: light accent on green */
  --ims-100: #eef1e3;
  --ims-cream: #f2e5d7; /* Ivory */
  --ims-cream-2: #e8d6bf;
  --ims-ink: #2f1402;   /* Coffee: body text */
  --ims-muted: #5e4a38;
  --ims-line: #e6dccd;
  --ims-white: #ffffff;
  --ims-school: var(--brand-olive); /* set per page for course pages */

  --ims-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ims-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* old stylesheets use these variables for their fonts */
  --primary-font: var(--ims-font);
  --bs-body-font-family: var(--ims-font);

  --ims-radius: 10px;
  --ims-radius-sm: 6px;
  /* page width: matches the header, so content lines up with the logo */
  --ims-wrap: 1800px;
  /* side spacing: 20px on phones, growing to 48px on wide screens */
  --ims-gutter: clamp(20px, 4vw, 48px);
  --ims-ease: cubic-bezier(.2, .7, .2, 1);
  --ims-shadow: 0 10px 30px -12px rgba(15, 42, 18, .28);

  /* Legacy variables used across the old stylesheets */
  --color-secondary: var(--ims-200);
}

::selection { background: var(--ims-200); color: var(--ims-900); }

body { font-family: var(--ims-font); }

/* Old page sections use Bootstrap .container (12px sides): give them the same side spacing */
main .container,
main .container-fluid {
  padding-left: var(--ims-gutter) !important;
  padding-right: var(--ims-gutter) !important;
}
/* Old Bootstrap containers stop at 1320px; widen them to the same page width */
@media (min-width: 1400px) {
  main .container { max-width: var(--ims-wrap) !important; }
}

.ims-wrap {
  width: 100%;
  max-width: var(--ims-wrap);
  margin: 0 auto;
  padding-left: var(--ims-gutter);
  padding-right: var(--ims-gutter);
}

/* Focus that shows on keyboard use only */
.ims-header a:focus-visible,
.ims-header button:focus-visible,
.ims-footer a:focus-visible,
.ims-whatsapp:focus-visible,
.ims-totop:focus-visible {
  outline: 3px solid var(--ims-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.ims-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--ims-800);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--ims-radius-sm);
  transform: translateY(-160%);
  transition: transform .2s var(--ims-ease);
}
.ims-skip:focus { transform: translateY(0); outline: 3px solid var(--ims-200); }
#ims-main { outline: none; }

/* ---------- Buttons ---------- */
.ims-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--ims-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ims-ease), background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.ims-btn:hover { transform: translateY(-2px); }
.ims-btn:active { transform: translateY(0) scale(.97); }

.ims-btn--solid { background: var(--ims-800); color: #fff !important; box-shadow: 0 6px 16px -8px rgba(27,60,28, .7); }
.ims-btn--solid:hover { background: var(--ims-600); }

.ims-btn--light { background: #fff; color: var(--ims-800) !important; }
.ims-btn--light:hover { background: var(--ims-200); }

.ims-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.ims-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.ims-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 1030;
  width: 100%;
  font-family: var(--ims-font);
  background: #fff;
  transition: box-shadow .25s var(--ims-ease);
}
.ims-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(27,60,28, .45); }
/* Many pages put the header inside <main>, whose old overflow:hidden stops a
   sticky header from sticking. clip still stops sideways scroll but keeps sticky. */
main:has(> .ims-header) { overflow-x: clip !important; overflow-y: visible !important; }
/* home.css fixes body at 100% height; a sticky header can only stick inside its
   parent, so let the body grow with the page. */
body { height: auto !important; min-height: 100%; }
.ims-header *, .ims-header *::before, .ims-header *::after { box-sizing: border-box; }
.ims-header a { text-decoration: none; }

/* --- Utility bar --- */
.ims-topbar {
  background: var(--brand-forest);
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  line-height: 1.3;
}
.ims-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.ims-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #fff !important;
  font-weight: 500;
  min-width: 0;
}
.ims-notice__tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ims-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ims-notice__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s var(--ims-ease);
}
.ims-notice:hover .ims-notice__text { background-size: 100% 1px; }
.ims-notice .fa-arrow-right { font-size: 11px; transition: transform .2s var(--ims-ease); }
.ims-notice:hover .fa-arrow-right { transform: translateX(3px); }

.ims-topbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ims-topbar__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: rgba(255, 255, 255, .82) !important;
  font-weight: 500;
  transition: color .15s;
}
.ims-topbar__links a:hover { color: var(--ims-200) !important; }
.ims-topbar__links .ims-topbar__phone { gap: 6px; margin-left: 6px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .2); color: #fff !important; font-weight: 700; }
.ims-topbar__links .ims-topbar__phone i { font-size: 11px; color: var(--ims-200); }

/* --- Main bar --- */
.ims-mainbar {
  background: #fff;
  border-bottom: 1px solid var(--ims-line);
}
.ims-mainbar > .ims-wrap { position: relative; }

.ims-nav.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 96px;
  gap: 0 18px;
  font-family: var(--ims-font) !important;
}

.ims-brand { display: inline-flex; align-items: center; flex: none; padding: 10px 0; }
.ims-brand img { display: block; width: auto; height: 76px; max-width: none; }

.ims-brand__badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--ims-line);
  flex: none;
}
.ims-brand__badges img { width: 56px; height: 56px; display: block; }

/* Neutralise the old navbar tricks from home.css */
.ims-nav .navbar-nav { visibility: visible; }
.ims-nav .navbar-nav:hover > * { opacity: 1; }
.ims-nav .navbar-nav > * { visibility: visible; }

.ims-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.ims-nav__item { position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ims-nav__item > .nav-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px !important;
  color: var(--ims-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0;
  border-radius: var(--ims-radius-sm);
  transition: color .15s, background-color .15s;
}
.ims-nav__item > .nav-link::after { display: none; } /* Bootstrap caret */
.ims-nav__item.dropdown > .nav-link::before {
  content: "";
  order: 2;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s var(--ims-ease), margin .2s;
  opacity: .7;
}
.ims-nav__item > .nav-link:hover,
.ims-nav__item.show > .nav-link,
.ims-nav__item > .nav-link.show { color: var(--ims-600) !important; background: var(--ims-100); }

/* Active page: a green line under the menu item */
.ims-nav__item.is-active > .nav-link { color: var(--ims-700) !important; }
.ims-nav__item.is-active > .nav-link > span,
.ims-nav__item.is-active > .nav-link { box-shadow: inset 0 -2px 0 var(--ims-500); }

/* Dropdowns */
.ims-header .dropdown-menu {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ims-line);
  border-radius: var(--ims-radius);
  background: #fff;
  box-shadow: var(--ims-shadow);
  font-size: 15px;
}
.ims-drop { min-width: 250px; top: calc(100% + 6px); left: 0; }
.ims-header .dropdown-item {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--ims-radius-sm);
  color: var(--ims-ink);
  font-weight: 500;
  white-space: normal;
  background: none;
  transition: background-color .15s, color .15s, padding .2s var(--ims-ease);
}
.ims-header .dropdown-item:hover,
.ims-header .dropdown-item:focus { background: var(--ims-100); color: var(--ims-700); padding-left: 16px; }

/* Mega menu (Academics) */
.ims-nav__item--mega { position: static; }
.ims-mega {
  left: var(--ims-gutter) !important;
  right: var(--ims-gutter) !important;
  top: calc(100% - 6px) !important;
  padding: 28px !important;
  max-width: 1320px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ims-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, .9fr);
  gap: 28px;
}
.ims-mega__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--ims-line);
  color: var(--ims-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ims-mega__title--gap { margin-top: 18px; }
.ims-mega .dropdown-item { font-weight: 700; color: var(--ims-800); }
.ims-mega .dropdown-item span {
  display: block;
  margin-top: 2px;
  color: var(--ims-muted);
  font-size: 13px;
  font-weight: 400;
}
.ims-mega__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--ims-radius);
  background: linear-gradient(160deg, var(--ims-100) 0%, var(--ims-cream) 100%);
  border: 1px solid var(--ims-line);
  color: var(--ims-800) !important;
  transition: transform .2s var(--ims-ease), box-shadow .2s;
}
.ims-mega__card:hover { transform: translateY(-2px); box-shadow: var(--ims-shadow); }
.ims-mega__card img {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 92px;
  height: 92px;
  transition: transform .3s var(--ims-ease);
}
.ims-mega__card:hover img { transform: scale(1.03); }
.ims-mega__card-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ims-500); }
.ims-mega__card-title { font-family: var(--ims-serif); font-size: 22px; font-weight: 700; line-height: 1.2; }
.ims-mega__card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ims-600); }
.ims-mega__card-link i { transition: transform .2s var(--ims-ease); }
.ims-mega__card:hover .ims-mega__card-link i { transform: translateX(3px); }

/* Right-hand actions */
.ims-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--ims-line);
}
.ims-help { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ims-ink) !important; }
.ims-help__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ims-100);
  color: var(--ims-600);
  font-size: 14px;
  transition: background-color .2s, color .2s, transform .2s var(--ims-ease);
}
.ims-help:hover .ims-help__icon { background: var(--ims-800); color: #fff; transform: translateY(-2px); }
.ims-help__text { display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; color: var(--ims-muted); }
.ims-help__text strong { font-size: 15px; color: var(--ims-800); font-weight: 700; }

.ims-nav__mobile-links { display: none; }

/* Burger */
.ims-burger {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: auto;
  padding: 6px 14px !important;
  border: 1.5px solid var(--ims-line) !important;
  border-radius: 999px !important;
  background: #fff;
  color: var(--ims-800);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .2s, background-color .2s;
}
.ims-burger:hover { border-color: var(--ims-500) !important; background: var(--ims-100); }
.ims-burger__icon { position: relative; display: inline-block; width: 20px; height: 14px; }
.ims-burger__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ims-800);
  transition: transform .25s var(--ims-ease), opacity .2s, top .25s var(--ims-ease);
}
.ims-burger__icon span:nth-child(1) { top: 0; }
.ims-burger__icon span:nth-child(2) { top: 6px; }
.ims-burger__icon span:nth-child(3) { top: 12px; }
.ims-burger[aria-expanded="true"] .ims-burger__icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.ims-burger[aria-expanded="true"] .ims-burger__icon span:nth-child(2) { opacity: 0; }
.ims-burger[aria-expanded="true"] .ims-burger__icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* --- Desktop (Bootstrap xl and up) --- */
@media (min-width: 1200px) {
  .ims-nav__panel { display: flex !important; flex-basis: auto; flex-grow: 1; align-items: center; }
  .ims-header .dropdown-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none;
    transition: opacity .18s var(--ims-ease), transform .18s var(--ims-ease), visibility 0s linear .18s; }
  .ims-nav__item.dropdown:hover > .dropdown-menu,
  .ims-nav__item.dropdown:focus-within > .dropdown-menu,
  .ims-header .dropdown-menu.show {
    visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto;
    transition: opacity .18s var(--ims-ease), transform .18s var(--ims-ease), visibility 0s;
  }
  .ims-nav__item.dropdown:hover > .nav-link::before { transform: rotate(225deg); margin-top: 3px; }
  /* hover bridge so the menu does not close between the link and the panel */
  .ims-nav__item.dropdown > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}
/* Desktop: one row, never wrapping. The helpline number moves to the top bar,
   so the main bar keeps only the round call button next to "Apply online". */
@media (min-width: 1200px) {
  .ims-nav.navbar { flex-wrap: nowrap; }
  .ims-nav__panel { min-width: 0; }
  .ims-help__text { display: none; }
}
/* Bigger menu on desktop */
@media (min-width: 1200px) {
  .ims-nav__item > .nav-link { font-size: 17px !important; padding: 10px 14px !important; min-height: 48px; }
  /* space between menu items: 32px on wide screens, less as the screen narrows */
  .ims-nav__list { gap: clamp(20px, calc((100vw - 1350px) / 6), 32px); }
  .ims-nav__item.dropdown > .nav-link::before { width: 8px; height: 8px; }
  .ims-header .dropdown-menu { font-size: 16px; }
  .ims-help__icon { width: 48px; height: 48px; font-size: 17px; }
  .ims-nav__actions { gap: 18px; }
  .ims-nav__actions .ims-btn { min-height: 52px; padding: 12px 28px; font-size: 17px; }
}
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .ims-nav__item > .nav-link { font-size: 16px !important; padding: 10px 11px !important; }
  .ims-nav__list { gap: 12px; }
  .ims-nav__actions .ims-btn { padding: 12px 22px; font-size: 16px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .ims-brand__badges { display: none; }
  .ims-nav__item > .nav-link { padding: 8px 10px !important; }
}

/* --- Tablet and phone --- */
@media (max-width: 1199.98px) {
  .ims-nav.navbar { min-height: 76px; }
  .ims-brand img { height: 56px; }
  .ims-brand__badges img { width: 42px; height: 42px; }
  .ims-burger { display: inline-flex; }

  .ims-nav__panel,
  .ims-nav__panel.show {
    /* home.css turns .navbar-collapse into a fixed sheet; keep it in the header instead */
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    background: #fff !important;
    padding-bottom: 8px !important;
    transition: none;
  }
  .ims-nav__panel {
    flex-basis: 100%;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 calc(var(--ims-gutter) * -1);
    padding: 0 var(--ims-gutter);
    border-top: 1px solid var(--ims-line);
  }
  .ims-nav__list { flex-direction: column; align-items: stretch; margin: 0; padding: 8px 0; }
  .ims-nav__item { border-bottom: 1px solid var(--ims-line) !important; }
  .ims-nav__item > .nav-link {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 12px 4px !important;
    font-size: 17px !important;
    border-radius: 0;
  }
  .ims-nav__item > .nav-link:hover,
  .ims-nav__item.show > .nav-link,
  .ims-nav__item > .nav-link.show { background: none; }
  .ims-nav__item > .nav-link.show::before { transform: rotate(225deg); margin-top: 3px; }
  .ims-nav__item.is-active > .nav-link { box-shadow: inset 3px 0 0 var(--ims-500); padding-left: 14px !important; }

  .ims-header .dropdown-menu {
    position: static !important;
    transform: none !important;
    margin: 0 0 12px;
    padding: 4px;
    border: 0;
    box-shadow: none;
    background: var(--ims-100);
  }
  .ims-mega { padding: 12px !important; }
  .ims-mega__grid { grid-template-columns: 1fr; gap: 14px; }
  .ims-mega__card { display: none; }

  .ims-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
  }
  .ims-nav__actions .ims-btn { width: 100%; min-height: 50px; font-size: 16px; }
  .ims-help { padding: 8px 0; }

  .ims-nav__mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
  }
  .ims-nav__mobile-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ims-line);
    border-radius: 999px;
    color: var(--ims-700) !important;
    font-size: 14px;
    font-weight: 600;
  }
  .ims-topbar__links { display: none; }
}
@media (max-width: 575.98px) {
  :root { --ims-gutter: 20px; }
  .ims-brand img { height: 50px; }
  .ims-brand__badges { padding-left: 10px; gap: 4px; }
  .ims-brand__badges img { width: 36px; height: 36px; }
  .ims-burger__label { display: none; }
  .ims-burger { padding: 6px 12px !important; min-width: 44px; justify-content: center; }
  .ims-notice__tag { display: none; }
  .ims-topbar { font-size: 12.5px; }
}
@media (max-width: 359.98px) {
  .ims-brand__badges { display: none; }
}

/* Old header gradient overlay is no longer needed under the new solid header */
.ims-header ~ * .main-menu::before { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ims-footer { font-family: var(--ims-font); color: var(--ims-ink); background: var(--ims-cream); }
.ims-footer *, .ims-footer *::before, .ims-footer *::after { box-sizing: border-box; }
.ims-footer h2, .ims-footer h3, .ims-footer p { margin: 0; }
.ims-footer ul { margin: 0; padding: 0; list-style: none; }
.ims-footer a { text-decoration: none; }

/* --- Call to action band --- */
.ims-footer__cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background: var(--brand-gradient); /* brand guide: Forest Green to Olive Green */
}
.ims-footer__cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: end;
  gap: 32px 64px;
}
.ims-kicker {
  margin-bottom: 14px !important;
  color: var(--ims-200);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ims-footer__cta h2 {
  max-width: 18ch;
  color: #fff;
  font-family: var(--ims-serif);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.ims-footer__cta-copy > p:last-child {
  max-width: 56ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.55;
}
.ims-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ims-footer__cta-actions .ims-btn { min-height: 50px; padding: 12px 26px; font-size: 16px; }

/* --- Main area --- */
.ims-footer__main { padding: 64px 0 48px; border-bottom: 1px solid var(--ims-cream-2); }
.ims-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr);
  gap: 40px 32px;
}
.ims-footer__logo { display: inline-block; margin-bottom: 22px; }
.ims-footer__logo img { display: block; width: auto; height: 72px; }

.ims-footer__contact li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  color: var(--ims-muted);
  font-size: 15px;
  line-height: 1.5;
}
.ims-footer__contact i { margin-top: 4px; color: var(--ims-500); font-size: 14px; text-align: center; }
.ims-footer__contact a { color: var(--ims-800); font-weight: 600; }
.ims-footer__contact a:hover { color: var(--ims-600); }

.ims-footer__social { display: flex; gap: 10px; margin-top: 22px; }
.ims-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ims-cream-2);
  background: #fff;
  color: var(--ims-800);
  font-size: 16px;
  transition: transform .2s var(--ims-ease), background-color .2s, color .2s, border-color .2s;
}
.ims-footer__social a:hover { transform: translateY(-2px); background: var(--ims-800); border-color: var(--ims-800); color: #fff; }

.ims-footer__col h3 {
  margin-bottom: 18px;
  color: var(--ims-800);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ims-footer__col li { margin-bottom: 2px; }
.ims-footer__col li a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ims-muted);
  font-size: 15px;
  line-height: 1.35;
  background-image: linear-gradient(var(--ims-500), var(--ims-500));
  background-size: 0 1px;
  background-position: 0 85%;
  background-repeat: no-repeat;
  transition: color .15s, background-size .25s var(--ims-ease);
}
.ims-footer__col li a:hover { color: var(--ims-800); background-size: 100% 1px; }

.ims-footer__badges { display: flex; gap: 10px; margin-bottom: 14px; }
.ims-footer__badges img { width: 84px; height: 84px; display: block; }

/* --- Bottom bar --- */
.ims-footer__bottom { background: var(--brand-forest); color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.ims-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.ims-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ims-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .85); }
.ims-footer__bottom a:hover { color: var(--ims-200); }

@media (max-width: 1199.98px) {
  .ims-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ims-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: start; }
  .ims-footer__logo { margin: 0; }
  .ims-footer__social { margin: 0; }
}
@media (max-width: 991.98px) {
  .ims-footer__cta { padding: 56px 0; }
  .ims-footer__cta-inner { grid-template-columns: 1fr; align-items: start; }
  .ims-footer__brand { grid-template-columns: 1fr; }
  .ims-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .ims-footer__cta-actions { flex-direction: column; }
  .ims-footer__cta-actions .ims-btn { width: 100%; }
  .ims-footer__main { padding: 48px 0 32px; }
  .ims-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .ims-footer__logo img { height: 60px; }
  .ims-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* --- Floating WhatsApp and back-to-top --- */
.ims-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 1020;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  font-size: 28px;
  box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .65);
  transition: transform .2s var(--ims-ease);
}
.ims-whatsapp:hover { transform: translateY(-2px) scale(1.03); }
.ims-totop.scroll-top {
  position: fixed;
  left: 24px;
  bottom: 92px;
  z-index: 1019;
  display: inline-grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ims-800);
  color: #fff !important;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s var(--ims-ease), visibility 0s linear .2s, background-color .2s;
}
.ims-totop.scroll-top.active { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ims-ease), visibility 0s, background-color .2s; }
.ims-totop.scroll-top:hover { background: var(--ims-600); transform: translateY(-2px); }

/* Icons on Forest Green (brand guide) */
.ims-help__icon { background: var(--brand-forest); color: #fff; }
.ims-help:hover .ims-help__icon { background: var(--brand-olive); }
.ims-footer__social a { background: var(--brand-forest); border-color: var(--brand-forest); color: #fff; }
.ims-footer__social a:hover { background: var(--brand-olive); border-color: var(--brand-olive); }
.ims-footer__contact i {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-top: -2px;
  border-radius: 50%; background: var(--brand-forest); color: #fff; font-size: 12px;
}
.ims-footer__contact li { grid-template-columns: 30px 1fr; align-items: center; }

/* ==========================================================================
   Site-wide brand touches (main pages)
   ========================================================================== */
.text_red, .text-red { color: var(--ims-800) !important; }
.red-bg { background-color: var(--ims-800) !important; }

@media (prefers-reduced-motion: reduce) {
  .ims-header *, .ims-footer *, .ims-btn, .ims-whatsapp, .ims-totop { transition: none !important; animation: none !important; }
  .ims-btn:hover, .ims-mega__card:hover, .ims-footer__social a:hover { transform: none; }
}
