:root {
  --primary: #005A9C;
  --secondary: #008080;
  --accent: #E53935;
  --bg-light: #F4F7F6;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #E0E0E0;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Base styles and Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section {
  padding: 4rem 0;
  background-color: var(--white);
}
.section-alt {
  background-color: var(--bg-light);
}

/* Premium Header */
.hospital-header {
  width: 100%;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
}

.header-top {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top a {
  color: var(--white);
  text-decoration: none;
  margin-left: 20px;
}
.header-top a:hover {
  color: #d1e5f0;
}
.top-info {
  margin-right: 20px;
}
.top-info i, .top-link i {
  margin-right: 5px;
}

.header-middle {
  padding: 15px 0;
  background: var(--white);
}
.header-middle-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.logo-box img {
  height: 65px;
  width: auto;
  border-radius: 8px;
}
.logo-titles {
  display: flex;
  flex-direction: column;
}
.logo-title-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.logo-title-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.5px;
}

.header-info-boxes {
  display: flex;
  align-items: center;
  gap: 30px;
}
.info-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-icon {
  font-size: 28px;
  color: var(--secondary);
}
.info-text {
  display: flex;
  flex-direction: column;
}
.info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.info-value {
  font-size: 15px;
  color: var(--text-main);
}
.btn-appointment {
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.btn-appointment:hover {
  background: #c62828;
  color: var(--white);
  transform: translateY(-2px);
}

.header-nav-wrapper {
  background: var(--primary);
}
.header-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .nav-item {
  position: relative;
}
.main-nav .nav-link {
  display: block;
  padding: 15px 12px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 0.3s;
}
.main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.desktop-icon {
  margin-left: 5px;
  font-size: 12px;
}
.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-top: 3px solid var(--secondary);
}
.main-nav .nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown-menu li {
  position: relative;
}
.main-nav .dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--bg-light);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav .dropdown-menu li:last-child a {
  border-bottom: none;
}
.main-nav .dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 25px;
}
.main-nav .dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 240px;
  margin: 0 0 0 6px;
  padding: 10px 0;
  list-style: none;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.2s ease;
  z-index: 110;
}
.main-nav .has-submenu:hover > .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.submenu-arrow {
  margin-left: auto;
  font-size: 12px;
}

.nav-search-box form {
  display: flex;
}
.nav-search-box input {
  padding: 8px 15px;
  border: none;
  border-radius: 20px 0 0 20px;
  outline: none;
  width: 200px;
}
.nav-search-box button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

/* Mobile Toggles */
.mobile-menu-toggle {
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
}
.mobile-dropdown-toggle {
  display: none;
}
.d-mobile-only {
  display: none !important;
}

/* Utilities */
@media (max-width: 992px) {
  .d-none-tablet {
    display: none !important;
  }
}

/* Hero Section */
.hero-slider {
  margin-bottom: 0;
}
.hero-slider .slick-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.hero-section {
  position: relative;
}
/* Slick Arrows */
.hero-section .slick-prev,
.hero-section .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  border: none;
  color: transparent;
  outline: none;
  transition: all 0.3s;
}
.hero-section .slick-prev { left: 20px; }
.hero-section .slick-next { right: 20px; }
.hero-section .slick-prev:hover,
.hero-section .slick-next:hover {
  background: rgba(0, 0, 0, 0.6);
}
.hero-section .slick-prev:before,
.hero-section .slick-next:before {
  content: '\f104'; /* FontAwesome angle-left */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--white);
  font-size: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-section .slick-next:before {
  content: '\f105'; /* FontAwesome angle-right */
}

/* Quick Actions */
.quick-actions {
  margin-top: -80px;
  position: relative;
  z-index: 5;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.quick-card {
  background: var(--white);
  padding: 20px 15px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}
.quick-icon {
  font-size: 2.5rem;
  color: var(--secondary);
}
.quick-title {
  font-weight: 700;
  font-size: 1rem;
}
.quick-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.intro-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 400px;
  object-fit: cover;
}
.intro-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.stat-item {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Departments */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.dept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.dept-card:hover {
  box-shadow: var(--shadow-lg);
}
.dept-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.dept-info {
  padding: 20px;
  flex: 1;
}
.dept-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.dept-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Section */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.news-tabs li a {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--bg-light);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}
.news-tabs li a.active, .news-tabs li a:hover {
  background: var(--primary);
  color: var(--white);
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.main-news {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.main-news img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.main-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 30px 20px 20px;
  color: var(--white);
}
.main-news-title {
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
}
.side-news {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.news-item {
  display: flex;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.news-item:hover {
  transform: translateX(5px);
}
.news-item img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.news-item-title {
  font-size: 1rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Doctors Slider */
.doctor-slider {
  margin: 0 -10px;
}
.doctor-card {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  display: block;
}
.doctor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 4px solid var(--bg-light);
}
.doctor-name {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
}
.doctor-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
}
.gallery-tabs li a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 10px;
  transition: all 0.3s;
  position: relative;
}
.gallery-tabs li a:hover,
.gallery-tabs li a.active {
  color: var(--text-main);
}
.gallery-tabs li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
}

