:root {
  --primary: #001f4d;
  --secondary: #00b8d9;
  --accent: #00e5ff;
  --background: #f4f9ff;
  --text-dark: #12223b;
  --white: #FFFFFF;
  --shadow: 0 15px 35px rgba(0, 31, 77, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--background);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }
a { color: inherit; text-decoration: none; }
img { object-fit: cover; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 12px 25px rgba(0, 31, 77, 0.16);
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #072d63, #0099bc);
  border-color: transparent;
}
.btn-outline-success {
  color: #0f766e;
  border-color: #2dd4bf;
}

.loading-screen {
  display: none !important;
}
.spinner {
  width: 54px; height: 54px;
  border: 4px solid rgba(13,110,253,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.back-to-top {
  position: fixed;
  display: none;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  border-radius: 999px;
  display: none;
}

/* Full Hero Section with Background Slider */
.hero-full-bg-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-full-bg-section .hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-full-bg-section .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease-out;
  transform: scale(1.05);
}

.hero-full-bg-section .hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-full-bg-section .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient Overlay for high legibility & medical visual aesthetic */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 18, 43, 0.88) 0%,
    rgba(0, 31, 77, 0.72) 45%,
    rgba(0, 184, 217, 0.35) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Hero Content Typography & Elements */
.hero-content-wrapper {
  z-index: 3;
}

.min-vh-85 {
  min-height: 78vh;
}

.hero-badge {
  background: rgba(0, 229, 255, 0.16);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00e5ff, #80f3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-light-90 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 680px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-cyan-light {
  color: #80f3ff;
}

/* Glassmorphism Stat Cards */
.glass-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 229, 255, 0.45);
}

/* WhatsApp Hero Button */
.btn-whatsapp-hero {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}
.btn-whatsapp-hero:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

}

.hero-card, .search-card, .feature-card, .service-card, .process-card, .contact-form, .card, .contact-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-card:hover, .search-card:hover, .feature-card:hover, .service-card:hover, .process-card:hover, .contact-form:hover, .card:hover, .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.12) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.bg-accent-subtle { background: rgba(0, 229, 255, 0.16) !important; }
.bg-secondary-subtle { background: rgba(0, 184, 217, 0.14) !important; }

.icon-box {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13,110,253,0.15), rgba(32,201,151,0.15));
  color: var(--primary);
  font-size: 24px;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff !important;
  background: linear-gradient(135deg, #001f4d 0%, #0088ab 100%);
  box-shadow: 0 8px 18px rgba(0, 31, 77, 0.2);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.specialty-card img { height: 160px; width: 100%; }

.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transform: translateY(20px);
  transition: all .7s ease;
}
.fade-left { transform: translateX(-20px); }
.fade-right { transform: translateX(20px); }
.fade-up.active, .fade-left.active, .fade-right.active {
  opacity: 1;
  transform: translate(0);
}

/* Top Announcement & Helpline Bar */
.top-header-bar {
  background: linear-gradient(135deg, #00122e 0%, #00224d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.text-cyan { color: #00e5ff !important; }
.top-bar-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.top-bar-link:hover {
  color: #00e5ff;
}

/* Custom Language Select Dropdown */
.custom-language-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 20px;
  padding: 2px 10px;
  transition: all 0.25s ease;
}

.custom-language-selector:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #00e5ff;
}

.custom-language-selector .language-dropdown {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  padding: 2px 20px 2px 4px !important;
  cursor: pointer;
  box-shadow: none !important;
}

.custom-language-selector .language-dropdown option {
  background: #001f4d !important;
  color: #ffffff !important;
  font-weight: 500;
  padding: 6px 12px;
}

.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0px !important;
}

/* RTL Layout for Arabic and Urdu */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}
[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

/* Main Header & Navbar */
.main-header-sticky {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 31, 77, 0.08);
  box-shadow: 0 10px 30px rgba(0, 31, 77, 0.06);
  transition: all 0.3s ease;
}

.brand-logo-wrapper {
  display: inline-block;
}
.brand-logo {
  border: 2px solid #00b8d9;
  transition: transform 0.3s ease;
}
.brand-logo-wrapper:hover .brand-logo {
  transform: scale(1.05);
}

.pulse-indicator {
  width: 11px;
  height: 11px;
  background-color: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: #64748b;
}

/* Navigation Links */
.nav-link-custom {
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 8px 16px !important;
  border-radius: 20px;
  transition: all 0.25s ease !important;
}

