/* ==========================================================================
   GLOBAL HOSPITAL - ULTIMATE HEALTHCARE THEME CSS
   Modern, Professional, Responsive Medical Portal Styling
   Color Palette:
     - Primary Medical Navy: #0A2540
     - Primary Royal Blue:   #0052CC
     - Vibrant Medical Teal:  #00A896
     - Accent Coral/Red:     #E63946
     - Light Background:     #F8FAFC
     - Card Background:      #FFFFFF
     - Text Dark:            #1E293B
     - Text Muted:           #64748B
   ========================================================================== */

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

/* --- Root Variables --- */
:root {
  --primary-navy: #0a2540;
  --primary-blue: #0052cc;
  --primary-hover: #003d99;
  --teal: #00a896;
  --teal-light: #e6f7f5;
  --teal-dark: #028071;
  --accent-red: #e63946;
  --accent-red-light: #fde8ea;
  --accent-amber: #f59e0b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.12);
  --shadow-hover: 0 20px 48px rgba(0, 82, 204, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Typography --- */
html, body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

/* --- 1. Top Announcement / Emergency Bar --- */
.hms-topbar {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hms-topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hms-topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hms-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 57, 70, 0.2);
  border: 1px solid rgba(230, 57, 70, 0.4);
  color: #ff858d;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hms-topbar-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
  animation: hms-pulse 1.8s infinite;
}

@keyframes hms-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.hms-topbar-link {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.hms-topbar-link:hover {
  color: #ffffff;
}

.hms-topbar-link i {
  color: var(--teal);
}

.hms-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hms-topbar-login-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.hms-topbar-login-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

/* --- Mobile Topbar Specific Styling --- */
.hms-mobile-topbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.hms-mtb-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hms-mtb-logo-wrap {
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  max-width: 60%;
}

.hms-mtb-logo-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hms-mtb-logo-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.hms-mtb-phone-pill {
  background: rgba(0, 168, 150, 0.2);
  border: 1px solid var(--teal);
  color: #5eead4 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.hms-mtb-phone-pill:hover, .hms-mtb-phone-pill:focus {
  color: #ffffff !important;
  background: var(--teal);
}

.hms-mtb-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hms-mtb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hms-mtb-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}

.hms-mtb-btn.login {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.hms-mtb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

/* --- 2. Main Brand Header --- */
.hms-main-header {
  background: var(--bg-white);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}

.hms-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hms-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.hms-brand-logo {
  max-height: 62px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.hms-brand:hover .hms-brand-logo {
  transform: scale(1.02);
}

.hms-brand-text {
  display: flex;
  flex-direction: column;
}

.hms-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hms-brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Header Action Buttons */
.hms-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hms-btn-nav-contact {
  background: var(--teal-light);
  color: var(--teal-dark) !important;
  border: 1.5px solid var(--teal);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.hms-btn-nav-contact:hover {
  background: var(--teal);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 168, 150, 0.35);
}

.hms-btn-nav-appt {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0070f3 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.hms-btn-nav-appt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 82, 204, 0.5);
  background: linear-gradient(135deg, #0044aa 0%, #0059cc 100%);
}

.hms-btn-hero-contact {
  background: rgba(0, 168, 150, 0.2);
  border: 1.5px solid #00a896;
  color: #5eead4 !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  cursor: pointer;
}

.hms-btn-hero-contact:hover {
  background: #00a896;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 168, 150, 0.4);
}

/* ==========================================================================
   HOMEPAGE BODY STYLES
   ========================================================================== */

/* --- Hero Section --- */
.hms-hero-section {
  position: relative;
  min-height: 580px;
  background: linear-gradient(115deg, rgba(10, 37, 64, 0.94) 0%, rgba(10, 37, 64, 0.82) 45%, rgba(0, 82, 204, 0.4) 100%),
              url('https://sankardevahospital.com/public/uploads/banner/1681358181.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 0 130px;
  display: flex;
  align-items: center;
}

.hms-hero-content {
  max-width: 720px;
}

.hms-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 168, 150, 0.25);
  border: 1px solid rgba(0, 168, 150, 0.5);
  color: #5eead4;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hms-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

.hms-hero-title span {
  color: #38bdf8;
}

.hms-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 620px;
}

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

.hms-btn-hero-primary {
  background: var(--teal);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0, 168, 150, 0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.hms-btn-hero-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 168, 150, 0.5);
}

.hms-btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hms-btn-hero-secondary:hover {
  background: #ffffff;
  color: var(--primary-navy) !important;
  border-color: #ffffff;
  transform: translateY(-3px);
}

/* --- Floating Quick Action Cards (Overlapping Hero) --- */
.hms-quick-actions-wrap {
  margin-top: -65px;
  position: relative;
  z-index: 10;
}

.hms-quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hms-quick-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hms-quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

.hms-qc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.hms-qc-icon-wrap.blue { background: #e0f2fe; color: #0284c7; }
.hms-qc-icon-wrap.teal { background: #ccfbf1; color: #0d9488; }
.hms-qc-icon-wrap.red  { background: #ffe4e6; color: #e11d48; }
.hms-qc-icon-wrap.amber{ background: #fef3c7; color: #d97706; }

.hms-quick-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.hms-quick-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.hms-qc-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.hms-quick-card:hover .hms-qc-link {
  gap: 10px;
}

/* --- Section Global Layouts --- */
.hms-section {
  padding: 85px 0;
}

.hms-section.bg-white {
  background: #ffffff;
}

.hms-section.bg-light {
  background: var(--bg-light);
}

.hms-section.bg-navy {
  background: var(--primary-navy);
  color: #ffffff;
}

.hms-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.hms-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
  background: #e0f2fe;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hms-section.bg-navy .hms-badge-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.hms-section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hms-section.bg-navy .hms-section-title {
  color: #ffffff;
}

.hms-section-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.hms-section.bg-navy .hms-section-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Stats Counter Bar --- */
.hms-stats-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.hms-stat-box {
  padding: 0 10px;
  position: relative;
}

.hms-stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

.hms-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.1;
  letter-spacing: -1px;
}

.hms-stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Departments Cards Grid --- */
.hms-depts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hms-dept-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hms-dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

.hms-dept-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.hms-dept-card:hover .hms-dept-icon {
  transform: scale(1.08);
}

.hms-dept-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.hms-dept-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hms-dept-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hms-dept-card:hover .hms-dept-link {
  gap: 10px;
}

/* --- Facilities Grid --- */
.hms-facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hms-facility-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  transition: var(--transition);
}

.hms-facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal);
}

