body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f6f8;
  color: #333;
}

header {
  background: #d60000;
  color: white;
  padding: 20px 0;
  text-align: center;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 40px 20px;
  text-align: center;
}

.doctor-card {
  display: inline-block;
  margin: 20px;
  padding: 20px;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.doctor-card img {
  width: 150px;
  height: 150px;
  border-radius: 100px;
}
#services {
  background: #fff;
  padding: 50px 20px;
  text-align: center;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background: #f9f9f9;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  margin-top: 15px;
  color: #d60000;
}

.service-card p {
  padding: 0 15px 20px;
  font-size: 0.95rem;
}

form {
  max-width: 400px;
  margin: 0 auto;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

form button {
  background: #d60000;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px;
}
#slider {
  position: relative;
  width: 100%;      /* Full width */
  max-width: 100vw; /* Limit max width to viewport */
  margin: 40px 0;
  overflow: hidden;
  border-radius: 0; /* Remove rounding if you want full edge-to-edge */
  box-shadow: none; /* Remove shadow for full-width look */
}

.slider-container {
  position: relative;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;      /* Full width of container */
  height: auto;     /* Maintain aspect ratio */
  display: block;
  object-fit: cover; /* Cover the slider area nicely */
  max-height: 500px; /* Optional: limit max height for tall images */
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 18px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.prev {
  left: 15px;   /* Add some spacing from left edge */
}

.next {
  right: 15px;  /* Add some spacing from right edge */
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.fade {
  animation: fadeEffect 2s;
}

@keyframes fadeEffect {
  from { opacity: 0.4 }
  to { opacity: 1 }
}

/* Optional: on very small screens reduce button size */
@media (max-width: 480px) {
  .prev, .next {
    font-size: 22px;
    padding: 10px 14px;
  }
}

/* Container styling */
#contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Form layout */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Inputs and textarea styling */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #007BFF;
}

/* Button styling */
#contactForm button {
  padding: 0.85rem;
  font-size: 1.1rem;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contactForm button:hover {
  background-color: #0056b3;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  #contact {
    padding: 1rem 0.5rem;
  }

  #contactForm button {
    font-size: 1rem;
    padding: 0.75rem;
  }
}


ul.messages {
  list-style: none;
  padding: 0.5rem 1rem;
  margin: 1rem auto;
  max-width: 600px;
}

ul.messages li {
  padding: 0.75rem 1rem;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

ul.messages li.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

ul.messages li.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ccc;
  gap: 1rem;
  position: relative;
}

/* Logos and title styling (from before) */
.logo img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #007BFF;
}
.left-logo { order: 0; }
.right-logo { order: 2; }
.header-container h1 {
  flex-grow: 1;
  text-align: center;
  margin: 0;
  font-size: 1.8rem;
  order: 1;
}

/* Hide nav toggle by default (desktop) */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  order: 3;
  color: #007BFF;
}

/* Nav menu desktop styles */
.nav-menu {
  order: 4;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.nav-menu ul li a:hover {
  color: #007BFF;
}

/* MOBILE STYLES */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  /* Hide nav menu by default */
  .nav-menu {
    width: 100%;
    display: none;
    order: 4;
  }

  /* Show nav when active */
  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-menu ul li a {
    display: block;
    padding: 0.5rem 1rem;
  }
}





