/*
Theme Name: kmnu hospital
Author: VM Softsys
Description: Custom theme for KMNU Hospital
Version: 1.0.0
*/

:root {
  --brand-blue: #0065a5;
  --brand-black: #4d4d4d;
  --brand-white: #ffffff;
  --brand-orange: #ff9933;
  --brand-red: #cc3333;
  --brand-light-blue: #00a3e0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--brand-black);
  background-color: var(--brand-white);
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 1640px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 992px) {
  .kmnu-standard-hero {
    padding: 150px 0 100px;
  }

  .kmnu-standard-hero h1 {
    font-size: 44px;
  }

  .kmnu-standard-hero p {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .kmnu-standard-hero {
    padding: 130px 0 80px;
  }

  .kmnu-standard-hero h1 {
    font-size: 34px;
  }

  .kmnu-standard-hero p {
    font-size: 16px;
  }

  .kmnu-standard-hero-wave svg {
    height: 70px;
  }
}

/* Header - Upper Section */
.header-upper {
  background: var(--brand-white);
  padding: 20px 0;
  position: relative;
  z-index: 120;
  border-bottom: 1px solid #f0f0f0;
}

.header-upper .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 219px;
  height: auto;
}

.header-top-badge {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 4px;
}

.header-top-badge img {
  display: block;
  max-width: 100%;
  max-height: 141px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.header-mobile-badge {
  display: none;
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn {
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--brand-white);
  display: inline-block;
  transition: 0.3s;
}

.btn-appointment {
  background: var(--brand-light-blue);
}
.btn-emergency {
  background: var(--brand-red);
}

.btn-call {
  background: var(--brand-orange);
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--brand-white) !important;
}

/* Header - Navigation */
.site-header {
  width: 100%;
  background: var(--brand-white) !important;
  z-index: 110;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.home .site-header,
.page-template-template-locations .site-header,
.page-template-template-contact .site-header,
.page-template-template-checkup .site-header,
.page-template-template-doctors .site-header,
.page-template-template-specialities .site-header,
.page-template-template-blogs .site-header,
.single-post .site-header,
.single-doctors .site-header,
.single-doctor .site-header,
.single-locations .site-header,
.single-departments .site-header,
.single-preventive_checkup .site-header,
.category .site-header {
  /* margin-top: 20px;  */
  margin-bottom: -100px; /* Re-balanced to overlap */
  background: transparent !important; /* Make transparent */
  box-shadow: none; /* Remove shadow */
  position: relative;
  z-index: 130;
}

.home .main-navigation ul li a {
  color: #fff; /* White links for better contrast on blue background */
}

.home .mobile-menu-toggle,
.page-template-template-doctors .mobile-menu-toggle,
.page-template-template-specialities .mobile-menu-toggle,
.page-template-template-blogs .mobile-menu-toggle,
.single-post .mobile-menu-toggle,
.single-doctors .mobile-menu-toggle,
.single-doctor .mobile-menu-toggle,
.single-locations .mobile-menu-toggle,
.single-departments .mobile-menu-toggle {
  color: #fff; /* White bars for mobile toggle */
}

.site-header .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 80px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul .menu-item-has-children > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.main-navigation ul .menu-item-has-children > a::after {
  content: '\f067'; /* fa-plus */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
  transition: 0.3s;
}

.main-navigation ul .menu-item-has-children:hover > a::after {
  content: '\f068'; /* fa-minus */
}

.main-navigation ul li a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 0;
  display: block;
  font-size: 18px;
  transition: 0.3s;
}

.main-navigation ul .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand-white);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 1000;
  gap: 0;
  padding: 10px 0;
}

.main-navigation ul li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul .sub-menu li {
  width: 100%;
}

