@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #0d9488; /* Teal-600 */
  --primary-hover: #0f766e; /* Teal-700 */
  --primary-light: #ccfbf1; /* Teal-100 */
  --secondary-color: #0284c7; /* Sky-600 */
  --accent-color: #f59e0b; /* Amber-500 */
  --accent-light: #fef3c7; /* Amber-100 */
  --danger-color: #ef4444; /* Red-500 */
  --success-color: #22c55e; /* Green-500 */
  --bg-color: #f8fafc; /* Slate-50 */
  --text-dark: #0f172a; /* Slate-900 */
  --text-gray: #475569; /* Slate-600 */
  --text-light: #94a3b8; /* Slate-400 */
  --white: #ffffff;
  
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
  
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-width: 1280px;
  --border-color: #cbd5e1;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Header & Top Bar */
.top-bar {
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-info {
  display: flex;
  gap: 20px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info i {
  color: var(--primary-color);
}

.top-bar-social a:hover {
  color: var(--primary-color);
}

.main-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.logo-text h1 {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
  padding: 100px 0 120px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.1) 0%, rgba(2,132,199,0.05) 70%);
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #0f172a;
}

.hero-content h2 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  width: 100%;
  max-width: 480px;
  height: 480px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  border: 8px solid rgba(255, 255, 255, 0.3);
  animation: blob-animation 8s ease-in-out infinite;
}

.hero-img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.9), rgba(2, 132, 199, 0.9));
}

.hero-img-placeholder i {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.hero-img-placeholder h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.4);
}

.hero-badge i {
  font-size: 2rem;
  color: var(--accent-color);
}

.hero-badge-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
}

.hero-badge-text p {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin: 0;
}

/* Animations */
@keyframes blob-animation {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Quick Services Widgets */
.quick-widgets {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.quick-widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.widget-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  border: 1px solid #f1f5f9;
}

.widget-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.widget-card-1 { border-top: 5px solid var(--primary-color); }
.widget-card-2 { border-top: 5px solid var(--secondary-color); }
.widget-card-3 { border-top: 5px solid var(--accent-color); }

.widget-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.widget-card-1 .widget-icon { background: rgba(13, 148, 136, 0.1); color: var(--primary-color); }
.widget-card-2 .widget-icon { background: rgba(2, 132, 199, 0.1); color: var(--secondary-color); }
.widget-card-3 .widget-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent-color); }

.widget-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.widget-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.widget-card a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
}

.widget-card a:hover {
  color: var(--primary-hover);
}

/* Statistics Section */
.stats-section {
  padding: 80px 0;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
}

.stat-item:hover {
  background: var(--bg-color);
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* Section Header */
.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.25rem;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 16px auto 0 auto;
  border-radius: var(--border-radius-full);
}

/* Departments Section */
.departments-section {
  padding: 80px 0;
}

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

.dept-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: var(--transition-normal);
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.dept-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 3.5rem;
}

.dept-content {
  padding: 24px;
}

.dept-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.dept-content p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
  height: 64px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.dept-link:hover {
  color: var(--primary-hover);
}

/* Booking Widget Homepage */
.home-booking-banner {
  background: linear-gradient(rgba(13, 148, 136, 0.9), rgba(15, 118, 110, 0.95)), url('/images/hospital-bg.jpg') center/cover;
  padding: 80px 0;
  color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  margin-bottom: 80px;
}

