body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}
a { text-decoration: none; color: inherit; }
address, .address { font-size: 1rem; }
.header-top-full {
  width: 100vw;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  background: #fff;
}
.logo1, .logo2 { display: flex; align-items: center; }
.logo-img { width: 7vw; min-width: 80px; }
.logo-img2 { width: 5vw; min-width: 60px; }
.menu-container { flex: 1; text-align: center; }
.serve-text { color: #0467AA; font-size: 0.95rem; font-weight: bold; }
.hospital-name { color: #F86923; font-size: 3vw;
    white-space: nowrap;
    line-height: 1;
    font-weight: 700;
    font-style: bold; }
.address a { color: #0467AA; }

.navbar { width: 100vw; background: #fff; z-index: 1100; position: relative; }
.small-nav { display: flex; justify-content: space-between; padding: 0 2.5rem; background: #fff; align-items: center; transition: all 0.3s ease;}
.small-logo { height: 2.5rem;}
.nabsticky {  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.hidden { display: none !important; }
.main-menu-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0.15rem 2.5rem; background: #0467AA; color: #fff; }
.menu-item { display: flex; align-items: center; gap: 1 rem;}
.menu-link { color: #fff; font-family: 'Poppins', sans-serif; font-size:0.9rem; }

.divider { margin: 0 0.5rem; color: #ffffff; }
.book-appointment-btn {
  background: #F86923; color: #fff; padding: 0.15rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.9rem; margin-left: 1rem; transition:.3s;
}
.book-appointment-btn:hover { background: #ffd900; color: #000; }
.calendar-icon { margin-right: 0.7em; }
.menu-link {
  position: relative;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 3px;
  display: inline-block;
  transition: color 0.3s ease;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: #ffd900;
  transition: width 0.3s ease;
}

.menu-link:hover {
  color: #ffff;
}

.menu-link:hover::after {
  width: 100%;
}
.flyout { position: relative; display: inline-block; }
.flyout-toggle { background: none; border: none; color: #fff; cursor: pointer; }
.flyout-content {
  display: none; position: absolute; left: 0; top: 2.25rem;
  background: #fff; color: #0467AA; box-shadow: 0 2px 14px #1112;
  border-radius: 6px; min-width: 200px; z-index: 100;
  flex-direction: column; min-width: 10rem; font-size:0.9rem;
}
.flyout-content a {
  display: block; padding: 0.75em 1.2em; color: #0467AA;
  text-decoration: none; border-bottom: 1px solid #f1f1f1;
}
.flyout-content a:hover { background: #F5F2F2; }

.mobile-header { display: none; }
.mobile-header-sticky { position:fixed; left: 0; right:0; top:0; z-index:999; box-shadow: 0px 1px 5px #0001;}
.mobile-nav { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: .4rem 1rem; }
.mobile-logo { width:250px; }
.mobile-menu-btn { background: none; border: none; font-size: 2rem; color: #fa9700; }
.mobile-sidebar {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%; z-index: 2002;
  background: #fff; box-shadow: -2px 0 12px #2222; display: flex; flex-direction: column; transition: right .45s;
  padding: 1.5rem 1rem 1rem 1rem;
}
.mobile-sidebar.show { right: 0; }
.mobile-close-btn { position: absolute; top: 1rem; right: 1rem; background: none; font-size: 1.75rem; border: none; color: #F86923;}
.mobile-menu-list { list-style:none; padding:0;}
.mobile-menu-link { display: block; padding: 0.85rem 0; color: #fa5757; font-size:1.2em;font-weight:500;}
.mobile-menu-link:hover { border-bottom: 3px solid #ffd900; }
.mobile-menu-flyout { position: relative;}
.mobile-flyout-toggle { background:none; border:none; color:#fa5757; font-size:1.1em; padding:0.85rem 0; width: 100%; text-align: left;}
.mobile-flyout-content {
  display: none; background: #ececec; margin: .4rem 0 0 1rem; border-radius: 5px;
}
.mobile-flyout-content li { padding: .25rem 1rem;}

.mobile-bottom-nav {
  display: none; position: fixed; left: 0; bottom: 0; width: 100%;
  background: linear-gradient(to right, #fa9700, #ff6600);
  z-index: 3001; justify-content: space-evenly; align-items: center;
  transition: .3s;
  box-shadow: 0 -1px 5px #0002;
  padding: .2rem 0 .1rem 0;
}
.bottom-nav-btn {
  background: none; border: none; color: #fff;
  padding: 0.3rem 0.2rem; display: flex; flex-direction: column;
  align-items: center; font-size: 1.2em;
}
.bottom-nav-btn span:last-child {
  font-size: 0.77em; margin-top: 2px; text-transform: uppercase;
}
.bottom-nav-btn:hover span, .bottom-nav-btn:focus span { color:#ffd900; }

.appointment-modal {
  position: fixed; top: 18vh; left: 50%; transform: translateX(-50%);
  background: #fff; padding: 2em 1.25em 1.1em 1.25em; border-radius: 14px;
  box-shadow: 0 2px 26px #1a16; min-width: 260px; z-index: 9999; width: 90vw; max-width: 340px;
}
.hidden { display: none !important;}
.close-appoint-modal { position: absolute; top: .75em; right: 1em; border: none; background: none; font-size: 1.5em; color: #F86923;}
.appointment-modal select { width: 100%; margin-bottom: .95em; padding: .7em; border-radius: 5px; border: 1px solid #888; }
.book-appointment-modalbtn { background:#fa9700; color:#fff; padding:.7em 1.3em; border-radius: 4px; border:none; width:100%; font-weight: 600;}
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to right, #fa9700, #ff6600);
  z-index: 3001;
  justify-content: space-evenly;
  align-items: center;
  padding: 0.3rem 0;
  box-shadow: 0 -1px 5px #0002;
}

.bottom-nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  text-align: center;
}

.bottom-nav-btn span:first-child {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #fa9700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.bottom-nav-btn span:last-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  line-height: 1;
}

.bottom-nav-btn:hover span:first-child {
  background: #ffd900;
  color: #000;
}

.bottom-nav-btn:focus span:first-child {
  outline: 2px solid #fff;
}
/* ===== Desktop dropdown FIX ===== */

/* ===== Desktop dropdown ===== */
.flyout-content {
  display: none;
  position: absolute;
  left: 0;
  top: 2.25rem;
  background: #fff;
  color: #0467AA;
  box-shadow: 0 2px 14px #1112;
  border-radius: 6px;
  z-index: 100;
}

/* OPEN state (JS controlled) */
.flyout.open .flyout-content {
  display: grid;
}



/* ===== Department Grid (Desktop) ===== */
.department-grid {
  display: none; /* hidden by default */
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 12px;
  padding: 12px;
  min-width: 420px;   /* IMPORTANT for 4 columns */
  max-width: 520px;
  max-height: 320px;
  overflow-y: auto;
  box-sizing: border-box;
}
/* ===== Department Grid FIX ===== */

.department-item {
  background: #f7f9fc;
  border-radius: 8px;
  text-align: center;
  padding: 14px 20px;          /* ⬅ more inner spacing */
  text-decoration: none;
  color: #0467AA;
  font-size: 0.85rem;
  transition: 0.25s;
  min-height: 95px;           /* ⬅ prevents text touching bottom */
  display: flex;
 
  justify-content: center;    /* ⬅ vertical centering */
  align-items: center;
}

.department-item:hover {
  background: #ffd900;
  color: #000;
}
/* ===== Desktop dropdown OPEN FIX ===== */


/* ===== Department grid layout ===== */
#desktop-department-menu {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  padding: 12px;
  min-width: 420px;
  max-width: 820px;
  max-height: 520px;
  overflow-y: auto;
  box-sizing: border-box;
}

.department-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.department-name {
  line-height: 1.25;
  padding: 0 4px;             /* ⬅ text never touches wall */
 
  hyphens: auto;
  max-width: 100%;
  word-break:keep-all;
}
/* ===== Mobile Department Fix ===== */
.mobile-flyout-content {
  max-height: 55vh;
  overflow-y: auto;
}

.mobile-menu-link {
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
  padding-right: 10px;
}
.department-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: #0467AA;
}

.department-item:hover .department-icon {
  color: #000;
}
.department-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.department-icon {
  display: block;              /* force block */
  font-size: 1.8rem;
  line-height: 1;
    color:#f86823;
}

#blog-section {
max-width:90% !important;
}
@media (max-width: 768px) {
  .header-top-full, .navbar { display: none !important; }
  .mobile-header { display: block !important;}
  .mobile-bottom-nav { display: flex !important;}
}
@media (min-width: 769px) {
  .mobile-header, .mobile-bottom-nav { display: none !important;}
  .header-top-full { display: flex !important;}
  .navbar { display: block !important;}
}

/* ===== Desktop Hover Dropdown ===== */
@media (min-width: 769px) {

  .flyout:hover .flyout-content {
    display: grid;
  }

  .flyout-content {
    animation: fadeDown 0.25s ease;
  }

  @keyframes fadeDown {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

}
