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

:root {
  --primary: #0057a3;
  --primary-dark: #003d72;
  --primary-light: #e8f4fd;
  --secondary: #00a651;
  --accent: #f7941d;
  --text-dark: #333;
  --text-light: #fff;
  --text-muted: #666;
  --bg-light: #f5f9fc;
  --bg-white: #fff;
  --border: #e1e8ed;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}
.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: var(--text-light); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,87,163,0.3); }
.btn-secondary { background: var(--secondary); color: var(--text-light); }
.btn-secondary:hover { background: #008f44; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,166,81,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--text-light); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a { color: var(--text-light); transition: var(--transition); }
.top-bar a:hover { color: var(--accent); }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left i { margin-right: 5px; }
.top-bar-right { display: flex; gap: 15px; align-items: center; }
.top-bar-right .emergency {
  background: var(--accent);
  color: var(--text-dark);
  padding: 4px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  animation: pulse-blink 2s infinite;
}
@keyframes pulse-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== HEADER ===== */
.header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 800;
  font-size: 1.3rem;
}
.logo-text h1 { font-size: 1.3rem; color: var(--primary); font-weight: 800; line-height: 1.2; }
.logo-text span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 5px; }
.nav a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav .appointment-btn {
  background: var(--secondary);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
}
.nav .appointment-btn:hover { background: #008f44; color: var(--text-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #003d72 100%);
  color: var(--text-light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}
.hero-content h2 span { color: var(--accent); }
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.stat-card .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .label { font-size: 0.9rem; opacity: 0.85; margin-top: 5px; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image {
  background: var(--primary-light);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image .placeholder-icon {
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.3;
}
.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, transparent 50%);
  opacity: 0.1;
}
.about-text h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 15px; line-height: 1.8; }
.about-features { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.about-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ===== SERVICES SECTION ===== */
.services { background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.service-icon {
  width: 65px;
  height: 65px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: white; }
.service-card h4 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text-dark); }
.service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== DOCTORS SECTION ===== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.doctor-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.doctor-img {
  height: 220px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.doctor-img .avatar-icon {
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.4;
}
.doctor-info { padding: 20px; }
.doctor-info h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 5px; }
.doctor-info .specialty {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.doctor-info p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--primary); color: var(--text-light); }
.testimonials .section-title { color: var(--text-light); }
.testimonials .section-subtitle { color: rgba(255,255,255,0.7); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px;
}
.testimonial-card .stars {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.testimonial-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-dark);
}
.testimonial-author .author-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-author .author-detail { font-size: 0.8rem; opacity: 0.7; }

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 25px; }
.contact-detail { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-detail .cd-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail .cd-text h5 { font-size: 0.95rem; margin-bottom: 3px; }
.contact-detail .cd-text p { font-size: 0.85rem; color: var(--text-muted); }

.contact-form { background: var(--bg-light); padding: 35px; border-radius: var(--radius); }
.contact-form h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-white);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,163,0.1);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-about h3 { font-size: 1.2rem; margin-bottom: 15px; }
.footer-about p { font-size: 0.85rem; opacity: 0.8; line-height: 1.7; }
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: var(--transition);
}
.footer-col ul li a:hover { opacity: 1; color: var(--accent); padding-left: 5px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #003d72 100%);
  color: var(--text-light);
  padding: 50px 0;
  text-align: center;
}
.page-header h2 { font-size: 2rem; font-weight: 700; }
.page-header p { opacity: 0.85; margin-top: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 5px;
  }
  .hamburger { display: flex; }
  .hero-content h2 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 576px) {
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .top-bar-left, .top-bar-right { width: 100%; justify-content: center; }
  .section { padding: 50px 0; }
}
