:root {
  --primary: #0a2d4a;
  --primary-light: #134272;
  --primary-dark: #061e31;
  --accent: #1a8bc4;
  --gold: #c8a84e;
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-gray: #f0f4f8;
  --text: #1e293b;
  --text-light: #64748b;
  --danger: #ef4444;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--off-white);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-light { background: var(--light-gray); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-label::before { content: ''; width: 30px; height: 2px; background: var(--accent); }
.section-title {
  font-size: 2.2rem; font-weight: 800; color: var(--primary);
  margin-bottom: 16px; line-height: 1.2;
}

/* ---- Animations ---- */
.fade-up { opacity: 0; transform: translateY(40px); transition: all 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(40px); transition: all 0.7s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.fade-in { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.visible { opacity: 1; }

@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---- Top Bar ---- */
.top-bar { background: var(--primary); color: var(--white); padding: 8px 0; font-size: 0.82rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-left a { display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.top-bar-left a:hover { color: var(--gold); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.1);
  font-size: 0.75rem; transition: var(--transition);
}
.social-icons a:hover { background: var(--gold); color: var(--primary); }

/* ---- Header ---- */
.header-main { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: var(--transition); }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.logo-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; color: var(--white); }
.logo-text { display: flex; flex-direction: column; }
.logo-text h1 { font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-text span { font-size: 0.7rem; color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 28px 16px; font-size: 0.88rem; font-weight: 500; color: var(--text); transition: var(--transition); position: relative; }
.nav-menu > li > a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; transition: var(--transition); }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--accent); }
.nav-menu > li > a:hover::after, .nav-menu > li > a.active::after { width: 60%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-emergency { display: flex; align-items: center; gap: 8px; background: var(--danger); color: var(--white); padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; transition: var(--transition); animation: pulse 2s infinite; }
.btn-emergency:hover { background: #dc2626; transform: scale(1.05); }
.btn-appointment-header { background: var(--accent); color: var(--white); padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; transition: var(--transition); }
.btn-appointment-header:hover { background: var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 28px; height: 3px; background: var(--primary); border-radius: 3px; transition: var(--transition); }

/* ---- Hero ---- */
.hero { min-height: 85vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light)); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(26,139,196,0.15) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(200,168,78,0.08) 0%, transparent 50%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 80px 24px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 32px; line-height: 1.8; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--white); padding: 16px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--white); padding: 16px 32px; border-radius: 50px; font-weight: 600; font-size: 1rem; border: 2px solid rgba(255,255,255,0.3); transition: var(--transition); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.hero-stat { text-align: center; padding: 20px; background: rgba(255,255,255,0.08); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); }
.hero-stat .number { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-main { width: 100%; aspect-ratio: 4/3; background: var(--light-gray); border-radius: var(--radius); overflow: hidden; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-feature { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--light-gray); border-radius: var(--radius); }
.about-feature .icon { font-size: 1.5rem; flex-shrink: 0; }
.about-feature h4 { font-size: 0.95rem; font-weight: 600; color: var(--primary); }
.about-feature p { font-size: 0.82rem; color: var(--text-light); }

/* ---- Departments Slider ---- */
.slider-wrap { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s ease; gap: 0; }
.slider-slide { min-width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 4px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; background: var(--white); border-radius: 50%; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); transition: var(--transition); cursor: pointer; }
.slider-arrow:hover { background: var(--accent); color: var(--white); }
.slider-arrow.prev { left: -12px; }
.slider-arrow.next { right: -12px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--light-gray); border: none; cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--accent); width: 28px; border-radius: 5px; }

