﻿/*--------------------------------------------------------------
# UNMC-Refactored Theme
# Based on official UNMC Brand Wise palette and web visual design
# Primary web colors: red, white, black, gray
# Secondary colors reserved for supporting accents
--------------------------------------------------------------*/

/* Fonts are self-hosted via assets/css/fonts.css (linked in ThemeInfo.cs) */

/* Fonts */
:root {
  --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Jost", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/*--------------------------------------------------------------
# Brand Tokens
--------------------------------------------------------------*/
:root {
  /* Official primary palette */
  --unmc-red: #AD122A;
  --unmc-black: #000000;
  --unmc-gray: #303B41;
  --unmc-gray-40: #989EA4;
  --unmc-gray-10: #DCDDDF;
  --unmc-white: #FFFFFF;

  /* Supporting palette */
  --unmc-teal-1: #005E63;
  --unmc-teal-2: #00B2B9;
  --unmc-orange-1: #F26721;
  --unmc-orange-2: #FCB614;
  --unmc-blue-1: #002957;
  --unmc-blue-2: #129DBF;
  --unmc-green-1: #656515;
  --unmc-green-2: #A1B426;

  /* Semantic tokens */
  --background-color: var(--unmc-white);
  --surface-color: var(--unmc-white);
  --surface-muted: #F7F8F9;
  --default-color: var(--unmc-gray);
  --heading-color: var(--unmc-red);
  --accent-color: var(--unmc-red);
  --accent-hover-color: #8E0E22;
  --accent-soft-color: rgba(173, 18, 42, 0.08);
  --contrast-color: var(--unmc-white);
  --border-color: var(--unmc-gray-10);
  --muted-color: var(--unmc-gray-40);
  --danger-color: #dc3545;
  --danger-hover-color: #b02a37;

  /* Navigation */
  --nav-color: var(--unmc-white);
  --nav-hover-color: rgba(255, 255, 255, 0.82);
  --nav-mobile-background-color: var(--unmc-white);
  --nav-dropdown-background-color: var(--unmc-white);
  --nav-dropdown-color: var(--unmc-gray);
  --nav-dropdown-hover-color: var(--unmc-red);

  /* Shared styling */
  --shadow-sm: 0 2px 12px rgba(48, 59, 65, 0.08);
  --shadow-md: 0 8px 28px rgba(48, 59, 65, 0.14);
  --shadow-accent: 0 6px 18px rgba(173, 18, 42, 0.22);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --transition-base: 0.3s ease;
}

/* Alternate section presets */
.light-background {
  --background-color: #F8F9FA;
  --surface-color: var(--unmc-white);
}

.dark-background {
  --background-color: var(--unmc-gray);
  --default-color: var(--unmc-white);
  --heading-color: var(--unmc-white);
  --surface-color: #3B4850;
  --contrast-color: var(--unmc-white);
  --border-color: rgba(255, 255, 255, 0.14);
}

.teal-background {
  --background-color: var(--unmc-teal-1);
  --default-color: var(--unmc-white);
  --heading-color: var(--unmc-white);
  --surface-color: #0E6B70;
  --accent-color: var(--unmc-teal-2);
  --accent-hover-color: #00959B;
  --contrast-color: var(--unmc-white);
}

.blue-background {
  --background-color: var(--unmc-blue-1);
  --default-color: var(--unmc-white);
  --heading-color: var(--unmc-white);
  --surface-color: #163A66;
  --accent-color: var(--unmc-blue-2);
  --accent-hover-color: #0D89A8;
  --contrast-color: var(--unmc-white);
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-hover-color);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: var(--unmc-red);
  --heading-color: var(--unmc-white);
  color: var(--contrast-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
  transition: max-height 0.3s ease;
}

/* Shrinks the header once the visitor starts scrolling - body.scrolled is
   already toggled by main.js at scrollY > 100 */
body.scrolled .header {
  padding: 2px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
body.scrolled .header .logo img {
  max-height: 20px;
}
body.scrolled .header .logo h1 {
  font-size: var(--fs-body);
}
body.scrolled .header .btn-getstarted {
  padding: 5px 18px;
}
@media (min-width: 1200px) {
  body.scrolled .navmenu a,
  body.scrolled .navmenu a:focus {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

.header .logo h1 {
  font-size: var(--fs-h2);
  margin: 0;
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: font-size 0.3s ease;
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--accent-color);
  background: var(--contrast-color);
  font-size: var(--fs-sm);
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: var(--accent-hover-color);
  border-color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header action buttons (Register / Login / Logout / user profile / host control panel)
   use the same font as the nav menu links */
.header .btn,
.header .btn-getstarted,
.header .app-login a,
.header .app-profile a {
  font-family: var(--nav-font);
  font-weight: 400;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

/* Index Page Header */
.index-page .header {
  --background-color: rgba(173, 18, 42, 0);
  --heading-color: var(--unmc-white);
  --nav-color: var(--unmc-white);
}

/* Index Page Header on Scroll */
.index-page.scrolled .header {
  --background-color: rgba(173, 18, 42, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1rem;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: var(--fs-body);
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: color var(--transition-base), padding 0.3s ease;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: var(--fs-xs);
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: var(--radius-sm);
    z-index: 99;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: var(--fs-body);
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: var(--fs-xs);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }

  /* Oqtane's MenuItemsHorizontal renders the submenu as <div class="dropdown-menu">
     with <a> children (not <ul><li>), so the rules above never matched it.
     These make that real element behave like the themed hover dropdown. */
  .navmenu .dropdown > .dropdown-menu {
    display: block;
    margin: 0;
    padding: 10px 0;
    min-width: 220px;
    position: absolute;
    left: 14px;
    top: 130%;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    background: var(--nav-dropdown-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .navmenu .dropdown > .dropdown-menu > a {
    display: block;
    padding: 10px 20px;
    font-size: var(--fs-body);
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    color: var(--nav-dropdown-color);
  }
  .navmenu .dropdown > .dropdown-menu > a i { font-size: var(--fs-xs); }
  .navmenu .dropdown > .dropdown-menu > a:hover,
  .navmenu .dropdown > .dropdown-menu > a.active {
    color: var(--nav-dropdown-hover-color);
    background: transparent;
  }
  .navmenu .dropdown:hover > .dropdown-menu {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .megamenu {
    position: static;
  }

  .navmenu .megamenu ul {
    margin: 0;
    padding: 10px;
    background: var(--nav-dropdown-background-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 130%;
    left: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    display: flex;
    transition: 0.3s;
    border-radius: var(--radius-sm);
    z-index: 99;
  }

  .navmenu .megamenu ul li {
    flex: 1;
  }

  .navmenu .megamenu ul li a,
  .navmenu .megamenu ul li:hover > a {
    padding: 10px 20px;
    font-size: var(--fs-body);
    color: var(--nav-dropdown-color);
  }

  .navmenu .megamenu ul li a:hover,
  .navmenu .megamenu ul li .active,
  .navmenu .megamenu ul li .active:hover {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .megamenu:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dd-box-shadow {
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: var(--fs-h2);
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color var(--transition-base);
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  /* Oqtane's <Menu> renders .navmenu > .app-menu > #Menu(.collapse) > ul - not a bare
     <ul> directly under .navmenu, so this targets the actual Bootstrap collapse wrapper
     Oqtane provides rather than assuming template markup that doesn't exist here. */
  .navmenu .app-menu-toggler {
    display: none;
  }

  .navmenu #Menu {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: var(--radius-sm);
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: var(--fs-body);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: var(--fs-xs);
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: var(--accent-soft-color);
    color: var(--accent-color);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(48, 59, 65, 0.04);
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(48, 59, 65, 0.03);
  }

  /* Oqtane's dropdown submenu is a real Bootstrap <div class="dropdown-menu">,
     positioned via Popper.js (inline position:absolute + transform). Inside our
     fixed/overflow-constrained mobile nav panel that ends up clipped or placed
     off-screen, so it never visibly opens even though Bootstrap correctly toggles
     its .show class. Forcing it back to a plain in-flow block (with !important to
     beat the inline Popper styles) makes it expand inline like an accordion instead. */
  .navmenu .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none;
    display: none;
    width: 100%;
    margin: 0;
    padding: 4px 0 8px 24px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .navmenu .dropdown-menu.show {
    display: block;
  }
  .navmenu .dropdown-menu a {
    display: block;
    padding: 8px 12px;
    font-size: var(--fs-sm);
    color: var(--nav-dropdown-color);
    white-space: normal;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: var(--fs-h2);
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(48, 59, 65, 0.78);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu #Menu {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: var(--fs-sm);
  padding-bottom: 50px;
  position: relative;
  border-top: 1px solid var(--border-color);
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  font-size: var(--fs-body);
  color: var(--default-color);
  margin-right: 10px;
  transition: all var(--transition-base);
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  border-color: var(--accent-color);
  background-color: var(--accent-color);
}

.footer h4 {
  font-size: var(--fs-body);
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  margin-right: 3px;
  font-size: var(--fs-xs);
  line-height: 0;
  color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  display: inline-block;
  color: var(--default-color);
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-about a {
  color: var(--heading-color);
  font-size: var(--fs-h2);
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--border-color);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--muted-color);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: var(--fs-h3);
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: var(--accent-hover-color);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --background-color: #F8F9FA;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.page-title h1 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin: 0;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: var(--fs-sm);
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: var(--muted-color);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 88px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: var(--border-color);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted-color);
}

/* Module/section title rendered by the MMI container */
.mmi-section-title {
  position: relative;
  font-family: var(--heading-font);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1.25rem 0;
  padding-bottom: 10px;
}

.mmi-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 80vh;
  position: relative;
  padding: 120px 0 60px 0;
  display: flex;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 56px;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), white 20%);
  margin: 5px 0 30px 0;
  font-size: var(--fs-h3);
  line-height: 1.3;
  font-weight: 600;
}

.hero .btn-watch-video {
  font-size: var(--fs-body);
  transition: 0.5s;
  margin-left: 25px;
  color: var(--default-color);
  font-weight: 600;
}

.hero .btn-watch-video i {
  color: var(--accent-color);
  font-size: var(--fs-h2);
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: var(--accent-hover-color);
}

.hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: var(--fs-h2);
    line-height: 36px;
  }

  .hero p {
    font-size: var(--fs-body);
    line-height: 24px;
    margin-bottom: 30px;
  }

  .hero .btn-watch-video {
    font-size: var(--fs-sm);
  }
}

@keyframes up-down {
  0% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients {
  padding: 12px 0;
}

.clients .swiper {
  padding: 10px 0;
}

.clients .swiper-wrapper {
  height: auto;
}

.clients .swiper-slide img {
  transition: 0.3s;
  padding: 0 10px;
}

.clients .swiper-slide img:hover {
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about ul {
  list-style: none;
  padding: 0;
}

.about ul li {
  padding-bottom: 5px;
  display: flex;
  align-items: center;
}

.about ul i {
  font-size: var(--fs-h4);
  padding-right: 4px;
  color: var(--accent-color);
}

.about .read-more {
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: var(--fs-body);
  letter-spacing: 1px;
  padding: 8px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-color);
}

.about .read-more i {
  font-size: var(--fs-body);
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}

.about .read-more:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.about .read-more:hover i {
  transform: translate(5px, 0);
}

/*--------------------------------------------------------------
# Why Us Section
--------------------------------------------------------------*/
.why-us {
  padding: 30px 0;
}

.why-us .content h3 {
  font-weight: 400;
  font-size: var(--fs-h2);
}

.why-us .content p {
  color: var(--muted-color);
}

.why-us .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.why-us .faq-container .faq-item h3 {
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
}

.why-us .faq-container .faq-item h3 span {
  color: var(--accent-color);
  padding-right: 5px;
  font-weight: 600;
}

.why-us .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.why-us .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.why-us .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.why-us .faq-container .faq-item .faq-icon {
  position: absolute;
  top: 22px;
  left: 20px;
  font-size: var(--fs-h3);
  line-height: 0;
  transition: 0.3s;
  color: var(--accent-color);
}

.why-us .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: var(--fs-body);
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.why-us .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.why-us .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.why-us .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.why-us .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

.why-us .why-us-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us .why-us-img img {
  max-height: 70%;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .content h3 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

.skills .content p {
  color: var(--muted-color);
}

.skills .content p:last-child {
  margin-bottom: 0;
}

.skills .content ul {
  list-style: none;
  padding: 0;
}

.skills .content ul li {
  padding-bottom: 10px;
}

.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--default-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: var(--border-color);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 50px 30px;
  transition: all ease-in-out 0.4s;
  height: 100%;
}

.services .service-item .icon {
  margin-bottom: 10px;
}

.services .service-item .icon i {
  color: var(--accent-color);
  font-size: var(--fs-h1);
  transition: 0.3s;
}

.services .service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: var(--fs-h4);
}

.services .service-item h4 a {
  color: var(--heading-color);
  transition: ease-in-out 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.services .service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.services .service-item:hover h4 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 120px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action:before {
  content: "";
  background: rgba(48, 59, 65, 0.58);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3,
.call-to-action p {
  color: var(--unmc-white);
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: var(--fs-body);
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 999px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid var(--unmc-white);
  color: var(--unmc-white);
}

.call-to-action .cta-btn:hover {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  border-radius: 999px;
  transition: all 0.3s ease-in-out;
  font-family: var(--heading-font);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: var(--fs-sm);
    margin: 0 0 10px 0;
  }
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  background: rgba(255, 255, 255, 0.94);
  padding: 15px;
  border-radius: var(--radius-sm);
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: var(--muted-color);
  font-size: var(--fs-sm);
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: var(--fs-h3);
  top: calc(50% - 14px);
  color: var(--muted-color);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: var(--fs-h2);
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  border-radius: var(--radius-md);
  transition: 0.5s;
  padding: 30px;
  height: 100%;
}

@media (max-width: 468px) {
  .team .team-member {
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
  }
}

.team .team-member .pic {
  overflow: hidden;
  width: 150px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team .team-member .pic img {
  transition: ease-in-out 0.3s;
}

.team .team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.team .team-member .member-info {
  padding-left: 30px;
}

@media (max-width: 468px) {
  .team .team-member .member-info {
    padding: 30px 0 0 0;
    text-align: center;
  }
}

.team .team-member h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: var(--fs-h4);
}

.team .team-member span {
  display: block;
  font-size: var(--fs-body);
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
  color: var(--muted-color);
}

.team .team-member span::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: var(--border-color);
  bottom: 0;
  left: 0;
}

@media (max-width: 468px) {
  .team .team-member span::after {
    left: calc(50% - 25px);
  }
}

.team .team-member p {
  margin: 10px 0 0 0;
  font-size: var(--fs-sm);
}

.team .team-member .social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
}

@media (max-width: 468px) {
  .team .team-member .social {
    justify-content: center;
  }
}

.team .team-member .social a {
  background: #F5F6F7;
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  width: 36px;
  height: 36px;
}

.team .team-member .social a i {
  color: var(--default-color);
  font-size: var(--fs-body);
  margin: 0 2px;
}

.team .team-member .social a:hover {
  background: var(--accent-color);
}

.team .team-member .social a:hover i {
  color: var(--contrast-color);
}

.team .team-member .social a + a {
  margin-left: 8px;
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--border-color);
  padding: 60px 40px;
  height: 100%;
  border-radius: var(--radius-md);
}

.pricing h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: var(--fs-h4);
}

.pricing h4 {
  color: var(--accent-color);
  font-size: var(--fs-h1);
  font-weight: 400;
  font-family: var(--heading-font);
  margin-bottom: 0;
}

.pricing h4 sup {
  font-size: var(--fs-h2);
}

.pricing h4 span {
  color: var(--muted-color);
  font-size: var(--fs-body);
}

.pricing ul {
  padding: 20px 0;
  list-style: none;
  color: var(--muted-color);
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing ul i {
  color: var(--unmc-teal-1);
  font-size: var(--fs-h3);
  padding-right: 3px;
}

.pricing ul .na {
  color: var(--muted-color);
}

.pricing ul .na i {
  color: var(--muted-color);
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .buy-btn {
  color: var(--accent-color);
  display: inline-block;
  padding: 8px 35px 10px 35px;
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: 500;
  font-family: var(--heading-font);
  transition: all var(--transition-base);
  border: 1px solid var(--accent-color);
}

.pricing .buy-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.pricing .featured {
  border-top-color: var(--accent-color);
}

.pricing .featured .buy-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 767px) {
  .pricing .box {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid var(--background-color);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: var(--fs-h4);
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: var(--fs-sm);
  color: var(--muted-color);
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .stars {
  margin-bottom: 15px;
}

.testimonials .testimonial-item .stars i {
  color: var(--unmc-orange-2);
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(173, 18, 42, 0.45);
  font-size: var(--fs-h2);
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: var(--border-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/*--------------------------------------------------------------
# Faq 2 Section
--------------------------------------------------------------*/
.faq-2 .faq-container {
  margin-top: 15px;
}

.faq-2 .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.faq-2 .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 24px;
  margin: 0 30px 0 32px;
  transition: 0.3s;
  cursor: pointer;
}

.faq-2 .faq-container .faq-item h3 span {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq-2 .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq-2 .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq-2 .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq-2 .faq-container .faq-item .faq-icon {
  position: absolute;
  top: 22px;
  left: 20px;
  font-size: var(--fs-h4);
  line-height: 0;
  transition: 0.3s;
  color: var(--accent-color);
}

.faq-2 .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: var(--fs-body);
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq-2 .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq-2 .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq-2 .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq-2 .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--border-color);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.portfolio-details .portfolio-info h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: var(--fs-body);
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: var(--muted-color);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  border-radius: var(--radius-md);
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid var(--border-color);
  margin: 20px 0;
  color: var(--default-color);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

.service-details h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
}

.service-details p {
  font-size: var(--fs-body);
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: var(--fs-body);
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: var(--fs-h4);
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Counter Section
--------------------------------------------------------------*/
.counter {
  padding-top: 80px;
}

.counter .count-box {
  padding: 30px 30px 25px 30px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
}

.counter .count-box i {
  position: absolute;
  width: 54px;
  height: 54px;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-h3);
  background: var(--unmc-white);
  color: var(--heading-color);
  border-radius: 50px;
  border: 2px solid var(--unmc-white);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.counter .count-box span {
  font-size: var(--fs-h1);
  display: block;
  font-weight: 700;
  color: var(--unmc-gray);
}

.counter .count-box span:after {
  content: "+";
  display: inline;
}

.counter .count-box p {
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-sm);
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Countdown Section
--------------------------------------------------------------*/
.countdown {
  width: 100%;
  text-align: center;
}

.countdown .enddate {
  visibility: hidden;
}

.countdown .interval {
  display: inline-block;
  text-align: center;
  margin: 20px;
}

.countdown .timer {
  font: 72px Courier;
  display: block;
  color: var(--heading-color);
}

.countdown .measure {
  font: 36px Courier;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Overrides Section
--------------------------------------------------------------*/
.app-search-noinput button {
  color: var(--nav-color);
}

.app-search-noinput button:hover {
  color: var(--nav-hover-color);
}

/*--------------------------------------------------------------
# History Timeline Section
--------------------------------------------------------------*/
.history-timeline {
  padding: 80px 0;
  position: relative;
  background-color: var(--background-color);
}

.history-timeline .section-header {
  text-align: center;
  margin-bottom: 70px;
}

.history-timeline .section-header h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.history-timeline .section-header p {
  color: var(--muted-color);
  font-size: var(--fs-body);
  max-width: 560px;
  margin: 0 auto;
}

.history-timeline .timeline-track {
  position: relative;
}

.history-timeline .timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-color) 6%,
    var(--accent-color) 94%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 108px 1fr;
  align-items: center;
  position: relative;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.timeline-entry.right {
  transform: translateX(30px);
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-entry:nth-child(1)  { transition-delay: 0.05s; }
.timeline-entry:nth-child(2)  { transition-delay: 0.10s; }
.timeline-entry:nth-child(3)  { transition-delay: 0.15s; }
.timeline-entry:nth-child(4)  { transition-delay: 0.20s; }
.timeline-entry:nth-child(5)  { transition-delay: 0.25s; }

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  background-color: var(--accent-color);
  color: #fff;
  font-family: var(--heading-font);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: var(--shadow-accent);
  line-height: 1.5;
}

.timeline-entry::after {
  content: '';
  position: absolute;
  left: calc(50% - 7px);
  top: 3px;
  width: 14px;
  height: 14px;
  background-color: var(--surface-color);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  z-index: 3;
  transition: background-color 0.4s ease 0.5s;
}

.timeline-entry.visible::after {
  background-color: var(--accent-color);
}

/* Even (default): card RIGHT of center, image LEFT */
.timeline-entry .timeline-card {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.timeline-entry .timeline-image-col {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

/* Odd (.right): card LEFT of center, image RIGHT */
.timeline-entry.right .timeline-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.timeline-entry.right .timeline-image-col {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.timeline-image-col {
  width: 100%;
  max-width: 440px;
}

.timeline-image-col .timeline-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
  margin-bottom: 0;
}

.timeline-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-right: 4px solid var(--accent-color);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-entry.right .timeline-card {
  border-right: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
}

/* Even: card on right → arrow points left toward center */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -10px;
  right: auto;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--surface-color);
}

/* Odd: card on left → arrow points right toward center */
.timeline-entry.right .timeline-card::before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid var(--surface-color);
}

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

.timeline-date {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}

.timeline-card h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 8px;
}

.timeline-card p {
  font-size: var(--fs-sm);
  color: var(--default-color);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .history-timeline .timeline-track::before {
    left: 20px;
  }

  .timeline-entry,
  .timeline-entry.right {
    display: block;
    padding-left: 58px;
    transform: translateX(-24px);
  }

  .timeline-entry.visible,
  .timeline-entry.right.visible {
    transform: translateX(0);
  }

  .timeline-year {
    left: 20px;
    font-size: var(--fs-xs);
    padding: 4px 12px;
  }

  .timeline-entry::after {
    left: 13px;
  }

  .timeline-image-col {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .timeline-card,
  .timeline-entry.right .timeline-card {
    max-width: 100%;
    border-left: 4px solid var(--accent-color);
    border-right: 1px solid var(--border-color);
  }

  .timeline-card::before,
  .timeline-entry.right .timeline-card::before {
    display: none;
  }
}



.timeline-admin-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Bootstrap Button Overrides
--------------------------------------------------------------*/
.btn {
  font-family: var(--default-font);
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transition: all var(--transition-base);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--accent-hover-color);
  border-color: var(--accent-hover-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:focus,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(173, 18, 42, 0.22);
}

.btn-outline-primary {
  color: var(--heading-color);
  border-color: var(--heading-color);
  background-color: transparent;
  transition: all var(--transition-base);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/*--------------------------------------------------------------
# Optional helper classes for restrained secondary-color usage
--------------------------------------------------------------*/
.text-support-teal { color: var(--unmc-teal-1); }
.text-support-blue { color: var(--unmc-blue-1); }
.text-support-orange { color: var(--unmc-orange-1); }

.bg-support-teal-soft {
  background: rgba(0, 178, 185, 0.12);
  color: var(--unmc-teal-1);
}

.bg-support-blue-soft {
  background: rgba(18, 157, 191, 0.12);
  color: var(--unmc-blue-1);
}

.bg-support-orange-soft {
  background: rgba(252, 182, 20, 0.18);
  color: var(--unmc-orange-1);
}

/*--------------------------------------------------------------
# Network Module
--------------------------------------------------------------*/

/* Loading state */
.network-loading {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Filter panel */
.network-filter-panel {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
}

.network-filter-header {
  background: linear-gradient(135deg, var(--heading-color) 0%, #c0392b 100%);
  color: var(--contrast-color);
  font-weight: 600;
  font-size: var(--fs-body);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  animation: slideDown 0.4s ease-out;
}

.network-filter-body {
  background: var(--surface-color);
  padding: 20px;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

@media (max-width: 575px) {
  .network-filter-body {
    padding: 14px;
  }
}

/* Search input focus */
.network-search-input:focus {
  border-color: var(--heading-color);
  box-shadow: 0 0 0 0.2rem rgba(139, 26, 26, 0.2);
}

/* Member map (Leaflet) */
.network-map {
  height: 520px;
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 0; /* keep Leaflet panes below the fixed site header */
}

@media (max-width: 575px) {
  .network-map {
    height: 380px;
  }
}

/* Filter category label — matches profile page .profile-category-header */
.network-filter-group .filter-group-label {
  border-left: 4px solid var(--heading-color);
  padding-left: 12px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--heading-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Chip list */
.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Individual toggle chip — pill style */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--heading-color);
  background: var(--surface-color);
  color: var(--heading-color);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  touch-action: manipulation;
  min-height: 36px;
}

.filter-chip:hover {
  background: var(--border-color);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(139, 26, 26, 0.18);
}

.filter-chip.active {
  background: var(--heading-color);
  color: var(--contrast-color);
  border-color: var(--heading-color);
  box-shadow: 0 2px 6px rgba(139, 26, 26, 0.35);
}

.filter-chip.active:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Compose overlay */
.network-compose-overlay {
  animation: fadeIn 0.3s ease;
}

.network-compose-overlay .card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.network-compose-overlay .form-control:focus {
  border-color: var(--heading-color);
  box-shadow: 0 0 0 0.2rem rgba(139, 26, 26, 0.2);
}

/* Member grid — fluid, fills available space */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (max-width: 575px) {
  .network-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Member card */
.network-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface-color);
}

@media (max-width: 575px) {
  .network-card {
    padding: 14px;
  }
}

.network-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.12) !important;
}

/* Card header row: avatar + identity */
.network-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

/* Avatar image */
.network-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .network-avatar {
    width: 70px;
    height: 70px;
  }
}

/* Avatar placeholder */
.network-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--heading-color) 0%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .network-avatar-placeholder {
    width: 70px;
    height: 70px;
  }
}

.network-avatar-placeholder i {
  font-size: var(--fs-h2);
  color: var(--contrast-color);
}

@media (min-width: 768px) {
  .network-avatar-placeholder i {
    font-size: var(--fs-h1);
  }
}

.network-identity {
  flex: 1;
  min-width: 0;
}

.network-name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--heading-color);
  overflow-wrap: break-word;
  word-break: break-word;
}

