/* ==========================================================================
   MALAMAH LEGACY - HON. JOHN HENRY MALAMAH-THOMAS DEDICATED THEME
   Palette:
     Primary: #364156 (Navy / Slate Steel)
     Brand Secondary: #7d4e57 (Mauve / Antique Wine)
     Hero Soft Navy: #e8ecf2 (--color1_25)
     Deep Navy: #0e1016 (--color1_175)
     Wine Hover: #5e3b41 (--color2_125)
   ========================================================================== */

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

/* Typography & Base */
body, #website {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  color: #1E293B;
  line-height: 1.75;
}

#website p {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  line-height: 1.75;
}

h1, h2, h3, h4, .mh-serif {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: #0e1016 !important;
  letter-spacing: -0.01em;
}

/* Global Mobile Overflow Lock */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

#website {
  overflow-x: clip !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ==========================================================================
   HEADER & LOGO PERFECT MOBILE RESPONSIVENESS (NO OVERFLOW)
   ========================================================================== */
#header {
  max-width: 100vw !important;
  width: 100% !important;
  overflow: visible !important;
  background: var(--color1_25, #e8ecf2) !important;
}

#headerMenu {
  background: var(--color1_25, #e8ecf2) !important;
  border-bottom: 1.5px solid rgba(54, 65, 86, 0.2) !important;
  padding: 12px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#headerMenu .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  max-width: 1200px !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.logoHolder {
  float: none !important;
  height: auto !important;
  line-height: normal !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.logoHolder a.logo {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
}

.logoContents {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  max-width: 100% !important;
  white-space: normal !important;
}

#websiteLogo {
  max-height: 52px !important;
  height: 52px !important;
  width: auto !important;
  min-height: unset !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

#websiteLogoTitle {
  font-family: 'Cinzel', Georgia, serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #364156 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: unset !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  white-space: normal !important;
}

.menuHolder {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.menuHolder li a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: #364156 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.menuHolder li a:hover,
.menuHolder li.active a {
  color: #7d4e57 !important;
  background: rgba(125, 78, 87, 0.1) !important;
}

.menuHolder li.accent1 a {
  background: #7d4e57 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 8px 18px !important;
  box-shadow: 0 2px 8px rgba(125, 78, 87, 0.3) !important;
}

.menuHolder li.accent1 a:hover {
  background: #5e3b41 !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   HERO SECTION & FLUID CLAMP TYPOGRAPHY
   ========================================================================== */
.mh-hero-section {
  background: linear-gradient(135deg, #f7f9fb 0%, #e8ecf2 100%) !important;
  padding: 60px 0 50px !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(54, 65, 86, 0.15);
}

.mh-hero-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2rem, 4.2vw, 3.1rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #0e1016 !important;
  margin-bottom: 18px !important;
}

.mh-hero-title span.mh-wine {
  color: #7d4e57 !important;
  font-style: italic;
}

.mh-hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem) !important;
  color: #1E293B !important;
  line-height: 1.8 !important;
  margin-bottom: 24px !important;
  font-weight: 400;
}

.mh-heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #364156;
  color: #364156;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(54, 65, 86, 0.1);
}

.mh-portrait-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(54, 65, 86, 0.2);
  border: 4px solid #FFFFFF;
  background: #FFFFFF;
}

.mh-portrait-wrap img {
  width: 100% !important;
  height: auto !important;
  display: block;
  transition: transform 0.4s ease;
}

.mh-portrait-wrap:hover img {
  transform: scale(1.02);
}

/* Call to Action Buttons */
.btn-mh-primary {
  background: #364156 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 12px 26px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(54, 65, 86, 0.35) !important;
  transition: all 0.25s ease !important;
  border: 2px solid #364156 !important;
}

.btn-mh-primary:hover {
  background: #293141 !important;
  border-color: #293141 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(54, 65, 86, 0.45) !important;
  color: #FFFFFF !important;
}

.btn-mh-secondary {
  background: #FFFFFF !important;
  color: #364156 !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 2px solid #CBD5E1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
}

.btn-mh-secondary:hover {
  border-color: #7d4e57 !important;
  color: #7d4e57 !important;
  background: #faf6f7 !important;
  transform: translateY(-2px);
}

.btn-mh-wine {
  background: #7d4e57 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 12px 26px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(125, 78, 87, 0.35) !important;
  transition: all 0.25s ease !important;
  border: none !important;
}

.btn-mh-wine:hover {
  background: #5e3b41 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(125, 78, 87, 0.45) !important;
}

/* ==========================================================================
   CIVIC & HISTORIC PILLARS
   ========================================================================== */
