/* MIHS theme. Brand colours and fonts are CSS variables at the top of this file.
   Ported from the approved MIHS front-end design (home page + coming-soon page)
   so every CMS-rendered page shares the same transparent floating header,
   mega-menu, hero, section, card, form and footer styling. */
    /* -------------------------------------------------------------
       1. CORE BRAND TOKENS & TYPOGRAPHY (Century Gothic)
       ------------------------------------------------------------- */
    :root {
      --mihs-primary: #0D8A4B;       /* Deep Imperial Green */
      --mihs-primary-dark: #095C32;  /* Midnight Forest */
      --mihs-primary-light: #EBF6F0; /* Soft botanical tint */
      --mihs-secondary: #38A169;     /* Jade Green */
      --mihs-accent: #D8B24C;        /* Ceremonial Gold */
      --mihs-accent-hover: #C49F3E;
      --mihs-accent-light: #F2D275;  /* gold tint for text on green panels */
      --mihs-ink: #111A15;          /* Carbon Slate */
      --mihs-muted: #526259;        /* Slate Gray */
      --mihs-line: #DCE5E0;
      --mihs-surface: #FFFFFF;
      --mihs-bg: #F5F8F6;
      --font-family: "Century Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      /* Heading font used for section titles, the mega-menu column headings
         and its featured card. Century Gothic itself only renders correctly
         on Windows, so instead of falling back to a different-looking sans
         on Mac/Linux/mobile, headings load Jost — a geometric Google-hosted
         sans with the same round o/e/a shapes and wide, even proportions as
         Century Gothic — so every visitor sees the same look. Body copy,
         nav and buttons are untouched and still use --font-family above. */
      --font-heading: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --mihs-heading-accent: #A01B1B; /* Deep crimson, already used for the mega-menu featured card title */
    }

    * { box-sizing: border-box; }
    html, body {
      margin: 0;
      padding: 0;
      font-family: var(--font-family);
      color: var(--mihs-ink);
      background-color: var(--mihs-surface);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      width: 100%;
    }

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

    .section-eyebrow {
      display: inline-block;
      font-size: clamp(0.78rem, 1.8vw, 0.85rem);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--mihs-primary);
      margin-bottom: 0.45rem;
    }
    .section-title {
      font-size: clamp(1.75rem, 3.2vw, 2.65rem);
      font-weight: 700;
      line-height: 1.2;
      color: var(--mihs-heading-accent);
    }

    /* -------------------------------------------------------------
       2. TRANSPARENT FLOATING HEADER & RESPONSIVE UTILITY BAR
       ------------------------------------------------------------- */
    .mihs-header-wrapper {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1050;
      background: transparent;
      transition: background-color 0.35s ease, box-shadow 0.35s ease;
    }
    .mihs-header-wrapper.is-scrolled {
      position: fixed;
      background: rgba(9, 92, 50, 0.97);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 2px solid var(--mihs-accent);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    }

    /* When the top utility bar is shown, the floating header starts just below it
       instead of at the very top — but always snaps flush to the viewport once solid. */
    .mihs-topbar + .mihs-header-wrapper { top: 38px; }
    .mihs-topbar + .mihs-header-wrapper.is-scrolled { top: 0; }

    .mihs-topbar {
      position: relative;
      z-index: 1060;
      background: var(--mihs-primary-dark);
      color: #EAF3ED;
      font-size: 0.8rem;
    }
    .mihs-topbar .container-fluid { height: 38px; }
    .mihs-topbar-contact, .mihs-topbar-social { display: flex; align-items: center; gap: 1rem; }
    .mihs-topbar a { color: #EAF3ED; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
    .mihs-topbar-contact a:hover, .mihs-topbar-social a:hover { color: var(--mihs-accent); }
    .mihs-topbar-social a { font-size: 0.9rem; }
    @media (max-width: 575.98px) {
      .mihs-topbar { font-size: 0.74rem; }
    }

    /* Dark fade behind the header so the utility bar and menu stay readable
       over any photo. Sits behind the header content (z-index:-1 inside the
       header's own stacking context) and disappears once the header is solid. */
    .mihs-header-wrapper::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: calc(100% + 70px);
      background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.46) 55%,
        rgba(0, 0, 0, 0) 100%);
      z-index: -1;
      pointer-events: none;
      transition: opacity 0.35s ease;
    }
    .mihs-header-wrapper.is-scrolled::before { opacity: 0; }

    /* Quick Links dropdown — lives inline in the single-row main navbar,
       styled like a plain nav link (Makerere-style: text + chevron, no box) */
    .quick-links-dropdown .dropdown-toggle {
      background: transparent;
      border: none;
      color: #FFFFFF !important;
      font-size: 0.93rem;
      font-weight: 600;
      padding: 0.95rem 0.9rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
      white-space: nowrap;
      transition: color 0.2s ease;
    }
    .quick-links-dropdown .dropdown-toggle:hover,
    .quick-links-dropdown .dropdown-toggle:focus {
      color: var(--mihs-accent) !important;
    }
    .quick-links-dropdown .dropdown-menu {
      background: #FFFFFF;
      border: 1px solid var(--mihs-line);
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      padding: 0.5rem 0;
      font-size: 0.85rem;
      min-width: 210px;
      z-index: 1070;
    }
    .quick-links-dropdown .dropdown-item {
      color: var(--mihs-ink);
      padding: 0.55rem 1.25rem;
      font-weight: 500;
    }
    .quick-links-dropdown .dropdown-item:hover {
      background: var(--mihs-primary-light);
      color: var(--mihs-primary);
    }

    /* Main Navbar */
    .mihs-navbar {
      padding: 0.65rem 0;
      transition: padding 0.3s ease;
      position: relative;
    }
    .mihs-header-wrapper.is-scrolled .mihs-navbar {
      padding: 0.4rem 0;
    }
    .logo-svg {
      height: clamp(42px, 5.5vw, var(--logo-max-height, 54px));
      width: auto;
      max-width: 320px;
      display: block;
    }

    .mihs-nav-link {
      font-weight: 600;
      font-size: 0.93rem;
      color: #FFFFFF !important;
      padding: 0.95rem 0.9rem !important;
      position: relative;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
      transition: color 0.2s ease;
      white-space: nowrap;
    }
    .mihs-nav-link:hover,
    .mihs-nav-link.active {
      color: var(--mihs-accent) !important;
    }

    .btn-apply-header {
      background: var(--mihs-accent);
      color: #12140E !important;
      font-weight: 700;
      font-size: 0.88rem;
      border-radius: 50px;
      padding: 0.6rem 1.5rem;
      border: none;
      text-decoration: none;
      transition: all 0.25s ease;
      box-shadow: 0 4px 14px rgba(216, 178, 76, 0.35);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
    }
    .btn-apply-header:hover {
      background: #FFFFFF;
      color: var(--mihs-primary-dark) !important;
      transform: translateY(-2px);
    }

    /* Header search icon + drop-down panel (desktop) */
    .btn-header-search {
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: #FFFFFF;
      font-size: 1.15rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      transition: color 0.2s ease, background-color 0.2s ease;
    }
    .btn-header-search:hover,
    .btn-header-search[aria-expanded="true"] {
      color: var(--mihs-accent);
      background: rgba(255, 255, 255, 0.14);
    }
    .btn-header-search:focus-visible,
    .btn-search-close:focus-visible {
      outline: 2px solid var(--mihs-accent);
      outline-offset: 2px;
    }
    .header-search-panel {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(9, 92, 50, 0.98);
      border-top: 3px solid var(--mihs-accent);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
      padding: 1.1rem 0;
      z-index: 1080;
    }
    .header-search-panel.open {
      display: block;
      animation: searchDrop 0.2s ease-out;
    }
    @keyframes searchDrop {
      from { opacity: 0; transform: translateY(-6px); }
      to   { opacity: 1; transform: none; }
    }
    .header-search-form {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      max-width: 900px;
      margin: 0 auto;
      position: relative;
    }
    .header-search-form .bi-search {
      position: absolute;
      left: 1.15rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--mihs-muted);
      pointer-events: none;
    }
    .header-search-form input[type="search"] {
      flex: 1;
      min-height: 50px;
      border: 0;
      border-radius: 50px;
      padding: 0.6rem 1.25rem 0.6rem 2.9rem;
      font-size: 1rem;
      background: #FFFFFF;
      color: var(--mihs-ink);
    }
    .header-search-form input[type="search"]:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(216, 178, 76, 0.55);
    }
    .btn-search-close {
      width: 42px;
      height: 42px;
      flex-shrink: 0;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.14);
      color: #FFFFFF;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }
    .btn-search-close:hover { background: rgba(255, 255, 255, 0.26); }
    .btn-header-search-mobile {
      width: 44px;
      height: 44px;
      font-size: 1.3rem;
      margin-right: 0.25rem;
    }
    @media (max-width: 575.98px) {
      .header-search-panel { padding: 0.85rem 0; }
      .header-search-form { gap: 0.5rem; }
      .header-search-form .btn-apply-header { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
      .btn-search-close { width: 38px; height: 38px; }
    }

    /* -------------------------------------------------------------
       3. DESKTOP MEGA MENU (≥1200px)
       ------------------------------------------------------------- */
    @media (min-width: 1200px) {
      .has-megamenu {
        position: static !important;
      }
      .megamenu-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 94vw;
        max-width: 1220px;
        background: #FFFFFF;
        border-radius: 14px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
        border-top: 4px solid var(--mihs-accent);
        padding: 2.2rem 2.5rem;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
        z-index: 1090;
        color: var(--mihs-ink);
      }
      .megamenu-dropdown::before {
        content: '';
        position: absolute;
        top: -24px;
        left: 0;
        right: 0;
        height: 24px;
        background: transparent;
      }
      .has-megamenu:hover .megamenu-dropdown,
      .has-megamenu:focus-within .megamenu-dropdown,
      .has-megamenu.is-active .megamenu-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
      }
      /* Wider dropdown for the 4-column About menu */
      .megamenu-dropdown.cols-4 {
        max-width: 1360px;
      }
      .megamenu-grid {
        display: grid;
        grid-template-columns: 1fr 1.15fr 1.35fr;
        gap: 3rem;
      }
      /* Students: 3 equal link columns, no featured card */
      .megamenu-grid.cols-3-even {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.75rem;
      }
      /* About: 3 link columns + featured card */
      .megamenu-grid.cols-4 {
        grid-template-columns: 0.9fr 0.9fr 1fr 1.15fr;
        gap: 2.25rem;
      }
      .megamenu-col-heading {
        font-family: var(--font-heading);
        font-size: 1.15rem;
        font-weight: 600;
        letter-spacing: 0;
        color: var(--mihs-heading-accent);
        margin: 0 0 1rem;
        padding-bottom: 0;
        border-bottom: none;
      }
      .megamenu-list {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      .megamenu-list li {
        margin-bottom: 1rem;
      }
      .megamenu-list a {
        color: var(--mihs-ink);
        text-decoration: none;
        font-size: 0.94rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        transition: color 0.2s ease, transform 0.2s ease;
        padding: 2px 0;
      }
      .megamenu-list a:hover {
        color: var(--mihs-primary);
        transform: translateX(4px);
      }
      .megamenu-list .ext-arrow {
        font-size: 0.9rem;
        color: #5A5A5A;
      }
      .megamenu-featured-card h5 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--mihs-heading-accent);
        margin-bottom: 1rem;
      }
      .megamenu-featured-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
      }
      .megamenu-featured-text {
        font-size: 0.88rem;
        color: var(--mihs-muted);
        line-height: 1.55;
        margin: 0;
      }
      .mobile-chevron { display: none !important; }

      /* Fallbacks for menus with fewer configured columns than the reference examples. */
      .megamenu-grid.cols-1 { grid-template-columns: 1fr; max-width: 320px; }
      .megamenu-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    }

    /* -------------------------------------------------------------
       CORRECTED MOBILE DRAWER LAYOUT (<1200px)
       ------------------------------------------------------------- */
    @media (max-width: 1199.98px) {

      /* FIX 1: A backdrop-filter on the header makes it the containing block
         for position:fixed children, which breaks the drawer's sizing and
         clipping. On mobile the scrolled header uses a solid colour instead. */
      .mihs-header-wrapper.is-scrolled {
        background: #095C32;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }

      /* FIX 2: Drawer slides with transform (GPU-friendly, no shadow leak),
         is hidden from keyboard/screen readers when closed, and respects the
         iOS safe area. */
      .navbar-collapse,
      .navbar-collapse.collapse:not(.show) {
        position: fixed;
        top: 0;
        right: 0;
        width: min(88vw, 360px);
        height: 100vh;
        height: 100dvh;
        background: #095C32;
        padding: 1.25rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1100;
        display: flex !important;
        flex-direction: column;

        /* closed state */
        transform: translateX(100%);
        visibility: hidden;
        box-shadow: none;
        transition:
          transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
          box-shadow 0.35s ease,
          visibility 0s linear 0.35s;   /* hide only after the slide-out finishes */
      }

      /* open state */
      .navbar-collapse.show {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
        transition:
          transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
          box-shadow 0.35s ease,
          visibility 0s;                /* show immediately so the slide-in is visible */
      }

      /* FIX 3: The header is its own stacking context at z-index 1050, so the
         drawer (1100) only competes inside it. The backdrop must sit BELOW
         the header, otherwise it paints over the drawer and blurs it. */
      .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1040;
        display: none;
      }
      .mobile-nav-backdrop.show { display: block; }

      .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        margin-bottom: 0.6rem;
        width: 100%;
      }
      .mobile-drawer-brand {
        display: block;
        line-height: 0;
      }
      .mobile-drawer-logo {
        height: 46px;
        width: auto;
        max-width: 200px;
        display: block;
      }

      /* Drawer search form (below Apply Now) */
      .mobile-search-form {
        position: relative;
        margin-top: 0.9rem;
      }
      .mobile-search-form input[type="search"] {
        width: 100%;
        min-height: 48px;
        border: 1.5px solid rgba(255, 255, 255, 0.35);
        border-radius: 50px;
        background: #FFFFFF;
        color: var(--mihs-ink);
        font-size: 16px;              /* prevents iOS zoom-on-focus */
        padding: 0.6rem 3.4rem 0.6rem 1.15rem;
      }
      .mobile-search-form input[type="search"]::placeholder { color: var(--mihs-muted); }
      .mobile-search-form input[type="search"]:focus {
        outline: none;
        border-color: var(--mihs-accent);
        box-shadow: 0 0 0 3px rgba(216, 178, 76, 0.4);
      }
      .mobile-search-form button {
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: var(--mihs-accent);
        color: #12140E;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }
      .btn-drawer-close {
        background: rgba(255, 255, 255, 0.12);
        border: none;
        color: #FFFFFF;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        cursor: pointer;
        transition: background 0.2s ease;
      }
      .btn-drawer-close:hover {
        background: rgba(255, 255, 255, 0.22);
      }

      /* Unset Bootstrap ms-auto & align list across full width */
      .navbar-collapse .navbar-nav {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
      }
      .navbar-collapse .navbar-nav .nav-item {
        width: 100% !important;
        margin-left: 0 !important;
      }

      .mihs-nav-link {
        padding: 0.85rem 0.2rem !important;
        font-size: 1.02rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100% !important;
        text-shadow: none !important;
        color: #FFFFFF !important;
      }
      .mihs-nav-link.active {
        color: var(--mihs-accent) !important;
      }

      /* Accordion Submenus */
      .megamenu-dropdown {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border-top: none !important;
        background: rgba(0, 0, 0, 0.22);
        border-radius: 8px;
        padding: 0.5rem 0.85rem;
        margin: 0.3rem 0 0.6rem;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
      }
      .has-megamenu.open-mobile .megamenu-dropdown {
        display: block !important;
      }
      .megamenu-grid {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
      }
      .megamenu-col-heading {
        font-family: var(--font-heading);
        font-size: 0.95rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        color: var(--mihs-accent);
        margin: 0.7rem 0 0.2rem;
      }
      .megamenu-list {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      .megamenu-list li {
        margin-bottom: 0.2rem;
      }
      .megamenu-list li a {
        color: #E2ECE5;
        text-decoration: none;
        padding: 0.45rem 0.2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.88rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }
      .megamenu-list li a:hover {
        color: var(--mihs-accent);
      }
      .megamenu-featured-card { display: none !important; }
      .mobile-chevron {
        display: inline-block !important;
        transition: transform 0.25s ease;
        font-size: 0.8rem;
      }
      .has-megamenu.open-mobile .mobile-chevron {
        transform: rotate(180deg);
      }

      /* Full Width CTA Button */
      .navbar-collapse .btn-apply-header {
        width: 100% !important;
        margin-top: 1.1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        display: flex !important;
      }

      .mobile-drawer-footer {
        margin-top: auto;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
      }
    }

    /* -------------------------------------------------------------
       4. HERO SLIDER: FULL-BLEED PHOTO + GREEN CAPTION PANEL
       ------------------------------------------------------------- */
    .hero-slider-container {
      position: relative;
      height: 100vh;
      height: 100dvh;
      min-height: 100vh;
      width: 100%;
      background-color: #084022;
      overflow: hidden;
      margin: 0;
      padding: 0;
      --hero-pad: clamp(1.25rem, 3.2vw, 3.1rem);   /* shared panel padding */
      --hero-ctrl-bottom: clamp(1.25rem, 3.5vh, 2rem);
    }
    .hero-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s ease;
      display: flex;
      align-items: flex-end;          /* caption panel sits on the bottom edge */
      z-index: 1;
    }
    .hero-slide.active {
      opacity: 1;
      visibility: visible;
      z-index: 2;
    }
    .hero-bg-layer {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      transform: scale(1.03);
      transition: transform 6s ease-out;
    }
    .hero-slide.active .hero-bg-layer {
      transform: scale(1);
    }

    /* Photo stays natural: only a faint top shade, no green wash */
    .hero-overlay-scrim {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 30%);
      z-index: 2;
      pointer-events: none;
    }

    /* Caption panel: right half, bottom-anchored, translucent green */
    .hero-panel {
      position: relative;
      z-index: 3;
      margin-left: auto;
      width: 50%;
      padding: var(--hero-pad) var(--hero-pad) calc(var(--hero-ctrl-bottom) + 4.5rem);
      background: linear-gradient(135deg, rgb(10 122 65 / 33%) 0%, rgba(7, 80, 43, 0.95) 100%);
      color: #FFFFFF;
    }
    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.32rem 0.85rem;
      margin: 0 0 0.9rem;
      border-radius: 999px;
      background: var(--mihs-accent);
      color: #1F1704;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }
    .hero-title {
      font-family: var(--font-family);      /* Century Gothic, same as the rest of the site */
      font-size: clamp(1.6rem, 2.4vw, 2.8rem);
      font-weight: 700;
      line-height: 1.16;
      letter-spacing: -0.02em;
      color: #FFFFFF;
      margin: 0 0 1rem;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);   /* keeps text legible on the lighter panel */
    }
    .hero-subtitle {
      font-size: clamp(0.98rem, 1.25vw, 1.3rem);
      line-height: 1.7;
      color: #FFFFFF;
      margin: 0 0 1.6rem;
      font-weight: 400;
      text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    }

    .hero-cta-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
    }

    /* Outlined rectangular buttons, as in the reference */
    .btn-mihs-gold,
    .btn-mihs-outline {
      background: transparent;
      font-weight: 600;
      padding: 0.75rem 2rem;
      border-radius: 50px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.2s ease, color 0.2s ease;
      min-height: 48px;
    }
    .btn-mihs-gold {
      border: 2px solid var(--mihs-accent);
      color: var(--mihs-accent-light);
    }
    .btn-mihs-gold:hover {
      background-color: var(--mihs-accent);
      color: #12140E;
    }
    .btn-mihs-outline {
      border: 2px solid rgba(255, 255, 255, 0.85);
      color: #FFFFFF;
    }
    .btn-mihs-outline:hover {
      background-color: #FFFFFF;
      color: var(--mihs-primary-dark);
    }

    /* Controls live inside the panel's bottom strip */
    .hero-slider-controls {
      position: absolute;
      bottom: var(--hero-ctrl-bottom);
      right: var(--hero-pad);
      z-index: 10;
      display: flex;
      gap: 0.5rem;
    }
    .slider-arrow-btn {
      width: clamp(38px, 5vw, 44px);
      height: clamp(38px, 5vw, 44px);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.55);
      color: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .slider-arrow-btn:hover {
      background: var(--mihs-accent);
      color: #12140E;
      border-color: var(--mihs-accent);
    }
    .slider-indicators-bar {
      position: absolute;
      bottom: calc(var(--hero-ctrl-bottom) + 20px);   /* centred against the arrows */
      left: calc(50% + var(--hero-pad));
      z-index: 10;
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }
    .indicator-dash {
      width: clamp(26px, 4vw, 34px);
      height: 4px;
      background: rgba(255, 255, 255, 0.45);
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .indicator-dash.active {
      background: var(--mihs-accent);
      width: clamp(40px, 6vw, 52px);
    }

    @media (max-width: 991.98px) {
      .hero-panel { width: 100%; }
      .slider-indicators-bar { left: var(--hero-pad); }
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-bg-layer,
      .hero-slide.active .hero-bg-layer { transform: none; transition: none; }
    }

    /* -------------------------------------------------------------
       5. WELCOME SECTION (UGANDA MARTYRS UNIVERSITY STYLE)
       ------------------------------------------------------------- */
    .umu-clean-welcome {
      padding: clamp(3.5rem, 7vw, 5.5rem) 0;
      background-color: #FFFFFF;
      position: relative;
      overflow: hidden;
    }
    .umu-watermark-bg {
      position: absolute;
      top: 50%;
      left: 35%;
      transform: translate(-50%, -50%);
      width: min(420px, 80vw);
      opacity: 0.035;
      pointer-events: none;
      z-index: 0;
    }
    .umu-eyebrow {
      font-size: clamp(0.9rem, 2vw, 1.05rem);
      font-weight: 700;
      color: var(--mihs-ink);
      margin-bottom: 0.5rem;
      display: block;
    }
    .umu-red-heading {
      font-size: clamp(1.4rem, 2.6vw, 1rem);
      font-weight: 800;
      color: #D31A1A;
      line-height: 1.15;
      margin-bottom: 1.25rem;
      letter-spacing: -0.025em;
    }
    .umu-body-copy {
      font-size: clamp(0.95rem, 1.4vw, 1.02rem);
      line-height: 1.7;
      color: var(--mihs-muted);
      margin-bottom: 1.15rem;
    }
    .umu-stats-row {
      display: flex; flex-wrap: wrap; gap: 1.75rem 2.25rem; margin-top: 1.5rem;
      padding-top: 1.5rem; border-top: 1px solid var(--mihs-line);
    }
    .umu-stat { display: flex; flex-direction: column; }
    .umu-stat-value {
      font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; line-height: 1;
      color: var(--mihs-primary); letter-spacing: -0.02em;
    }
    .umu-stat-label {
      font-size: .85rem; font-weight: 600; color: var(--mihs-muted); margin-top: .4rem;
      max-width: 10rem;
    }
    @media (max-width: 575.98px) {
      .umu-stats-row { gap: 1.25rem 1.75rem; }
      .umu-stat-value { font-size: 1.7rem; }
    }

    /* Video Wrapper */
    .umu-video-wrapper {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
      background: #000000;
      aspect-ratio: 16 / 9;
      width: 100%;
    }
    .umu-video-thumbnail {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: 0.9;
    }
    .umu-video-overlay-top {
      position: absolute;
      top: 12px;
      left: 14px;
      right: 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #FFFFFF;
      z-index: 2;
    }
    .umu-video-crest {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #FFFFFF;
      padding: 3px;
      flex-shrink: 0;
    }
    .umu-video-title {
      font-size: clamp(0.8rem, 1.8vw, 0.95rem);
      font-weight: 700;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .umu-play-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: clamp(56px, 8vw, 72px);
      height: clamp(38px, 6vw, 50px);
      background: #FF0000;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #FFFFFF;
      font-size: clamp(1.3rem, 2vw, 1.6rem);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      transition: transform 0.2s ease;
      z-index: 2;
    }
    .umu-play-center:hover {
      transform: translate(-50%, -50%) scale(1.08);
      background: #CC0000;
    }
    .umu-video-overlay-bottom {
      position: absolute;
      bottom: 12px;
      right: 14px;
      z-index: 2;
    }
    .btn-watch-youtube {
      background: rgba(0, 0, 0, 0.7);
      color: #FFFFFF;
      border-radius: 50px;
      padding: 0.35rem 0.85rem;
      font-size: 0.78rem;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      backdrop-filter: blur(4px);
    }

    /* -------------------------------------------------------------
       6. INTUITIVE COURSE FINDER: RESPONSIVE TOP BAR & SIDEBAR
       ------------------------------------------------------------- */
    .finder-section {
      background-color: var(--mihs-bg);
      border-top: 1px solid var(--mihs-line);
      border-bottom: 1px solid var(--mihs-line);
      padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    }
    .finder-header-box {
      margin-bottom: 1.75rem;
    }
    /* Anchor target for search results: offset so the floating/fixed header
       never overlaps the results when the page opens scrolled to them. */
    #finderResults {
      scroll-margin-top: 110px;
    }

    /* Horizontal Top Bar */
    .finder-top-horizontal-bar {
      background: #FFFFFF;
      border: 1px solid var(--mihs-line);
      border-radius: 16px;
      padding: clamp(1.2rem, 2.5vw, 1.75rem);
      box-shadow: 0 6px 24px rgba(13, 138, 75, 0.05);
      margin-bottom: 1.75rem;
    }
    .h-field-label {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--mihs-ink);
      margin-bottom: 0.4rem;
      display: block;
    }
    .h-search-input {
      background: var(--mihs-bg);
      border: 1.5px solid var(--mihs-line);
      border-radius: 10px;
      padding: 0.65rem 1.25rem 0.65rem 2.6rem;
      font-size: 16px;
      width: 100%;
      color: var(--mihs-ink);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      min-height: 48px;
    }
    .h-search-input:focus {
      outline: none;
      border-color: var(--mihs-primary);
      box-shadow: 0 0 0 3px rgba(13, 138, 75, 0.15);
      background: #FFFFFF;
    }
    .h-search-icon {
      position: absolute;
      top: 50%;
      left: 14px;
      transform: translateY(-50%);
      color: var(--mihs-muted);
      font-size: 1rem;
    }

    /* -------------------------------------------------------------
       HOME PAGE FINDER TEASER (condensed promo; links out to the full
       Course Finder page rather than filtering in place)
       ------------------------------------------------------------- */
    .finder-teaser-bar {
      background: #FFFFFF; border: 1px solid var(--mihs-line); border-radius: 16px;
      padding: clamp(1.2rem, 2.5vw, 1.75rem); box-shadow: 0 6px 24px rgba(13, 138, 75, .05);
      margin-bottom: 1.5rem;
    }
    .btn-finder-teaser-search {
      min-height: 48px; border: 0; border-radius: 10px; background: var(--mihs-primary-dark);
      color: #fff; font-weight: 700; font-size: .98rem; transition: filter .15s ease;
    }
    .btn-finder-teaser-search:hover { filter: brightness(1.12); }
    .finder-teaser-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
    .finder-teaser-pill {
      display: inline-flex; align-items: center; padding: .55rem 1.2rem; border-radius: 50px;
      border: 1.5px solid var(--mihs-line); background: #fff; color: var(--mihs-ink);
      font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .15s ease, background .15s ease;
    }
    .finder-teaser-pill:hover { border-color: var(--mihs-primary); color: var(--mihs-ink); }
    .finder-teaser-pill.active { background: var(--mihs-primary-dark); border-color: var(--mihs-primary-dark); color: #fff; }
    .finder-teaser-card {
      display: block; height: 100%; background: #fff; border: 1px solid var(--mihs-line); border-radius: 14px;
      padding: 1.5rem; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .finder-teaser-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13, 138, 75, .1); border-color: var(--mihs-primary); color: inherit; }
    .finder-teaser-badge {
      display: inline-block; background: var(--mihs-primary-light); color: var(--mihs-primary-dark);
      font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 50px; margin-bottom: .75rem;
    }
    .finder-teaser-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--mihs-ink); }
    .finder-teaser-meta { font-size: .85rem; color: var(--mihs-muted); margin-bottom: .5rem; }
    .finder-teaser-fee { font-size: .95rem; font-weight: 700; color: var(--mihs-ink); margin: 0; }
    .btn-finder-teaser-browse {
      display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 1.5px solid var(--mihs-primary-dark);
      color: var(--mihs-primary-dark); font-weight: 700; padding: .75rem 1.6rem; border-radius: 50px;
      text-decoration: none; transition: background .15s ease, color .15s ease;
    }
    .btn-finder-teaser-browse:hover { background: var(--mihs-primary-dark); color: #fff; }

    .who-horizontal-wrap {
      margin-top: 1.1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--mihs-line);
    }
    .who-legend-label {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--mihs-primary-dark);
      display: block;
      margin-bottom: 0.6rem;
    }
    .who-horizontal-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .who-opt-h {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 14px;
      background: var(--mihs-bg);
      border: 1.5px solid var(--mihs-line);
      border-radius: 30px;
      cursor: pointer;
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--mihs-ink);
      transition: all 0.2s ease;
      min-height: 42px;
    }
    .who-opt-h:hover {
      border-color: var(--mihs-primary);
      background: #FFFFFF;
    }
    .who-opt-h.on {
      border-color: var(--mihs-primary);
      background: var(--mihs-primary-light);
      color: var(--mihs-primary-dark);
      font-weight: 700;
    }
    .who-opt-h input {
      accent-color: var(--mihs-primary);
      width: 16px;
      height: 16px;
      margin: 0;
    }
    .who-opt-h .count-badge {
      font-size: 0.78rem;
      color: var(--mihs-muted);
      background: rgba(0, 0, 0, 0.05);
      border-radius: 50px;
      padding: 1px 7px;
    }
    .who-opt-h.on .count-badge {
      background: var(--mihs-primary);
      color: #FFFFFF;
    }

    .sub-quals-box-h {
      background: var(--mihs-primary-light);
      border-radius: 12px;
      padding: 10px 14px;
      margin-top: 10px;
    }
    .quals-horizontal-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .qual-chip-opt {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #FFFFFF;
      border: 1px solid var(--mihs-line);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 0.82rem;
      cursor: pointer;
      min-height: 36px;
    }

    /* 2-Column Responsive Layout */
    .finder-layout {
      display: grid;
      grid-template-columns: 310px minmax(0, 1fr);
      gap: 28px;
      align-items: start;
    }

    /* Sidebar */
    .finder-side {
      position: sticky;
      top: 90px;
      background: linear-gradient(180deg, var(--mihs-primary-dark) 0%, var(--mihs-primary) 100%);
      color: #FFFFFF;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 18px;
      padding: 18px 20px 22px;
      box-shadow: 0 12px 32px rgba(9, 92, 50, 0.22);
      height: fit-content;
    }
    .side-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.18);
      margin-bottom: 10px;
    }
    .side-head h3 {
      font-size: 1.15rem;
      font-weight: 700;
      color: #FFFFFF;
      margin: 0;
    }
    .side-reset-btn {
      background: none;
      border: 0;
      padding: 0;
      text-decoration: underline;
      cursor: pointer;
      color: var(--mihs-accent);
      font-size: 0.86rem;
      font-weight: 600;
    }
    .side-reset-btn:hover { color: #FFFFFF; }

    .finder-side fieldset {
      border: 0;
      margin: 0;
      padding: 9px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      min-width: 0;
    }
    .finder-side fieldset:first-of-type { border-top: 0; }
    .finder-side legend {
      font-weight: 700;
      font-size: 0.9rem;
      padding: 0;
      margin-bottom: 6px;
      float: left;
      width: 100%;
      color: #FFFFFF;
    }
    .finder-side legend + * { clear: both; }

    .filter-opt {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 5px 0;
      cursor: pointer;
      font-size: 0.88rem;
      color: #FFFFFF;
    }
    .filter-opt input {
      width: 17px;
      height: 17px;
      accent-color: var(--mihs-accent);
      flex: none;
    }
    .filter-opt .c {
      margin-left: auto;
      color: rgba(255, 255, 255, 0.72);
      font-size: 0.8rem;
    }
    .filter-opt.zero { opacity: 0.45; }

    /* Results Header */
    .results-head {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 16px;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 14px;
    }
    .status-area {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      flex: 1 1 260px;
    }
    .status-count {
      font-weight: 700;
      margin-right: 6px;
      font-size: 1.05rem;
    }
    .filter-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--mihs-primary-light);
      border: 1px solid var(--mihs-line);
      border-radius: 50px;
      padding: 3px 8px 3px 12px;
      font-size: 0.84rem;
    }
    .filter-chip button {
      background: none;
      border: 0;
      cursor: pointer;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      line-height: 1;
      font-size: 1.1rem;
    }

    .ctrls-group {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    .ctrls-group select {
      background: var(--mihs-surface);
      border: 1.5px solid var(--mihs-line);
      border-radius: 10px;
      padding: 0 12px;
      min-height: 42px;
      font-size: 16px;
      color: var(--mihs-ink);
    }
    .view-seg {
      display: inline-flex;
      border: 1.5px solid var(--mihs-line);
      border-radius: 10px;
      overflow: hidden;
      background: var(--mihs-surface);
    }
    .view-seg button {
      background: transparent;
      border: 0;
      padding: 0 12px;
      min-height: 40px;
      cursor: pointer;
      font-size: 0.88rem;
    }
    .view-seg button[aria-pressed="true"] {
      background: var(--mihs-primary);
      color: #FFFFFF;
      font-weight: 700;
    }

    /* Course Cards */
    .progs-list {
      background: var(--mihs-surface);
      border: 1px solid var(--mihs-line);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(13, 138, 75, 0.04);
    }
    .prog-item {
      border-top: 1px solid var(--mihs-line);
    }
    .prog-item:first-child { border-top: 0; }
    .prog-item > summary {
      list-style: none;
      display: grid;
      grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 2fr) auto;
      gap: 8px 18px;
      align-items: center;
      padding: 16px 18px;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .prog-item > summary::-webkit-details-marker { display: none; }
    .prog-item > summary:hover, .prog-item[open] > summary {
      background: var(--mihs-primary-light);
    }

    .stairs-meter {
      display: inline-flex;
      align-items: flex-end;
      gap: 3px;
      height: 22px;
    }
    .stairs-meter i {
      display: block;
      width: 6px;
      background: #CBD5CF;
      border-radius: 1px;
    }
    .stairs-meter i:nth-child(1) { height: 6px; }
    .stairs-meter i:nth-child(2) { height: 11px; }
    .stairs-meter i:nth-child(3) { height: 16px; }
    .stairs-meter i:nth-child(4) { height: 22px; }
    .stairs-meter[data-level="1"] i:nth-child(-n+1),
    .stairs-meter[data-level="2"] i:nth-child(-n+2),
    .stairs-meter[data-level="3"] i:nth-child(-n+3),
    .stairs-meter[data-level="4"] i:nth-child(-n+4) {
      background: var(--mihs-primary);
    }

    .prog-name {
      display: block;
      font-weight: 700;
      font-size: 1.02rem;
      line-height: 1.3;
      color: var(--mihs-ink);
    }
    .prog-sub {
      display: block;
      color: var(--mihs-muted);
      font-size: 0.82rem;
      margin-top: 2px;
    }
    .prog-facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    .fact-cell .k {
      display: block;
      color: var(--mihs-muted);
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .fact-cell .v {
      display: block;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--mihs-ink);
    }
    .fact-cell .per {
      display: block;
      color: var(--mihs-muted);
      font-size: 0.72rem;
    }
    .prog-chev {
      width: 9px;
      height: 9px;
      border-right: 2px solid var(--mihs-muted);
      border-bottom: 2px solid var(--mihs-muted);
      transform: rotate(45deg);
      margin: 0 4px 4px 0;
      transition: transform 0.2s ease;
    }
    .prog-item[open] .prog-chev {
      transform: rotate(-135deg);
      margin-bottom: -4px;
    }

    .prog-details-body {
      padding: 12px 18px 24px;
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 20px 28px;
      background: var(--mihs-primary-light);
      border-top: 1px solid var(--mihs-line);
    }
    .prog-details-body h4 {
      font-size: 0.95rem;
      font-weight: 700;
      margin: 0 0 6px;
      color: var(--mihs-primary-dark);
    }
    .prog-details-body p {
      font-size: 0.9rem;
      color: var(--mihs-muted);
      margin: 0 0 12px;
      line-height: 1.55;
    }
    .route-pill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .route-pill {
      border: 1px solid var(--mihs-line);
      background: #FFFFFF;
      border-radius: 50px;
      padding: 2px 10px;
      font-size: 0.8rem;
    }
    .route-pill.on {
      background: var(--mihs-primary);
      color: #FFFFFF;
      border-color: var(--mihs-primary);
      font-weight: 700;
    }
    .prog-actions {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    .btn-prog-apply {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.55rem 1.6rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.9rem;
      text-decoration: none;
      background: var(--mihs-primary);
      color: #FFFFFF;
      min-height: 44px;
    }
    .btn-prog-apply:hover {
      background: var(--mihs-primary-dark);
      color: #FFFFFF;
    }
    .btn-prog-call {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.55rem 1.4rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.9rem;
      text-decoration: none;
      border: 1.5px solid var(--mihs-primary);
      color: var(--mihs-primary);
      background: transparent;
      min-height: 44px;
    }
    .btn-prog-call:hover {
      background: var(--mihs-primary);
      color: #FFFFFF;
    }
    .btn-prog-permalink {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-weight: 600;
      font-size: 0.85rem;
      text-decoration: none;
      color: var(--mihs-muted);
    }
    .btn-prog-permalink:hover {
      color: var(--mihs-primary);
    }

    .az-container {
      background: var(--mihs-surface);
      border: 1px solid var(--mihs-line);
      border-radius: 16px;
      padding: 12px 20px 20px;
    }
    .az-container h3 {
      font-size: 1.3rem;
      margin: 16px 0 6px;
      color: var(--mihs-primary);
      border-bottom: 2px solid var(--mihs-accent);
      padding-bottom: 4px;
      display: inline-block;
    }
    .az-subject-block {
      padding: 10px 0;
      border-top: 1px solid var(--mihs-line);
    }
    .az-subject-block > b {
      display: block;
      font-size: 1rem;
      margin-bottom: 4px;
    }
    .az-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .az-list li button {
      background: none;
      border: 0;
      padding: 6px 0;
      cursor: pointer;
      text-align: left;
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      color: var(--mihs-primary);
      text-decoration: underline;
      font-size: 0.92rem;
      font-weight: 600;
    }

    /* -------------------------------------------------------------
       7. NEWS & UPCOMING EVENTS
       ------------------------------------------------------------- */
    .news-events-section {
      padding: clamp(3.5rem, 6vw, 5rem) 0;
      background: #FFFFFF;
    }
    .news-card-single {
      border: 1px solid var(--mihs-line);
      border-radius: 14px;
      overflow: hidden;
      background: #FFFFFF;
      height: 100%;
      display: flex;
      flex-direction: column;
      transition: all 0.25s ease;
    }
    .news-card-single:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(13, 138, 75, 0.08);
      border-color: var(--mihs-primary);
    }
    .news-card-img {
      height: 180px;
      width: 100%;
      object-fit: cover;
    }
    .news-card-body {
      padding: 1.25rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }
    .news-card-meta {
      font-size: 0.78rem;
      color: var(--mihs-muted);
      margin-bottom: 0.5rem;
    }
    .news-card-title {
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 0.6rem;
      color: var(--mihs-ink);
    }
    .news-card-excerpt {
      font-size: 0.85rem;
      color: var(--mihs-muted);
      margin-bottom: 1rem;
      flex-grow: 1;
    }

    .event-strip-row {
      background: #FFFFFF;
      border: 1px solid var(--mihs-line);
      border-radius: 12px;
      padding: 0.85rem 1rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      transition: all 0.2s ease;
      margin-bottom: 0.85rem;
      text-decoration: none;
      color: inherit;
    }
    .event-strip-row:hover {
      border-color: var(--mihs-primary);
      box-shadow: 0 6px 18px rgba(13, 138, 75, 0.08);
      transform: translateX(4px);
    }
    .event-date-cube {
      min-width: 54px;
      height: 58px;
      background: var(--mihs-primary);
      border-radius: 10px;
      color: #FFFFFF;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      line-height: 1.1;
      flex-shrink: 0;
    }
    .event-date-cube .d {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--mihs-accent);
    }
    .event-date-cube .m {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .event-info-text h6 {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 0.2rem;
    }
    .event-info-text p {
      font-size: 0.78rem;
      color: var(--mihs-muted);
      margin: 0;
    }
    .event-date-range {
      font-size: 0.75rem !important;
      font-weight: 700;
      color: var(--mihs-primary) !important;
      margin: 0 0 0.15rem !important;
    }

    /* -------------------------------------------------------------
       8. ADMISSIONS CTA BANNER
       ------------------------------------------------------------- */
    .admissions-cta-section {
      padding: clamp(2rem, 5vw, 3rem) 0 clamp(3.5rem, 6vw, 5rem);
      background: #FFFFFF;
    }
    .admissions-cta-banner {
      background: linear-gradient(135deg, var(--mihs-primary-dark) 0%, var(--mihs-primary) 100%);
      border-radius: 20px;
      padding: clamp(2.2rem, 5vw, 3.8rem) clamp(1.5rem, 4vw, 3rem);
      color: #FFFFFF;
      box-shadow: 0 16px 36px rgba(9, 92, 50, 0.25);
    }
    .admissions-cta-banner h2 {
      font-size: clamp(1.75rem, 3.4vw, 2.75rem);
      font-weight: 700;
      color: #FFFFFF;
      margin-bottom: 0.6rem;
    }
    .admissions-cta-banner p {
      font-size: clamp(0.95rem, 1.4vw, 1.1rem);
      color: #E6F3EC;
      max-width: 650px;
      margin-bottom: 0;
    }
    .btn-apply-cta {
      background: var(--mihs-accent);
      color: #12140E;
      font-weight: 700;
      font-size: 1rem;
      border-radius: 50px;
      padding: 0.9rem 2.2rem;
      border: none;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s ease;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
      min-height: 48px;
    }
    .btn-apply-cta:hover {
      background: #FFFFFF;
      color: var(--mihs-primary-dark);
      transform: translateY(-2px);
    }

    /* -------------------------------------------------------------
       9. COLLABORATIONS
       ------------------------------------------------------------- */
    .collaborations-section {
      padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 6vw, 5.5rem);
      background: #FFFFFF;
      border-top: 1px solid var(--mihs-line);
      border-bottom: 1px solid var(--mihs-line);
    }
    .collab-logo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 2rem 1.5rem;
      align-items: center;
      justify-items: center;
    }
    .partner-logo-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      text-decoration: none;
      width: 100%;
      max-width: 160px;
      transition: transform 0.25s ease;
    }
    .partner-logo-item:hover {
      transform: translateY(-4px);
    }
    .partner-logo-graphic {
      height: 60px;
      width: 100%;
      object-fit: contain;
    }
    .partner-name-caption {
      margin-top: 0.65rem;
      font-size: 0.74rem;
      font-weight: 700;
      color: var(--mihs-muted);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    /* -------------------------------------------------------------
       10. FOOTER
       ------------------------------------------------------------- */
    .mihs-footer {
      background-color: #07130D;
      color: #FFFFFF;
      padding: clamp(3.5rem, 6vw, 4.8rem) 0 2rem;
      border-top: 4px solid var(--mihs-accent);
    }
    .footer-logo-svg {
      height: clamp(44px, 6vw, calc(var(--logo-max-height, 54px) + 2px));
      width: auto;
      max-width: 320px;
      margin-bottom: 1.2rem;
    }
    .footer-description {
      color: #E2ECE5;
      font-size: 0.88rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }
    .footer-col-h {
      color: #FFFFFF;
      font-size: 1.02rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 1.2rem;
      position: relative;
    }
    .footer-col-h::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 30px;
      height: 2px;
      background-color: var(--mihs-accent);
    }
    .footer-ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .footer-ul li {
      margin-bottom: 0.65rem;
    }
    .footer-ul a {
      color: #FFFFFF;
      text-decoration: none;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }
    .footer-ul a:hover {
      color: var(--mihs-accent);
      padding-left: 4px;
    }
    .footer-contact-item {
      color: #FFFFFF;
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: flex-start;
      gap: 0.6rem;
    }
    .footer-contact-item a {
      color: #FFFFFF;
      text-decoration: none;
    }
    .footer-contact-item a:hover {
      color: var(--mihs-accent);
    }

    /* -------------------------------------------------------------
       11. RESPONSIVE BREAKPOINTS
       ------------------------------------------------------------- */
    @media (max-width: 991.98px) {
      .finder-layout {
        grid-template-columns: minmax(0, 1fr);
      }
      .finder-side {
        position: static;
        margin-bottom: 1.5rem;
      }
      .mobile-filter-collapse-btn {
        display: flex !important;
      }
      .finder-side-content {
        display: none;
      }
      .finder-side-content.show {
        display: block;
      }
    }

    @media (min-width: 992px) {
      .mobile-filter-collapse-btn {
        display: none !important;
      }
      .finder-side-content {
        display: block !important;
      }
    }

    @media (max-width: 767.98px) {
      .prog-item > summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 6px 12px;
        padding: 14px;
      }
      .prog-facts {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        background: rgba(0, 0, 0, 0.03);
        padding: 8px 12px;
        border-radius: 8px;
        margin-top: 6px;
      }
      .prog-details-body {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
      }
      .prog-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .prog-actions a {
        width: 100%;
        text-align: center;
      }
      .hero-cta-group {
        gap: 0.6rem;
      }
      .hero-cta-group a {
        flex: 1 1 calc(50% - 0.3rem);
        padding: 0.7rem 1rem;
      }
      .collab-logo-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  

    /* -------------------------------------------------------------
       COMING SOON PAGE
       ------------------------------------------------------------- */
    .coming-soon-section {
      min-height: 70vh;
      display: flex;
      align-items: center;
      padding: clamp(7rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
      background:
        radial-gradient(ellipse at top right, rgba(13, 138, 75, 0.08), transparent 55%),
        var(--mihs-bg);
    }
    .coming-soon-icon {
      width: 84px;
      height: 84px;
      border-radius: 50%;
      background: var(--mihs-primary-light);
      color: var(--mihs-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.1rem;
      margin-bottom: 1.75rem;
    }
    .coming-soon-eyebrow {
      display: inline-block;
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--mihs-primary);
      margin-bottom: 0.75rem;
    }
    .coming-soon-title {
      font-size: clamp(2rem, 4.5vw, 3rem);
      font-weight: 700;
      line-height: 1.15;
      margin-bottom: 1rem;
    }
    .coming-soon-body {
      color: var(--mihs-muted);
      font-size: 1.05rem;
      max-width: 620px;
      margin-bottom: 2.25rem;
    }
    .coming-soon-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
    }
    .btn-coming-primary {
      background: var(--mihs-primary);
      color: #FFFFFF;
      font-weight: 700;
      font-size: 0.94rem;
      padding: 0.85rem 1.9rem;
      border-radius: 50px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.2s ease, transform 0.2s ease;
    }
    .btn-coming-primary:hover {
      background: var(--mihs-primary-dark);
      color: #FFFFFF;
      transform: translateY(-1px);
    }
    .btn-coming-secondary {
      background: transparent;
      color: var(--mihs-ink);
      font-weight: 700;
      font-size: 0.94rem;
      padding: 0.85rem 1.9rem;
      border-radius: 50px;
      border: 1.5px solid var(--mihs-line);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: border-color 0.2s ease, color 0.2s ease;
    }
    .btn-coming-secondary:hover {
      border-color: var(--mihs-primary);
      color: var(--mihs-primary);
    }

    /* -------------------------------------------------------------
       BACK-TO-TOP + FLOATING WHATSAPP BUTTON
       Stacked on the side opposite the chatbot bubble so they never overlap it.
       ------------------------------------------------------------- */
    .mihs-float-stack {
      position: fixed; bottom: 1.4rem; z-index: 1150;
      display: flex; flex-direction: column; gap: .85rem; align-items: center;
    }
    .mihs-float-stack.pos-right { right: 1.4rem; }
    .mihs-float-stack.pos-left { left: 1.4rem; }
    .mihs-float-btn {
      width: 52px; height: 52px; border-radius: 50%; border: none;
      display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
      box-shadow: 0 8px 22px rgba(0, 0, 0, .22); cursor: pointer; text-decoration: none;
      transition: transform .18s ease;
    }
    .mihs-float-btn:hover { transform: scale(1.07); color: #fff; }
    .back-to-top-btn { background: var(--mihs-primary-dark); color: #fff; }
    .back-to-top-btn[hidden] { display: none; }
    .whatsapp-float-btn { background: #25D366; color: #fff; }
    @media (max-width: 575.98px) {
      .mihs-float-btn { width: 46px; height: 46px; font-size: 1.2rem; }
      .mihs-float-stack.pos-right { right: 1rem; }
      .mihs-float-stack.pos-left { left: 1rem; }
    }

    /* -------------------------------------------------------------
       CHATBOT WIDGET
       ------------------------------------------------------------- */
    .mihs-chat-widget {
      --chatbot-color: var(--mihs-primary);
      position: fixed;
      bottom: 1.4rem;
      z-index: 1200;
      font-family: 'Century Gothic', 'CenturyGothicFallback', sans-serif;
    }
    .mihs-chat-widget.pos-right { right: 1.4rem; }
    .mihs-chat-widget.pos-left { left: 1.4rem; }

    .mihs-chat-bubble {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: none;
      background: var(--chatbot-color);
      color: #fff;
      font-size: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
      cursor: pointer;
      transition: transform 0.2s ease;
      position: relative;
    }
    .mihs-chat-bubble:hover { transform: scale(1.06); }
    .mihs-chat-bubble-close { display: none; }
    .mihs-chat-widget.is-open .mihs-chat-bubble-icon { display: none; }
    .mihs-chat-widget.is-open .mihs-chat-bubble-close { display: block; }

    .mihs-chat-panel {
      position: absolute;
      bottom: 74px;
      width: min(370px, calc(100vw - 2rem));
      height: min(560px, calc(100vh - 7rem));
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid rgba(0, 0, 0, 0.06);
    }
    .mihs-chat-widget.pos-right .mihs-chat-panel { right: 0; }
    .mihs-chat-widget.pos-left .mihs-chat-panel { left: 0; }

    .mihs-chat-header {
      background: var(--chatbot-color);
      color: #fff;
      padding: 0.9rem 1rem;
      display: flex;
      align-items: center;
      gap: 0.7rem;
      flex-shrink: 0;
    }
    .mihs-chat-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }
    .mihs-chat-avatar-fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.2);
      font-size: 1.1rem;
    }
    .mihs-chat-header-text { flex-grow: 1; min-width: 0; }
    .mihs-chat-header-name { font-weight: 700; font-size: 0.98rem; }
    .mihs-chat-header-status { font-size: 0.76rem; opacity: 0.85; display: flex; align-items: center; gap: 0.3rem; }
    .mihs-chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #6EE7A8; display: inline-block; }
    .mihs-chat-close { background: none; border: none; color: #fff; opacity: 0.85; font-size: 1rem; padding: 0.3rem; }
    .mihs-chat-close:hover { opacity: 1; }

    .mihs-chat-contact {
      padding: 0.6rem 0.9rem;
      background: #F6F8F6;
      border-bottom: 1px solid #EDEFED;
      flex-shrink: 0;
    }
    .mihs-chat-input-sm {
      flex: 1;
      border: 1px solid #DDE3DF;
      border-radius: 8px;
      padding: 0.35rem 0.6rem;
      font-size: 0.82rem;
      min-width: 0;
    }

    .mihs-chat-messages {
      flex-grow: 1;
      overflow-y: auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      background: #FBFCFB;
    }
    .mihs-chat-row { display: flex; max-width: 88%; }
    .mihs-chat-row.from-user { align-self: flex-end; }
    .mihs-chat-row.from-bot { align-self: flex-start; }
    .mihs-chat-bubble-msg {
      padding: 0.55rem 0.85rem;
      border-radius: 14px;
      font-size: 0.9rem;
      line-height: 1.5;
      word-wrap: break-word;
    }
    .mihs-chat-row.from-user .mihs-chat-bubble-msg { background: var(--chatbot-color); color: #fff; border-bottom-right-radius: 3px; }
    .mihs-chat-row.from-bot .mihs-chat-bubble-msg { background: #fff; border: 1px solid #E7EAE7; color: var(--mihs-ink); border-bottom-left-radius: 3px; }
    .mihs-chat-row.from-bot .mihs-chat-bubble-msg a { color: var(--chatbot-color); font-weight: 600; }

    .mihs-chat-typing { display: flex; gap: 4px; align-items: center; padding: 0.7rem 0.9rem; }
    .mihs-chat-typing span {
      width: 6px; height: 6px; border-radius: 50%; background: #B7C0BA;
      animation: mihsChatTyping 1.1s infinite ease-in-out;
    }
    .mihs-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
    .mihs-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
    @keyframes mihsChatTyping {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
      30% { transform: translateY(-4px); opacity: 1; }
    }

    .mihs-chat-quickreplies {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      padding: 0 0.9rem;
      flex-shrink: 0;
    }
    .mihs-chat-chip {
      border: 1px solid var(--chatbot-color);
      color: var(--chatbot-color);
      background: #fff;
      border-radius: 999px;
      padding: 0.3rem 0.75rem;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .mihs-chat-chip:hover { background: var(--chatbot-color); color: #fff; }

    .mihs-chat-form {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem;
      border-top: 1px solid #EDEFED;
      flex-shrink: 0;
      background: #fff;
    }
    .mihs-chat-contact-toggle {
      border: none;
      background: none;
      color: #8A928D;
      font-size: 1.05rem;
      flex-shrink: 0;
      padding: 0.3rem;
    }
    .mihs-chat-contact-toggle:hover { color: var(--chatbot-color); }
    .mihs-chat-input {
      flex-grow: 1;
      border: 1px solid #DDE3DF;
      border-radius: 999px;
      padding: 0.5rem 1rem;
      font-size: 0.88rem;
      min-width: 0;
    }
    .mihs-chat-input:focus { outline: none; border-color: var(--chatbot-color); }
    .mihs-chat-send {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: none;
      background: var(--chatbot-color);
      color: #fff;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .mihs-chat-send:hover { filter: brightness(1.08); }

    @media (max-width: 480px) {
      .mihs-chat-panel {
        width: calc(100vw - 1.4rem);
        height: calc(100vh - 6rem);
      }
    }