.network-headline {
  font-size: var(--fs-sm);
  color: var(--text-muted, #666);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* About excerpt — 3-line clamp */
.network-about {
  font-size: var(--fs-sm);
  color: var(--body-color);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.network-about:last-child {
  margin-bottom: 0;
}

/* Body: fills remaining card space, pins footer to bottom */
.network-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Tags section */
.network-tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0;
}

.network-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.5;
}

/* Interest tag — dark red tint */
.tag-interest {
  background: rgba(139, 26, 26, 0.08);
  color: var(--heading-color);
  border: 1px solid rgba(139, 26, 26, 0.22);
}

/* Program tag — accent red tint */
.tag-program {
  background: rgba(228, 28, 35, 0.07);
  color: var(--accent-color);
  border: 1px solid rgba(228, 28, 35, 0.2);
}

/* Industry tag — neutral grey tint */
.tag-industry {
  background: rgba(0, 0, 0, 0.05);
  color: var(--body-color);
  border: 1px solid var(--border-color);
}

/* Card footer with message button */
.network-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# MMI Shared Module Components (Forum + Messages)
--------------------------------------------------------------*/

/* Module wrapper */
.mmi-forum,
.mmi-messages {
  font-family: inherit;
}

/* ── Module header bar ── */
.mmi-module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.mmi-module-header h1 {
  font-size: var(--fs-h3);
  margin: 0 0 0.25rem 0;
  color: var(--heading-color);
}

.mmi-module-header p {
  font-size: var(--fs-sm);
  color: var(--text-muted, #666);
  margin: 0;
}

/* ── Card ── */
.mmi-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease;
}

.mmi-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.11);
}

