/* ===== GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}
body {
  background: #f4f8fb;
  color: #333;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #ccff33;
  color: #000;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #0d3b66;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 60px;
  flex-wrap: wrap;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 22px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.btn-red {
  background: #e63946;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  background: linear-gradient(180deg, #0d3b66 0%, #12416e 100%);
  color: #fff;
  padding: 80px 20px;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 30px;
}
.btn-white {
  background: #fff;
  color: #0d3b66;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ===== MAIN SECTION ===== */
.main-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 1200px;
  margin: 60px auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ===== ABOUT (final aligned version) ===== */
.about-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  background: #f9fbfd;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: left;
}

.doctor-img {
  width: 280px;
  border-radius: 12px;
}

.about-text {
  max-width: 550px;
}

.about-text h2 {
  color: #0d3b66;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.about-text p {
  line-height: 1.5;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.highlight {
  color: #0d3b66;
  font-weight: 600;
  margin-bottom: 15px;
}

.discount {
  background: #e6f9ec;
  color: #046c29;
  border: 1px solid #c2f0c6;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 10px 0 20px 0; /* ✅ spacing cusub */
  display: inline-block;
  font-size: 0.9rem;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; /* ✅ haddii screen yaryahay si aysan isu dul marin */
}

.btn-outline {
  border: 2px solid #0d3b66;
  color: #0d3b66;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-outline:hover {
  background: #0d3b66;
  color: white;
}

.btn-red {
  background: #e63946;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-red:hover {
  background: #d5303e;
}

/* ===== SERVICES ===== */
.services {
  text-align: center;
}
.section-title {
  font-size: 1.8rem;
  color: #0d3b66;
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0d3b66;
  margin: 10px auto 0;
  border-radius: 2px;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  background: #0d3b66;
  color: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
}
.card .danger-title {
  background: #e63946;
}
.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e63946;
}
.card ul {
  list-style: none;
  text-align: left;
  margin: 10px 0 15px;
  line-height: 1.6;
}
.card li::before {
  content: "✔ ";
  color: #0d3b66;
  font-weight: bold;
}
.card-btn {
  margin-top: 10px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: #0d3b66;
  color: white;
  padding: 40px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.footer-grid a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
    text-align: center;
  }
  .doctor-img {
    width: 240px;
  }
  .main-section {
    padding: 40px 20px;
  }
}