.hms-facility-top {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.hms-facility-body {
  padding: 22px;
}

.hms-facility-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.hms-facility-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Why Choose Us (Dark Navy Section) --- */
.hms-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hms-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  gap: 18px;
}

.hms-feature-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
}

.hms-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hms-feature-text h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hms-feature-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* --- Interactive Appointment Banner --- */
.hms-appt-banner-box {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  box-shadow: 0 16px 40px rgba(0, 82, 204, 0.25);
  position: relative;
  overflow: hidden;
}

.hms-appt-banner-text h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hms-appt-banner-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  margin: 0;
}

.hms-btn-banner-white {
  background: #ffffff;
  color: var(--primary-blue) !important;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hms-btn-banner-white:hover {
  background: var(--primary-navy);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.35);
}

/* --- How It Works Steps --- */
.hms-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
}

.hms-step-card {
  padding: 24px 18px;
}

.hms-step-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--teal));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.3);
}

.hms-step-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.hms-step-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Testimonials Grid --- */
.hms-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hms-testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hms-testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-light);
}

.hms-testi-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hms-testi-quote {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.hms-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hms-testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--teal));
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hms-testi-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-navy);
}

.hms-testi-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Contact & Map Strip --- */
.hms-contact-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hms-contact-details {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 48px;
}

.hms-contact-details h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 28px;
}

.hms-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.hms-ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.hms-ci-icon.red {
  background: rgba(230, 57, 70, 0.2);
  color: #ff858d;
}

.hms-ci-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hms-ci-value {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

.hms-ci-value a {
  color: #ffffff;
}

.hms-ci-value a:hover {
  color: #38bdf8;
}

.hms-map-wrap {
  min-height: 400px;
}

.hms-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   ULTRA-MODERN APPOINTMENT POPUP MODAL STYLING
   ========================================================================== */
.hms-modal .modal-dialog {
  margin-top: 50px;
  margin-bottom: 50px;
}

.hms-modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(10, 37, 64, 0.3);
  overflow: hidden;
}