/* ── Card header ── */
.mmi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--heading-color) 0%, #c0392b 100%);
  color: var(--contrast-color);
}

.mmi-card-title {
  font-size: var(--fs-body);
  font-weight: 600;
  margin: 0;
  color: var(--contrast-color);
}

.mmi-card-subtitle {
  font-size: var(--fs-sm);
  margin: 4px 0 0 0;
  opacity: 0.85;
  color: var(--contrast-color);
}

/* ── Card body (content area below header) ── */
.mmi-card > :not(.mmi-card-header) {
  padding: 18px 20px;
}

.mmi-card > .mmi-table {
  padding: 0;
}

/* ── Buttons ── */
.mmi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-family: var(--default-font);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.mmi-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mmi-btn:active {
  transform: translateY(0);
}

.mmi-btn-primary {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.mmi-btn-primary:hover {
  background-color: var(--accent-hover-color);
  color: var(--contrast-color);
  box-shadow: var(--shadow-accent);
}

.mmi-btn-outline {
  background-color: var(--contrast-color);
  border: 1px solid var(--border-color);
  color: var(--heading-color);
}

.mmi-btn-outline:hover {
  background-color: var(--heading-color);
  border-color: var(--heading-color);
  color: var(--contrast-color);
}

.mmi-btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: var(--fs-xs);
}