.mh-pillars-section {
  background: #364156 !important; /* Primary Navy */
  padding: 70px 0 !important;
  color: #FFFFFF !important;
}

.mh-pillar-card {
  background: #FFFFFF !important;
  border-radius: 14px !important;
  padding: 30px 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  height: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mh-pillar-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
}

.mh-pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7d4e57 0%, #5e3b41 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(125, 78, 87, 0.35);
}

.mh-pillar-card h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0e1016 !important;
  margin-bottom: 12px !important;
}

.mh-pillar-card p {
  color: #334155 !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

/* Stat Counters */
.mh-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
}

.mh-stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #dfd3d5;
  margin-bottom: 4px;
}

.mh-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #CBD5E1;
  font-weight: 600;
}

/* ==========================================================================
   HISTORICAL TIMELINE (ABOUT PAGE)
   ========================================================================== */
.mh-timeline {
  position: relative;
  padding-left: 36px;
  border-left: 3px solid #7d4e57;
  margin-left: 10px;
}

.mh-timeline-item {
  position: relative;
  margin-bottom: 34px;
}

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

.mh-timeline-marker {
  position: absolute;
  left: -48px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7d4e57;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 2px #7d4e57;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.8rem;
}

.mh-timeline-year {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #7d4e57;
  background: #dfd3d5;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(125, 78, 87, 0.25);
}

.mh-timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #0e1016;
  margin-bottom: 6px;
}

.mh-timeline-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT FORM & ANCESTRAL SEAT
   ========================================================================== */
.mh-contact-card {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 36px !important;
  box-shadow: 0 10px 30px rgba(54, 65, 86, 0.08) !important;
  border: 1.5px solid #E2E8F0 !important;
}

.ContactForm .form-group {
  margin-bottom: 20px !important;
}

.ContactForm label {
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: #0e1016 !important;
  margin-bottom: 6px !important;
}