.home-booking-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.home-booking-text h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.home-booking-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.home-booking-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-booking-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-booking-info-item i {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.home-booking-form-wrapper {
  background: var(--white);
  padding: 36px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.home-booking-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group label span {
  color: var(--danger-color);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* News Section Home */
.news-section {
  padding: 80px 0;
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.news-list-column h3, .notices-list-column h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.news-cards-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-card-home {
  background: var(--bg-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.news-card-home:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-img-placeholder {
  height: 150px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 16px;
}

.news-card-img-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.news-card-home-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-home-content h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-home-content p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Notice List */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-item {
  background: var(--bg-color);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.notice-item:hover {
  background: var(--primary-light);
  border-left-color: var(--primary-color);
}

.notice-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.notice-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Alert Boxes */
.alert {
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.alert-success {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 80px 0 20px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-about p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
}

.footer-contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-contact-item h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.footer-contact-item p {
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-bottom p a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Pages Header styling */
.page-header {
  background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 60px;
  border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

/* About Page Specific styling */
.about-section {
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 16px;
}

/* Doctors & Leadership Section Styling */
.leadership-section,
.doctors-section {
  padding: 48px 36px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
  margin-bottom: 50px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doctor-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.15);
  border-color: #93c5fd;
}

.doctor-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.doctor-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
  border: 3px solid #0284c7;
  transition: transform 0.35s ease;
}

.doctor-card:hover .doctor-avatar-circle {
  transform: scale(1.08);
}

.doctor-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img-placeholder img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 24px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doctor-info h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.doctor-info .doctor-title {
  color: #0284c7;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 5px 14px;
  border-radius: 50px;
}

.doctor-info p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Contact Page Specific styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.about-badge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.4) !important;
}

.about-quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15) !important;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method-item {
  display: flex;
  gap: 16px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 8px;
  border-radius: 8px;
}

.contact-method-item:hover {
  transform: translateX(4px);
  background-color: #f8fafc;
}

.contact-method-item i {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-method-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 80px;
}

.map-container iframe {
  display: block;
}

/* News List Page Styling */
.news-page-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}

.news-filter-sidebar {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.news-filter-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.filter-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-link {
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
}

.filter-link:hover, .filter-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.news-page-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-page-cards.full-width {
  grid-template-columns: 1fr;
}

.news-card-full {
  background: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  border: 1px solid #f1f5f9;
}

.news-card-full:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-full-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-full-content h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-card-full-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* News Detail Page */
.news-detail-container {
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 80px;
}

.news-detail-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.news-detail-header {
  margin-bottom: 30px;
}

.news-detail-header h1 {
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #0f172a;
}

.news-detail-body {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.news-detail-body p {
  margin-bottom: 20px;
}

.news-detail-body ul, .news-detail-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.news-detail-body li {
  margin-bottom: 8px;
}

.news-detail-body img {
  border-radius: var(--border-radius-md);
  margin: 30px auto;
  box-shadow: var(--shadow-md);
}

.related-articles-grid > div:hover,
.popular-news-grid > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

@media (max-width: 1024px) {
  .popular-news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .related-articles-grid,
  .popular-news-grid {
    grid-template-columns: 1fr !important;
  }
}

.recent-news-widget {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.recent-news-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.recent-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-news-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-news-item h4:hover {
  color: var(--primary-color);
}

.recent-news-item span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Department Detail Page Specific styling */
.dept-detail-container {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr;
  gap: 40px;
  margin-bottom: 80px;
}

.dept-info-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.dept-info-box h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.dept-info-box p {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.dept-contact-details {
  background: var(--bg-color);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-color);
  margin-top: 30px;
}

.dept-contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.dept-contact-details p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.dept-doctors-box h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.dept-doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-img {
    order: -1;
  }
  .quick-widgets-grid {
    grid-template-columns: 1fr;
  }
  .quick-widgets {
    margin-top: -30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .depts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-booking-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid,
  .footer-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .news-page-grid {
    grid-template-columns: 1fr;
  }
  .news-filter-sidebar {
    order: -1;
  }
  .news-detail-container {
    grid-template-columns: 1fr;
  }
  .recent-news-widget {
    margin-top: 30px;
  }
  .dept-detail-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-info {
    flex-direction: column;
    gap: 4px;
  }
  .main-header .container {
    height: 72px;
  }
  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .logo-text h1 {
    font-size: 1.05rem;
  }
  .logo-text p {
    font-size: 0.6rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-color);
  }
  .nav-menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero-content h2 {
    font-size: 2.2rem;
  }
  .hero-img-wrapper {
    max-width: 320px;
    height: 320px;
  }
  .depts-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  .news-page-cards {
    grid-template-columns: 1fr;
  }
  .dept-doctors-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .news-cards-layout {
    grid-template-columns: 1fr;
  }
}

/* CKEditor 5 Image alignment and layout styling in detail view */
.news-detail-body .image-style-side {
  float: right;
  margin-left: 20px;
  max-width: 50%;
}
.news-detail-body .image-style-align-left {
  float: left;
  margin-right: 20px;
  max-width: 50%;
}
.news-detail-body .image-style-align-right {
  float: right;
  margin-left: 20px;
  max-width: 50%;
}
.news-detail-body .image-style-block-align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: block;
}
.news-detail-body .image {
  clear: both;
  margin-top: 16px;
  margin-bottom: 16px;
}
.news-detail-body .image figcaption {
  font-size: 0.85rem;
  color: var(--text-gray);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Navigation Hover Dropdown Menu styles */
.nav-menu li {
  position: relative;
}

.nav-menu li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  text-align: left;
}

.dropdown-menu li {
  width: 100%;
  margin: 0 !important; /* Reset margin */
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  border-bottom: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background-color: var(--primary-light);
  color: var(--primary-color) !important;
}

/* Ensure no conflicts with header active links */
.dropdown-menu li a::after {
  display: none !important; /* Hide underline indicators for submenu */
}

/* --- Portal Styles Redesign (Quảng Ngãi Sơ Y Tế style) --- */
.portal-brand-bar {
  border-bottom: 1.5px solid #e2e8f0;
}

/* Nav Menu flat items styling */
.nav-menu li a.nav-link {
  color: #1e293b;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  padding: 16px 20px !important;
}

.nav-menu li a.nav-link::after {
  display: none !important; /* Hide default indicator line */
}

.nav-menu li a.nav-link:hover,
.nav-menu li a.nav-link.active {
  color: #0284c7 !important;
  background-color: #f8fafc;
  border-bottom: 3px solid #0284c7;
}

/* Submenu layout hover fix */
.nav-menu li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sidebar portal widget card styling */
.portal-widget {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.portal-widget-header {
  background-color: #0284c7;
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #0369a1;
}

.portal-widget-body {
  padding: 15px;
}

/* List elements for Sơ Y Tế style */
.portal-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-bullet-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.portal-bullet-list li::before {
  content: "•";
  color: #0284c7;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
}

.portal-bullet-list li a {
  font-size: 0.86rem;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.portal-bullet-list li a:hover {
  color: #0284c7;
  text-decoration: underline;
}

/* Floating & static grids styling */
.portal-grid-3x {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

/* Responsive configurations for header portal elements */
@media (max-width: 992px) {
  .portal-brand-bar .container {
    padding: 10px 20px;
  }
  .menu-toggle {
    display: block !important;
  }
  .nav-menu {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 2.5px solid #0284c7;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active {
    display: flex !important;
  }
  .nav-menu li {
    width: 100%;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-menu li a.nav-link {
    padding: 14px 20px !important;
    width: 100%;
  }
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background-color: #f8fafc !important;
  }
}

/* Department Grid & Cards Styling */
.depts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.dept-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(2, 132, 199, 0.15);
  border-color: #93c5fd;
}

.dept-img-placeholder {
  height: 200px;
  width: 100%;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.dept-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dept-card:hover .dept-img-placeholder img {
  transform: scale(1.06);
}

.dept-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
  border: 3px solid #0284c7;
  transition: transform 0.35s ease;
}

.dept-avatar-circle i {
  font-size: 2.5rem;
  color: #0284c7;
}

.dept-card:hover .dept-avatar-circle {
  transform: scale(1.08);
}

.dept-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dept-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.dept-content p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.dept-link {
  color: #0284c7;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.dept-link:hover {
  gap: 10px;
  color: #0369a1;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Optimizations (Screen <= 992px & <= 768px)
   ========================================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .hero-slider-container {
    height: 300px !important;
  }

  /* Force all 2-column & multi-column page grids into 1 column on mobile/tablet */
  .news-grid,
  .news-page-grid,
  .portal-main-grid,
  .home-booking-grid,
  .quick-widgets-grid,
  .stats-grid,
  .depts-grid,
  .doctors-grid,
  .contact-grid,
  .news-cards-layout,
  .popular-news-grid,
  .related-articles-grid,
  .dept-doctors-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .news-filter-sidebar,
  .portal-sidebar-col {
    order: 2 !important;
  }
}

@media (max-width: 768px) {
  /* HIDE UNNECESSARY CLUTTER ON MOBILE */
  .top-bar {
    display: none !important;
  }
  #liveClock {
    display: none !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Brand Bar & Logo */
  .portal-brand-bar {
    padding: 10px 0 !important;
  }
  .portal-logo-icon, .portal-logo img {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }
  .portal-logo h1 {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }
  .portal-logo span {
    font-size: 0.6rem !important;
  }
  
  /* Menu Toggle Button */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    background: #0284c7 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
  }
  .menu-toggle i {
    font-size: 1.25rem !important;
    color: #ffffff !important;
  }

  /* Main Nav Menu Full Drawer Overlay on Mobile */
  .main-header {
    position: relative !important;
  }
  .nav-menu {
    display: none;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 99999 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }
  .nav-menu.active {
    display: flex !important;
  }
  .mobile-menu-title-bar {
    display: flex !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .nav-menu li {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #ffffff !important;
  }
  .nav-menu .nav-link {
    padding: 15px 22px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    color: #0f172a !important;
  }
  .nav-menu li.has-dropdown .dropdown-menu {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 4px solid #0284c7 !important;
    background: #f8fafc !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .nav-menu li.has-dropdown.open .dropdown-menu {
    display: block !important;
  }
  .dropdown-menu li a {
    padding: 12px 26px !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
  }

  /* Sub Bar Search Box */
  .portal-sub-bar .container {
    padding: 4px 16px !important;
  }
  .portal-sub-bar form {
    width: 100% !important;
    height: 38px !important;
  }

  /* Slider Carousel */
  .hero-slider-container {
    height: 220px !important;
  }
  .slide-caption h2 {
    font-size: 1.05rem !important;
    margin-bottom: 4px !important;
  }
  .slide-caption p {
    font-size: 0.78rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide-caption {
    padding: 12px 16px !important;
  }

  /* Tables horizontal touch scrolling */
  .table-responsive,
  .wysiwyg-content table,
  table {
    display: block;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* WYSIWYG Content Images */
  .wysiwyg-content img,
  .news-detail-body img,
  .news-detail-body .image-style-side,
  .news-detail-body .image-style-align-left,
  .news-detail-body .image-style-align-right {
    float: none !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 14px auto !important;
    display: block !important;
  }

  /* Form Controls */
  input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }

  /* Footer */
  .footer-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Mobile Sticky Bottom Action Bar */
  body {
    padding-bottom: 60px !important;
  }

  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 2px solid #0284c7 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12) !important;
    z-index: 9999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 4px !important;
  }

  .mobile-action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    flex: 1 !important;
    height: 100% !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
  }

  .mobile-action-btn i {
    font-size: 1.2rem !important;
  }

  .mobile-action-btn.emergency {
    color: #ef4444 !important;
  }
  .mobile-action-btn.booking {
    color: #0284c7 !important;
  }
  .mobile-action-btn.location {
    color: #10b981 !important;
  }
  .mobile-action-btn.hotline {
    color: #f59e0b !important;
  }

  .mobile-action-btn:active {
    transform: scale(0.92) !important;
  }
}

@media (max-width: 480px) {
  .portal-logo h1 {
    font-size: 0.88rem !important;
  }
  .hero-slider-container {
    height: 180px !important;
  }
  .slide-caption h2 {
    font-size: 0.95rem !important;
  }
  .slide-caption p {
    display: none !important;
  }
}