.mmi-btn-danger {
  background-color: var(--contrast-color);
  border: 1px solid var(--border-color);
  color: var(--danger-color);
}

.mmi-btn-danger:hover {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: var(--contrast-color);
}

.mmi-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.mmi-admin-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* ── Table ── */
.mmi-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mmi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.mmi-table thead tr {
  background: rgba(139, 26, 26, 0.06);
}

.mmi-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--heading-color);
  border-bottom: 2px solid var(--border-color);
}

.mmi-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--body-color);
  vertical-align: middle;
}

.mmi-table tbody tr {
  transition: background-color 0.15s ease;
}

.mmi-table tbody tr:hover {
  background-color: rgba(139, 26, 26, 0.04);
}

.mmi-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Badges ── */
.mmi-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.5;
}

.mmi-badge-primary {
  background: rgba(228, 28, 35, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(228, 28, 35, 0.25);
}

.mmi-badge-warning {
  background: rgba(252, 182, 20, 0.15);
  color: #a67c00;
  border: 1px solid rgba(252, 182, 20, 0.4);
}

.mmi-badge-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--body-color);
  border: 1px solid var(--border-color);
}

.mmi-badge-info {
  background: rgba(18, 157, 191, 0.1);
  color: var(--unmc-blue-1, #129DBF);
  border: 1px solid rgba(18, 157, 191, 0.25);
}

/* ── Alerts ── */
.mmi-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-color);
  background: rgba(228, 28, 35, 0.07);
  color: var(--body-color);
  font-size: var(--fs-sm);
  animation: fadeIn 0.3s ease;
}

.mmi-alert-success {
  border-left-color: #198754;
  background: rgba(25, 135, 84, 0.07);
}

.mmi-alert-error {
  border-left-color: var(--danger-color);
  background: rgba(220, 53, 69, 0.07);
}

/* ── Form fields ── */
.mmi-field-group {
  margin-bottom: 1rem;
}

.mmi-field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 575px) {
  .mmi-field-grid-2 {
    grid-template-columns: 1fr;
  }
}

.mmi-input-row {
  display: flex;
  gap: 0.5rem;
}

.mmi-input-row > .mmi-input,
.mmi-input-row > .mmi-select {
  flex: 1;
}

.mmi-label-hint {
  color: var(--muted-color);
  font-weight: 400;
}

.mmi-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mmi-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--body-color);
}

.mmi-input,
.mmi-select,
.mmi-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-family: inherit;
  color: var(--body-color);
  background: var(--surface-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mmi-input-sm,
.mmi-select-sm {
  padding: 4px 10px;
  font-size: var(--fs-xs);
}

.mmi-input:focus,
.mmi-select:focus,
.mmi-textarea:focus {
  outline: none;
  border-color: var(--heading-color);
  box-shadow: 0 0 0 0.2rem rgba(139, 26, 26, 0.2);
}

.mmi-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Help / muted text ── */
.mmi-help-text {
  font-size: var(--fs-sm);
  color: var(--text-muted, #888);
  font-style: italic;
  padding: 8px 0;
}

/*--------------------------------------------------------------
# Forum Module
--------------------------------------------------------------*/

/* Topic detail header - same card treatment as replies, so the original post
   and its replies read as one visually consistent thread */
.mmi-topic-detail-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 0.75rem;
}

.mmi-topic-detail-title {
  font-size: var(--fs-h4);
  color: var(--heading-color);
  margin: 0 0 8px 0;
}

.mmi-topic-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted, #888);
}

.mmi-topic-detail-body {
  margin-top: 12px;
}

/* Reply card */
.mmi-reply-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s ease;
}

.mmi-reply-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mmi-reply-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mmi-reply-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-color, #47b2e4);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.mmi-reply-author {
  font-weight: 600;
  color: var(--heading-color);
}

.mmi-reply-date {
  font-size: var(--fs-xs);
  color: var(--text-muted, #888);
  margin-left: auto;
}

/* Locked topic indicator */
.mmi-locked-icon {
  font-size: var(--fs-xs);
  color: var(--text-muted, #888);
  margin-right: 0.4rem;
}

/*--------------------------------------------------------------
# Messages Module
--------------------------------------------------------------*/

/* Unread row highlight */
.mmi-table tbody tr.mmi-unread {
  background: rgba(228, 28, 35, 0.04);
  font-weight: 500;
}

/* View panel */
.mmi-message-view {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  overflow: hidden;
}

.mmi-message-view-header {
  padding: 14px 20px;
  background: rgba(139, 26, 26, 0.06);
  border-bottom: 1px solid var(--border-color);
}

.mmi-message-view-header h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 4px 0;
}

.mmi-message-view-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted, #888);
}

.mmi-message-view-body {
  padding: 18px 20px;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--body-color);
}

.mmi-message-view-actions {
  display: flex;
  gap: 0.5rem;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  .mmi-forum,
  .mmi-messages {
    padding: 0.75rem;
  }

  .mmi-module-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .mmi-card-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .mmi-table {
    font-size: var(--fs-xs);
  }

  .mmi-table th,
  .mmi-table td {
    padding: 8px 8px;
  }
}

/* ── Forum category tabs ─────────────────────────────── */
.mmi-forum-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mmi-forum-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted, #666);
  margin: 0;
  max-width: 640px;
}

.mmi-forum-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 0;
}

.mmi-forum-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--default-color);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 4px 4px 0 0;
}

.mmi-forum-tab:hover {
  color: var(--accent-color);
  background: var(--surface-color);
}

.mmi-forum-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: var(--surface-color);
}

.mmi-forum-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  padding: 0 0.35rem;
}

.mmi-forum-tab-panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

@media (max-width: 576px) {
  .mmi-forum-tabs {
    gap: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mmi-forum-tab {
    padding: 0.45rem 0.75rem;
    font-size: var(--fs-xs);
  }
}

/* ── Forum search bar ─────────────────────────────────── */
.mmi-search-bar {
  position: relative;
}

.mmi-search-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 0 0.75rem;
  transition: border-color 0.2s ease;
}

.mmi-search-input-wrap:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.mmi-search-icon {
  color: #999;
  font-size: var(--fs-sm);
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.mmi-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.6rem 0;
  font-size: var(--fs-sm);
  background: transparent;
}

.mmi-search-input::-webkit-search-cancel-button { display: none; }

.mmi-search-clear {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  font-size: var(--fs-xs);
  line-height: 1;
  flex-shrink: 0;
}

