/* =============================================
   BWERA GENERAL HOSPITAL - Main Stylesheet
   Responsive, Cross-Browser Compatible
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background: #f5f7fa;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --green:    #1a7c3e;
  --green-dk: #145f30;
  --green-lt: #e8f5ee;
  --red:      #c0392b;
  --gold:     #f0a500;
  --white:    #ffffff;
  --gray:     #f5f7fa;
  --gray-dk:  #6c757d;
  --shadow:   0 4px 20px rgba(0,0,0,0.10);
  --radius:   10px;
  --transition: 0.3s ease;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--green-dk);
  color: #fff;
  font-size: 0.82rem;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--gold); }

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 10px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}
.logo-text h1 {
  font-size: 0.92rem;
  color: var(--green-dk);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.logo-text p {
  font-size: 0.65rem;
  color: var(--gray-dk);
}

/* NAV - old header nav (scoped, not used in main-nav-bar) */
header nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
header nav ul li a {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
header nav ul li a:hover,
header nav ul li a.active {
  background: var(--green);
  color: #fff;
}
header nav ul li a.emergency-link {
  background: var(--red);
  color: #fff;
  animation: pulse 2s infinite;
}

/* ===== MAIN NAV BAR - all ul/li/a reset ===== */
/* Ensure dropdown ULs are always hidden by default - override nav ul flex */
.main-nav-bar nav ul {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Top-level list = flex row */
.main-nav-bar nav > ul {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}
/* ALL dropdown/sub-dropdown lists: hidden by default - strongest possible rule */
.main-nav-bar nav ul ul,
.main-nav-bar .dropdown,
.main-nav-bar .sub-dropdown {
  display: none !important;
}
/* Show dropdown on hover or .dd-open class */
.main-nav-bar nav > ul > li:hover > ul,
.main-nav-bar nav > ul > li.dd-open > ul {
  display: block !important;
}
/* Show sub-dropdown on hover or .sub-open class */
.main-nav-bar .dropdown > li.has-sub:hover > ul,
.main-nav-bar .dropdown > li.has-sub.sub-open > ul {
  display: block !important;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-dk);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* =============================================
   CONTAINER
   ============================================= */
.container {
  width: 94%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-dk);
  min-height: 360px;
}
.hero-slides { position: relative; width: 100%; height: 360px; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-1 { background: linear-gradient(135deg, #1a7c3e 0%, #145f30 60%, #0d4222 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #1a3a7c 0%, #0d2654 60%, #061835 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #7c1a1a 0%, #5f1414 60%, #42100d 100%); }

.hero-content {
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  max-width: 760px;
}
.hero-content .badge {
  display: inline-block;
  background: var(--gold);
  color: #222;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hero-content p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  opacity: 0.92;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary { background: var(--gold); color: #222; border-color: var(--gold); }
.btn-primary:hover { background: #d4920a; border-color: #d4920a; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green-dk); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #a93226; border-color: #a93226; }

/* Slider controls */
.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.4); }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition);
}
.hero-dots span.active { background: #fff; }

/* =============================================
   QUICK INFO BAR
   ============================================= */
.quick-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px 0;
}
.quick-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quick-item .icon {
  width: 44px; height: 44px;
  background: var(--green-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.quick-item .text strong { display: block; font-size: 0.88rem; color: #222; }
.quick-item .text span { font-size: 0.78rem; color: var(--gray-dk); }

/* =============================================
   SECTIONS COMMON
   ============================================= */
section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title .tag {
  display: inline-block;
  background: var(--green-lt);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title h2 {
  font-size: 2rem;
  color: #1a1a2e;
  font-weight: 800;
  margin-bottom: 10px;
}
.section-title p { color: var(--gray-dk); max-width: 560px; margin: 0 auto; }
.divider {
  width: 60px; height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* =============================================
   STATS
   ============================================= */
.stats { background: var(--green); padding: 50px 0; }
.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-item .num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}
.stat-item .label { font-size: 0.88rem; opacity: 0.9; margin-top: 6px; }

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--gray); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--green);
  cursor: pointer;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}
.service-card .s-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  margin: 0 auto 18px;
  overflow: hidden;
  padding: 0;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: #1a1a2e; }
.service-card p { font-size: 0.88rem; color: var(--gray-dk); margin-bottom: 18px; line-height: 1.6; }
.service-card a { color: var(--green); font-weight: 700; font-size: 0.85rem; }
.service-card a:hover { color: var(--green-dk); }
.ic-green  { background: #e8f5ee; color: #1a7c3e; }
.ic-blue   { background: #e8f0fb; color: #1a3a7c; }
.ic-red    { background: #fdecea; color: #c0392b; }
.ic-purple { background: #f3e8fb; color: #7b2d8b; }
.ic-gold   { background: #fef9e7; color: #b7860a; }
.ic-teal   { background: #e8f8f5; color: #0e7c6e; }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--green-lt) 0%, #c8e6d4 100%);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 5rem;
  color: var(--green);
}
.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}
.about-badge span { display: block; font-size: 1.8rem; font-weight: 900; color: var(--gold); }
.about-text h2 { font-size: 1.9rem; font-weight: 800; color: #1a1a2e; margin-bottom: 16px; }
.about-text p { color: var(--gray-dk); margin-bottom: 16px; line-height: 1.8; }
.check-list { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #333;
}
.check-list li::before {
  content: "✓";
  background: var(--green);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   TEAM SECTION
   ============================================= */
.team { background: var(--gray); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
.team-avatar {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  background: var(--green-lt);
  color: var(--green);
  overflow: hidden;
  padding: 0;
}
.team-avatar img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-info { padding: 18px; }
.team-info h4 { font-size: 0.98rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.team-info p { font-size: 0.82rem; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.team-info small { font-size: 0.78rem; color: var(--gray-dk); }

/* =============================================
   GALLERY PREVIEW
   ============================================= */
.gallery-preview { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--green-lt);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--green);
  cursor: pointer;
  transition: transform var(--transition);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  font-size: 0;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-cta { text-align: center; margin-top: 30px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--green-dk); padding: 70px 0; }
.testimonials .section-title .tag { background: rgba(255,255,255,0.15); color: #fff; }
.testimonials .section-title h2 { color: #fff; }
.testimonials .section-title p { color: rgba(255,255,255,0.75); }
.testimonials .divider { background: var(--gold); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testi-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.testi-card .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.testi-card p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 18px; opacity: 0.92; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.9rem; }
.testi-author small { font-size: 0.78rem; opacity: 0.75; }

/* =============================================
   EMERGENCY BANNER
   ============================================= */
.emergency-banner {
  background: var(--red);
  color: #fff;
  padding: 28px 0;
}
.emergency-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.emergency-banner .left { display: flex; align-items: center; gap: 16px; }
.emergency-banner .e-icon {
  font-size: 2.5rem;
  animation: shake 0.8s infinite;
}
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25%       { transform: rotate(-8deg); }
  75%       { transform: rotate(8deg); }
}
.emergency-banner h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.emergency-banner p { font-size: 0.88rem; opacity: 0.9; }
.emergency-banner .phone {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

/* =============================================
   NEWS / ANNOUNCEMENTS
   ============================================= */
.news { background: var(--gray); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.news-card:hover { transform: translateY(-4px); }
.news-img {
  height: 160px;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--green);
  position: relative;
  overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.news-body { padding: 20px; }
.news-date { font-size: 0.78rem; color: var(--gray-dk); margin-bottom: 8px; }
.news-body h4 { font-size: 0.98rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.4; }
.news-body p { font-size: 0.84rem; color: var(--gray-dk); line-height: 1.6; margin-bottom: 14px; }
.news-body a { color: var(--green); font-weight: 600; font-size: 0.84rem; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: background var(--transition);
}
.social-links a:hover { background: var(--green); }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--green); padding-left: 4px; }
.footer-col .contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; align-items: flex-start; }
.footer-col .contact-item .ci { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--green); }

/* =============================================
   PAGE BANNER (inner pages)
   ============================================= */
.page-banner {
  background: linear-gradient(135deg, var(--green-dk) 0%, var(--green) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-banner h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.page-banner p { font-size: 1rem; opacity: 0.88; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { opacity: 0.7; }

/* =============================================
   SERVICE DETAIL PAGE
   ============================================= */
.service-detail { background: #fff; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
.service-main h2 { font-size: 1.7rem; font-weight: 800; color: #1a1a2e; margin-bottom: 16px; }
.service-main p { color: var(--gray-dk); line-height: 1.8; margin-bottom: 14px; }
.service-main ul { margin: 16px 0 24px 20px; }
.service-main ul li { color: var(--gray-dk); margin-bottom: 8px; line-height: 1.6; list-style: disc; }
.service-sidebar {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 90px;
}
.service-sidebar h3 { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 16px; }
.service-nav-list li { margin-bottom: 6px; }
.service-nav-list li a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.87rem;
  color: #333;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.service-nav-list li a:hover,
.service-nav-list li a.active {
  background: var(--green-lt);
  color: var(--green);
  border-left-color: var(--green);
}

/* =============================================
   GALLERY PAGE
   ============================================= */
.gallery-page { background: var(--gray); }
.upload-area {
  background: #fff;
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 32px;
}
.upload-area:hover, .upload-area.dragover {
  background: var(--green-lt);
  border-color: var(--green-dk);
}
.upload-area .upload-icon { font-size: 3.5rem; color: var(--green); margin-bottom: 14px; }
.upload-area h3 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.upload-area p { color: var(--gray-dk); font-size: 0.88rem; margin-bottom: 16px; }
.upload-area input[type="file"] { display: none; }
.upload-area label { cursor: pointer; }

/* Gallery Filter Tabs */
.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  color: #fff;
}

/* Gallery Grid */
.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--green-lt);
  height: 210px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--green);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,124,62,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 2rem;
}
.gallery-thumb:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { background: var(--gray); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: #1a1a2e; margin-bottom: 20px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ci-icon {
  width: 44px; height: 44px;
  background: var(--green-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ci-text strong { display: block; font-size: 0.9rem; color: #1a1a2e; margin-bottom: 3px; }
.ci-text span { font-size: 0.85rem; color: var(--gray-dk); line-height: 1.5; }
.map-embed {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  background: var(--green-lt);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  flex-direction: column;
  gap: 8px;
}

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; color: #1a1a2e; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: #fafafa;
  color: #333;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: var(--green-lt);
  border: 2px solid var(--green);
  color: var(--green-dk);
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* =============================================
   ABOUT PAGE EXTRAS
   ============================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--green);
}
.value-card .v-icon { font-size: 2.5rem; margin-bottom: 14px; }
.value-card h4 { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: var(--gray-dk); line-height: 1.6; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 3px;
  background: var(--green-lt);
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px; top: 4px;
  width: 14px; height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--green-lt);
}
.timeline-item h4 { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.timeline-item p { font-size: 0.85rem; color: var(--gray-dk); line-height: 1.6; }
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-lt);
  padding: 2px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
}

/* =============================================
   BACK TO TOP
   ============================================= */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 999;
  transition: background var(--transition);
}
#back-to-top:hover { background: var(--green-dk); }
#back-to-top.show { display: flex; }

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.pre-logo { font-size: 3rem; color: var(--green); animation: beat 1s infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}
.pre-text { font-size: 1rem; font-weight: 700; color: var(--green-dk); }
.pre-bar { width: 200px; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
.pre-bar-fill { height: 100%; background: var(--green); border-radius: 2px; animation: load 1.5s ease forwards; }
@keyframes load { from { width: 0; } to { width: 100%; } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .about-grid, .service-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h2 { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  nav { display: none; width: 100%; }
  nav.open {
    display: block;
    background: #fff;
    padding: 12px 0;
    border-top: 1px solid #eee;
  }
  nav.open ul { flex-direction: column; gap: 4px; }
  nav.open ul li a { display: block; padding: 10px 16px; border-radius: 6px; }
  .hamburger { display: flex; }
  .hero-slides { height: 320px; }
  .hero-content h2 { font-size: 1.3rem; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .emergency-banner .container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-slides { height: 280px; }
  .hero-content h2 { font-size: 1.1rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .logo-text h1 { font-size: 0.88rem; }
  .section-title h2 { font-size: 1.5rem; }
  .hero-prev, .hero-next { width: 36px; height: 36px; font-size: 1rem; }
  .contact-form-wrap { padding: 22px 16px; }
}

/* s-icon and team-avatar rules defined below */

/* ===== CORRECT image display for service icons and team avatars ===== */
.service-card .s-icon img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0;
  padding: 0;
}
.service-card .s-icon {
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.team-avatar {
  padding: 0;
  overflow: hidden;
}
.team-avatar img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

/* =============================================
   GOVERNMENT-STYLE HEADER & NAV
   Like Mbarara Regional Referral Hospital
   ============================================= */

/* Uganda Government top bar */
.gov-bar {
  background: #fcb913;
  padding: 4px 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  letter-spacing: 0.5px;
}
.gov-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.gov-bar span { opacity: 0.85; }

/* MOH Logo bar */
.moh-bar {
  background: #fff;
  border-bottom: 3px solid #1a7c3e;
  padding: 10px 0;
}
.moh-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.moh-logo-area { display: flex; align-items: center; gap: 14px; }
.moh-coat { width: 64px; height: 64px; flex-shrink: 0; }
.moh-text-area { display: flex; flex-direction: column; gap: 2px; }
.moh-ministry {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b7860a;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.moh-hospital {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.moh-location {
  font-size: 0.72rem;
  color: #6c757d;
  margin-top: 2px;
}
.moh-contact {
  text-align: right;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.7;
}
.moh-contact a { color: #1a7c3e; font-weight: 600; }
.moh-emg {
  background: #c0392b;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  animation: pulse 2s infinite;
}
.moh-emg a { color: #f0a500; font-size: 1rem; font-weight: 900; display: block; }

/* MAIN NAV BAR */
.main-nav-bar {
  background: #1a7c3e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
.main-nav-bar .container { display: flex; align-items: stretch; }
.main-nav-bar nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.main-nav-bar nav > ul > li {
  position: relative;
  flex-shrink: 0;
}
.main-nav-bar nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.main-nav-bar nav > ul > li > a:hover,
.main-nav-bar nav > ul > li > a.active {
  background: rgba(0,0,0,0.2);
}
.main-nav-bar nav > ul > li > a .arrow {
  font-size: 0.6rem;
  opacity: 0.7;
  margin-left: 2px;
}

/* Emergency button in nav */
.main-nav-bar nav > ul > li.nav-emg > a {
  background: #c0392b;
  animation: pulse 2s infinite;
}
.main-nav-bar nav > ul > li.nav-emg > a:hover { background: #a93226; }

/* Book button in nav */
.main-nav-bar nav > ul > li.nav-book > a {
  background: #f0a500;
  color: #1a1a2e;
  font-weight: 700;
}
.main-nav-bar nav > ul > li.nav-book > a:hover { background: #d4920a; }

/* Push emergency/book to right */
.main-nav-bar nav > ul > li.nav-spacer { flex: 1; }

/* DROPDOWN - positioning and styling only (display controlled by rules above) */
.main-nav-bar nav > ul > li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 2000;
  list-style: none;
  padding: 6px 0;
  border-top: 3px solid #f0a500;
}
.main-nav-bar nav > ul > li .dropdown > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.main-nav-bar nav > ul > li .dropdown > li > a:hover {
  background: #e8f5ee;
  color: #1a7c3e;
  border-left-color: #1a7c3e;
}
.main-nav-bar nav > ul > li .dropdown > li > a.dd-emg { color: #c0392b; }
.main-nav-bar nav > ul > li .dropdown > li > a.dd-emg:hover { background: #fdecea; border-left-color: #c0392b; }
.main-nav-bar nav > ul > li .dropdown > li > a.dd-staff { color: #1a1a2e; font-weight: 700; }
.main-nav-bar nav > ul > li .dropdown > li > a.dd-staff:hover { background: #f0f4f8; border-left-color: #1a1a2e; }
.main-nav-bar nav > ul > li .dropdown > li.dd-divider { height: 1px; background: #eee; margin: 4px 12px; padding: 0; }

/* Hamburger for mobile */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
  transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 900px) {
  .moh-contact { display: none; }
  .moh-emg { display: none; }
  .moh-hospital { font-size: 0.95rem; }
  .nav-hamburger { display: block; }
  .main-nav-bar nav > ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #1a7c3e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 999;
  }
  .main-nav-bar nav > ul.open { display: flex !important; }
  .main-nav-bar nav > ul > li > a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 18px; }
  .main-nav-bar nav > ul > li.nav-spacer { display: none; }
  .main-nav-bar nav > ul > li .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    background: rgba(0,0,0,0.15);
    display: none !important;
  }
  .main-nav-bar nav > ul > li.dd-open > .dropdown { display: block !important; }
  .main-nav-bar nav > ul > li .dropdown > li > a { color: rgba(255,255,255,0.9); padding: 10px 30px; font-size: 0.82rem; border-left: none; }
  .main-nav-bar nav > ul > li .dropdown > li > a:hover { background: rgba(255,255,255,0.15); color: #fff; }
  .main-nav-bar nav > ul > li .dropdown > li.dd-divider { background: rgba(255,255,255,0.2); margin: 2px 0; }
}
@media (max-width: 480px) {
  .moh-coat { width: 48px; height: 48px; }
  .moh-hospital { font-size: 0.82rem; }
}

/* =============================================
   NESTED (2-LEVEL) DROPDOWN MENUS
   ============================================= */
/* Sub-menu trigger */
.main-nav-bar nav > ul > li .dropdown > li.has-sub { position: relative; }
.main-nav-bar nav > ul > li .dropdown > li.has-sub > a::after {
  content: ' ›';
  float: right;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-left: 6px;
}
/* Sub-menu panel - positioning and styling only (display controlled above) */
.main-nav-bar nav > ul > li .dropdown > li.has-sub > .sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  min-width: 200px;
  border-radius: 0 8px 8px 0;
  box-shadow: 4px 4px 18px rgba(0,0,0,0.15);
  list-style: none;
  padding: 6px 0;
  border-top: 3px solid #1a7c3e;
  z-index: 3000;
}
.main-nav-bar nav > ul > li .dropdown > li.has-sub > .sub-dropdown > li > a {
  display: block;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.main-nav-bar nav > ul > li .dropdown > li.has-sub > .sub-dropdown > li > a:hover {
  background: #e8f5ee;
  color: #1a7c3e;
  border-left-color: #1a7c3e;
}

/* Dropdown section label */
.main-nav-bar .dropdown .dd-section {
  padding: 8px 18px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: default;
}

/* MOH logo image style */
.moh-coat-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Mobile nested dropdown */
@media (max-width: 900px) {
  .main-nav-bar nav > ul > li .dropdown > li.has-sub > .sub-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    background: rgba(0,0,0,0.08);
    border-left: 3px solid rgba(255,255,255,0.3);
    margin-left: 10px;
    display: none !important;
  }
  .main-nav-bar nav > ul > li .dropdown > li.has-sub.sub-open > .sub-dropdown { display: block !important; }
  .main-nav-bar nav > ul > li .dropdown > li.has-sub > a::after { content: ' ▾'; }
  .main-nav-bar nav > ul > li .dropdown > li.has-sub.sub-open > a::after { content: ' ▴'; }
  .main-nav-bar nav > ul > li .dropdown > li.has-sub > .sub-dropdown > li > a {
    color: rgba(255,255,255,0.85);
    padding: 8px 20px;
  }
}

/* =============================================
   FINAL NAV OVERRIDES - Bold menu + logo in nav
   ============================================= */

/* Bold all nav items with distinct styling */
.main-nav-bar nav > ul > li > a {
  font-weight: 800 !important;
  font-size: 0.87rem !important;
  letter-spacing: 0.2px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25) !important;
}

/* Distinct colour for Contact */
.main-nav-bar nav > ul > li.nav-contact > a {
  color: #ffe082 !important;
}

/* Book - gold/amber */
.main-nav-bar nav > ul > li.nav-book > a {
  background: #f0a500 !important;
  color: #1a1a2e !important;
  font-weight: 900 !important;
}

/* Emergency - red pulsing */
.main-nav-bar nav > ul > li.nav-emg > a {
  background: #c0392b !important;
  color: #fff !important;
  font-weight: 900 !important;
}

/* Logo inside nav bar */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 0;
  border-right: 1px solid rgba(255,255,255,0.2);
  margin-right: 4px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  display: block;
}
.nav-logo-text .nl1 {
  font-size: 0.62rem;
  font-weight: 700;
  color: #f0a500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.nav-logo-text .nl2 {
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}

/* MOH bar - make compact and clean */
.moh-coat-img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
}
.moh-hospital {
  font-size: 1rem !important;
}
.moh-bar {
  border-bottom: 3px solid #1a7c3e !important;
  padding: 10px 0 !important;
}

/* Mobile - hide logo text, keep image */
@media (max-width: 900px) {
  .nav-logo-text { display: none; }
  .nav-logo img { width: 36px !important; height: 36px !important; }
}

/* =============================================
   CLEAN 2-BAR HEADER DESIGN
   Bar 1: White identity bar with MOH logo
   Bar 2: Green sticky nav bar
   ============================================= */

/* Hide old bars since we use site-header now */
.gov-bar { display: none !important; }
.moh-bar { display: none !important; }
.nav-logo { display: none !important; }

/* BAR 1: Site Header (White) */
.site-header {
  background: #fff;
  border-bottom: 4px solid #1a7c3e;
  padding: 0;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

/* Logo + name area */
.sh-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.sh-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.sh-text { display: flex; flex-direction: column; gap: 2px; }
.sh-gov {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b7860a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.sh-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.sh-loc {
  font-size: 0.68rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Contact column */
.sh-contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  color: #444;
}
.sh-contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sh-contact-item span:first-child { font-size: 1rem; flex-shrink: 0; }
.sh-contact-item a { color: #1a7c3e; font-weight: 600; }

/* Emergency red box */
.sh-emg {
  background: #c0392b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-align: center;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.sh-emg-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
.sh-emg-num { display: block; font-size: 1.1rem; font-weight: 900; color: #f0a500; text-decoration: none; }
.sh-emg-num:hover { color: #fff; }
.sh-emg-sub { font-size: 0.68rem; opacity: 0.85; margin-top: 3px; }

/* BAR 2: Main nav bar — sticky */
.main-nav-bar {
  background: #1a7c3e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

/* Mobile */
@media (max-width: 900px) {
  .sh-contacts { display: none; }
  .sh-emg { display: none; }
  .sh-logo { width: 52px; height: 52px; }
  .sh-name { font-size: 0.88rem; }
  .sh-gov { display: none; }
}
@media (max-width: 480px) {
  .sh-logo { width: 42px; height: 42px; }
  .sh-name { font-size: 0.78rem; }
  .sh-loc { display: none; }
}

/* =============================================
   MBARARA-STYLE LAYOUT
   Single white identity bar + single compact green nav
   Logo appears on LEFT side of the green nav bar
   ============================================= */

/* Compact identity bar */
.site-header {
  background: #fff;
  border-bottom: 3px solid #1a7c3e;
  padding: 8px 0 !important;
}
.site-header-inner {
  padding: 6px 0 !important;
  gap: 12px !important;
}
.sh-logo { width: 64px !important; height: 64px !important; }
.sh-gov { font-size: 0.66rem !important; }
.sh-name { font-size: 1rem !important; }
.sh-loc { font-size: 0.65rem !important; }

/* GREEN NAV BAR: Logo on LEFT + menu items */
.main-nav-bar {
  background: #1a7c3e !important;
  padding: 0 !important;
}
.main-nav-bar .container {
  display: flex !important;
  align-items: stretch !important;
  padding: 0 !important;
}

/* Logo block inside nav */
.nav-logo-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-right: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  background: rgba(0,0,0,0.15);
  text-decoration: none;
}
.nav-logo-block img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
  display: block;
}
.nav-logo-block-text {
  line-height: 1.25;
}
.nav-logo-block-text .nlb1 {
  font-size: 0.6rem;
  font-weight: 700;
  color: #f0a500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
.nav-logo-block-text .nlb2 {
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  display: block;
}

/* Nav items: BOLD + coloured */
.main-nav-bar nav { flex: 1; }
.main-nav-bar nav > ul {
  display: flex !important;
  align-items: stretch;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.main-nav-bar nav > ul > li {
  position: relative;
  flex-shrink: 0;
}
.main-nav-bar nav > ul > li > a {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 13px 14px !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.main-nav-bar nav > ul > li > a:hover,
.main-nav-bar nav > ul > li > a.active {
  background: rgba(0,0,0,0.22) !important;
  color: #f0a500 !important;
}

/* Spacer */
.main-nav-bar nav > ul > li.nav-spacer { flex: 1; border: none; }

/* CONTACT — yellow */
.main-nav-bar nav > ul > li.nav-contact > a {
  color: #ffe082 !important;
}
/* BOOK — gold background */
.main-nav-bar nav > ul > li.nav-book > a {
  background: #f0a500 !important;
  color: #1a1a2e !important;
  font-weight: 900 !important;
  border-left: 2px solid rgba(0,0,0,0.1);
}
.main-nav-bar nav > ul > li.nav-book > a:hover {
  background: #d4920a !important;
  color: #fff !important;
}
/* EMERGENCY — red */
.main-nav-bar nav > ul > li.nav-emg > a {
  background: #c0392b !important;
  color: #fff !important;
  font-weight: 900 !important;
  animation: pulse 2s infinite;
}
.main-nav-bar nav > ul > li.nav-emg > a:hover {
  background: #a93226 !important;
}

/* Dropdown arrow */
.main-nav-bar nav > ul > li > a .arrow {
  font-size: 0.55rem !important;
  opacity: 0.7;
}

/* Hamburger */
.nav-hamburger {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 3px;
  background: #fff; border-radius: 2px; margin: 5px 0;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-hamburger { display: block !important; }
  .nav-logo-block-text { display: none; }
  .nav-logo-block img { width: 36px !important; height: 36px !important; }
  .sh-contacts { display: none !important; }
  .sh-emg { display: none !important; }
  .sh-name { font-size: 0.85rem !important; }
  .main-nav-bar nav > ul {
    display: none !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100%; left: 0; right: 0;
    background: #1a7c3e !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 999;
  }
  .main-nav-bar nav > ul.open { display: flex !important; }
  .main-nav-bar nav > ul > li > a {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    padding: 12px 16px !important;
    text-transform: none !important;
  }
  .main-nav-bar nav > ul > li.nav-spacer { display: none !important; }
}
