/* ================= Global ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  line-height: 1.6;
  background: #ffffff;
  color: #555555;
}

/* ================= Topbar ================= */
.topbar {
  background: #004080;
  color: #fff;
  text-align: center;
  padding: 5px 20px;
  font-size: 14px;
}

.topbar a {
  color: #00c6ff;
}

/* ================= Navbar ================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0066cc;
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-weight: bold;
  font-size: 22px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  font-weight: 500;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #004080;
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    padding: 10px;
  }
  nav ul.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* ================= Hero ================= */
.hero {
  height: 80vh;
  background: url('/images/hero.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.btn {
  background: linear-gradient(90deg, #00c6ff, #004080);
  padding: 12px 25px;
  color: #fff;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #004080, #00c6ff);
}

/* ================= Sections ================= */
section {
  padding: 60px 20px;
  text-align: center;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #004080;
}

/* ================= About ================= */
.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.about-text {
  max-width: 500px;
  text-align: left;
}

.about-image img {
  max-width: 200px;
  border-radius: 10px;
}

/* ================= Services ================= */
.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.service-card {
  background: #f9f9f9;
  padding: 25px;
  width: 250px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: #004080;
  margin-bottom: 10px;
}

.service-card button {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(90deg, #00c6ff, #004080);
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

.service-card button:hover {
  background: linear-gradient(90deg, #004080, #00c6ff);
}

/* ================= Doctors ================= */
.doctors-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.doctor-card {
  background: #f9f9f9;
  padding: 20px;
  width: 250px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.doctor-card img {
  width: 100%;
  border-radius: 15px;
}

.doctor-card h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 24px;
  color: #004080;
  margin: 10px 0 5px;
}

.doctor-card button, .doctor-card .btn-small {
  display: block;
  margin: 10px auto 0;
  padding: 10px 20px;
  border-radius: 25px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(90deg, #00c6ff, #004080);
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.doctor-card button:hover, .doctor-card .btn-small:hover {
  background: linear-gradient(90deg, #004080, #00c6ff);
}

/* ================= Gallery ================= */
.gallery-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.gallery-grid img {
  width: 220px;
  border-radius: 15px;
  transition: 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ================= FAQ ================= */
.faq-grid p {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 20px;
}

/* ================= Explore ================= */
#explore {
  background: #004080;
  color: #fff;
  padding: 60px 20px;
}

/* ================= Contact ================= */
#contact iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 15px;
  margin-bottom: 15px;
}

/* ================= Footer ================= */
footer {
  background: #00264d;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

footer a {
  color: #00c6ff;
}

footer a:hover {
  color: #fff;
}

/* ================= Popups ================= */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  opacity: 0;
  transition: 0.3s ease;
}

.popup.show {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  animation: popupFade 0.4s ease;
}

.popup-content h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: #004080;
  margin-bottom: 10px;
}

.popup-content p {
  margin-bottom: 10px;
  text-align: left;
}

.popup-content input, .popup-content textarea {
  width: 90%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.popup-content .btn-small {
  margin-top: 10px;
  display: block;
}

.popup-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* ================= Animations ================= */
@keyframes popupFade {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  .services-grid, .doctors-grid, .gallery-grid, .about-content {
    flex-direction: column;
    align-items: center;
  }
  .service-card, .doctor-card, .about-text, .about-image img {
    width: 90%;
  }
}