.mmi-search-clear:hover { color: #333; }

.mmi-search-snippet {
  font-size: var(--fs-xs);
  color: #666;
  margin: 2px 0 4px;
  line-height: 1.4;
}

mark.mmi-search-highlight {
  background: rgba(255, 213, 0, 0.45);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ── Forum chips (Program / Tag labels on topics) ─────── */
.mmi-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.mmi-chip-program {
  background: rgba(139, 26, 26, 0.08);
  color: #8b1a1a;
  border: 1px solid rgba(139, 26, 26, 0.2);
}

.mmi-chip-tag {
  background: rgba(0, 80, 160, 0.07);
  color: #004fa0;
  border: 1px solid rgba(0, 80, 160, 0.18);
}

.mmi-chip-clickable {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.mmi-chip-clickable:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* ── Forum filter bar ──────────────────────────────────── */
.mmi-filter-bar {
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.mmi-filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.mmi-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mmi-filter-group-tags {
  flex: 1;
}

.mmi-filter-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

/* ── Tag picker (both in filter bar and new-topic form) ── */
.mmi-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mmi-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 500;
  background: #f0f0f0;
  color: #444;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mmi-tag-chip:hover {
  background: rgba(0, 80, 160, 0.1);
  border-color: rgba(0, 80, 160, 0.3);
  color: #004fa0;
}

.mmi-tag-chip.selected {
  background: rgba(0, 80, 160, 0.12);
  border-color: rgba(0, 80, 160, 0.4);
  color: #004fa0;
  font-weight: 600;
}

/* ── Multi-recipient picker (Messages compose) ─────────── */
.mmi-recipient-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface-color);
}

.mmi-recipient-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--fs-sm);
}
.mmi-recipient-option:last-child { border-bottom: none; }
.mmi-recipient-option:hover { background: var(--surface-muted, #f7f8f9); }
.mmi-recipient-option.selected { background: rgba(0, 80, 160, 0.08); }
.mmi-recipient-option input[type="checkbox"] { flex-shrink: 0; }

/* ── Sort controls ───────────────────────────────────── */
.mmi-sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mmi-sort-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 500;
  background: #f0f0f0;
  color: #444;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.mmi-sort-btn:hover {
  background: rgba(173, 18, 42, 0.08);
  border-color: rgba(173, 18, 42, 0.3);
  color: var(--unmc-red);
}

.mmi-sort-btn.active {
  background: rgba(173, 18, 42, 0.1);
  border-color: rgba(173, 18, 42, 0.4);
  color: var(--unmc-red);
  font-weight: 600;
}

.mmi-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.mmi-sortable:hover {
  background: rgba(173, 18, 42, 0.05);
  color: var(--unmc-red);
}

.mmi-sort-active {
  color: var(--unmc-red);
}

/* ── Unified search + filter panel ───────────────────── */
.mmi-filter-panel {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mmi-search-row {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mmi-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fafafa;
}

@media (max-width: 768px) {
  .mmi-filter-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ── Profile header category progress rows ───────────── */
.profile-cat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: var(--fs-xs);
  color: rgba(0, 0, 0, 0.8);
}

.profile-cat-label {
  width: 120px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-cat-track {
  flex-grow: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.profile-cat-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.profile-cat-bar.complete  { background: #198754; }
.profile-cat-bar.partial   { background: #ffc107; }

.profile-cat-check {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: #198754;
}

.profile-cat-count {
  flex-shrink: 0;
  white-space: nowrap;
  color: #ffc107;
}

/* ── Collapsible My Profile card sections ─────────────── */
.profile-card-toggle {
  cursor: pointer;
  user-select: none;
}

.profile-card-chevron {
  transition: transform 0.2s ease;
}

/* Bootstrap's collapse JS adds/removes .collapsed on the trigger to
   reflect the target's shown/hidden state - no custom JS needed */
.profile-card-toggle.collapsed .profile-card-chevron {
  transform: rotate(-90deg);
}

/* ── News card ───────────────────────────────────────── */
.news-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 360px;
}

.news-card-img-link {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.news-card-img-link:hover .news-card-img,
.news-card-img-link:hover .news-card-placeholder {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.news-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.news-card-placeholder {
  height: 220px;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-h1);
  color: var(--muted-color);
  flex-shrink: 0;
}

.news-card-body {
  padding: 0.85rem 1rem 0.75rem;
  flex-grow: 1;
}

.news-card-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em; /* always reserve two lines so card contents stay aligned */
}

.news-card-subtitle {
  font-size: var(--fs-sm);
  color: var(--muted-color);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── News tag filter ─────────────────────────────────── */
.news-tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.news-tag-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.news-tag-btn {
  padding: 3px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  background: transparent;
  color: var(--default-color);
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.6;
}

/* Department multi-select picker in the News add/edit form */
.news-dept-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.news-tag-btn:hover,
.news-tag-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* ── News card tags (chips on card) ──────────────────── */
.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.news-tag-chip {
  padding: 2px 9px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-muted, #f7f8f9);
  color: var(--muted-color);
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.6;
}

.news-tag-chip:hover,
.news-tag-chip.active {
  background: var(--accent-soft-color, rgba(173,18,42,0.08));
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ── News pagination ─────────────────────────────────── */
.news-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.news-pagination-info {
  font-size: var(--fs-sm);
  color: var(--muted-color);
}

.news-page-size-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-sm);
  color: var(--muted-color);
}

.news-page-size-btn {
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--body-color);
  transition: all 0.15s;
}

.news-page-size-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.news-page-size-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  font-weight: 600;
}

.news-pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.news-page-btn {
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--body-color);
  transition: all 0.15s;
  min-width: 36px;
}

.news-page-btn:hover:not(:disabled) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.news-page-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  font-weight: 600;
}

.news-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── News edit modal ─────────────────────────────────── */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.news-modal {
  background: var(--surface-color);
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.news-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.news-modal-header h3 {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--heading-color);
}

.news-modal-close {
  background: none;
  border: none;
  font-size: var(--fs-h3);
  line-height: 1;
  cursor: pointer;
  color: var(--muted-color);
  padding: 0 0.25rem;
}

.news-modal-close:hover { color: var(--heading-color); }

.news-modal-body {
  padding: 1.25rem;
}

.mmi-char-count {
  float: right;
  font-size: var(--fs-xs);
  color: var(--muted-color);
  font-weight: 400;
}

.news-admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  border-top: 1px solid var(--border-color);
  font-size: var(--fs-xs);
  flex-shrink: 0;
  margin-top: auto;
}

.news-admin-meta {
  color: var(--muted-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.news-admin-btn {
  font-size: var(--fs-xs);
  padding: 0.2rem 0.5rem;
}

.news-admin-btn-delete {
  color: #dc3545;
  border-color: #dc3545;
}

/*--------------------------------------------------------------
# Department Gallery
--------------------------------------------------------------*/
.dept-card {
  height: auto;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.13);
  border-color: var(--accent-color);
  text-decoration: none;
  color: inherit;
}

.dept-card .news-card-body {
  display: flex;
  flex-direction: column;
}

.dept-card .network-name {
  transition: color 0.2s ease;
}

.dept-card:hover .network-name {
  color: var(--accent-color);
}

.dept-card .news-card-subtitle {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.dept-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  flex-shrink: 0;
}

.dept-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.dept-card:hover .dept-image-wrap img {
  transform: scale(1.06);
}

.dept-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(173, 18, 42, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.dept-card:hover .dept-image-overlay {
  background: rgba(173, 18, 42, 0.18);
}

.dept-image-overlay i {
  font-size: var(--fs-h2);
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.dept-card:hover .dept-image-overlay i {
  opacity: 1;
  transform: scale(1);
}

.dept-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

.dept-card:hover .dept-arrow {
  transform: translateX(4px);
}

/*--------------------------------------------------------------
# Events Module
--------------------------------------------------------------*/
.events-section {
  padding: 60px 0;
}

.events-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.events-filter-btn {
  padding: 6px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  background: transparent;
  color: var(--default-color);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.events-filter-btn:hover,
.events-filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 8px);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  border-color: var(--accent-color);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  background: var(--accent-soft-color, rgba(173,18,42,0.08));
  border-radius: 8px;
  padding: 10px 8px;
  flex-shrink: 0;
}

.event-date-month {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.04em;
}

.event-date-day {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.1;
}

.event-card-body {
  flex: 1;
  min-width: 0;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.event-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-soft-color, rgba(173,18,42,0.08));
  color: var(--accent-color);
}

.event-type-badge.event-type-conference { background: rgba(0,94,99,0.1);   color: var(--unmc-teal-1); }
.event-type-badge.event-type-research   { background: rgba(0,41,87,0.1);   color: var(--unmc-blue-1); }
.event-type-badge.event-type-board      { background: rgba(48,59,65,0.1);  color: var(--unmc-gray); }

.event-dept-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  background: var(--surface-muted, #f7f8f9);
  color: var(--muted-color);
  border: 1px solid var(--border-color);
}

.event-card-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 4px;
}

.event-card-title a {
  color: inherit;
  text-decoration: none;
}

.event-card-title a:hover {
  color: var(--accent-color);
}

.event-card-desc {
  font-size: var(--fs-sm);
  color: var(--muted-color);
  margin: 0 0 8px;
  line-height: 1.5;
}

.event-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--fs-xs);
  color: var(--muted-color);
}

.event-time,
.event-location {
  display: flex;
  align-items: center;
}

.event-flyer-thumb {
  display: block;
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-flyer-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.event-flyer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-flyer-thumb-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--accent-soft-color, rgba(173, 18, 42, 0.08));
  color: var(--accent-color);
  font-size: var(--fs-h3);
}

.event-admin-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}

.events-modal {
  max-width: 620px;
}

/*--------------------------------------------------------------
# Site Lookup Manager
--------------------------------------------------------------*/
.lookup-manager {
  padding: 20px 0 40px;
}

.lookup-column {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 8px);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.lookup-column-single {
  max-width: 720px;
}

.lookup-programs-nest {
  list-style: none;
  padding: 6px 0 14px 32px;
  margin: -4px 0 10px;
  border-left: 2px solid var(--border-color);
  margin-left: 14px;
}

.lookup-programs-header {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-color);
  margin-bottom: 6px;
}