/* Gallery Card */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.gallery-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.gallery-card-img {
  width: 100%;
  height: 200px;
  position: relative;
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card-title {
  padding: 15px;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}
.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.view-all-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
}
.view-all-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #111b26;
  color: #e5edf6;
  padding: 60px 0 22px;
  font-family: 'Inter', sans-serif;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 1.05fr) minmax(280px, 0.92fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-bottom: 44px;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 15px;
}
.footer-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}
.footer-logo-text {
  font-size: 1.08rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.45;
  text-transform: uppercase;
}
.footer-contact p {
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.58;
  font-size: 15.5px;
  color: #e3edf7;
  overflow-wrap: anywhere;
}
.footer-contact p i {
  margin-top: 4px;
  color: #8fd3ff;
  font-size: 1.08rem;
  width: 20px;
  text-align: center;
  flex: 0 0 20px;
}
.footer-contact strong {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.footer-contact a {
  color: #b9e6ff;
  font-weight: 700;
  text-decoration: none;
}
.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-fanpage-link {
  color: #b9e6ff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-fanpage-link:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer iframe {
  border-radius: 12px !important;
  box-shadow: none;
  width: 100%;
}
.footer-map-frame {
  display: block;
  width: 100%;
  height: 264px;
  border: 0;
  background: #e8eef3;
}
.footer-facebook {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-facebook h3 {
  margin-bottom: 22px;
}
.footer-facebook-card {
  width: 100%;
  max-width: 360px;
  min-height: 264px;
  background: #ffffff;
  border-radius: 12px;
  padding: 26px 22px 24px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fb-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.fb-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #3d73f2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  flex-shrink: 0;
}
.fb-card-header h4 {
  margin: 0 0 4px;
  color: #172435;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}
.fb-card-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.fb-card-desc {
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.fb-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #2f6fd6;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(47, 111, 214, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fb-card-btn:hover {
  background: #245db8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(47, 111, 214, 0.28);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  color: #b9c8d7;
  font-size: 14.5px;
  text-align: center;
}
.footer-bottom p {
  font-size: 14.5px;
  color: #b9c8d7;
  margin: 0;
  background: transparent;
}

/* Floating Contact */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 0.3s;
}
.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}
.float-call {
  background-color: #4CAF50;
}
.float-msg {
  background-color: #0084ff;
}

/* Responsive */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .d-none-mobile {
    display: none !important;
  }
  .d-mobile-only {
    display: block !important;
  }
  
  .header-middle-inner {
    padding: 0 10px;
  }
  .logo-box img {
    height: 50px;
  }
  .logo-title-main {
    font-size: 18px;
  }
  
  .header-nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .header-nav-wrapper.show {
    display: block;
  }
  
  .main-nav .nav-list {
    flex-direction: column;
  }
  .main-nav .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .main-nav .nav-link {
    flex: 1;
    padding: 12px 15px;
  }
  .desktop-icon {
    display: none;
  }
  .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.1);
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
  }
  
  .main-nav .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border-top: none;
    background: #004a80;
    padding: 0;
  }
  .main-nav .dropdown-submenu {
    position: static;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.12);
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav .nav-item.show-dropdown .dropdown-menu {
    display: block;
  }
  .main-nav .dropdown-menu li a {
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 15px 12px 30px;
    white-space: normal;
  }
  .main-nav .dropdown-submenu li a {
    padding-left: 45px;
  }
  .main-nav .dropdown-menu li a:hover {
    background: rgba(0,0,0,0.2);
    color: var(--white);
    padding-left: 30px;
  }
  .hero-slider .slick-slide img {
    height: 300px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    gap: 30px;
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 30px;
  }
  .footer-facebook {
    align-items: center;
  }
  .footer-facebook-card {
    max-width: 100%;
  }
}
@media (max-width: 500px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
