*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1f2937; overflow-x: hidden; }

:root {
  --primary: #0A5EB0;
  --primary-dark: #07428a;
  --primary-light: #e8f0fe;
  --accent: #0d9488;
  --accent-light: #ccfbf1;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== Header ===== */
.top-bar {
  background: var(--primary);
  color: white;
  padding: 6px 0;
  font-size: 13px;
}
.top-bar a { color: white; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

.main-header {
  background: white;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}
.main-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--gray-500); letter-spacing: 1px; }

/* ===== Navigation ===== */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav a:hover::after, .nav a.active::after { transform: translateX(-50%) scaleX(1); }
.nav .appoint-btn {
  background: var(--primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
}
.nav .appoint-btn::after { display: none; }
.nav .appoint-btn:hover { background: var(--primary-dark); }

/* ===== Mobile Menu ===== */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 28px; height: 3px; background: var(--gray-800); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 999;
  padding: 100px 30px 30px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 20px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 18px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--primary-light); color: var(--primary); }
.mobile-nav .appoint-btn-mobile {
  background: var(--primary);
  color: white !important;
  text-align: center;
  margin-top: 16px;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: var(--gray-600);
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.mobile-close:hover { background: var(--gray-100); }

/* ===== Hero Slider ===== */
.hero-slider { position: relative; width: 100%; height: 85vh; min-height: 500px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,94,176,0.85) 0%, rgba(13,148,136,0.7) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 24px; }
.hero-content h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; color: white; line-height: 1.15; margin-bottom: 16px; }
.hero-content p { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 28px; max-width: 560px; }
.hero-content .btn-primary {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
}
.hero-content .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slider-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.slider-dot.active { background: white; border-color: white; transform: scale(1.2); }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: white; border: none; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 20px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--gray-900); color: white; }
.section-blue { background: var(--primary-light); }
.section-accent { background: var(--accent-light); }
.section-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.section-title.light { color: white; }
.section-subtitle { font-size: 17px; color: var(--gray-500); max-width: 600px; line-height: 1.7; }
.section-subtitle.light { color: rgba(255,255,255,0.8); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(10,94,176,0.3); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid var(--primary);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
  border: 1px solid var(--gray-100);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.card p { font-size: 15px; color: var(--gray-500); line-height: 1.6; }

/* ===== Doctor Card ===== */
.doctor-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
  border: 1px solid var(--gray-100);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.doctor-card img { width: 100%; height: 300px; object-fit: cover; }
.doctor-info { padding: 24px; }
.doctor-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.doctor-info .role { color: var(--primary); font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.doctor-info .qual { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.doctor-info .exp { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ===== Stat Counter ===== */
.stat-box { text-align: center; padding: 30px; }
.stat-number { font-size: clamp(40px, 5vw, 56px); font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 16px; color: rgba(255,255,255,0.8); margin-top: 8px; }

/* ===== Testimonials ===== */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-100);
}
.testimonial-card .stars { color: #f59e0b; font-size: 18px; margin-bottom: 12px; }
.testimonial-card p { font-size: 15px; color: var(--gray-600); line-height: 1.8; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-card .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author h4 { font-size: 16px; font-weight: 600; }
.testimonial-card .author span { font-size: 13px; color: var(--gray-500); }

/* ===== Carousel ===== */
.carousel { overflow: hidden; position: relative; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-track > * { flex-shrink: 0; width: calc(100% / 3); padding: 0 12px; }
@media (max-width: 768px) { .carousel-track > * { width: 100%; } }
@media (min-width: 769px) and (max-width: 1024px) { .carousel-track > * { width: 50%; } }

/* ===== Appointment Form ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s;
  background: white;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10,94,176,0.1); }
.form-control.error { border-color: #ef4444; }
.error-msg { font-size: 13px; color: #ef4444; margin-top: 4px; display: none; }

/* ===== Footer ===== */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer h4 { color: white; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 4px 0; transition: color 0.3s; font-size: 14px; }
.footer a:hover { color: white; }
.footer .contact-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.footer .contact-item .icon { color: var(--primary); font-size: 18px; width: 20px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 40px; font-size: 14px; text-align: center; }

/* ===== WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.whatsapp-float .tooltip {
  position: absolute;
  right: 64px;
  background: white;
  color: var(--gray-800);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.whatsapp-float:hover .tooltip { opacity: 1; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 999;
  background: var(--primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10,94,176,0.3);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 20px 24px;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-consent.show { display: flex; }
.cookie-consent p { font-size: 14px; color: var(--gray-600); }
.cookie-consent .btn-sm { padding: 10px 24px; font-size: 14px; }

/* ===== Loading Spinner ===== */
.loading-spinner {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.spinner { width: 48px; height: 48px; border: 4px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #07428a 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 8px; }
.page-header p { font-size: 17px; color: rgba(255,255,255,0.8); }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: white; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.4s ease;
  max-width: 400px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast .toast-icon { font-size: 24px; }
.toast.success .toast-icon { color: #10b981; }
.toast.error .toast-icon { color: #ef4444; }
.toast .toast-text h4 { font-size: 16px; font-weight: 600; }
.toast .toast-text p { font-size: 14px; color: var(--gray-500); }

/* ===== Grid ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2-3 { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-2-3 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ===== Social Icons ===== */
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 16px;
  transition: all 0.3s;
  text-decoration: none;
}
.social-links a:hover { transform: translateY(-3px); }

/* ===== Media Coverage ===== */
.media-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
  border: 1px solid var(--gray-100);
}
.media-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.media-card img { width: 100%; height: 220px; object-fit: cover; }
.media-card .media-body { padding: 24px; }
.media-card .date { font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.media-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.media-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 16px; }
.media-card .read-more { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 14px; }

/* ===== Accordion ===== */
.accordion { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.accordion-btn:hover { background: var(--gray-50); }
.accordion-btn .arrow { transition: transform 0.3s; font-size: 14px; }
.accordion-btn.active .arrow { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-content-inner { padding: 0 24px 18px; font-size: 15px; color: var(--gray-600); line-height: 1.7; }

/* ===== Filter Buttons ===== */
.filter-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--gray-600);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

/* ===== Facility Card ===== */
.facility-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
}
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.facility-card:hover img { transform: scale(1.05); }
.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
}
.facility-overlay h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.facility-overlay p { font-size: 14px; opacity: 0.9; line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero-slider { height: 60vh; min-height: 400px; }
  .section { padding: 50px 0; }
  .top-bar .container { flex-direction: column; gap: 4px; }
  .footer { padding: 40px 0 0; }
  .whatsapp-float { width: 48px; height: 48px; font-size: 24px; bottom: 16px; right: 16px; }
  .back-to-top { bottom: 76px; right: 16px; }
  .slider-arrow { width: 40px; height: 40px; font-size: 16px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .page-header { padding: 50px 0 40px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-slider { height: 65vh; }
}

@media (min-width: 769px) {
  .mobile-nav, .mobile-close { display: none !important; }
}