.main-navigation ul .sub-menu li a {
  padding: 12px 25px;
  color: var(--brand-blue) !important;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.main-navigation ul .sub-menu li a:hover {
  background: #f0f8ff;
  color: var(--brand-orange) !important;
}

/* Ensure links in the transparent header work */
.home .site-header .main-navigation ul li a,
.single-departments .site-header .main-navigation ul li a,
.page-template-template-about .site-header .main-navigation ul li a,
.page-template-template-locations .site-header .main-navigation ul li a,
.page-template-template-contact .site-header .main-navigation ul li a,
.page-template-template-checkup .site-header .main-navigation ul li a,
.page-template-template-doctors .site-header .main-navigation ul li a,
.page-template-template-specialities .site-header .main-navigation ul li a,
.page-template-template-blogs .site-header .main-navigation ul li a,
.single-post .site-header .main-navigation ul li a,
.single-doctors .site-header .main-navigation ul li a,
.single-doctor .site-header .main-navigation ul li a,
.single-locations .site-header .main-navigation ul li a,
.single-preventive_checkup .site-header .main-navigation ul li a,
.category .site-header .main-navigation ul li a {
  color: #fff;
}

/* BUT dropdown links should stay blue/dark on white bg */
.home .site-header .main-navigation ul li .sub-menu a,
.single-departments .site-header .main-navigation ul li .sub-menu a,
.page-template-template-about .site-header .main-navigation ul li .sub-menu a,
.page-template-template-locations .site-header .main-navigation ul li .sub-menu a,
.page-template-template-contact .site-header .main-navigation ul li .sub-menu a,
.page-template-template-checkup .site-header .main-navigation ul li .sub-menu a,
.page-template-template-doctors .site-header .main-navigation ul li .sub-menu a,
.page-template-template-specialities .site-header .main-navigation ul li .sub-menu a,
.page-template-template-blogs .site-header .main-navigation ul li .sub-menu a,
.single-post .site-header .main-navigation ul li .sub-menu a,
.single-doctors .site-header .main-navigation ul li .sub-menu a,
.single-doctor .site-header .main-navigation ul li .sub-menu a,
.single-locations .site-header .main-navigation ul li .sub-menu a,
.single-preventive_checkup .site-header .main-navigation ul li .sub-menu a,
.category .site-header .main-navigation ul li .sub-menu a {
  color: var(--brand-blue) !important;
}

/* ===== INTERACTIVE MEGA MENU ===== */
.site-header .container {
  position: relative;
}

/* Shared Contact-style banner for listing and single pages */
.kmnu-standard-hero {
  background: linear-gradient(135deg, #00468b 0%, #0065a5 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 180px 0 140px;
}

.kmnu-standard-hero .container {
  position: relative;
  z-index: 2;
}

.kmnu-standard-hero h1 {
  color: #fff;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 22px;
  max-width: 1050px;
}

.kmnu-standard-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 780px;
}

.kmnu-standard-hero-meta {
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.kmnu-standard-hero-meta a {
  color: #fff;
  text-decoration: none;
}

.kmnu-standard-hero-meta a:hover {
  color: var(--brand-orange);
}

.kmnu-standard-hero-wave {
  bottom: -5px;
  left: 0;
  line-height: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.kmnu-standard-hero-wave svg {
  display: block;
  height: 100px;
  width: 100%;
}

.main-navigation ul li.has-mega-menu {
  position: static;
}

.main-navigation ul li.has-mega-menu .kmnu-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 24px 24px;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.main-navigation ul li.has-mega-menu:hover .kmnu-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kmnu-mega-menu .mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kmnu-mega-menu .mega-item {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 15px 20px !important;
  border-radius: 12px;
  background: transparent;
  color: var(--brand-blue) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  transition: 0.3s;
  border: 1px solid transparent;
}

.kmnu-mega-menu .mega-item::after {
  display: none !important; /* Hide the plus icon for inner grid links */
}

.kmnu-mega-menu .mega-item:hover {
  background: #f8fbff;
  border-color: #e0efff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 101, 165, 0.05);
}

.kmnu-mega-menu .mega-icon {
  width: 45px;
  height: 45px;
  background: #f0f8ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: 0.3s;
}

.kmnu-mega-menu .mega-icon i,
.site-header .kmnu-mega-menu .mega-icon i {
  color: var(--brand-blue) !important; /* Force override site-header white rule */
}

.kmnu-mega-menu .mega-item:hover .mega-icon {
  background: var(--brand-orange);
  transform: scale(1.1) rotate(5deg);
}

.kmnu-mega-menu .mega-item:hover .mega-icon i,
.site-header .kmnu-mega-menu .mega-item:hover .mega-icon i {
  color: #fff !important;
}

.kmnu-mega-menu .mega-footer {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #f0f2f5;
  text-align: center;
}

.kmnu-mega-menu .mega-btn {
  display: inline-block !important;
  padding: 14px 35px !important;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue) !important;
  border-radius: 50px;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 14px !important;
  letter-spacing: 1px;
}

.kmnu-mega-menu .mega-btn:hover {
  background: var(--brand-blue);
  color: #fff !important;
}

.kmnu-mega-menu .mega-btn i {
  margin-left: 8px;
  transition: 0.3s;
}

.kmnu-mega-menu .mega-btn:hover i {
  transform: translateX(5px);
}

/* Mega Menu Responsiveness */
@media (max-width: 1100px) {
  .kmnu-mega-menu .mega-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .kmnu-mega-menu .mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-navigation ul li.has-mega-menu .kmnu-mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 1px solid #eee;
    padding: 15px;
    margin-top: 10px;
    width: 100%;
    display: none; /* Let a mobile toggle handle it if JS is active, otherwise hidden in pure CSS for now unless structure allows */
  }
  
  .main-navigation ul li.has-mega-menu:hover .kmnu-mega-menu,
  .main-navigation ul li.has-mega-menu:focus-within .kmnu-mega-menu {
    display: flex;
  }

  .kmnu-mega-menu .mega-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.mobile-menu-toggle {
  color: var(--brand-blue);
  font-size: 24px;
  margin-left: 30px;
  cursor: pointer;
}

/* Hero Section - FINAL FIX */
.hero-section {
  position: relative;
  min-height: 850px;
  background: url("../../uploads/2026/04/KMNU_Home-Assets-01-scaled.webp")
    center bottom / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
  color: var(--brand-white);
  padding-top: 100px;
}

.hero-content h1 {
  font-size: 72px;
  line-height: 1.1;
  margin: 0 0 25px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 45px;
  opacity: 1;
  max-width: 650px;
}

.btn-learn-more {
  background: var(--brand-white);
  color: #4d4d4d;
  padding: 15px 45px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Image Block (No longer absolute) */
.hero-image-block {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.doctor-group-wrap {
  position: relative;
}

.doctors-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Search on Waves */
.hero-search-area {
  margin-top: 80px;
}

.search-bar-wrap {
  background: var(--brand-white);
  padding: 8px;
  border-radius: 12px;
  display: flex;
  max-width: 650px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.search-bar-wrap input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 17px;
  outline: none;
  color: var(--brand-black);
}

.btn-search {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  padding: 0 30px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.hero-filters {
  display: flex;
  gap: 40px;
  margin-top: 25px; /* Better grouping with search bar */
}

.filter-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.filter-group select {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0, 101, 165, 0.5); /* Brand blue with transparency for the line */
  color: var(--brand-blue); /* Darker blue text for visibility */
  font-size: 18px;
  padding: 10px 30px 10px 0;
  width: 260px;
  outline: none;
  cursor: pointer;
  font-weight: 700;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230065a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right center;
}

.filter-group select option {
  color: var(--brand-black);
}

.connect-icon {
  width: 55px;
  height: 55px;
  background: var(--brand-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.connect-text h4 {
  margin: 0;
  font-size: 18px;
  color: var(--brand-black);
  font-weight: 700;
}
.connect-text p {
  margin: 0;
  font-size: 14px;
  color: #777;
}

/* Home Services Section */
.home-services {
  padding: 100px 0;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.service-item {
  background: var(--brand-white);
  padding: 50px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* FOOTER STYLING - ABSOLUTE FIX */
.footer-subscription {
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 60px 0;
  text-align: center;
}

.footer-subscription h2 {
  font-size: 38px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-subscription p {
  font-size: 19px;
  margin-bottom: 35px;
  opacity: 0.95;
}

.footer-subscription .subscription-message {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}

.footer-subscription .subscription-message-error {
  background: #fff2f2;
  color: #b42318;
}

.subscription-form {
  display: flex;
  justify-content: center;
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  align-items: center;
}

.subscription-form .input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 15px;
  color: #888;
}

.subscription-form .input-wrap i {
  font-size: 18px;
}

.subscription-form input {
  border: none;
  padding: 12px;
  width: 100%;
  font-size: 17px;
  outline: none;
  color: var(--brand-black);
}

.btn-subscribe {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 45px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
}

.btn-subscribe:hover {
  background: #fff;
  color: var(--brand-blue);
}

.site-footer {
  background: #fff;
  color: var(--brand-black);
  padding-top: 60px;
}

.footer-main {
  display: grid !important;
  grid-template-columns: 2.2fr 1.2fr 1.5fr 1.2fr 1.2fr !important;
  gap: 30px;
  padding-bottom: 50px;
}

.footer-col h3 {
  font-size: 24px;
  color: var(--brand-blue);
  margin-bottom: 20px;
  font-weight: 800;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  text-decoration: none;
  color: var(--brand-black);
  font-size: 18px;
  transition: 0.3s;
  font-weight: 500;
}

.footer-col ul li a:hover {
  color: var(--brand-blue);
}

.footer-logo {
  width: 180px;
  margin-bottom: 30px;
  height: auto;
}

.footer-accreditation-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -12px 0 24px;
}

.footer-accreditation-logos img {
  width: auto;
  max-width: 84px;
  max-height: 72px;
  object-fit: contain;
}

.footer-address h3 {
  margin-top: 20px;
}
.footer-address p {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.footer-notice {
  background: #ffb347;
  padding: 25px 0;
  text-align: center;
}

.footer-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  font-weight: 600;
}

.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid #f0f0f0;
}

.footer-bottom .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.copyright,
.footer-bottom-links {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-blue);
}

.footer-bottom-links a {
  text-decoration: none;
  color: var(--brand-blue);
}

@media (max-width: 1200px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr !important;
  }
}

/* Departments Section */
.departments-section {
  padding: 100px 0;
  background: var(--brand-white);
}

.dept-row {
  display: flex;
  align-items: center; /* Centering as in design */
  gap: 80px;
}

.dept-image {
  flex: 1.2;
}

.dept-main-img {
  width: 100%;
  border-radius: 40px; /* Highly rounded as in design */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: block;
  transition: opacity 0.5s ease-in-out; /* Smooth transition */
}

.dept-content {
  flex: 1;
}

.dept-header h2 {
  font-size: 36px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 20px;
}

.dept-header p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 480px; /* Fixed height for scrollbar */
  overflow-y: auto;
  padding-right: 15px; /* Space for scrollbar */
}

/* Custom Scrollbar Styling */
.dept-list::-webkit-scrollbar {
  width: 8px;
}

.dept-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.dept-list::-webkit-scrollbar-thumb {
  background: var(--brand-blue);
  border-radius: 10px;
}

.dept-list::-webkit-scrollbar-thumb:hover {
  background: var(--brand-black);
}

.dept-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px 30px;
  border-radius: 20px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: transparent;
  width: 100%;
  max-width: 550px;
  color: var(--brand-black);
  text-decoration: none;
}

.dept-item:hover {
  background: #fcfcfc;
  color: var(--brand-black);
  text-decoration: none;
}

.dept-item.active {
  background: linear-gradient(135deg, #0065a5 0%, #00a3e0 100%);
  color: #fff !important;
  box-shadow: 0 15px 35px rgba(0, 101, 165, 0.3);
}

.dept-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 50%;
  background: #f0f4f8; /* Soft background */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--brand-blue);
  transition: 0.3s;
}

.dept-icon i {
  color: inherit;
  line-height: 1;
}

.dept-item.active .dept-icon {
  background: #fff;
  color: var(--brand-blue);
}

.dept-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 5px;
  color: inherit;
}

.dept-info p {
  font-size: 16px;
  margin: 0;
  color: inherit;
  opacity: 0.9;
}

/* Mobile Responsiveness for Departments */
@media (max-width: 1200px) {
  .dept-row {
    flex-direction: column;
    gap: 50px;
  }
}

/* Specialists Section */
.specialists-section {
  padding: 100px 0;
  background: #fff;
}

.specialists-header {
  margin-bottom: 50px;
}

.specialists-header h2 {
  font-size: 42px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 25px;
}

.specialists-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-search {
  display: flex;
  background: var(--brand-blue);
  border-radius: 5px;
  max-width: 350px;
  width: 100%;
}

.doc-search input {
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: #fff;
  font-size: 18px;
  outline: none;
  flex: 1;
}

.doc-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.doc-search button {
  background: #fff;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 0 15px;
  margin: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

.slider-arrows {
  display: flex;
  gap: 15px;
}

.slider-arrows button {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-size: 40px;
  cursor: pointer;
  transition: 0.3s;
}

.slider-arrows button:hover {
  color: var(--brand-black);
}

.doctors-grid {
  display: grid;
  grid-auto-flow: column; /* Keep everything in one row */
  grid-auto-columns: 280px; /* Fixed width for responsive columns */
  gap: 20px;
}

.doctor-card {
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.doc-image {
  background: #000;
  height: 280px; /* Reduced height for smaller cards */
  overflow: hidden;
}

.doc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.doc-info {
  padding: 25px 20px;
}

.doc-info h3 {
  font-size: 18px; /* Slightly smaller name */
  color: #333;
  font-weight: 800;
  margin-bottom: 5px;
}

.doc-qualification {
  font-size: 14px; /* Smaller qualification */
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.2;
}

.doc-profile {
  font-size: 13px; /* Smaller profile tagline */
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
  min-height: 36px;
}

.btn-profile {
  display: block;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}

.btn-profile:hover {
  background: var(--brand-black);
}

/* Response for grid */
@media (max-width: 1200px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  .specialists-controls {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* Specialists Section - Native Scroll Fix */
.specialists-slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  scrollbar-width: none; /* Hide for Firefox */
  -ms-overflow-style: none; /* Hide for IE/Edge */
}

.specialists-slider-container::-webkit-scrollbar {
  display: none; /* Hide for Chrome/Safari/Opera */
}
.doctors-grid {
  display: flex !important;
  gap: 20px;
  padding: 20px 0;
  width: max-content; /* Ensure items stay in a row */
}

.doctor-card {
  width: 320px; /* Bigger width as in mockup */
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center; /* Center everything */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.doc-image {
  background: #000;
  height: 320px; /* Square proportions */
  overflow: hidden;
}

.doc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-info {
  padding: 25px 20px;
  background: #f8f9fa; /* Slightly lighter gray like design */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.doc-info h3 {
  font-size: 20px; /* Slightly larger heading */
  color: #333;
  font-weight: 800;
  margin-bottom: 5px;
}

.doc-qualification {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  margin-bottom: 5px;
  line-height: 1.3;
}

.doc-profile {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
  min-height: 36px;
  font-weight: 400;
}

.btn-profile {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  padding: 10px 30px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}

.btn-profile:hover {
  background: var(--brand-black);
}

/* Hospitals Section */
.hospitals-section {
  padding: 100px 0;
  background: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

.hospitals-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  position: relative;
}

.hospitals-title-wrap h2 {
  font-size: 54px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.hospitals-title-wrap p {
  font-size: 20px;
  color: #444;
  max-width: 800px;
  line-height: 1.5;
}

.hospitals-slider-wrapper {
  position: relative;
  width: 100%;
}

/* The "Right Shifted Box" to mask the left side */
.hospitals-mask-left {
  position: absolute;
  top: -20px;
  left: 0;
  width: calc((100vw - 1600px) / 2);
  height: calc(100% + 40px);
  background: #fff;
  z-index: 20;
}

@media (max-width: 1640px) {
  .hospitals-mask-left {
    width: 2.5%; /* Match container width 95% */
  }
}

.hospitals-slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-left: calc((100vw - 1600px) / 2);
  position: relative;
  z-index: 10;
}

@media (max-width: 1640px) {
  .hospitals-slider-container {
    padding-left: 2.5%;
  }
}

.hospitals-slider-container::-webkit-scrollbar {
  display: none;
}

.hospitals-grid {
  display: flex !important;
  gap: 30px;
  padding: 20px 0;
  width: max-content;
}

.hospital-card {
  width: 480px; /* Slightly wider cards as in mockup */
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #f2f2f2;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hosp-image {
  height: 340px;
  position: relative;
  overflow: hidden;
}

.hosp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s;
}

.get-directions {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: none;
  color: #fff;
  padding: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Helps white text on image */
}

.get-directions:hover {
  color: var(--brand-blue);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hosp-info {
  padding: 35px;
}

.hosp-info h3 {
  font-size: 26px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hosp-rating {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.google-ico {
  width: 28px;
  height: 28px;
}

.stars {
  color: #ffc107; /* Golden star color from mockup */
  font-size: 22px;
  display: flex;
  gap: 5px;
}

.rating-num {
  font-weight: 700;
  font-size: 22px;
  color: #666;
  margin-left: 5px;
}

.hosp-btns {
  margin-top: 30px;
}

.hospitals-controls button {
  color: var(--brand-blue) !important;
}

/* Responsive Overrides */
@media (max-width: 1640px) {
  .hospitals-mask-left,
  .hospitals-slider-container {
    padding-left: 2.5%;
    width: 2.5%;
  }
  .hospitals-slider-container {
    width: auto;
  }
}

@media (max-width: 1200px) {
  .hospital-card {
    width: 400px;
  }
  .hospitals-title-wrap h2 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .hospitals-section {
    padding: 60px 0;
  }
  .hospitals-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hospital-card {
    width: 300px;
  }
  .hosp-image {
    height: 240px;
  }
  .hospitals-title-wrap h2 {
    font-size: 32px;
  }
  .hosp-info h3 {
    font-size: 22px;
  }
  .get-directions {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .hospital-card {
    width: 85vw; /* Show a peek of the next card */
  }
}

/* Video Showcase Section */
.video-showcase-section {
  padding: 100px 0;
  background: #fff;
}

.video-grid-outer {
  display: flex;
  gap: 60px;
  position: relative;
}

.video-column {
  flex: 1;
  text-align: center;
}

.video-divider {
  width: 2px;
  background: #eee;
}

.video-col-header h2 {
  font-size: 38px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 15px;
}

.video-col-header p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.video-slider-container {
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  margin-bottom: 25px;
}

.video-cards-row {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.video-card {
  min-width: 100%;
  padding: 0;
}

.video-thumb-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border: 4px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.play-overlay i {
  color: #fff;
  font-size: 40px;
  margin-left: 10px;
}

.video-thumb-wrap:hover .play-overlay {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.video-badge-name {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background: linear-gradient(
    135deg,
    rgba(0, 163, 224, 0.9) 0%,
    rgba(0, 101, 165, 0.9) 100%
  );
  color: #fff;
  padding: 20px 25px;
  text-align: left;
  border-top-right-radius: 20px;
  max-width: 300px;
}

.video-badge-name h4 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 800;
}

.video-badge-name p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.video-slider-controls {
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  .video-grid-outer {
    flex-direction: column;
    gap: 80px;
  }
  .video-divider {
    display: none;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: radial-gradient(circle at top, #e3f2fd 0%, #ffffff 70%);
  overflow: hidden;
}

.testimonials-header-new {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  margin-bottom: 80px;
}

.th-center {
  text-align: center;
}

.th-center h2 {
  font-size: 44px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 15px;
}

.th-center p {
  font-size: 18px;
  color: #444;
  margin: 0 auto;
  max-width: 700px;
}

.th-right {
  display: flex;
  justify-content: flex-end;
}

.testimonials-slider-container {
  overflow: hidden; /* Hide overflow to keep 3 on screen */
  padding: 40px 0;
}

.testimonials-slider-container::-webkit-scrollbar {
  display: none;
}

.testimonials-grid {
  display: flex !important;
  gap: 40px;
  width: 100%; /* Occupy container */
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 80px) / 3); /* Exactly 3 per row with 40px gap */
  background: #fff;
  border-radius: 20px;
  padding: 50px 40px 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 101, 165, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.quote-circle {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: var(--brand-blue);
  border-radius: 50%;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(0, 101, 165, 0.2);
}

.quote-circle i {
  transform: scaleX(
    -1
  ); /* To make it look like the specific image style if needed, but quote-left is usually enough */
}

.testimonial-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f2f2f2; /* THE LINE */
  margin-bottom: 25px;
}

.user-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #ddd;
}

.user-meta h4 {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: 800;
}

.user-meta p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #888;
  font-weight: 600;
}

.t-headline {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
}

.t-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 1200px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 40px) / 2); /* 2 per row */
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0;
  }
  .testimonials-header-new {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  .th-right {
    justify-content: center;
  }
  .testimonial-card {
    flex: 0 0 100%; /* 1 per row */
  }
}

/* Blogs Section */
.blogs-section {
  padding: 100px 0;
  background: #fff;
}

.blogs-header {
  text-align: center;
  margin-bottom: 60px;
}

.blogs-header h2 {
  font-size: 50px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 20px;
}

.blogs-header p {
  font-size: 20px;
  color: #333; /* More bold color */
  font-weight: 600; /* More bold weight */
  max-width: 600px; /* Reduced width */
  margin: 0 auto;
  line-height: 1.5;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
  position: relative;
  height: 220px; /* Reduced from 250 */
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #62c3f9; /* Light cyan-blue as shown in image */
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 173, 239, 0.2);
}

.blog-card-category {
  align-self: flex-start;
  background: #ff9933;
  color: #fff;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.blog-post-body {
  background: #e1f3fe; /* Matches the mockup light blue exactly */
  padding: 20px 25px; /* Reduced padding for tighter feel */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 600;
}

.blog-main-title {
  font-size: 20px;
  color: #222;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  margin-top: 0;
}

.blog-text {
  font-size: 13.5px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.blog-footer-icon {
  margin-top: auto; /* Push to bottom */
  padding-bottom: 10px;
}

.circle-icon {
  width: 45px;
  height: 45px;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  transition: 0.3s;
}

.blog-card:hover .circle-icon {
  background: var(--brand-blue);
  color: #fff;
}

.blogs-footer-cta {
  display: flex;
  justify-content: center;
}

.btn-blogs-cta {
  display: inline-block;
  padding: 15px 45px;
  background: linear-gradient(90deg, #00adef 0%, #0077b5 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 173, 239, 0.3);
  transition: 0.3s;
}

.btn-blogs-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 173, 239, 0.5);
}

@media (max-width: 992px) {
  .blogs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .blogs-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact vertical rhythm across pages */
.home-services,
.departments-section,
.specialists-section,
.hospitals-section,
.video-showcase-section,
.testimonials-section,
.blogs-section,
.health-cta-section,
.specialities-grid-section,
.doctors-grid-section,
.checkup-grid-section,
.locations-grid-section,
.contact-section,
.appointment-section,
.awards-section,
.news-section,
.gallery-section,
.videos-section,
.testimonials-page-section,
.careers-section,
.reports-section,
.dept-doctors-section {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

.section-padding {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

.dept-inner-wrap {
  padding-top: 50px !important;
  padding-bottom: 70px !important;
}

.dept-description,
.dept-sub-section,
.dept-faq-section-new,
.blogs-header,
.hospitals-header,
.testimonials-header-new,
.section-title,
.values-header,
.philosophy-header,
.specialists-header {
  margin-bottom: 32px !important;
}

.footer-subscription {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

.site-footer {
  padding-top: 42px !important;
}

.footer-main {
  padding-bottom: 34px !important;
}

.about-hero {
  padding-bottom: 220px !important;
}

.blog-main-layout {
  padding-top: 55px !important;
  padding-bottom: 60px !important;
}

@media (max-width: 768px) {
  .home-services,
  .departments-section,
  .specialists-section,
  .hospitals-section,
  .video-showcase-section,
  .testimonials-section,
  .blogs-section,
  .health-cta-section,
  .specialities-grid-section,
  .doctors-grid-section,
  .checkup-grid-section,
  .locations-grid-section,
  .contact-section,
  .appointment-section,
  .awards-section,
  .news-section,
  .gallery-section,
  .videos-section,
  .testimonials-page-section,
  .careers-section,
  .reports-section,
  .dept-doctors-section,
  .section-padding {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .about-hero,
  .contact-hero,
  .checkup-hero,
  .doctors-hero,
  .specialities-hero,
  .appointment-hero,
  .thank-you-hero,
  .dept-hero {
    padding-top: 135px !important;
    padding-bottom: 64px !important;
  }

  .about-hero {
    padding-bottom: 150px !important;
  }

  .dept-inner-wrap {
    padding-top: 38px !important;
    padding-bottom: 48px !important;
  }
}

/* Health CTA Section */
.health-cta-section {
  padding: 120px 0;
  background: #fff;
}

.cta-blue-box {
  background: linear-gradient(90deg, #00adef 0%, #0077b5 100%);
  border-radius: 30px;
  padding: 60px 80px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
}

.cta-content {
  width: 60%;
  color: #fff;
  z-index: 2;
}

.cta-content h2 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-content .highlight {
  background: rgba(0, 0, 0, 0.2);
  padding: 0 10px;
}

.cta-content p {
  font-size: 20px;
  margin-bottom: 35px;
  max-width: 500px;
  opacity: 0.9;
}

.btn-cta-book {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  color: #0077b5;
  padding: 15px 35px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-cta-book:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-doctor-wrap {
  position: absolute;
  right: 50px;
  bottom: 0;
  width: 45%;
  height: 100%;
}

.cta-doc-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: auto;
  height: 140%; /* Overlap top */
  z-index: 5;
}

.plus-decoration {
  position: absolute;
  color: rgba(255, 255, 255, 0.3);
  font-size: 40px;
  pointer-events: none;
}

.pd-1 {
  top: 20%;
  right: 20%;
}
.pd-2 {
  bottom: 10%;
  left: 10%;
}
.pd-3 {
  top: 10%;
  left: 40%;
  font-size: 60px;
}
.pd-4 {
  bottom: 30%;
  right: 5%;
  font-size: 30px;
}

@media (max-width: 1200px) {
  .cta-content h2 {
    font-size: 40px;
  }
  .cta-doc-img {
    height: 120%;
  }
}

@media (max-width: 992px) {
  .cta-blue-box {
    flex-direction: column;
    padding: 60px 40px;
    min-height: auto;
    text-align: center;
  }
  .cta-content {
    width: 100%;
    margin-bottom: 300px;
  }
  .cta-doctor-wrap {
    width: 300px;
    height: 300px;
    right: 50%;
    transform: translateX(50%);
  }
  .cta-doc-img {
    height: 100%;
  }
}

/* Home page responsive polish */
@media (max-width: 1200px) {
  .hero-section {
    min-height: auto;
    padding: 170px 0 80px;
  }

  .hero-content h1 {
    font-size: 56px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .hero-search-area {
    margin-top: 48px;
  }

  .departments-section,
  .specialists-section,
  .hospitals-section,
  .video-showcase-section,
  .testimonials-section,
  .blogs-section,
  .health-cta-section {
    padding: 80px 0;
  }

  .dept-image,
  .dept-content {
    width: 100%;
  }

  .dept-main-img {
    max-height: 520px;
    object-fit: cover;
  }

  .dept-list {
    max-height: none;
    padding-right: 0;
  }

  .dept-item {
    max-width: none;
  }
}

@media (max-width: 992px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .hero-content {
    width: 100%;
    padding-top: 40px;
  }

  .hero-image-block {
    width: 100%;
    justify-content: center;
  }

  .doctor-group-wrap {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .hero-filters {
    gap: 20px;
    flex-wrap: wrap;
  }

  .filter-group,
  .filter-group select {
    width: 100%;
  }

  .dept-row {
    align-items: stretch;
  }

  .dept-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .dept-item {
    align-items: flex-start;
    padding: 18px;
    border: 1px solid #eef2f6;
    border-radius: 16px;
  }

  .dept-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 23px;
  }

  .dept-info h3 {
    font-size: 19px;
  }

  .specialists-header,
  .hospitals-header,
  .testimonials-header-new,
  .blogs-header {
    margin-bottom: 36px;
  }

  .specialists-controls {
    align-items: stretch;
    width: 100%;
  }

  .doc-search {
    max-width: none;
  }

  .doctor-card {
    width: min(300px, 82vw);
  }

  .doc-image {
    height: 300px;
  }

  .hospitals-mask-left {
    display: none;
  }

  .hospitals-slider-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .video-col-header h2,
  .specialists-header h2,
  .th-center h2,
  .blogs-header h2,
  .hospitals-title-wrap h2 {
    font-size: 36px;
  }

  .testimonial-card {
    padding: 46px 26px 30px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-section {
    padding: 135px 0 56px;
    background-position: center bottom;
  }

  .hero-content h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .hero-content p {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .btn-learn-more {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    padding: 13px 24px;
  }

  .search-bar-wrap {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .search-bar-wrap input {
    min-width: 0;
    font-size: 15px;
    padding: 13px 12px;
  }

  .btn-search {
    width: 52px;
    padding: 0;
    flex-shrink: 0;
  }

  .hero-filters {
    margin-top: 16px;
  }

  .dept-main-img {
    border-radius: 22px;
    max-height: 360px;
  }

  .dept-header h2 {
    font-size: 32px;
  }

  .dept-header p,
  .hospitals-title-wrap p,
  .video-col-header p,
  .th-center p,
  .blogs-header p {
    font-size: 16px;
  }

  .dept-list {
    grid-template-columns: 1fr;
  }

  .dept-item {
    gap: 16px;
  }

  .dept-info p {
    font-size: 14px;
  }

  .slider-arrows button {
    font-size: 30px;
  }

  .specialists-controls,
  .hospitals-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hospitals-controls,
  .slider-arrows {
    justify-content: center;
  }

  .hospital-card {
    width: 82vw;
  }

  .hosp-info {
    padding: 24px;
  }

  .hosp-rating {
    gap: 10px;
    flex-wrap: wrap;
  }

  .video-grid-outer {
    gap: 56px;
  }

  .video-thumb-wrap {
    border-radius: 14px;
  }

  .play-overlay {
    width: 68px;
    height: 68px;
  }

  .play-overlay i {
    font-size: 28px;
  }

  .video-badge-name {
    max-width: 82%;
    padding: 14px 16px;
  }

  .video-badge-name h4 {
    margin: 0 0 5px;
    font-size: 10px;
    font-weight: 600;
  }

  .testimonial-card {
    flex-basis: 100%;
  }

  .testimonial-header-row {
    align-items: flex-start;
  }

  .blogs-grid {
    gap: 22px;
  }

  .health-cta-section {
    padding-bottom: 70px;
  }

  .cta-blue-box {
    border-radius: 22px;
    padding: 36px 22px 0;
    overflow: hidden;
  }

  .cta-content {
    margin-bottom: 260px;
  }

  .cta-content h2 {
    font-size: 34px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .btn-cta-book {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 120px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-search-area {
    margin-top: 32px;
  }

  .search-bar-wrap {
    border-radius: 10px;
  }

  .search-bar-wrap input::placeholder {
    font-size: 13px;
  }

  .departments-section,
  .specialists-section,
  .hospitals-section,
  .video-showcase-section,
  .testimonials-section,
  .blogs-section,
  .health-cta-section {
    padding: 56px 0;
  }

  .dept-item {
    padding: 16px;
  }

  .dept-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 20px;
  }

  .dept-info h3 {
    font-size: 17px;
  }

  .video-col-header h2,
  .specialists-header h2,
  .th-center h2,
  .blogs-header h2,
  .hospitals-title-wrap h2 {
    font-size: 30px;
  }

  .doctor-card {
    width: 84vw;
  }

  .doc-image {
    height: 280px;
  }

  .hospital-card {
    width: 84vw;
  }

  .hosp-image {
    height: 220px;
  }

  .testimonial-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-thumb {
    height: 200px;
  }

  .cta-content {
    margin-bottom: 230px;
  }

  .cta-content h2 {
    font-size: 29px;
  }

  .cta-doctor-wrap {
    width: 260px;
    height: 260px;
  }
}

/* Header Flyout Dropdown Menu */
.menu-dropdown-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 20px; /* Bridge the gap for hover */
  margin-bottom: -20px;
}

.header-flyout-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  width: 300px; /* Streamlined for vertical layout */
  max-width: 90vw; /* Responsive constraint */
  padding: 30px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 15px 15px;
  display: none;
  z-index: 999;
  border-top: 4px solid #24408e; /* Thicker border as in mockup style */
  max-height: 500px; /* Set max height as requested */
  overflow-y: auto; /* Enable scrollbar over that height */
}

/* Custom Scrollbar for the Flyout */
.header-flyout-menu::-webkit-scrollbar {
  width: 6px;
}
.header-flyout-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.header-flyout-menu::-webkit-scrollbar-thumb {
  background: #24408e;
  border-radius: 10px;
}

.menu-dropdown-wrap:hover .header-flyout-menu {
  display: block;
  animation: fadeInDown 0.3s ease-out;
}

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

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

.flyout-list li {
  margin: 0;
  padding: 0;
}

.flyout-list li a.btn-outline {
  display: block;
  background: #fff;
  color: #0065a5 !important;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: 0.2s;
  border: 1px solid #17a2b8; /* matched tealish border from image */
}

.flyout-list li a.btn-outline:hover {
  background: #f1f8ff;
  border-color: #0065a5;
  transform: translateY(-2px);
}

.flyout-list li a.btn-solid-orange {
  display: block;
  background: #ff8c00; /* vibrant orange from image */
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: 0.2s;
  border: 1px solid #e07b00;
}

.flyout-list li a.btn-solid-orange:hover {
  background: #e67e22;
  transform: translateY(-2px);
}

/* Ensure mobile toggle is accessible */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

/* BLOG DETAILS PAGE STYLE */
.blog-detail-hero:not(.kmnu-standard-hero) {
  padding: 100px 0 60px;
  background: var(--brand-white);
  border-bottom: 2px solid #f9f9f9;
}

.blog-meta-top {
  margin-bottom: 15px;
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

.blog-cat-badge a {
  color: var(--brand-blue);
  text-decoration: none;
}

.blog-detail-hero:not(.kmnu-standard-hero) h1 {
  font-size: 52px;
  color: var(--brand-black);
  max-width: 900px;
  line-height: 1.2;
}

.blog-main-layout {
  display: flex;
  gap: 60px;
  padding: 80px 0;
}

.blog-post-column {
  flex: 1;
}

.blog-featured-media {
  margin-bottom: 40px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-featured-media img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-entry-content {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
}

.blog-entry-content h2,
.blog-entry-content h3 {
  color: var(--brand-black);
  margin: 40px 0 20px;
}

.blog-entry-content p {
  margin-bottom: 25px;
}

.blog-entry-content ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.blog-entry-content li {
  margin-bottom: 10px;
}

.single-post li::marker {
  content: none;
}

.blog-bottom-action {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.share-title {
  font-weight: 800;
  color: #777;
}

.share-icons {
  display: flex;
  gap: 15px;
}
.share-icons a {
  width: 45px;
  height: 45px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: 0.3s;
}
.share-icons a:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* BLOG SIDEBAR */
.blog-sidebar {
  width: 380px;
}

.sidebar-widget {
  margin-bottom: 60px;
}

.widget-title {
  font-size: 24px;
  color: var(--brand-blue);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--brand-blue);
}

.widget-search form {
  display: flex;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 5px;
  border: 1px solid #eee;
}

.widget-search input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 15px;
  outline: none;
  font-size: 16px;
}

.widget-search button {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
}

.recent-post-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  cursor: pointer;
}

.rp-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}
.rp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rp-info h5 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #444;
  line-height: 1.4;
  transition: 0.2s;
}
.recent-post-item:hover h5 {
  color: var(--brand-blue);
}
.rp-date {
  font-size: 13px;
  color: #999;
}

.widget-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-categories li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #666;
  font-weight: 600;
  transition: 0.3s;
}
.widget-categories li a:hover {
  padding-left: 10px;
  color: var(--brand-blue);
}

.cta-sidebar-box {
  background: linear-gradient(135deg, #00adef 0%, #0077b5 100%);
  padding: 40px 30px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
}

.cta-sidebar-box h4 {
  font-size: 26px;
  margin-bottom: 15px;
}
.btn-sidebar-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0077b5;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 15px;
}

@media (max-width: 1100px) {
  .blog-main-layout {
    flex-direction: column;
    gap: 60px;
  }
  .blog-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-detail-hero h1 {
    font-size: 36px;
  }
}

/* About Us Page Styles */
.about-hero {
  background: linear-gradient(135deg, #0065a5 0%, #00a3e0 100%);
  padding: 120px 0 320px; /* Highly increased padding to clear the wave */
  position: relative;
  overflow: hidden;
  color: var(--brand-white);
}

.about-hero .hero-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-hero-content {
  flex: 1;
  z-index: 10;
  position: relative;
}

.about-hero-content .sub-title {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-hero-content h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.about-hero-content h1 span {
  color: #ff9933;
}

.about-hero-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 45px; /* Increased margin for better CTA separation */
  opacity: 0.95;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 20; /* High z-index to ensure visibility over the wave */
}

.btn-outline {
  border: 2px solid var(--brand-white);
  background: transparent;
  color: var(--brand-white);
}

.btn-outline:hover {
  background: var(--brand-white);
  color: var(--brand-blue);
}

.about-hero-image {
  flex: 1;
  position: relative;
  z-index: 5;
}

.about-hero-image .image-wrapper {
  position: relative;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.about-hero-image img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}

.stat-card {
  position: absolute;
  bottom: 0px; /* Adjusted to sit better with high padding */
  left: -40px;
  background: var(--brand-white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  min-width: 180px;
  z-index: 21;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-black);
}

.hero-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1; /* Lowered z-index */
}

.section-padding {
  padding: 100px 0;
}

.about-content-section {
  background: #fff;
  position: relative;
  z-index: 3;
  padding-top: 50px; /* More top padding to clear the wave peak */
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .about-hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 992px) {
  .about-hero {
    padding: 100px 0 280px; /* High padding for mobile too */
  }

  .about-hero .hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .about-hero-content {
    order: 1;
  }

  .about-hero-image {
    order: 2;
    width: 100%;
  }

  .about-hero-content p {
    margin: 0 auto 40px;
  }

  .hero-cta {
    justify-content: center;
  }

  .stat-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
  }

  .about-hero-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 80px 0 250px;
  }

  .about-hero-content h1 {
    font-size: 36px;
  }

  .about-hero-content p {
    font-size: 18px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* About Philosophy & Vision Section */
.about-philosophy {
  background: var(--brand-white);
}

.philosophy-header h2 {
  font-size: 42px;
  font-weight: 800;
  margin-top: 10px;
}

.philosophy-header h2 span {
  color: var(--brand-blue);
}

.header-line {
  width: 80px;
  height: 4px;
  background: var(--brand-orange);
  margin: 20px auto 50px;
  border-radius: 2px;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.vision-box {
  padding: 50px;
  background: #fff;
  border-radius: 30px;
  position: relative;
  transition: 0.4s ease;
  border-left: 5px solid var(--brand-blue);
}

.vision-box:hover {
  transform: translateY(-10px);
}

.vision-box .icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(0, 101, 165, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.vision-box h3 {
  font-size: 32px;
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 20px;
}

.vision-box p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.vision-box p:last-child {
  margin-bottom: 0;
}

.philosophy-image .img-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.philosophy-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.experience-block {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--brand-blue);
  color: #fff;
  padding: 25px 35px;
  border-radius: 20px;
  z-index: 5;
}

.experience-block h4 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.experience-block span {
  font-size: 16px;
  opacity: 0.9;
}

/* Strategic Objectives */
.bg-light {
  background: #f8fbff;
}

.values-header {
  max-width: 800px;
  margin: 0 auto 60px;
}

.values-header h2 {
  font-size: 42px;
  font-weight: 800;
}

.values-header h2 span {
  color: var(--brand-blue);
}

.values-header p {
  font-size: 19px;
  color: #666;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.objective-item {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.objective-item:hover {
  background: var(--brand-blue);
  color: #fff;
  transform: translateY(-5px);
}

.obj-icon {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand-blue);
  margin-bottom: 20px;
  font-family: serif;
  opacity: 0.2;
}

.objective-item:hover .obj-icon {
  color: #fff;
  opacity: 0.4;
}

.objective-item p {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

/* Values Visual Wheel */
.values-visual {
  text-align: center;
  position: relative;
  padding: 80px 0;
}

.values-visual h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--brand-blue);
}

.values-wheel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 25px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  cursor: default;
  z-index: 5;
  animation: nodeSpread 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}

@keyframes nodeSpread {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.value-node:hover {
    box-shadow: 0 25px 50px rgba(0, 101, 165, 0.2);
    z-index: 20;
}

.main-node {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  padding: 35px;
  border-radius: 50%;
  z-index: 15;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 15px rgba(255, 153, 51, 0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: mainPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 1; /* Override value-node opacity */
}

@keyframes mainPop {
    from { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Perfect Circular Placement */
.node-1 { animation-delay: 0.1s; transform: translate(-50%, -100%) translateY(-160px); } /* Top */
.node-2 { animation-delay: 0.2s; transform: translate(50%, -50%) translateX(160px); }  /* Right */
.node-3 { animation-delay: 0.3s; transform: translate(30%, 50%) translateY(140px); }   /* Bottom Right */
.node-4 { animation-delay: 0.4s; transform: translate(-130%, 50%) translateY(140px); } /* Bottom Left */
.node-5 { animation-delay: 0.5s; transform: translate(-150%, -50%) translateX(-160px); } /* Left */

/* Animation destinations */
@keyframes spread-node-1 { to { transform: translate(-50%, -100%) translateY(-160px); opacity: 1; } }
@keyframes spread-node-2 { to { transform: translate(50%, -50%) translateX(160px); opacity: 1; } }
@keyframes spread-node-3 { to { transform: translate(30%, 50%) translateY(140px); opacity: 1; } }
@keyframes spread-node-4 { to { transform: translate(-130%, 50%) translateY(140px); opacity: 1; } }
@keyframes spread-node-5 { to { transform: translate(-150%, -50%) translateX(-160px); opacity: 1; } }

.node-1 { animation-name: spread-node-1; }
.node-2 { animation-name: spread-node-2; }
.node-3 { animation-name: spread-node-3; }
.node-4 { animation-name: spread-node-4; }
.node-5 { animation-name: spread-node-5; }

.v-icon { font-size: 32px; margin-bottom: 10px; }
.v-label { font-weight: 800; color: var(--brand-black); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }

/* Responsive Philosophy */
@media (max-width: 1200px) {
  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .vision-grid {
    grid-template-columns: 1fr;
  }
  
  .philosophy-image img {
    height: 400px;
  }
  
  .values-wheel {
      height: auto;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
  }
  
  .value-node {
      position: static;
      transform: none !important;
      width: 45%;
  }
  
  .main-node {
      width: 100%;
      border-radius: 20px;
      height: auto;
      transform: none !important;
      position: static;
  }
}

@media (max-width: 768px) {
    .philosophy-header h2, .values-header h2 {
        font-size: 32px;
    }
    
    .vision-box {
        padding: 30px;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .value-node {
        width: 100%;
    }
}

/* Leadership Section Styles */
.leadership-section {
  background: var(--brand-white);
}

.leadership-carousel {
  position: relative;
  margin-top: 50px;
}

.leadership-grid {
  display: flex;
  gap: 30px;
  margin-top: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 6px 24px;
}

.leadership-grid::-webkit-scrollbar {
  display: none;
}

.leadership-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 101, 165, 0.22);
  transform: translateY(-50%);
  transition: background 0.3s, transform 0.3s;
}

.leadership-carousel-btn:hover {
  background: var(--brand-orange);
  transform: translateY(-50%) scale(1.05);
}

.leadership-prev {
  left: -22px;
}

.leadership-next {
  right: -22px;
}

.leader-card {
  background: #fff;
  border-radius: 20px;
  text-align: center;
  transition: 0.4s ease;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 0 0 calc((100% - 90px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.leader-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 101, 165, 0.1);
}

.leader-image {
  background: #f0f4f8;
  padding: 40px 20px 20px;
  position: relative;
  overflow: hidden;
}

.leader-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.leader-info {
  padding: 25px 20px 35px;
}

.leader-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--brand-black);
}

.designation {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leader-bio p {
  font-size: 15px;
  color: #777;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Leadership */
@media (max-width: 1200px) {
  .leader-card {
    flex-basis: calc((100% - 30px) / 2);
  }
}

@media (max-width: 768px) {
  .leadership-grid {
    gap: 20px;
  }

  .leader-card {
    flex-basis: 86%;
  }

  .leadership-prev {
    left: 6px;
  }

  .leadership-next {
    right: 6px;
  }
  
  .leader-image img {
      width: 150px;
      height: 150px;
  }
}

/* Hospital Philosophy Section */
.hospital-philosophy {
  background: #f8fbff;
}

.philosophy-card {
  background: #fff;
  padding: 60px;
  border-radius: 40px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 10px solid var(--brand-blue);
  transition: 0.4s ease;
}

.philosophy-card:hover {
  transform: translateY(-10px);
}

.philosophy-card h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
}

.philosophy-card h2 span {
  color: var(--brand-blue);
}

.philosophy-content h3 {
  font-size: 24px;
  color: var(--brand-blue);
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid rgba(0, 101, 165, 0.1);
  display: inline-block;
  padding-bottom: 5px;
}

.philosophy-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

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

/* Page Section Refinements */
.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.card-shadow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* Responsive Philosophy */
@media (max-width: 768px) {
  .philosophy-card {
    padding: 40px 25px;
    border-radius: 20px;
  }
  
  .philosophy-card h2 {
    font-size: 32px;
  }
  
  .philosophy-content p {
    font-size: 16px;
  }
}

/* --- Milestones Timeline Section --- */
.milestones-section {
    background: #f8fbff;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
    padding: 20px 0;
}

.timeline {
    position: relative;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--brand-orange), var(--brand-blue));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    margin-bottom: 50px;
    box-sizing: border-box;
}

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

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* The timeline marker (circles) */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 5px solid var(--brand-blue);
    border-radius: 50%;
    top: 20px;
    box-shadow: 0 0 0 5px rgba(0, 101, 165, 0.2);
    z-index: 1;
}

.timeline-item.left::after {
    right: -12px;
}

.timeline-item.right::after {
    left: -12px;
}

.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid transparent;
}

.timeline-item.left .timeline-content {
    border-top-color: var(--brand-orange);
}

.timeline-item.right .timeline-content {
    border-top-color: var(--brand-blue);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Pointing Triangle */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item.left .timeline-content::before {
    right: -10px;
    border-left: 10px solid #fff;
}

.timeline-item.right .timeline-content::before {
    left: -10px;
    border-right: 10px solid #fff;
}

.timeline-date {
    display: inline-block;
    background: rgba(0, 101, 165, 0.1);
    color: var(--brand-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.timeline-item.left .timeline-date {
    background: rgba(255, 153, 51, 0.1);
    color: var(--brand-orange);
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-black);
    margin: 0 0 10px;
    line-height: 1.4;
}

.timeline-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.timeline-milestone-list {
    margin: 0;
    padding-left: 20px;
    color: #666;
    text-align: left;
}

.timeline-milestone-list li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.timeline-milestone-list li:last-child {
    margin-bottom: 0;
}

/* Responsive Timeline */
@media (max-width: 992px) {
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 19px;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        border-top-color: var(--brand-blue);
    }
    
    .timeline-item.left .timeline-date {
        background: rgba(0, 101, 165, 0.1);
        color: var(--brand-blue);
    }
    
    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        left: -10px;
        right: auto;
        border-right: 10px solid #fff;
        border-left: none;
    }
}

@media (max-width: 576px) {
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 20px;
    }
}

/* --- Accreditations Section --- */
.accreditations-section {
    background: #fff;
}

.accreditation-header {
    margin-bottom: 40px;
}

.accreditation-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 10px;
}

.accreditation-header h2 span {
    color: var(--brand-blue);
}

.accreditations-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.accreditation-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--brand-blue);
}

.accreditation-card:nth-child(even) {
    border-left-color: var(--brand-orange);
}

.accreditation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.acc-logo {
    flex: 0 0 120px;
    min-width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e0e5ea;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.acc-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.acc-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Responsive Accreditations */
@media (max-width: 768px) {
    .accreditation-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .acc-logo {
        margin-bottom: 15px;
    }
}

/* --- Our Team Section --- */
.our-team-section {
    background: #f5f8fc;
    position: relative;
    overflow: hidden;
}

.our-team-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 101, 165, 0.06), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.our-team-section .container {
    position: relative;
    z-index: 1;
}

.team-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 34px auto 0;
    max-width: 1050px;
}

.team-search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
    background: #fff;
    border: 1px solid #dce8f2;
    border-radius: 8px;
    padding: 0 16px;
    box-shadow: 0 12px 30px rgba(0, 70, 139, 0.07);
}