.nav-link-custom:hover {
  color: #00b8d9 !important;
  background: rgba(0, 184, 217, 0.08);
  transform: translateY(-1px);
}

.nav-link-custom.active {
  color: #001f4d !important;
  background: linear-gradient(135deg, rgba(0, 31, 77, 0.08), rgba(0, 184, 217, 0.15));
  font-weight: 700 !important;
}

/* Header Buttons */
.btn-appointment-glow {
  background: linear-gradient(135deg, #001f4d 0%, #0088ab 100%);
  color: #ffffff !important;
  border: none;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0, 31, 77, 0.22);
  transition: all 0.3s ease;
}

.btn-appointment-glow:hover {
  background: linear-gradient(135deg, #002d6b 0%, #00b8d9 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 184, 217, 0.35);
}

.btn-icon-whatsapp {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.btn-icon-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* Hospital Page & Cards Redesign */
.region-filter-pill {
  background: rgba(0, 31, 77, 0.05);
  color: #001f4d;
  border: 1px solid rgba(0, 31, 77, 0.15);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.region-filter-pill:hover,
.region-filter-pill.active {
  background: linear-gradient(135deg, #001f4d, #0088ab);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 31, 77, 0.2);
}

.hospital-card-custom {
  background: #ffffff;
  border: 1px solid rgba(0, 31, 77, 0.08);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.hospital-img-header {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background-color: #00122e;
}

.hospital-img-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hospital-card-custom:hover .hospital-img-header img {
  transform: scale(1.06);
}

.hospital-card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 31, 77, 0.12);
  border-color: rgba(0, 184, 217, 0.4);
}

.hospital-card-custom .hospital-badge-region {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 184, 217, 0.12);
  color: #0088ab;
}

.hospital-card-custom .specialty-tag-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
}

/* Doctor Page & Cards Redesign */
.doctor-card-custom {
  background: #ffffff;
  border: 1px solid rgba(0, 31, 77, 0.08);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.doctor-card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 31, 77, 0.12);
  border-color: rgba(0, 184, 217, 0.4);
}

.doctor-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 31, 77, 0.08), rgba(0, 184, 217, 0.15));
  color: #001f4d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Specialty Page & Cards Redesign */
.specialty-card-custom {
  background: #ffffff;
  border: 1px solid rgba(0, 31, 77, 0.08);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.specialty-card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 31, 77, 0.12);
  border-color: rgba(0, 184, 217, 0.4);
}

.specialty-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 184, 217, 0.12), rgba(0, 31, 77, 0.08));
  color: #0088ab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--white); }
footer { border-top: 1px solid rgba(255,255,255,0.08); }

/* Premium Footer Redesign */
.footer-main-custom {
  background: linear-gradient(180deg, #00122e 0%, #000a1a 100%);
  border-top: 1px solid rgba(0, 184, 217, 0.15);
  color: rgba(255, 255, 255, 0.75);
}

.footer-main-custom h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-main-custom h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #00b8d9, transparent);
  border-radius: 2px;
}

[dir="rtl"] .footer-main-custom h5::after {
  left: auto;
  right: 0;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.6rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links-list a:hover {
  color: #00b8d9;
  transform: translateX(4px);
}

[dir="rtl"] .footer-links-list a:hover {
  transform: translateX(-4px);
}

.footer-bottom-bar {
  background: #000612;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.designer-highlight-badge {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 31, 77, 0.5));
  color: #00e5ff !important;
  border: 1px solid rgba(0, 229, 255, 0.4);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.15);
  transition: all 0.25s ease;
  text-decoration: none;
}

.designer-highlight-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.3);
  color: #ffffff !important;
  border-color: #00e5ff;
}

/* Contact Page Custom Styling */
.contact-card-gradient {
  background: #ffffff;
  border: 1px solid rgba(0, 31, 77, 0.08);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 31, 77, 0.06);
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-quick-card {
  background: #ffffff;
  border: 1px solid rgba(0, 31, 77, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.contact-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 31, 77, 0.1);
  border-color: rgba(0, 184, 217, 0.4);
}
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 15px 30px rgba(18, 140, 126, 0.25);
  font-size: 1.5rem;
  text-decoration: none;
}
.whatsapp-float:hover {
  color: var(--white);
  transform: translateY(-2px);
}
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 15px 30px rgba(18, 140, 126, 0.25);
  font-size: 1.5rem;
}
.whatsapp-float:hover {
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-section .display-4 { font-size: 2rem; }
}