.service-card { background: var(--white); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .icon { width: 60px; height: 60px; margin: 0 auto 14px; background: var(--light-gray); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; transition: var(--transition); }
.service-card:hover .icon { background: var(--accent); color: var(--white); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.service-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ---- Doctors ---- */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: var(--transition); }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-card-image { height: 240px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: flex-end; justify-content: center; position: relative; overflow: hidden; }
.doctor-card-image::after { content: '👨‍⚕️'; font-size: 4rem; position: absolute; bottom: 10px; opacity: 0.4; }
.doctor-card-body { padding: 20px; }
.doctor-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.doctor-card-body .specialty { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin: 4px 0; }
.doctor-card-body .experience { font-size: 0.82rem; color: var(--text-light); }

/* ---- Testimonials Slider ---- */
.testi-slider { position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform 0.5s ease; }
.testi-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; background: var(--white); border-radius: 50%; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--primary); transition: var(--transition); cursor: pointer; }
.testi-arrow:hover { background: var(--accent); color: var(--white); }
.testi-arrow.prev { left: -10px; }
.testi-arrow.next { right: -10px; }

.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { font-size: 0.92rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--light-gray); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-light); }
.testimonial-author h4 { font-size: 0.95rem; font-weight: 600; color: var(--primary); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* ---- CTA ---- */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---- Footer ---- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer p { font-size: 0.88rem; line-height: 1.8; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.88rem; }
.footer-contact .icon { flex-shrink: 0; color: var(--gold); }
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ---- Page Banner ---- */
.page-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0 50px; text-align: center; }
.page-banner h1 { font-size: 2.4rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; margin-bottom: 16px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: var(--gold); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }

/* ---- Forms ---- */
.appointment-form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--light-gray); border-radius: 8px; font-size: 0.92rem; transition: var(--transition); background: var(--off-white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26,139,196,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-full { grid-column: 1 / -1; }
.btn-submit { width: 100%; padding: 16px; background: var(--accent); color: var(--white); border-radius: 8px; font-weight: 700; font-size: 1.05rem; transition: var(--transition); }
.btn-submit:hover { background: var(--primary); }

/* ---- FAQ ---- */
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-size: 1rem; font-weight: 600; color: var(--primary); text-align: left; transition: var(--transition); }
.faq-question:hover { background: var(--light-gray); }
.faq-question .icon { font-size: 1.2rem; transition: var(--transition); }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: flex; gap: 16px; transition: var(--transition); margin-bottom: 16px; }
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-info-card .icon { width: 52px; height: 52px; background: var(--light-gray); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-info-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.contact-info-card p { font-size: 0.88rem; color: var(--text-light); }
.contact-info-card a { color: var(--accent); font-weight: 500; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 400px; background: var(--light-gray); }

/* ---- WhatsApp & BTT ---- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); animation: pulse 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); }
.back-to-top { position: fixed; bottom: 90px; right: 24px; z-index: 999; width: 44px; height: 44px; background: var(--primary); color: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn { padding: 12px 24px; background: var(--white); border: 1px solid var(--light-gray); border-radius: 8px; font-weight: 600; font-size: 0.88rem; color: var(--text-light); transition: var(--transition); }
.tab-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: var(--transition); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-image { height: 200px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: 0.5; }
.blog-card-body { padding: 24px; }
.blog-card-body .date { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 8px 0; line-height: 1.4; }
.blog-card-body p { font-size: 0.88rem; color: var(--text-light); }

.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); }
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .slider-slide, .testi-slide { grid-template-columns: repeat(3, 1fr); }
  .doctors-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 992px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .slider-slide, .testi-slide { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.8rem; }
  .cta-section h2 { font-size: 1.8rem; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); flex-direction: column; padding: 80px 24px 24px; box-shadow: var(--shadow-lg); transition: var(--transition); z-index: 1001; }
  .nav-menu.active { right: 0; }
  .nav-menu > li > a { padding: 14px 0; }
  .header-actions .btn-emergency span, .header-actions .btn-appointment-header { display: none; }
  .header-actions .btn-emergency { padding: 10px 14px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .slider-slide, .testi-slide { grid-template-columns: 1fr; }
  .slider-arrow, .testi-arrow { display: none; }
  .doctors-grid, .blog-grid { grid-template-columns: 1fr; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.5rem; }
  .about-features { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 1.5rem; }
  .page-banner h1 { font-size: 1.6rem; }
  .page-banner { padding: 60px 0 40px; }
  .appointment-form { padding: 24px; }
  .contact-info-card { flex-direction: column; }
}