.lookup-unassigned-header {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.lookup-add-row-nested {
  margin-bottom: 8px;
}

.lookup-list-nested {
  padding: 0;
}
.lookup-list-nested .lookup-item {
  padding: 5px 8px;
}
.lookup-list-nested .lookup-item-main {
  font-size: var(--fs-sm);
}

.lookup-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lookup-column-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

.lookup-seed-btn {
  font-size: var(--fs-xs);
  padding: 4px 12px;
}

.lookup-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.lookup-add-input {
  flex: 1;
  font-size: var(--fs-sm);
}

.lookup-add-btn {
  flex-shrink: 0;
  padding: 6px 12px;
}

.lookup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lookup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.lookup-item:hover {
  background: var(--surface-muted, #f7f8f9);
  border-color: var(--border-color);
}

.lookup-item.editing {
  background: var(--surface-muted, #f7f8f9);
  border-color: var(--accent-color);
}

.lookup-item-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lookup-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.lookup-edit-image {
  margin-top: 4px;
}
.lookup-edit-image .mmi-label {
  font-size: var(--fs-xs);
  display: block;
  margin-bottom: 3px;
}

.lookup-item-name {
  font-size: var(--fs-sm);
  color: var(--default-color);
}

.lookup-item-link {
  font-size: var(--fs-xs);
  color: var(--accent-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-item-link i { margin-right: 3px; }

.lookup-item-link-empty {
  color: var(--default-color);
  opacity: 0.5;
  font-style: italic;
}

.lookup-item-area {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted-color);
}

.lookup-edit-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lookup-edit-input {
  font-size: var(--fs-sm);
  padding: 4px 8px;
}

.lookup-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lookup-action-btn {
  padding: 4px 8px;
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.lookup-delete-btn {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.lookup-delete-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.lookup-empty {
  color: var(--muted-color);
  font-size: var(--fs-sm);
  font-style: italic;
  padding: 8px 10px;
}



/* ═══════════════════════════════════════════════════════════
   Department Hub – Editorial Design
   ═══════════════════════════════════════════════════════════ */
.dept-hub-page,
.dept-directory {
  --dh-ink: var(--unmc-black);
  --dh-ink-soft: var(--unmc-gray);
  --dh-paper: var(--surface-color);
  --dh-paper-warm: var(--surface-muted);
  --dh-accent: var(--accent-color);
  --dh-accent-deep: var(--accent-hover-color);
  --dh-gold: var(--unmc-orange-2);
  --dh-rule: var(--border-color);
  --dh-muted: var(--muted-color);
  --dh-display: var(--heading-font);
}

/* Page header */
.dh-page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--dh-rule);
  margin-bottom: 3rem;
}
.dh-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dh-accent);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nav-font);
}
.dh-eyebrow::before { content: "—"; color: var(--dh-accent); }
.dh-page-title {
  font-family: var(--dh-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--heading-color);
  margin: 0;
}
.dh-page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
.dh-section { padding: 3rem 0; border-bottom: 1px solid var(--dh-rule); }
.dh-section:last-child { border-bottom: none; }
.dh-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.25rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dh-section-head h2 {
  font-family: var(--dh-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--default-color);
}
.dh-section-head h2 em { font-style: italic; color: var(--dh-accent); font-weight: 400; }

/* Buttons */
.dh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
  line-height: 1;
  font-family: var(--nav-font);
}
.dh-btn-dark { background: var(--dh-ink); color: #fff; border-color: var(--dh-ink); }
.dh-btn-dark:hover { background: var(--dh-accent); border-color: var(--dh-accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.dh-btn-accent { background: var(--dh-accent); color: #fff; border-color: var(--dh-accent); }
.dh-btn-accent:hover { background: var(--dh-accent-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.dh-btn-ghost { background: transparent; border-color: var(--dh-rule); color: var(--dh-ink); }
.dh-btn-ghost:hover { border-color: var(--dh-ink); background: var(--dh-ink); color: #fff; }
.dh-btn-sm { padding: 7px 13px; font-size: var(--fs-xs); }
.dh-btn-danger:hover { background: var(--unmc-red); border-color: var(--unmc-red); color: #fff; }

/* ── Board Presentations ── */
.dh-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dh-board-card {
  border: 1px solid var(--dh-rule);
  background: var(--dh-paper);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.dh-board-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dh-board-visual {
  height: 90px;
  background: linear-gradient(135deg, var(--unmc-gray) 0%, var(--unmc-black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-h2);
  color: rgba(255,255,255,0.35);
}
.dh-board-card:nth-child(3n+2) .dh-board-visual {
  background: linear-gradient(135deg, var(--dh-accent-deep) 0%, var(--dh-accent) 100%);
}
.dh-board-card:nth-child(3n+3) .dh-board-visual {
  background: linear-gradient(135deg, var(--unmc-blue-1) 0%, var(--unmc-teal-1) 100%);
}
.dh-board-info { padding: 1.4rem 1.5rem 1.5rem; }
.dh-board-role {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dh-gold);
  margin-bottom: 4px;
  font-family: var(--nav-font);
}
.dh-board-date { font-size: var(--fs-xs); color: var(--dh-muted); margin-bottom: 8px; }
.dh-board-name {
  font-family: var(--dh-display);
  font-weight: 600;
  font-size: var(--fs-body);
  margin: 0 0 10px;
  color: var(--heading-color);
}
.dh-board-bio {
  font-size: var(--fs-sm);
  color: var(--dh-ink-soft);
  line-height: 1.6;
  margin: 0 0 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dh-rule);
}

/* ── Upcoming Events ── */
.dh-events-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}
.dh-events-list { display: flex; flex-direction: column; }
.dh-event {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--dh-rule);
  transition: padding-left 0.28s ease;
}
.dh-event:first-child { border-top: 1px solid var(--dh-rule); }
.dh-event:hover { padding-left: 10px; }
.dh-event-no-date { grid-template-columns: 1fr auto; }
.dh-event-date {
  text-align: center;
  border-right: 1px solid var(--dh-rule);
  padding-right: 22px;
}
.dh-event-day {
  font-family: var(--dh-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1;
  color: var(--default-color);
}
.dh-event-month {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dh-accent);
  margin-top: 4px;
  font-family: var(--nav-font);
}
.dh-event-body h3 {
  font-family: var(--dh-display);
  font-weight: 600;
  font-size: var(--fs-body);
  margin: 0 0 4px;
  color: var(--heading-color);
}
.dh-event-through { font-size: var(--fs-xs); color: var(--dh-muted); margin: 0; }
.dh-event-text { font-size: var(--fs-sm); color: var(--dh-muted); margin: 4px 0 0; line-height: 1.5; }
.dh-event-arrow {
  width: 38px; height: 38px;
  border: 1px solid var(--dh-rule);
  display: grid; place-items: center;
  color: var(--default-color);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: var(--fs-sm);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.dh-event-arrow:hover { background: var(--dh-accent); color: #fff; border-color: var(--dh-accent); box-shadow: var(--shadow-accent); }

/* Featured event panel */
.dh-featured-event {
  background: var(--unmc-gray);
  color: #fff;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.dh-featured-event::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  border: 1px solid rgba(252,182,20,0.3);
  border-radius: 50%;
}
.dh-featured-event::after {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 1px solid rgba(252,182,20,0.18);
  border-radius: 50%;
}
.dh-featured-tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dh-gold);
  margin-bottom: 18px;
  display: inline-block;
  position: relative;
  z-index: 1;
  font-family: var(--nav-font);
}
.dh-featured-event h3 {
  font-family: var(--dh-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.dh-featured-event p {
  color: rgba(255,255,255,0.72);
  margin: 0 0 22px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.dh-featured-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}
.dh-featured-details dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dh-gold);
  margin-bottom: 4px;
  font-family: var(--nav-font);
}
.dh-featured-details dd {
  font-family: var(--dh-display);
  font-size: var(--fs-sm);
  margin: 0;
  color: #fff;
}
.dh-featured-event .dh-btn { position: relative; z-index: 1; }

/* ── Opportunities ── */
.dh-opp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--dh-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dh-opp-card {
  padding: 1.75rem 1.75rem 1.5rem;
  border-right: 1px solid var(--dh-rule);
  border-bottom: 1px solid var(--dh-rule);
  transition: background var(--transition-base);
  position: relative;
  background: var(--dh-paper);
}
.dh-opp-card:nth-child(3n) { border-right: none; }
.dh-opp-card:hover { background: var(--dh-paper-warm); }
.dh-opp-num {
  font-family: var(--dh-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--dh-accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.dh-opp-title {
  font-family: var(--dh-display);
  font-weight: 600;
  font-size: var(--fs-body);
  margin: 0 0 6px;
  color: var(--heading-color);
}
.dh-opp-date {
  font-size: var(--fs-xs);
  color: var(--dh-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-family: var(--nav-font);
}
.dh-opp-content { font-size: var(--fs-sm); color: var(--dh-muted); line-height: 1.6; margin-bottom: 1rem; }
.dh-opp-card-actions { margin-top: 0.75rem; display: flex; gap: 0.35rem; }

/* ── Dashboard section reordering ── */
.dh-sections-flex { display: flex; flex-direction: column; }

.dh-settings-section-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: var(--fs-sm);
}
.dh-settings-section-table th,
.dh-settings-section-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.dh-settings-section-table th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-color);
  background: var(--surface-muted, #f7f8f9);
}
.dh-settings-section-table tbody tr:last-child td { border-bottom: none; }
.dh-settings-order-actions { display: flex; gap: 4px; }
.dh-settings-order-actions .mmi-btn-sm { padding: 2px 8px; }

/* ── Department/Program hierarchical picker ──
   Tile style intentionally matches the "Relationship to MMI" checkbox-matrix tiles
   (same p-3/border/rounded look) for visual consistency between the two pickers. */
.dept-prog-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, .375rem);
  background-color: var(--surface-color, #f8f9fa);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dept-prog-tile:hover { background: var(--surface-muted, #f0f1f2); }
.dept-prog-tile.selected {
  border-color: var(--accent-color, #47b2e4);
  background: var(--accent-soft-color, #eaf6fc);
  font-weight: 600;
}
.dept-prog-tile-sm { padding: 0.75rem 1rem; }

.dept-prog-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.dept-prog-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted, #f7f8f9);
  color: var(--muted-color);
}

.dept-prog-tile-name { flex: 1; font-size: var(--fs-sm); }
.dept-prog-tile-check { color: var(--accent-color, #47b2e4); font-size: 1.1rem; }

.dept-prog-subheading {
  margin: 1rem 0 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-color);
}
.dept-prog-subheading-hint {
  font-weight: 400;
  font-style: italic;
}

.dept-prog-empty {
  padding: 14px;
  color: var(--muted-color);
  font-style: italic;
  font-size: var(--fs-sm);
}

/* ── Fun Fact ── */
.dh-funfact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.dh-funfact-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--dh-rule);
  border-radius: var(--radius-md);
  background: var(--dh-paper);
}
.dh-funfact-number {
  font-family: var(--dh-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--dh-accent);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.dh-funfact-label {
  font-size: var(--fs-sm);
  color: var(--dh-muted);
}

/* ── Forum feed ── */
.dh-forum-wrap {
  border: 1px solid var(--dh-rule);
  background: var(--dh-paper-warm);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.dh-forum-feed { display: flex; flex-direction: column; }
.dh-forum-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--dh-rule);
  transition: background var(--transition-base);
}
.dh-forum-item:last-child { border-bottom: none; }
.dh-forum-item:hover { background: var(--accent-soft-color); }
.dh-forum-num {
  font-family: var(--dh-display);
  font-size: var(--fs-h4);
  color: var(--dh-rule);
  min-width: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.dh-forum-info { flex: 1; min-width: 0; }
.dh-forum-title {
  margin: 0 0 2px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--default-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--heading-font);
}
.dh-forum-meta { font-size: var(--fs-xs); color: var(--dh-muted); }

/* ── Shared ── */
.dh-admin-row {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dh-rule);
}
.dh-empty { text-align: center; padding: 2.5rem 1rem; color: var(--dh-muted); font-style: italic; font-size: var(--fs-sm); }
.dh-loading { text-align: center; padding: 4rem 1rem; color: var(--dh-muted); font-style: italic; }

/* ── Department Spotlight ── */
.dept-spotlight-section { margin-bottom: 2.5rem; }

.dept-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.dept-spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--dh-paper);
  border: 1px solid var(--dh-rule);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.dept-spotlight-card:not(.dept-spotlight-card-disabled):hover {
  border-color: var(--dh-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.dept-spotlight-card-disabled {
  cursor: default;
  opacity: 0.85;
}

.dept-spotlight-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.dept-spotlight-placeholder {
  height: 150px;
  background: var(--surface-muted, #f7f8f9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-h1);
  color: var(--dh-muted);
}

.dept-spotlight-body {
  padding: 0.9rem 1.1rem 1.1rem;
}

.dept-spotlight-name {
  font-family: var(--dh-display);
  font-weight: 600;
  font-size: var(--fs-body-lg, 1.05rem);
  color: var(--heading-color);
  margin: 0 0 0.25rem;
}

.dept-spotlight-subtitle {
  font-size: var(--fs-sm);
  color: var(--dh-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── Department & Program Directory ── */
.dept-directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.dept-directory-filters .mmi-field { min-width: 220px; }
.dept-directory-search { flex: 1; min-width: 260px; }

.dept-directory-group { margin-bottom: 2.5rem; }

.dept-directory-group-title {
  font-family: var(--dh-display);
  font-size: var(--fs-h4, 1.25rem);
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--dh-rule);
}

.dept-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding-bottom: 1rem;
}
.dept-directory-group:last-child .dept-directory-grid { padding-bottom: 3rem; }

.dept-directory-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.4rem;
  background: var(--dh-paper);
  border: 1px solid var(--dh-rule);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.dept-directory-card:not(.dept-directory-card-disabled):hover {
  border-color: var(--dh-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.dept-directory-card-disabled {
  cursor: default;
  opacity: 0.6;
}

.dept-directory-type {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dh-muted);
}
.dept-directory-name {
  font-family: var(--dh-display);
  font-weight: 600;
  font-size: var(--fs-body-lg, 1.1rem);
  color: var(--heading-color);
}
.dept-directory-arrow {
  font-size: var(--fs-xs);
  color: var(--dh-accent);
  margin-top: auto;
}

.dept-directory-unit {
  display: flex;
  flex-direction: column;
}

.dept-directory-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.dept-directory-program-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  color: var(--dh-muted);
  background: var(--dh-paper);
  border: 1px solid var(--dh-rule);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dept-directory-program-chip:not(.dept-directory-program-chip-disabled):hover {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}
.dept-directory-program-chip-disabled {
  cursor: default;
}

/* ── Department News ── */
.dh-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.dh-news-card {
  background: #fff;
  border: 1px solid var(--dh-rule, var(--border-color));
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dh-news-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.dh-news-body { padding: 1rem 1.1rem 1.2rem; }
.dh-news-cat {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-color);
  margin-bottom: .35rem;
}
.dh-news-title { font-size: var(--fs-body); font-weight: 700; margin: 0 0 .35rem; line-height: 1.35; }
.dh-news-title a { color: inherit; }
.dh-news-title a:hover { color: var(--accent-color); }
.dh-news-sub { font-size: var(--fs-sm); color: var(--dh-muted, var(--muted-color)); margin: 0; }

/* ── Research & Publications list ── */
.dh-research-list {
  list-style: none;
  counter-reset: dh-research;
  margin: 0;
  padding: 0;
}
.dh-research-item {
  counter-increment: dh-research;
  position: relative;
  padding: 1rem 0 1rem 3.25rem;
  border-bottom: 1px solid var(--dh-rule, var(--border-color));
}
.dh-research-item:last-child { border-bottom: none; }
.dh-research-item::before {
  content: counter(dh-research, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  font-size: var(--fs-sm);
}
.dh-research-title { font-weight: 600; margin: 0 0 .2rem; line-height: 1.4; }
.dh-research-title a { color: inherit; }
.dh-research-title a:hover { color: var(--accent-color); }
.dh-research-meta { font-size: var(--fs-sm); color: var(--dh-muted, var(--muted-color)); font-style: italic; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .dh-board-grid { grid-template-columns: repeat(2, 1fr); }
  .dh-events-layout { grid-template-columns: 1fr; }
  .dh-opp-grid { grid-template-columns: repeat(2, 1fr); }
  .dh-opp-card:nth-child(3n) { border-right: 1px solid var(--dh-rule); }
  .dh-opp-card:nth-child(2n) { border-right: none; }
  .dh-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dh-board-grid { grid-template-columns: 1fr; }
  .dh-event { grid-template-columns: 70px 1fr; }
  .dh-event-arrow { display: none; }
  .dh-opp-grid { grid-template-columns: 1fr; }
  .dh-opp-card:nth-child(n) { border-right: none; }
  .dh-news-grid { grid-template-columns: 1fr; }
  .dh-featured-event { padding: 1.5rem; }
  .dh-featured-details { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# MMI Connect Feature Sections - Clickable + Mobile Friendly
# (.section-title renamed to .section-block-title to avoid clashing
#  with the global .section-title above)
--------------------------------------------------------------*/
.section-block,
.section-block-primary { padding: 3rem 0; }

.section-block-primary { background: #f7f7f8; }

/* Whole row clickable */
.section-link { display: block; text-decoration: none; color: inherit; }

.section-card {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.section-link:hover .section-card,
.section-link:focus .section-card,
.section-link:focus-visible .section-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-link:hover .section-img,
.section-link:focus .section-img,
.section-link:focus-visible .section-img { transform: scale(1.02); }

/* Unified type scale — every font-size in the theme maps to one of these */
:root {
  --fs-h1: clamp(2.4rem, 5vw, 3.75rem);   /* hero headline (~38-60px) */
  --fs-h2: clamp(1.6rem, 3vw, 2.25rem);   /* section / page titles (~26-36px) */
  --fs-h3: 1.5rem;                         /* card / sub headings (24px) */
  --fs-h4: 1.25rem;                        /* small headings (20px) */
  --fs-lead: clamp(1.1rem, 2vw, 1.4rem);  /* lead / subtitle */
  --fs-body: 1.05rem;                      /* body copy (~17px) */
  --fs-sm: 0.875rem;                       /* meta / small (14px) */
  --fs-xs: 0.75rem;                        /* badges / tiny (12px) */
}

.section-block-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: #303b41;
  margin-bottom: 1rem;
}

.section-block p,
.section-block-primary p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #555;
  margin-bottom: 0;
}

.section-card .col-md-6 { padding: 1.5rem; }

@media (max-width: 992px) {
  .section-img { height: 260px; }
}

@media (max-width: 768px) {
  .section-block,
  .section-block-primary { padding: 1.5rem 0; }
  .section-card { padding: 0.5rem 0; }
  .section-card .row { margin-left: 0; margin-right: 0; }
  .section-card .col-md-6 { padding: 0.75rem 1rem; }
  .section-img { height: 220px; border-radius: 8px; }
  .section-block-title { margin-bottom: 0.75rem; }
  .section-block p,
  .section-block-primary p { line-height: 1.6; }
}

@media (max-width: 480px) {
  .section-img { height: 190px; }
  .section-card .col-md-6 { padding: 0.75rem; }
}

/*--------------------------------------------------------------
# MMI Theme overrides + Video Hero (moved from Theme.razor)
--------------------------------------------------------------*/
.app-logo img { max-height: 36px; }
.header .app-logo .navbar-brand { text-transform: uppercase; letter-spacing: 2px; }

/* Video hero (banner) — full video always visible, blurred fill wrapping it */
.video-hero {
  position: relative;
  height: 100vh;
  height: 100svh;   /* stable mobile viewport height where supported; falls back to 100vh */
  min-height: 560px;
  overflow: hidden;
  background-color: #16191b;   /* fallback behind the blurred fill */
  transition: height 0.4s ease, min-height 0.4s ease;
}
/* Shrinks the hero once the visitor starts scrolling - body.scrolled is
   already toggled by main.js at scrollY > 100 */
body.scrolled .video-hero {
  height: 60vh;
  height: 60svh;
  min-height: 340px;
}
/* Fades the hero to solid black at its bottom edge so it melts into the
   stats band below instead of a hard seam between two blocks */
.video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--surface-muted, #f7f8f9) 100%);
  z-index: 2;
  pointer-events: none;
}
/* Blurred poster fills the space around the (contained) video */
.video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/files/Public/MMIConnectPromo-poster.jpg") center / cover no-repeat;
  filter: blur(30px) brightness(0.65);
  transform: scale(1.12);   /* hide the soft blurred edges */
  z-index: 0;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* whole video always visible (no cropping) */
  z-index: 1;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0.12) 100%);
  z-index: 2;
  pointer-events: none;
}
/* Text overlay: fills the hero, vertically centered, clears the fixed header,
   and scrolls instead of cropping if the text is taller than the screen */
.hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 90px 0 40px;
  overflow-y: auto;
}
.hero-content { position: relative; width: 100%; }
.hero-copy { max-width: 660px; }
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  opacity: .9;
  margin: 0 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 3px solid var(--accent-color);
}
.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-lead {
  font-size: var(--fs-lead);
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.hero-text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 0 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.video-hero .btn-get-started,
.video-hero .btn-watch-video {
  font-family: var(--default-font);
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  padding: 10px 28px 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.video-hero .btn-get-started,
.video-hero .btn-watch-video {
  color: var(--contrast-color);
  background: var(--accent-color);
}
.video-hero .btn-get-started:hover,
.video-hero .btn-watch-video:hover {
  color: var(--contrast-color);
  background: var(--accent-hover-color);
  transform: translateY(-2px);
}

.video-hero .btn-watch-video span,
.video-hero .btn-watch-video i { color: var(--contrast-color); }
.video-hero .btn-watch-video i { font-size: var(--fs-h3); margin-right: 8px; line-height: 0; }

@media (max-width: 575px) {
  .hero-content-wrap { padding: 80px 0 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-actions .btn-get-started,
  .hero-actions .btn-watch-video { justify-content: center; text-align: center; }
}

/* Page title banner (interior pages) */
.page-title-banner {
  background: var(--surface-muted, #f7f8f9);
  border-bottom: 1px solid var(--border-color);
  padding: 110px 0 36px;   /* top padding clears the fixed header */
}
.page-title-banner .page-title {
  position: relative;
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: var(--fs-h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
  padding-bottom: 14px;
}
.page-title-banner .page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Homepage stats band + Join CTA
--------------------------------------------------------------*/
.stats-band {
  /* starts at the same light tone the hero fades into above, so the seam is invisible */
  background: linear-gradient(180deg, var(--surface-muted, #f7f8f9) 0%, #fff 100%);
  padding: 3.5rem 0;
  margin-top: -1px;   /* eliminate any sub-pixel gap between the two sections */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.stat-number {
  font-family: var(--heading-font);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-color);
}

.stats-cta {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.stats-cta p {
  color: var(--default-color);
  font-size: var(--fs-lead);
  margin: 0 0 1.25rem;
}

.stats-cta .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--default-font);
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px 12px 28px;
  border-radius: 999px;
  transition: all var(--transition-base);
}

.stats-cta .btn-get-started:hover {
  background: var(--accent-hover-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .stats-band { padding: 2.5rem 0; }
  .stat-number { font-size: var(--fs-h2); }
}

/*--------------------------------------------------------------
# Registration form — sectioned cards, each field a bounded item
--------------------------------------------------------------*/
.reg-form { max-width: 1140px; margin-inline: auto; }

.reg-section {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.reg-section-title {
  font-family: var(--heading-font);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
  padding: .9rem 1.5rem;
  background: var(--surface-muted, #f7f8f9);
  border-bottom: 2px solid var(--accent-color);
}
.reg-section-body {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

/* each field row = its own clearly bounded item (one grid cell) */
.reg-section-body > .row {
  margin: 0 !important;
  padding: .9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface-muted, #fafbfc);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* inside a half-width cell, stack the label above the input */
.reg-section-body > .row > [class*="col-sm"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

/* wide fields (checkbox groups, multi-line text) span both columns */
.reg-section-body > .row:has(.checkbox-matrix),
.reg-section-body > .row:has(.dept-prog-picker),
.reg-section-body > .row:has(textarea) {
  grid-column: 1 / -1;
}

/* role detail fields (Trainee Type / Job Title at MMI / Volunteer Position) share one
   full-width row; the column count adapts to however many roles are selected (1-3) */
.reg-section-body > .reg-role-row {
  grid-column: 1 / -1;
}

.reg-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.reg-role-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (max-width: 767px) {
  .reg-section-body {
    grid-template-columns: 1fr;
  }

  .reg-section-body .input-group .btn {
    padding-left: .5rem;
    padding-right: .5rem;
    font-size: var(--fs-xs);
    white-space: nowrap;
  }
}
.reg-section-body > .row:focus-within {
  border-color: var(--accent-color);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft-color, rgba(173, 18, 42, 0.10));
}
.reg-section-body label { font-weight: 600; }
.reg-section-body .required > label::after,
.reg-section-body label.required::after { content: " *"; color: var(--accent-color); }

/* Image field: clean Pick / Upload toggle (History, News, ...) */
.mmi-image-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.mmi-image-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  background: #fff;
  padding: .5rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--default-color);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.mmi-image-tab + .mmi-image-tab { border-left: 1px solid var(--border-color); }
.mmi-image-tab:hover:not(.active) { background: var(--surface-muted, #f7f8f9); }
.mmi-image-tab.active { background: var(--accent-color); color: #fff; }

@media (max-width: 480px) {
  .mmi-image-toggle { display: flex; flex-wrap: wrap; width: 100%; }
  .mmi-image-tab { flex: 1 1 100%; justify-content: center; }
  .mmi-image-tab + .mmi-image-tab { border-left: 0; border-top: 1px solid var(--border-color); }
}

/* External-link cue: a small ↗ on menu links that open a new tab or point off-site */
.navmenu .dropdown-menu a[target="_new"]::after,
.navmenu .dropdown-menu a[target="_blank"]::after,
.navmenu .dropdown-menu a[href^="http"]::after {
  content: " \2197";      /* ↗ north-east arrow */
  font-size: 0.85em;
  margin-left: 5px;
  opacity: 0.8;
}

/* History: Timeline / Gallery view toggle + photo-memories grid */
.history-view-toggle {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.history-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  background: #fff;
  padding: .45rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--default-color);
  cursor: pointer;
}
.history-view-toggle button + button { border-left: 1px solid var(--border-color); }
.history-view-toggle button.active { background: var(--accent-color); color: #fff; }

.history-gallery { columns: 3 260px; column-gap: 1rem; }
@media (max-width: 700px) { .history-gallery { columns: 2 150px; } }
.memory-card {
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.memory-card .memory-img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.memory-card:hover .memory-img { transform: scale(1.03); }
.memory-noimage {
  display: flex; align-items: center; justify-content: center;
  min-height: 140px;
  background: var(--surface-muted, #f7f8f9);
  color: var(--muted-color);
  font-family: var(--heading-font);
  font-size: var(--fs-h3);
}
.memory-caption { padding: .6rem .85rem; display: flex; flex-direction: column; gap: 2px; }
.memory-caption .memory-year {
  font-size: var(--fs-xs); font-weight: 700; color: var(--accent-color);
  text-transform: uppercase; letter-spacing: .5px;
}
.memory-caption .memory-title { font-size: var(--fs-sm); color: var(--default-color); }
.memory-actions { display: flex; gap: .4rem; padding: 0 .85rem .75rem; }
.memory-actions .mmi-btn { font-size: var(--fs-xs); padding: .2rem .5rem; }

/* Reusable modal (MmiModal) for add/edit forms */
.mmi-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem;
  overflow-y: auto;
}
.mmi-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: mmiModalIn .18s ease;
}
@keyframes mmiModalIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mmi-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.mmi-modal-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: var(--fs-h3);
  color: var(--heading-color);
}
.mmi-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted-color);
  cursor: pointer;
  padding: 0 .25rem;
}
.mmi-modal-close:hover { color: var(--accent-color); }
.mmi-modal-body { padding: 1.25rem; overflow-y: auto; }
.mmi-modal-footer {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border-color);
}
@media (max-width: 600px) {
  .mmi-modal-overlay { padding: 0; }
  .mmi-modal { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
}