.ContactForm .form-control,
.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm textarea {
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 16px !important; /* Prevents auto-zoom in iOS */
  color: #1E293B !important;
  background: #F8FAFC !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

.ContactForm .form-control:focus,
.ContactForm input:focus,
.ContactForm textarea:focus {
  background: #FFFFFF !important;
  border-color: #364156 !important;
  box-shadow: 0 0 0 3px rgba(54, 65, 86, 0.2) !important;
  outline: none !important;
}

/* Eliminate honeypot */
.ContactForm input#first-name-prefix,
.ContactForm #first-name-prefix,
.ContactForm label[for="first-name-prefix"],
.ContactForm div:has(> #first-name-prefix),
.ContactForm .form-group:has(#first-name-prefix) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#first-name-prefix, label[for="first-name-prefix"] {
  display: none !important;
  visibility: hidden !important;
}

.ContactForm h3.thumbTitle {
  display: none !important;
}

.ContactForm .input-group {
  display: flex !important;
  align-items: stretch !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.ContactForm .input-group-text {
  background: #eef1f5 !important;
  border: 1.5px solid #CBD5E1 !important;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  padding: 2px 8px !important;
  display: flex !important;
  align-items: center !important;
}

.ContactForm .input-group-text img {
  height: 38px !important;
  border-radius: 4px !important;
}

.ContactForm .input-group .form-control {
  border-radius: 0 8px 8px 0 !important;
}

.ContactForm button[type="submit"] {
  background: linear-gradient(135deg, #364156 0%, #293141 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  font-size: 0.92rem !important;
  padding: 14px 28px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 14px rgba(54, 65, 86, 0.35) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  min-height: 48px !important;
}

.ContactForm button[type="submit"]:hover {
  background: linear-gradient(135deg, #7d4e57 0%, #5e3b41 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(125, 78, 87, 0.45) !important;
}

/* ==========================================================================
   UNIQUE MEMORIAL FOOTER (WHITE MEDALLION & HIGH CONTRAST)
   ========================================================================== */
.mh-unique-footer {
  background: #0e1016 !important; /* Deep Navy Charcoal */
  color: #FFFFFF !important;
}

.mh-unique-footer p,
.mh-unique-footer div,
.mh-unique-footer span {
  color: #F1F5F9 !important;
}

.mh-unique-footer p {
  color: #F8FAFC !important;
}

.mh-unique-footer a {
  color: #FFFFFF !important;
  transition: all 0.2s ease !important;
}

.mh-unique-footer a:hover {
  color: #cdd0d5 !important;
}

.mh-footer-logo-badge {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  background: #FFFFFF !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  border: 2.5px solid #364156 !important;
}

.mh-footer-logo-badge img {
  max-height: 42px !important;
  max-width: 42px !important;
  object-fit: contain !important;
  display: block !important;
  filter: none !important;
}

/* ==========================================================================
   MOBILE SCREEN SIZES (< 991px and < 767px)
   ========================================================================== */
@media (max-width: 991px) {
  #headerMenu .container {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .logoHolder {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .logoHolder a.logo {
    justify-content: center !important;
  }
  .logoContents {
    justify-content: center !important;
    gap: 10px !important;
  }
  #websiteLogo {
    max-height: 44px !important;
    height: 44px !important;
  }
  #websiteLogoTitle {
    font-size: 1.2rem !important;
    text-align: left !important;
  }
  .menuHolder {
    justify-content: center !important;
    width: 100% !important;
    gap: 6px !important;
  }
}

@media (max-width: 767px) {
  .mh-hero-section {
    padding: 35px 0 !important;
    text-align: center !important;
  }
  .mh-hero-section .col-lg-7 {
    text-align: center !important;
  }
  .mh-hero-section .d-flex.flex-wrap {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .btn-mh-primary, .btn-mh-secondary, .btn-mh-wine {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .mh-portrait-wrap {
    max-width: 270px !important;
    margin: 28px auto 0 !important;
  }
  .mh-pillars-section {
    padding: 45px 0 !important;
  }
  .mh-pillar-card {
    padding: 22px 18px !important;
    margin-bottom: 14px !important;
  }
  .mh-timeline {
    padding-left: 20px !important;
    border-left-width: 2px !important;
  }
  .mh-timeline-marker {
    left: -30px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.72rem !important;
  }
  .mh-unique-footer {
    text-align: center !important;
    padding: 40px 0 20px !important;
  }
  .mh-unique-footer .row > div {
    text-align: center !important;
    margin-bottom: 24px !important;
  }
  .mh-unique-footer .d-flex.align-items-center {
    justify-content: center !important;
  }
  .mh-unique-footer ul {
    align-items: center !important;
  }
}



/* ==========================================================================
   UNIFIED EXACT MOBILE & DESKTOP HEADER & LOGO ENGINE (MATCHES MAIN SITE)
   ========================================================================== */

/* Global Mobile Overflow Lock */
html, body, #website {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#header,
.ko_Theme #header {
  background: var(--color1_25, #c3deec) !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 2px solid rgba(14, 121, 178, 0.2) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

#headerMenu,
.ko_Theme #headerMenu {
  background: transparent !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  border: none !important;
}

#headerMenu .container,
.ko_Theme #headerMenu .container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  max-width: 1520px !important;
  width: 100% !important;
  padding: 4px 18px !important;
  box-sizing: border-box !important;
  min-height: 62px !important;
}

.logoHolder,
.ko_Theme .logoHolder,
.logoHolder.skiptranslate {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1 !important;
}

.logoHolder a.logo,
.ko_Theme .logoHolder a.logo {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* PROMINENT, CRISP LOGO ACROSS ALL SITES & SUBDOMAINS */
.logoHolder img,
#websiteLogo,
.ko_Theme .logoHolder img,
.ko_Theme #websiteLogo {
  max-height: 56px !important;
  height: 56px !important;
  min-height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
  transition: transform 0.2s ease !important;
}

#websiteLogoTitle,
.logoHolder #websiteLogoTitle {
  font-family: 'Cinzel', serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #041e2d !important;
  margin-left: 10px !important;
  letter-spacing: 0.5px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Desktop Navigation (>= 992px) */
@media (min-width: 992px) {
  .mh-mobile-nav-toggle {
    display: none !important;
  }

  .menuHolder,
  .menuHolder.topmenu,
  .ko_Theme .menuHolder,
  .ko_Theme .menuHolder.topmenu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2px !important;
    background: transparent !important;
  }

  .menuHolder li,
  .ko_Theme .menuHolder li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .menuHolder li a,
  .ko_Theme .menuHolder li a {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15px !important;
    padding: 6px 7px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    display: inline-block !important;
    white-space: nowrap !important;
    color: #041e2d !important;
  }

  .menuHolder li a:hover,
  .ko_Theme .menuHolder li a:hover {
    color: #0e79b2 !important;
    background: rgba(14, 121, 178, 0.1) !important;
  }

  .menuHolder li.active a,
  .menuHolder li.item_active a,
  .ko_Theme .menuHolder li.active a,
  .ko_Theme .menuHolder li.item_active a {
    color: #bf1363 !important;
    background: rgba(191, 19, 99, 0.12) !important;
  }

  .menuHolder li a[href*="contact"],
  .ko_Theme .menuHolder li a[href*="contact"],
  a.koMenuButton {
    background: #bf1363 !important;
    color: #ffffff !important;
    border-radius: 18px !important;
    padding: 6px 14px !important;
    margin-left: 3px !important;
  }

  .menuHolder li.topmenuSocial,
  .menuHolder li.topmenuSocialTranslate {
    margin-left: 2px !important;
  }

  .topmenuSocial a {
    padding: 4px 6px !important;
    font-size: 0.75rem !important;
    color: #041e2d !important;
  }

  .topmenuSocialTranslate button {
    padding: 4px 7px !important;
    font-size: 0.72rem !important;
    border-radius: 4px !important;
  }
}

/* Medium Laptops (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .logoHolder img, #websiteLogo {
    max-height: 48px !important;
    height: 48px !important;
  }
  .menuHolder li a {
    font-size: 0.66rem !important;
    padding: 5px 4px !important;
  }
}

/* Mobile & Tablet Navigation (< 992px) - EXACT UNIFIED LAYOUT */
@media (max-width: 991.98px) {
  #headerMenu .container,
  .ko_Theme #headerMenu .container {
    flex-wrap: wrap !important;
    padding: 8px 16px !important;
    min-height: 58px !important;
  }

  /* FULL SIZE, CRISP LOGO ON MOBILE FOR ALL SUBDOMAINS & MAIN SITE */
  .logoHolder img,
  #websiteLogo,
  .ko_Theme .logoHolder img,
  .ko_Theme #websiteLogo {
    max-height: 52px !important;
    height: 52px !important;
    min-height: 46px !important;
    width: auto !important;
    display: inline-block !important;
  }

  #websiteLogoTitle,
  .logoHolder #websiteLogoTitle {
    font-size: 0.88rem !important;
    margin-left: 8px !important;
  }

  .mh-mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #041e2d !important;
    color: #ffffff !important;
    border: 1.5px solid #0e79b2 !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    margin-left: auto !important;
    transition: all 0.2s ease !important;
  }

  .mh-mobile-nav-toggle:hover,
  .mh-mobile-nav-toggle:focus {
    background: #0e79b2 !important;
    color: #ffffff !important;
    outline: none !important;
  }

  .menuHolder,
  .menuHolder.topmenu,
  .ko_Theme .menuHolder,
  .ko_Theme .menuHolder.topmenu {
    display: none !important;
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .menuHolder.mh-menu-open,
  .ko_Theme .menuHolder.mh-menu-open {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #041e2d !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
    padding: 12px 16px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    animation: mhNavSlideDown 0.22s ease forwards !important;
  }

  .menuHolder.mh-menu-open ul,
  .menuHolder.mh-menu-open .topmenu,
  .ko_Theme .menuHolder.mh-menu-open ul {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .menuHolder.mh-menu-open li,
  .ko_Theme .menuHolder.mh-menu-open li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .menuHolder.mh-menu-open li a,
  .ko_Theme .menuHolder.mh-menu-open li a {
    display: block !important;
    width: 100% !important;
    padding: 11px 14px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
  }

  .menuHolder.mh-menu-open li a:hover,
  .menuHolder.mh-menu-open li.active a,
  .menuHolder.mh-menu-open li.item_active a {
    background: rgba(14, 121, 178, 0.35) !important;
    color: #38bdf8 !important;
  }

  .menuHolder.mh-menu-open li a[href*="contact"],
  .ko_Theme .menuHolder.mh-menu-open li a[href*="contact"] {
    background: #bf1363 !important;
    color: #ffffff !important;
    margin-top: 6px !important;
    text-align: center !important;
    border-radius: 6px !important;
  }

  .menuHolder.mh-menu-open li.topmenuSocial,
  .menuHolder.mh-menu-open li.topmenuSocialTranslate {
    display: none !important;
  }
}

@keyframes mhNavSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Eliminate empty white gaps */
main.WxEditableArea,
#contentArea,
.WxEditableArea,
.kedit:first-child,
section.kedit:first-of-type {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.mh-breadcrumb-nav {
  display: none !important;
}

/* Hide top network bar permanently */
#mh-network-bar, .mh-network-bar, #mh-network-container, .mh-network-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Page up button on bottom-left */
#scrollToTop, a#scrollToTop, #scrollToTop.active, a#scrollToTop.active, #toTop, #scrollUp {
  position: fixed !important;
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
  z-index: 99990 !important;
}

/* Footer crest logo badge */
.mh-footer-logo-badge {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 3px solid #bf1363 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
  margin-right: 14px !important;
}

.mh-footer-logo-badge img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
