/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 8px 0;
}

.logo img {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: white;
  padding: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-size: 28px;
  color: #2c3e50;
  font-weight: 700;
}

.logo span {
  font-size: 18px;
  color: #27ae60;
  font-style: italic;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #2c3e50;
  transition: all 0.3s ease;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: #27ae60;
  color: white;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav a {
    display: block;
    padding: 12px;
    font-size: 18px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('assets/banner.jpg') no-repeat center center;
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
  color: #2c3e50;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  font-style: italic;
}

.btn {
  display: inline-block;
  background-color: #27ae60;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #2ecc71;
}

/* Mission Section */
.mission {
  background-color: #ecf0f1;
  padding: 40px 20px;
  text-align: center;
}

.mission h3 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.mission p {
  font-size: 20px;
  font-style: italic;
  color: #7f8c8d;
}

/* Quick Links Section */
.quick-links {
  padding: 50px 20px;
}

.quick-links .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.link-box {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.link-box h4 {
  color: #27ae60;
  margin-bottom: 10px;
  font-size: 20px;
}

.link-box p {
  color: #7f8c8d;
  font-size: 16px;
}

/* About Page */
.about-page {
  padding: 50px 20px;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.about-text h3 {
  color: #2c3e50;
  margin-top: 20px;
  font-size: 24px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Services Page */
.services-page {
  padding: 50px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: #27ae60;
  margin-bottom: 10px;
  font-size: 20px;
}

/* Doctors Page */
.doctors-page {
  padding: 50px 20px;
}

.doctors-page h2,
.doctors-page h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.doctor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.doctor-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.doctor-card h4 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 18px;
}

.doctor-card p {
  color: #7f8c8d;
  font-size: 14px;
  margin: 5px 0;
}

/* Contact Page */
.contact-page {
  padding: 50px 20px;
}

.contact-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 22px;
}

.contact-info p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.qr-code {
  text-align: center;
  margin-top: 20px;
}

.qr-code img {
  width: 150px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #2ecc71;
}



/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 20px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background-color: white;
  padding: 4px;
  margin-bottom: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.footer-section img:hover {
  transform: scale(1.05);
}

.footer-section h4 {
  color: #27ae60;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #27ae60;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 24px;
  }

  .logo span {
    font-size: 16px;
  }

  nav ul {
    gap: 10px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 18px;
  }

  .about-content,
  .contact-content,
  .portal-content {
    flex-direction: column;
  }

  .services-grid,
  .doctor-list,
  .quick-links .container {
    grid-template-columns: 1fr;
  }
}