.team-search i {
    color: var(--brand-orange);
    font-size: 16px;
}

.team-search input {
    border: 0;
    outline: 0;
    width: 100%;
    min-height: 50px;
    color: #1f2937;
    font-size: 15px;
    background: transparent;
}

.team-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.team-filter {
    border: 1px solid #cfe0ee;
    background: #fff;
    color: var(--brand-blue);
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
}

.team-filter:hover,
.team-filter.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.team-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e1ebf4;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-card:hover {
    border-bottom-color: var(--brand-orange);
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(0, 70, 139, 0.13);
}

.team-card[hidden] {
    display: none;
}

.team-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 2px;
}

.team-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf5fc;
    color: var(--brand-blue);
    font-weight: 900;
    font-size: 18px;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff6ed;
    color: #c65f00;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 11px;
}

.team-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-black);
    margin: 0;
    line-height: 1.3;
}

.team-designation {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1.45;
}

.team-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s;
    margin-top: auto;
}

.team-email:hover {
    color: var(--brand-orange);
}

.team-assistant {
    margin-top: auto;
    background: #f7fbff;
    border: 1px solid #e0edf7;
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 4px;
}

.assistant-label {
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.team-assistant strong {
    color: #1f2937;
    font-size: 15px;
}

.team-assistant span {
    color: #64748b;
    font-size: 13px;
}

.team-assistant a {
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

.team-empty {
    margin-top: 28px;
    text-align: center;
    color: #64748b;
    font-weight: 700;
}

.team-empty i {
    color: var(--brand-orange);
    font-size: 34px;
    margin-bottom: 10px;
}

@media (max-width: 1200px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .team-tools {
        align-items: stretch;
        flex-direction: column;
    }
    .team-filters {
        justify-content: flex-start;
    }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-search { min-width: 0; }
    .team-filter {
        flex: 1 1 calc(50% - 8px);
        padding: 11px 10px;
    }
    .team-card {
        min-height: 0;
        padding: 20px;
    }
}

/* --- Organizational Structure Section --- */
.structure-section {
    background: #fff;
}

.structure-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.structure-wrap .section-title {
    margin-bottom: 30px;
}

.structure-wrap .section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 10px;
}

.structure-image {
    background: #f8fbff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e0e5ea;
    text-align: center;
}

.structure-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Global Smooth Scrolling For Menu Anchors */
html {
    scroll-behavior: smooth;
    /* Offset for sticky header if one exists, allows anchors to sit below the header */
    scroll-padding-top: 100px;
}

/* --- Facilities Section --- */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.facility-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--brand-blue);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--brand-orange);
}