.hms-modal-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #0052cc 100%);
  color: #ffffff;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.hms-mh-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #38bdf8;
  flex-shrink: 0;
}

.hms-mh-text h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
}

.hms-mh-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin: 0;
}

.hms-modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #ffffff;
  opacity: 0.8;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hms-modal-close:hover {
  opacity: 1;
  color: #ffffff;
  transform: scale(1.15);
}

.hms-modal-body {
  padding: 30px;
  background: #ffffff;
}

.hms-form-group {
  margin-bottom: 20px;
}

.hms-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 7px;
}

.hms-field-label i {
  color: var(--teal);
  margin-right: 5px;
}

.hms-form-input {
  height: 46px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dark);
  background-color: #ffffff;
  transition: var(--transition);
  box-shadow: none;
}

textarea.hms-form-input {
  height: auto;
  min-height: 85px;
}

.hms-form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
  outline: none;
}

/* Segmented Control for Patient Type */
.hms-segmented-control {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.hms-segment-btn {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  margin: 0;
  transition: var(--transition);
}

.hms-segment-btn.active {
  background: #ffffff;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hms-segment-btn:hover:not(.active) {
  color: var(--text-dark);
}

.hms-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
}

.hms-mf-security {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hms-btn-submit {
  background: linear-gradient(135deg, var(--primary-blue), #0070f3);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 28px;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.hms-btn-submit:hover {
  background: linear-gradient(135deg, #0044aa, #0059cc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.45);
}

.hms-btn-cancel {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hms-btn-cancel:hover {
  background: #e2e8f0;
}

/* Standalone Appointment Card */
.hms-standalone-appt-card {
  max-width: 800px;
  margin: 0 auto;
}

.hms-standalone-appt-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.hms-sah-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.hms-standalone-appt-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0 0 4px;
}

.hms-standalone-appt-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.hms-footer {
  background: #06182a;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.hms-footer-top {
  padding: 70px 0 45px;
}

.hms-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.hms-footer-brand-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hms-footer-brand-sub {
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hms-footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.hms-footer-emergency-box {
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hms-feb-icon {
  font-size: 24px;
  color: #ff858d;
}

.hms-feb-text span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.hms-feb-text a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.hms-footer-col h4 {
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.hms-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
}

.hms-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hms-footer-links li {
  margin-bottom: 11px;
}

.hms-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.hms-footer-links a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.hms-footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.hms-footer-contact-item i {
  color: var(--teal);
  margin-top: 4px;
}

.hms-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hms-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.hms-social-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-3px);
}

/* --- Bottom Copyright Bar --- */
.hms-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.hms-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   INTERNAL PAGE WRAPPER & SUBPAGE STYLES
   ========================================================================== */
.hms-page-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #0052cc 100%);
  color: #ffffff;
  padding: 50px 0 45px;
  margin-bottom: 40px;
}

.hms-page-banner h1 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hms-page-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.hms-card-container {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 50px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .hms-quick-cards-grid,
  .hms-depts-grid,
  .hms-facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hms-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .hms-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .hms-header-widgets {
    display: none;
  }
  .hms-features-grid,
  .hms-testimonials-grid,
  .hms-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hms-contact-box {
    grid-template-columns: 1fr;
  }
  .hms-appt-banner-box {
    padding: 36px 28px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hms-main-header {
    display: none !important;
  }
  .hms-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.25);
  }
  .hms-quick-cards-grid,
  .hms-depts-grid,
  .hms-facilities-grid,
  .hms-features-grid,
  .hms-testimonials-grid,
  .hms-steps-grid,
  .hms-stats-bar,
  .hms-footer-grid {
    grid-template-columns: 1fr;
  }
  .hms-stat-box:not(:last-child)::after {
    display: none;
  }
  .hms-hero-section {
    padding: 50px 0 80px;
    min-height: auto;
  }
  .hms-quick-actions-wrap {
    margin-top: -30px;
  }
  .hms-contact-details {
    padding: 30px 20px;
  }
}
