/* =========================================================
   VYAS MEDICAL COLLEGE - HOMEPAGE HEADER & HERO REDESIGN
   Loaded on Default.aspx only. Inner pages remain untouched.
   ========================================================= */
:root {
  --vmch-navy: #123b58;
  --vmch-blue: #075b91;
  --vmch-teal: #08a6b8;
  --vmch-teal-dark: #078b9f;
  --vmch-ink: #17384e;
  --vmch-muted: #6c8190;
}

body { overflow-x: hidden; }

/* Top contact strip */
#topbar.vmch-topbar {
  min-height: 39px;
  height: auto;
  padding: 7px 0;
  color: #fff;
  background: linear-gradient(100deg, #0b91a8 0%, #0876a5 48%, #124c88 100%);
  font-size: 12px;
  letter-spacing: .1px;
}
.vmch-topbar .container { gap: 16px; }
.vmch-topbar .contact-info { gap: 0; flex-wrap: wrap; }
.vmch-topbar .contact-info i { color: #fff; font-size: 12px; font-style: normal; }
.vmch-topbar .contact-info a,
.vmch-topbar .contact-info span { color: #fff; padding-left: 6px; }
.vmch-topbar .contact-info a:hover { color: #d7f7fb; text-decoration: underline; }
.vmch-topbar .social-links { gap: 17px; }
.vmch-topbar .social-links a { color: #fff; font-size: 15px; margin: 0; opacity: .9; }
.vmch-topbar .social-links a:hover { color: #a9f2f5; transform: translateY(-1px); }

/* Logo + credibility band */
#header.vmch-masthead {
  position: relative;
  z-index: 100;
  height: auto;
  min-height: 124px;
  padding: 15px 0;
  background: #fff;
  box-shadow: 0 3px 18px rgba(15, 48, 72, .07);
}
.vmch-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.vmch-logo { display: flex; align-items: center; flex: 0 0 315px; max-width: 315px; padding: 5px 8px 5px 0; }
.vmch-logo img { display: block; width: 100%; max-width: 315px; max-height: 96px; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 3px rgba(10, 55, 80, .12)); }
.vmch-trust-points { display: flex; align-items: center; justify-content: center; gap: 34px; flex: 1 1 auto; }
.vmch-trust-item { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.vmch-trust-icon {
  display: flex; align-items: center; justify-content: center;
  width: 39px; height: 39px; flex: 0 0 39px;
  border-radius: 50%; color: var(--vmch-teal); background: #e9f8fa;
  font-size: 19px;
}
.vmch-trust-item strong { display: block; color: var(--vmch-navy); font-size: 14px; font-weight: 750; line-height: 1.35; }
.vmch-trust-item small { display: block; max-width: 205px; color: var(--vmch-muted); font-size: 11px; line-height: 1.45; }
.vmch-header-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.vmch-welcome { color: var(--vmch-navy); font-size: 13px; font-weight: 700; text-align: right; }
.vmch-enquiry-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px;
  border-radius: 4px; color: #fff !important; font-size: 12px; font-weight: 700;
  letter-spacing: .35px; text-transform: uppercase;
  background: linear-gradient(100deg, var(--vmch-teal), #0879a8);
  box-shadow: 0 5px 14px rgba(8, 145, 169, .18);
  transition: .25s ease;
}
.vmch-enquiry-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(8, 145, 169, .25); }

/* Slim news ticker */
.vmch-announcement { background: #f3f8fa; border-top: 1px solid #e8f0f3; border-bottom: 1px solid #e5eef2; }
.vmch-announcement .container { display: flex; align-items: center; gap: 18px; min-height: 37px; }
.vmch-announcement-label {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  color: #fff; background: var(--vmch-teal-dark); padding: 6px 12px;
  font-size: 10px; font-weight: 800; letter-spacing: .65px;
}
.vmch-announcement-scroll { display: flex; align-items: center; gap: 14px; overflow: hidden; white-space: nowrap; color: #425d6e; font-size: 12px; }
.vmch-announcement-scroll a { color: #087ba0; font-weight: 700; }
.vmch-announcement-scroll a:hover { color: var(--vmch-navy); text-decoration: underline; }
.vmch-announcement-separator { color: #08a6b8; font-weight: 900; }

/* Navigation - KIMS-inspired clean white bar with comfortable spacing */
div.menudivs.vmch-navigation,
.vmch-navigation { position: relative; z-index: 99; background: #fff !important; border-top: 1px solid #edf2f5; border-bottom: 1px solid #e5edf1; box-shadow: 0 3px 12px rgba(17, 53, 78, .045); }
.vmch-navigation .container { max-width: 1240px; }
.vmch-navigation .navbar { min-height: 62px; padding: 0 12px; display: flex; align-items: center; justify-content: center; background: #fff !important; }
.vmch-navigation .navbar > ul { width: auto !important; max-width: 100%; margin: 0 auto; padding: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.05vw, 30px); }
.vmch-navigation .navbar > ul > li { flex: 0 0 auto; }
.vmch-navigation .navbar > ul > li > a {
  min-height: 62px; display: flex; align-items: center; padding: 0 1px;
  color: #183c58 !important; font-size: 13px; font-weight: 650; letter-spacing: .05px; white-space: nowrap;
}
.vmch-navigation .navbar > ul > li > a:before { top: auto; bottom: 0; height: 3px; background: var(--vmch-teal); border-radius: 3px 3px 0 0; }
.vmch-navigation .navbar a:hover,
.vmch-navigation .navbar .active,
.vmch-navigation .navbar li:hover > a { color: var(--vmch-teal-dark) !important; }
.vmch-navigation .navbar .dropdown ul { left: 0; top: calc(100% + 12px); border-top: 3px solid var(--vmch-teal); border-radius: 0 0 7px 7px; padding: 9px 0; background: #fff; box-shadow: 0 14px 35px rgba(18, 59, 88, .16); }
.vmch-navigation .navbar .dropdown ul li { min-width: 220px; }
.vmch-navigation .navbar .dropdown ul a { padding: 10px 17px; color: #36576b !important; font-size: 12px; font-weight: 550; }
.vmch-navigation .navbar .dropdown ul a:hover { color: var(--vmch-teal-dark) !important; background: #f2fafb; }
.vmch-navigation .navbar .dropdown:hover > ul { top: 100%; }
.vmch-navigation .mobile-nav-toggle { color: var(--vmch-navy); }

/* Hero slider - KIMS-inspired full-bleed image, left gradient and text */
.vmch-hero-section { position: relative; width: 100%; background: #0d2f49; }
.vmch-hero-carousel { width: 100%; overflow: hidden; }
.vmch-hero-carousel .carousel-item { position: relative; height: clamp(440px, 53vw, 665px); background: #153d5a; }
.vmch-hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.vmch-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 48, 91, .94) 0%, rgba(8, 62, 105, .82) 36%, rgba(8, 62, 105, .28) 69%, rgba(8, 62, 105, .04) 100%);
}
.vmch-hero-content-wrap { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.vmch-hero-content { max-width: 650px; padding: 28px 0 48px; color: #fff; pointer-events: auto; }
/* Staggered KIMS-style text entrance: kicker, heading, description, then CTA */
.vmch-hero-content > * { opacity: 0; transform: translateY(24px); }
.vmch-hero-carousel .carousel-item.active .vmch-hero-kicker { animation: vmchTextReveal .65s ease .15s both; }
.vmch-hero-carousel .carousel-item.active .vmch-hero-content h1 { animation: vmchTextReveal .75s cubic-bezier(.2,.7,.2,1) .48s both; }
.vmch-hero-carousel .carousel-item.active .vmch-hero-content p { animation: vmchTextReveal .7s ease .88s both; }
.vmch-hero-carousel .carousel-item.active .vmch-hero-button { animation: vmchTextReveal .65s ease 1.2s both; }
.vmch-hero-kicker {
  display: inline-block; margin-bottom: 18px; color: #a7edf0;
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
}
.vmch-hero-content h1 {
  max-width: 680px; margin: 0 0 20px; color: #fff;
  font-family: "Poppins", "Roboto", sans-serif; font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 750; line-height: 1.08; letter-spacing: -1.6px;
  text-shadow: 0 2px 16px rgba(0,0,0,.12);
}
.vmch-hero-content p { max-width: 570px; margin: 0 0 29px; color: rgba(255,255,255,.92); font-size: clamp(14px, 1.25vw, 17px); line-height: 1.8; font-weight: 400; }
.vmch-hero-button {
  display: inline-flex; align-items: center; gap: 13px; padding: 15px 25px;
  border-radius: 28px; color: #fff !important; background: linear-gradient(100deg, #0dbb83, #078eb4);
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  box-shadow: 0 9px 24px rgba(0,0,0,.18); transition: .25s ease;
}
.vmch-hero-button:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 13px 28px rgba(0,0,0,.24); }
.vmch-hero-button i { font-size: 16px; }
.vmch-hero-indicators { bottom: 18px; align-items: center; gap: 9px; margin-bottom: 0; }
.vmch-hero-indicators [data-bs-target] {
  width: 9px; height: 9px; margin: 0; border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%; background: rgba(255,255,255,.4); opacity: 1; transition: .25s;
}
.vmch-hero-indicators .active { width: 18px; height: 18px; background: transparent; border: 2px solid #fff; position: relative; }
.vmch-hero-indicators .active:after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.vmch-hero-arrow { width: 6%; opacity: 0; transition: opacity .25s; }
.vmch-hero-carousel:hover .vmch-hero-arrow { opacity: .75; }
@keyframes vmchTextReveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .vmch-hero-content > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Keep the homepage content below the hero visually consistent */
#main { position: relative; }

/* Tablet */
@media (max-width: 1199px) {
  .vmch-masthead-inner { gap: 18px; }
  .vmch-logo { flex-basis: 270px; max-width: 270px; }
  .vmch-trust-points { gap: 15px; }
  .vmch-trust-item { min-width: 150px; }
  .vmch-trust-item small { max-width: 165px; }
  .vmch-navigation .navbar > ul { gap: 12px; }
  .vmch-navigation .navbar > ul > li > a { font-size: 11px; }
}
@media (max-width: 991px) {
  #topbar.vmch-topbar { padding: 8px 0; }
  .vmch-topbar .container { justify-content: center !important; }
  .vmch-topbar .contact-info { justify-content: center; gap: 5px 14px; }
  .vmch-topbar .contact-info .ms-4 { margin-left: 0 !important; }
  .vmch-topbar .social-links { display: none !important; }
  #header.vmch-masthead { min-height: 100px; padding: 12px 0; }
  .vmch-masthead-inner { flex-wrap: wrap; justify-content: space-between; }
  .vmch-logo { flex-basis: 230px; max-width: 230px; }
  .vmch-trust-points { flex: 1 1 100%; order: 3; justify-content: flex-start; padding-top: 7px; }
  .vmch-header-cta { margin-left: auto; }
  .vmch-welcome { max-width: 250px; font-size: 11px; }
  .vmch-navigation .navbar { min-height: 55px; justify-content: flex-end; }
  .vmch-navigation .navbar > ul { display: none; }
  .vmch-navigation .mobile-nav-toggle { display: block; font-size: 29px; }
  .vmch-navigation .navbar-mobile ul { display: block; }
  .vmch-navigation .navbar-mobile .mobile-nav-toggle { color: #fff; }
  .vmch-hero-carousel .carousel-item { height: 530px; }
  .vmch-hero-content { max-width: 560px; }
}
@media (max-width: 575px) {
  #topbar.vmch-topbar { font-size: 10px; }
  .vmch-topbar .contact-info { flex-direction: column; align-items: flex-start !important; gap: 4px; }
  .vmch-topbar .contact-info i { font-size: 10px; }
  #header.vmch-masthead { padding: 12px 0 9px; }
  .vmch-masthead-inner { gap: 10px; }
  .vmch-logo { flex: 1 1 185px; max-width: 215px; }
  .vmch-logo img { max-height: 68px; }
  .vmch-header-cta { flex: 0 0 auto; }
  .vmch-welcome { display: none; }
  .vmch-enquiry-btn { padding: 9px 11px; font-size: 9px; }
  .vmch-trust-points { gap: 13px; padding-top: 8px; }
  .vmch-trust-item { min-width: 0; flex: 1 1 50%; gap: 7px; }
  .vmch-trust-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 15px; }
  .vmch-trust-item strong { font-size: 10px; }
  .vmch-trust-item small { font-size: 9px; line-height: 1.25; }
  .vmch-announcement .container { gap: 9px; min-height: 34px; }
  .vmch-announcement-label { padding: 6px 8px; font-size: 8px; }
  .vmch-announcement-scroll { font-size: 10px; gap: 8px; }
  .vmch-hero-carousel .carousel-item { height: 500px; }
  .vmch-hero-image { object-position: 62% center; }
  .vmch-hero-overlay { background: linear-gradient(90deg, rgba(8, 48, 91, .91) 0%, rgba(8, 62, 105, .74) 62%, rgba(8, 62, 105, .26) 100%); }
  .vmch-hero-content { padding: 20px 12px 45px; max-width: 100%; }
  .vmch-hero-kicker { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 13px; }
  .vmch-hero-content h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.12; letter-spacing: -.7px; margin-bottom: 15px; }
  .vmch-hero-content p { font-size: 13px; line-height: 1.65; margin-bottom: 22px; max-width: 95%; }
  .vmch-hero-button { padding: 13px 19px; font-size: 9px; }
  .vmch-hero-arrow { display: none; }
}

/* Final homepage-only overrides against legacy menu styles */
div.menudivs.vmch-navigation, div.menudivs.vmch-navigation .navbar { background-color: #fff !important; }
.vmch-hero-section { margin-top: 0 !important; padding-top: 0 !important; }
.vmch-hero-carousel, .vmch-hero-carousel .carousel-inner { margin-top: 0 !important; }


/* =========================================================
   REVISION 3 — nested menu, header actions, news encoding,
   and admission popup refinements.
   ========================================================= */

/* Header actions: enquiry and hospital links share one row. */
.vmch-header-cta { gap: 9px; }
.vmch-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.vmch-enquiry-btn,
.vmch-hospital-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2px;
  text-decoration: none !important;
}
.vmch-hospital-btn {
  color: #173b59 !important;
  background: #fff;
  border: 1px solid #dce8ee;
  box-shadow: 0 4px 12px rgba(18, 59, 88, .07);
  transition: .22s ease;
}
.vmch-hospital-btn:hover {
  color: #078b9f !important;
  border-color: #08a6b8;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(8, 145, 169, .13);
}
.vmch-hospital-mark {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #174a78;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}

/* Nested menus: child lists open to the RIGHT of their parent row,
   matching the original two-column flyout behaviour. */
@media (min-width: 992px) {
  .vmch-navigation,
  .vmch-navigation .container,
  .vmch-navigation .navbar {
    overflow: visible !important;
  }
  .vmch-navigation .navbar { position: relative; z-index: 100; }
  .vmch-navigation .navbar > ul > li { position: relative; }
  .vmch-navigation .navbar > ul > li.dropdown > ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    display: block;
    width: 245px;
    min-width: 245px;
    margin: 0 !important;
    padding: 6px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(5px) !important;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 1200 !important;
    background: #fff !important;
  }
  .vmch-navigation .navbar li.dropdown { position: relative; }
  .vmch-navigation .navbar li.dropdown > ul {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    right: auto !important;
    display: block;
    width: 225px;
    min-width: 225px;
    margin: 0 !important;
    padding: 6px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(5px) !important;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 1210 !important;
    background: #fff !important;
    border-top: 3px solid var(--vmch-teal);
    border-radius: 0 0 7px 7px;
    box-shadow: 0 14px 35px rgba(18, 59, 88, .16);
  }
  .vmch-navigation .navbar > ul > li.dropdown:hover > ul,
  .vmch-navigation .navbar > ul > li.dropdown:focus-within > ul,
  .vmch-navigation .navbar li.dropdown:hover > ul,
  .vmch-navigation .navbar li.dropdown:focus-within > ul {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(0, 0) !important;
  }
  .vmch-navigation .navbar li.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .vmch-navigation .navbar li.dropdown > ul > li { width: 100%; min-width: 0; }
  .vmch-navigation .navbar li.dropdown > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 9px 14px !important;
    border-bottom: 1px dashed #e7edf1;
    white-space: normal;
    line-height: 1.35;
  }
  .vmch-navigation .navbar li.dropdown > ul > li:last-child > a { border-bottom: 0; }
}

/* Keep the mobile menu usable; actions wrap neatly on smaller screens. */
@media (max-width: 991px) {
  .vmch-header-cta { align-items: flex-end; }
  .vmch-header-actions { flex-wrap: wrap; }
  .vmch-navigation .navbar-mobile ul li.dropdown > ul {
    position: static !important;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
}
@media (max-width: 575px) {
  .vmch-header-actions { gap: 6px; }
  .vmch-enquiry-btn, .vmch-hospital-btn { min-height: 34px; padding: 7px 9px; font-size: 9px; }
  .vmch-hospital-mark { width: 17px; height: 17px; font-size: 11px; }
}

/* Announcement: use HTML entities and UTF-8 response encoding to avoid mojibake. */
.vmch-announcement-scroll { min-width: 0; }
.vmch-announcement-separator { display: inline-flex; align-items: center; color: #08a6b8; font-size: 13px; }

/* Admission enquiry popup: polished header, balanced columns, rounded panel. */
.vmch-admission-modal-dialog { max-width: 1000px; }
.vmch-admission-modal {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 75px rgba(6, 28, 46, .32);
}
.vmch-admission-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 22px;
  color: #fff;
  background: linear-gradient(105deg, #123b58 0%, #087f9d 100%);
  border-bottom: 0;
}
.vmch-admission-modal-header .modal-title {
  margin: 3px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}
.vmch-admission-modal-header .modal-title span { color: #9ce8ec; }
.vmch-modal-kicker { color: #b8edf0; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.vmch-admission-modal-header .btn-close { flex: 0 0 auto; opacity: .95; }
.vmch-admission-modal-body { padding: 18px; background: #f4f8fa; }
.vmch-popup-promo {
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6edf1;
  border-radius: 12px;
}
.vmch-popup-promo img {
  display: block;
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  border-radius: 7px;
}
.vmch-popup-form-panel {
  min-height: 420px;
  height: 100%;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(145deg, #08a6bd 0%, #087fa8 100%);
  box-shadow: 0 8px 22px rgba(8, 117, 150, .16);
}
.vmch-popup-form-heading {
  padding: 5px 5px 11px;
  color: #fff;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .2px;
}
.vmch-popup-form-panel iframe {
  display: block;
  width: 100%;
  height: 475px;
  border: 0;
  border-radius: 7px;
  background: #fff;
}
@media (max-width: 767px) {
  .vmch-admission-modal-dialog { margin: 10px; }
  .vmch-admission-modal-header { padding: 14px 16px; }
  .vmch-admission-modal-header .modal-title { font-size: 15px; }
  .vmch-admission-modal-body { padding: 11px; }
  .vmch-popup-promo { min-height: 0; }
  .vmch-popup-promo img { max-height: 330px; }
  .vmch-popup-form-panel { min-height: 0; }
  .vmch-popup-form-panel iframe { height: 485px; }
}


/* =========================================================
   REVISION 4 — white dropdown menus + balanced nav/search
   ========================================================= */

/* Desktop navigation: no search field; restore comfortable type size
   and spacing so the nine menu items use the full available width. */
@media (min-width: 992px) {
  .vmch-navigation .container {
    max-width: 1320px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .vmch-navigation .navbar {
    min-height: 62px;
    justify-content: center !important;
    gap: 0;
    padding: 0 8px;
  }
  .vmch-navigation .navbar > ul {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-content: space-between !important;
    gap: clamp(15px, 1.55vw, 23px) !important;
    flex-wrap: nowrap !important;
  }
  .vmch-navigation .navbar > ul > li {
    flex: 0 0 auto;
    min-width: 0;
  }
  .vmch-navigation .navbar > ul > li > a {
    min-height: 62px;
    padding: 0 2px !important;
    font-size: clamp(12.5px, 1.05vw, 14px) !important;
    font-weight: 650;
    letter-spacing: .05px;
    white-space: nowrap;
  }
}

/* Dropdowns: clean white panels. The item only changes colour on hover,
   instead of displaying a permanent solid-blue background. */
.vmch-navigation .navbar .dropdown ul,
.vmch-navigation .navbar li.dropdown > ul {
  background: #fff !important;
  border-color: #08a6b8 !important;
  box-shadow: 0 12px 30px rgba(18, 59, 88, .14) !important;
}
.vmch-navigation .navbar .dropdown ul li,
.vmch-navigation .navbar li.dropdown > ul > li {
  background: #fff !important;
}
.vmch-navigation .navbar .dropdown ul li > a,
.vmch-navigation .navbar li.dropdown > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 10px 15px !important;
  color: #36576b !important;
  background: #fff !important;
  border-bottom: 1px solid #edf1f4;
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, padding-left .18s ease;
}
.vmch-navigation .navbar .dropdown ul li:last-child > a,
.vmch-navigation .navbar li.dropdown > ul > li:last-child > a {
  border-bottom: 0;
}
.vmch-navigation .navbar .dropdown ul li > a:hover,
.vmch-navigation .navbar .dropdown ul li:hover > a,
.vmch-navigation .navbar li.dropdown > ul > li > a:hover {
  color: #078b9f !important;
  background: #f0fafb !important;
  padding-left: 19px !important;
}
.vmch-navigation .navbar .dropdown ul li.dropdown > a i,
.vmch-navigation .navbar li.dropdown > ul > li.dropdown > a i {
  color: #8298a5 !important;
}
.vmch-navigation .navbar .dropdown ul li.dropdown:hover > a i {
  color: #078b9f !important;
}

/* Avoid old theme rules painting submenu anchors blue. */
.vmch-navigation .navbar ul ul a,
.vmch-navigation .navbar ul ul li a,
.vmch-navigation .navbar ul ul li:hover > a {
  background-color: #fff !important;
}
.vmch-navigation .navbar ul ul li a:hover,
.vmch-navigation .navbar ul ul li:hover > a {
  background-color: #f0fafb !important;
}



/* REVISION 5 — final menu sizing without search */
@media (min-width: 992px) {
  .vmch-navigation .navbar > ul > li > a {
    font-size: 13.5px !important;
  }
}
@media (min-width: 1200px) {
  .vmch-navigation .navbar > ul {
    gap: clamp(17px, 1.7vw, 25px) !important;
  }
  .vmch-navigation .navbar > ul > li > a {
    font-size: 14px !important;
  }
}


/* REVISION 6 — compact centered navigation, arrows beside labels */
@media (min-width: 992px) {
  .vmch-navigation .container {
    max-width: 1200px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .vmch-navigation .navbar {
    min-height: 60px;
    padding: 0 6px;
    justify-content: center !important;
  }
  .vmch-navigation .navbar > ul {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 42px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: clamp(13px, 1.45vw, 19px) !important;
    flex-wrap: nowrap !important;
  }
  .vmch-navigation .navbar > ul > li {
    flex: 0 0 auto;
  }
  .vmch-navigation .navbar > ul > li > a {
    min-height: 60px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 4px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    white-space: nowrap;
  }
  .vmch-navigation .navbar > ul > li.dropdown > a i,
  .vmch-navigation .navbar > ul > li.dropdown > a .bi-chevron-down {
    margin-left: 3px !important;
    padding-left: 0 !important;
    font-size: 10px !important;
    line-height: 1;
    position: static !important;
  }
}
@media (min-width: 1200px) {
  .vmch-navigation .navbar > ul {
    gap: 19px !important;
  }
}


/* REVISION 7 — home icon and refined navigation typography */
.vmch-navigation .navbar > ul > li.vmch-home-item > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center !important;
  min-width: 24px;
  padding: 0 2px !important;
  color: #174b83 !important;
}
.vmch-navigation .navbar > ul > li.vmch-home-item > a i {
  font-size: 17px !important;
  line-height: 1;
  color: #174b83 !important;
}
.vmch-navigation .navbar > ul > li.vmch-home-item > a:hover i {
  color: #079db4 !important;
}

/* Slightly stronger, cleaner lettering inspired by the KIMS reference. */
@media (min-width: 992px) {
  .vmch-navigation .navbar > ul {
    gap: clamp(14px, 1.35vw, 18px) !important;
  }
  .vmch-navigation .navbar > ul > li > a {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    letter-spacing: .08px !important;
    color: #173f70 !important;
  }
  .vmch-navigation .navbar > ul > li.dropdown > a i {
    margin-left: 2px !important;
    font-size: 10px !important;
    color: #536f8d !important;
  }
}
@media (min-width: 1200px) {
  .vmch-navigation .navbar > ul {
    gap: 17px !important;
  }
}


/* REVISION 8 — KIMS-style medical home icon with a plus sign */
.vmch-navigation .navbar > ul > li.vmch-home-item > a {
  min-width: 28px !important;
  width: 28px;
  height: 60px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center !important;
  padding: 0 !important;
  color: #174b83 !important;
}
.vmch-navigation .navbar > ul > li.vmch-home-item > a .vmch-home-medical-icon {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
}
.vmch-navigation .navbar > ul > li.vmch-home-item > a:hover .vmch-home-medical-icon {
  color: #079db4;
}


/* REVISION 10 — admission popup form alignment and clean iframe */
.vmch-popup-form-panel {
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0 !important;
  height: 100%;
  overflow: hidden;
}
.vmch-popup-form-heading {
  flex: 0 0 auto;
  padding: 2px 4px 8px !important;
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
}
.vmch-popup-form-panel iframe {
  display: block;
  flex: 1 1 auto;
  width: 100% !important;
  min-height: 390px;
  height: 430px !important;
  border: 0 !important;
  border-radius: 7px;
  background: transparent !important;
}
@media (max-width: 767px) {
  .vmch-popup-form-panel {
    padding: 13px !important;
    gap: 5px;
  }
  .vmch-popup-form-panel iframe {
    min-height: 390px;
    height: 420px !important;
  }
}


/* REVISION 14 — compact admission enquiry panel */
.vmch-popup-form-panel {
  padding: 10px !important;
  gap: 5px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 430px !important;
  align-self: center;
  overflow: hidden;
}
.vmch-popup-form-heading {
  padding: 0 2px 3px !important;
  margin: 0 !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
}
.vmch-popup-form-panel iframe {
  display: block;
  width: 100% !important;
  height: 370px !important;
  min-height: 370px !important;
  max-height: 370px !important;
  flex: 0 0 370px !important;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
}
@media (max-width: 767px) {
  .vmch-popup-form-panel {
    max-height: none !important;
    padding: 10px !important;
  }
  .vmch-popup-form-panel iframe {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
    flex-basis: 380px !important;
  }
}


/* REVISION 15 — compact popup, remove oversized blue form surround */
.vmch-popup-form-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 7px !important;
  gap: 3px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 350px !important;
  background: #ffffff !important;
  border: 1px solid #e6edf1 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.vmch-popup-form-heading {
  color: #087f98 !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  padding: 0 0 2px !important;
  margin: 0 !important;
}
.vmch-popup-form-panel iframe {
  display: block !important;
  width: 100% !important;
  height: 320px !important;
  min-height: 320px !important;
  max-height: 320px !important;
  flex: 0 0 320px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
@media (max-width: 767px) {
  .vmch-popup-form-panel {
    padding: 6px !important;
    gap: 2px !important;
    max-height: 340px !important;
  }
  .vmch-popup-form-panel iframe {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    flex-basis: 320px !important;
  }
}


/* REVISION 16 — refined admission enquiry popup */
.vmch-admission-modal .vmch-popup-form-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  min-height: 410px !important;
  height: 100% !important;
  max-height: 460px !important;
  padding: 16px 14px 14px !important;
  gap: 7px !important;
  background: linear-gradient(160deg, #ffffff 0%, #f4fafc 100%) !important;
  border: 1px solid #dce9ee !important;
  border-top: 4px solid #0798ad !important;
  border-radius: 13px !important;
  box-shadow: 0 8px 24px rgba(25, 72, 91, .08) !important;
  overflow: hidden !important;
}
.vmch-admission-modal .vmch-popup-form-heading {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 1px 4px 4px !important;
  color: #075b78 !important;
  text-align: center !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: .1px !important;
}
.vmch-admission-modal .vmch-popup-form-panel iframe {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 390px !important;
  min-height: 390px !important;
  max-height: 390px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
}
@media (max-width: 767px) {
  .vmch-admission-modal .vmch-popup-form-panel {
    min-height: 405px !important;
    height: auto !important;
    max-height: 450px !important;
    padding: 13px 10px 12px !important;
    gap: 6px !important;
  }
  .vmch-admission-modal .vmch-popup-form-heading {
    font-size: 20px !important;
  }
  .vmch-admission-modal .vmch-popup-form-panel iframe {
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
  }
}