.fac-icon {
    color: var(--brand-blue);
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--brand-black);
}

.detail-box {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    border-left: 10px solid var(--brand-blue);
}

.detail-box h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
}

.detail-box h3 span {
    color: var(--brand-blue);
}

.detail-box h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.detail-box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--brand-orange);
}

.detail-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.detail-box ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.detail-box li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
    list-style: disc;
}

.statistics-list ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .facilities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-box { padding: 30px; }
    .statistics-list ul { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .facilities-grid { grid-template-columns: 1fr; }
    .detail-box h3 { font-size: 26px; }
}

/* Global Floating Appointment Button */
@keyframes floatBobbing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.floating-appoint-btn {
    position: fixed;
    right: 30px;
    bottom: 50px;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff6b00 100%);
    color: #fff !important;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatBobbing 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-appoint-btn i {
    font-size: 20px;
    line-height: 1;
    margin: 0;
}

.floating-appoint-btn:hover {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #00366b 100%);
    box-shadow: 0 15px 35px rgba(0, 70, 139, 0.4);
    transform: scale(1.05) translateY(-5px);
    animation-play-state: paused;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-wrap {
    margin-top: 22px;
}

.footer-social-wrap h3 {
    margin-bottom: 12px;
}

.footer-social-links .kmnu-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-blue);
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid var(--brand-blue);
    transition: all 0.25s ease;
}

.footer-social-links .kmnu-social-link:hover {
    background: #ff9933;
    border-color: #ff9933;
    transform: translateY(-2px);
}

.footer-social-links .kmnu-social-link i {
    font-size: 18px;
    line-height: 1;
}

.footer-social-links .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.kmnu-dept-icon-img {
    width: 1em;
    height: 1em;
    object-fit: contain;
    display: block;
}

.dept-icon .kmnu-dept-icon-img,
.speciality-icon .kmnu-dept-icon-img,
.mega-icon .kmnu-dept-icon-img {
    width: 36px;
    height: 36px;
}

.dept-hero-icon .kmnu-dept-icon-img,
.dept-hero-icon-fallback .kmnu-dept-icon-img {
    width: 1.1em;
    height: 1.1em;
    filter: brightness(0) invert(1);
}

.floating-whatsapp-btn {
    position: fixed;
    left: 30px;
    bottom: 50px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: grid;
    place-items: center;
    text-decoration: none !important;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
    z-index: 99999;
    animation: floatBobbing 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-whatsapp-btn i {
    font-size: 34px;
    line-height: 1;
}

.floating-whatsapp-btn:hover {
    background: #128c7e;
    box-shadow: 0 15px 35px rgba(18, 140, 126, 0.4);
    transform: scale(1.06) translateY(-5px);
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .floating-appoint-btn {
        right: 18px;
        bottom: 18px;
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        display: grid;
        place-items: center;
        gap: 0;
        line-height: 1;
    }
    .floating-appoint-btn i {
        display: block;
        font-size: 22px;
        line-height: 1;
        margin: 0;
    }

    .floating-whatsapp-btn {
        left: 18px;
        bottom: 18px;
        width: 56px;
        height: 56px;
    }

    .floating-whatsapp-btn i {
        font-size: 30px;
    }
}

/* Mobile Responsive Hamburger */
.mob-res-hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #ffffff;
    padding: 10px;
    margin-left: auto; /* Push it to the right */
}

@media (max-width: 1024px) {
    .menu-dropdown-wrap,
    .main-navigation {
        display: none !important;
    }
    
    .mob-res-hamburger {
        display: flex;
        align-items: center;
    }
}

/* --- Mobile Responsive Menu Drawer --- */
.mob-res-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mob-res-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mob-res-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.mob-res-menu-container.active {
    transform: translateX(0);
}

.mob-res-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f9fcff;
}

.mob-res-logo {
    height: 45px;
    width: auto;
}

.mob-res-close {
    background: rgba(0, 101, 165, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--brand-blue);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mob-res-close:hover {
    background: var(--brand-blue);
    color: #fff;
    transform: rotate(90deg);
}

.mob-res-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-blue) #f1f1f1;
}

.mob-res-menu-body::-webkit-scrollbar {
    width: 6px;
}
.mob-res-menu-body::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 10px;
}

.mob-res-actions {
    display: none;
}

/* Primary List Styling */
.mob-res-primary-list,
.mob-res-submenu,
.mob-res-flyout-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mob-res-item {
    border-bottom: 1px solid #f0f0f0;
}
.mob-res-item:last-child {
    border-bottom: none;
}

.mob-res-link-wrap,
.mob-res-single-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mob-res-link-wrap a,
.mob-res-single-link {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.mob-res-link-wrap:hover a,
.mob-res-single-link:hover {
    color: var(--brand-blue);
}

.mob-res-toggle-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mob-res-item.active .mob-res-toggle-btn {
    transform: rotate(180deg);
    color: var(--brand-blue);
}
.mob-res-item.active .mob-res-link-wrap a {
    color: var(--brand-blue);
}

/* Submenu Accordion */
.mob-res-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: 15px;
    background: #fdfdfd;
}

.mob-res-item.active .mob-res-submenu {
    max-height: 800px; /* Large enough to hold all items */
    padding-bottom: 15px;
}

.mob-res-submenu li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mob-res-submenu li a:hover {
    color: var(--brand-blue);
    padding-left: 5px;
}

.mob-res-view-all {
    color: var(--brand-orange) !important;
    font-weight: 700 !important;
    margin-top: 5px;
    border-top: 1px dashed #eee;
    padding-top: 15px !important;
}

/* Divider */
.mob-res-divider {
    height: 1px;
    background: #eee;
    margin: 25px 0;
}

/* Flyout / Secondary Buttons */
.mob-res-flyout-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mob-res-flyout-list li a {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mob-res-flyout-list li a.btn-outline {
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    background: #fff;
}

.mob-res-flyout-list li a.btn-outline:hover {
    background: rgba(0, 101, 165, 0.05);
}

.mob-res-flyout-list li a.btn-solid-orange {
    background: var(--brand-orange);
    color: #fff;
    border: 1px solid var(--brand-orange);
}

.mob-res-flyout-list li a.btn-solid-orange:hover {
    background: #e67e22;
}

/* --- Header Upper Responsive Styles --- */
@media (max-width: 1024px) {
    .header-upper .container {
        flex-wrap: wrap;
    }
    .header-top-badge {
        flex: 0 0 auto;
        padding-left: 0;
    }
    .header-top-badge img {
        max-height: 75px;
        max-width: 180px;
    }
    .header-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    .logo img {
        width: 130px;
    }
}

@media (max-width: 768px) {
    html {
        margin-top: 10px !important;
    }

    .about-hero {
        padding-top: 50px !important;
    }

    .header-upper {
        padding: 4px 0;
        position: relative;
    }
    .header-upper .container {
        flex-direction: row;
        gap: 18px;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        padding-right: 66px;
    }
    .header-top-badge {
        order: 4;
        grid-column: 1 / -1;
        justify-content: center;
        width: auto;
        padding: 0;
    }
    .header-top-badge img {
        max-width: min(280px, 90vw);
        max-height: 100px;
    }
    .header-actions {
        display: none;
    }
    .header-mobile-badge {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        max-width: 34%;
    }
    .header-mobile-badge img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 62px;
        object-fit: contain;
    }
    .site-header {
        position: absolute !important;
        top: 14px;
        right: 16px;
        width: auto;
        background: transparent !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        z-index: 999;
    }
    .site-header .container {
        width: auto;
        height: auto;
        padding: 0;
        display: flex;
        justify-content: flex-end;
    }
    .mob-res-hamburger {
        color: var(--brand-blue) !important;
        padding: 8px;
        margin-left: 0;
        font-size: 28px;
        position: relative;
        z-index: 1000;
    }
    .header-actions .btn {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 12px 8px;
        white-space: nowrap;
    }
    .header-actions .btn-call {
        flex: 0 0 45px;
        height: 45px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 20px;
    }

    .header-actions .btn {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Final mobile guardrails for the homepage/header */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .dept-image {
    display: none;
  }

  .header-upper .container {
    padding-left: 18px;
    padding-right: 66px;
    box-sizing: border-box;
  }

  .header-upper .header-actions {
    display: none;
  }

  .mob-res-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: stretch;
    margin-top: 22px;
  }

  .mob-res-actions a {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    gap: 8px;
  }

  .mob-res-call {
    background: var(--brand-orange);
    font-size: 13px !important;
  }

  .mob-res-call i {
    font-size: 18px;
  }

  .mob-res-appointment {
    background: var(--brand-light-blue);
  }

  .mob-res-emergency {
    background: var(--brand-red);
  }

  .hero-content,
  .hero-content h1,
  .hero-content p {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (max-width: 420px) {
  .mob-res-actions {
    gap: 9px;
  }

  .logo img {
    width: 90px;
  }

  .header-mobile-badge img {
    max-height: 56px;
  }

  .hero-content h1 {
    font-size: 31px;
  }
}

/* Sitewide responsive polish for templates, archives and single pages */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

.container {
  width: min(95%, 1600px);
}

.site-main {
  overflow-x: clip;
}

.page-title,
.blog-detail-hero h1,
.about-hero-content h1,
.doctors-hero h1,
.specialities-hero h1,
.checkup-hero h1,
.locations-hero h1,
.contact-hero h1,
.appointment-hero h1,
.thank-you-hero h1,
.gallery-hero h1,
.awards-hero h1,
.news-hero h1,
.dept-hero-title {
  overflow-wrap: anywhere;
}

.blog-entry-content,
.dept-description,
.dept-more-content,
.dept-acc-body,
.standard-content,
.privacy-content,
.terms-content {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .front-page .container,
  .container {
    width: min(94%, 1140px);
  }

  .about-hero-content h1,
  .dept-hero-title,
  .hero-content h1 {
    font-size: clamp(40px, 6vw, 58px);
  }
}

@media (max-width: 992px) {
  .about-hero .hero-flex,
  .hero-flex,
  .dept-row,
  .video-grid-outer,
  .blog-main-layout,
  .location-detail-grid,
  .checkup-content-grid {
    flex-direction: column;
    grid-template-columns: 1fr !important;
  }

  .dept-image,
  .dept-content,
  .about-hero-content,
  .about-hero-image,
  .checkup-hero-content,
  .checkup-hero-image {
    width: 100%;
  }

  .blog-sidebar {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 92%;
    max-width: 100%;
    box-sizing: border-box;
  }

  section,
  .section-padding,
  .specialities-grid-section,
  .doctors-grid-section,
  .checkup-grid-section,
  .locations-grid-section,
  .blogs-grid-section,
  .contact-section,
  .appointment-section {
    padding-left: 0;
    padding-right: 0;
  }

  .about-hero,
  .contact-hero,
  .checkup-hero,
  .doctors-hero,
  .specialities-hero,
  .appointment-hero,
  .thank-you-hero,
  .dept-hero {
    padding-top: 150px !important;
    padding-bottom: 90px !important;
  }

  .page-title,
  .blog-detail-hero h1,
  .about-hero-content h1,
  .doctors-hero h1,
  .specialities-hero h1,
  .checkup-hero h1,
  .locations-hero h1,
  .contact-hero h1,
  .appointment-hero h1,
  .thank-you-hero h1,
  .gallery-hero h1,
  .awards-hero h1,
  .news-hero h1,
  .dept-hero-title {
    font-size: clamp(32px, 9vw, 42px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  .about-hero p,
  .contact-hero p,
  .checkup-hero p,
  .doctors-hero p,
  .specialities-hero p,
  .appointment-hero p,
  .thank-you-hero p,
  .dept-hero-subtitle {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .hero-cta,
  .package-footer,
  .footer-bottom .container,
  .specialists-header,
  .hospitals-header,
  .blogs-header,
  .testimonials-header-new,
  .dept-doctors-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 16px;
  }

  .hero-cta .btn,
  .package-footer a,
  .btn-submit,
  .appointment-submit,
  .btn-book-now,
  .btn-cta-book,
  .btn-blogs-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .contact-form-wrap,
  .appointment-form-wrap,
  .dept-description,
  .vision-box,
  .philosophy-card,
  .timeline-content,
  .speciality-card,
  .package-card .package-info {
    padding: 24px !important;
    border-radius: 16px !important;
    box-sizing: border-box;
  }

  .contact-card {
    flex-direction: column;
    gap: 14px;
  }

  .form-row,
  .appointment-row,
  .contact-grid,
  .specialities-grid,
  .doctors-page-grid,
  .checkup-grid,
  .locations-grid,
  .blogs-grid,
  .news-grid,
  .awards-grid,
  .testimonials-grid,
  .video-grid,
  .reports-grid,
  .dept-extra-card-grid,
  .dept-faq-gallery {
    grid-template-columns: 1fr !important;
    max-width: 100%;
    width: 100%;
  }

  .locations-page,
  .single-checkup-page,
  .locations-grid-section,
  .single-checkup-content {
    overflow-x: hidden;
  }

  .locations-page .container,
  .single-checkup-page .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
  }

  .locations-grid {
    justify-items: center;
  }

  .hospital-card,
  .checkup-main-image,
  .checkup-details-box,
  .booking-card {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  .checkup-details-box,
  .booking-card {
    padding: 28px 22px !important;
    border-radius: 18px !important;
  }

  .checkup-details-box h2,
  .booking-card h3 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  .checkup-details-list ul {
    column-count: 1 !important;
    column-gap: 0 !important;
    padding-left: 20px !important;
  }

  .btn-book-action {
    box-sizing: border-box;
    padding-left: 18px !important;
    padding-right: 18px !important;
    width: 100%;
  }

  .filter-wrapper,
  .blog-filter-form,
  .doctors-filter-form .filter-wrapper {
    border-radius: 16px !important;
    padding: 16px !important;
  }

  .filter-group {
    min-width: 0 !important;
    width: 100%;
  }

  .subscription-form {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .subscription-form .input-wrap,
  .btn-subscribe {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr !important;
    text-align: left;
  }

  .footer-bottom .container {
    text-align: center;
  }

  .copyright,
  .footer-bottom-links {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 92%;
  }

  .hero-content h1 {
    font-size: 31px !important;
  }

  .search-bar-wrap {
    align-items: stretch;
  }

  .search-bar-wrap input {
    min-width: 0;
    padding: 13px 12px;
    font-size: 14px;
  }

  .btn-search {
    padding: 0 16px;
  }

  .hero-filters {
    flex-direction: column;
    gap: 12px;
  }

  .hero-filters select {
    width: 100%;
  }

  .doctor-image,
  .doc-image,
  .package-image,
  .hosp-image {
    height: auto !important;
    min-height: 260px;
  }

  .doctor-social-links {
    display: none !important;
  }

  .doctor-image img,
  .doc-image img,
  .package-image img,
  .hosp-image img {
    min-height: 260px;
  }

  .dept-sub-grid {
    grid-template-columns: 1fr !important;
  }

  .dept-sub-carousel .dept-sub-card {
    flex-basis: 78vw !important;
  }

  .dept-doctor-card {
    min-width: 86vw !important;
    max-width: 86vw !important;
  }

  .dept-acc-header {
    padding: 18px 20px !important;
  }

  .dept-acc-item.active .dept-acc-content {
    padding: 24px 20px !important;
  }

  .testimonial-card,
  .blog-card,
  .hospital-card,
  .video-card,
  .doctor-card,
  .doctor-page-card,
  .speciality-card,
  .package-card,
  .contact-card {
    max-width: 100%;
  }

  .locations-page .container,
  .single-checkup-page .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .hosp-info {
    padding: 24px 22px !important;
  }

  .hosp-info h3 {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .hosp-rating {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .single-checkup-content {
    padding-top: 42px !important;
    padding-bottom: 72px !important;
  }

  .checkup-main-image {
    border-radius: 18px !important;
    margin-bottom: 30px !important;
  }

  .package-navigation {
    flex-direction: column;
    gap: 14px;
  }

  .nav-link-wrap,
  .nav-link-wrap a {
    width: 100%;
    box-sizing: border-box;
  }

  .lang-toggle-fixed {
    right: 86px !important;
    bottom: 18px !important;
  }
}
