/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f4f4f4;
}

h1, h2, h3 {
  text-align: center;
  margin-bottom: 20px;
}

/* Header and Navigation */
header {
  width: 100%;
  background-color: #fff; /* Light/white background for a modern look */
  position: sticky;       /* Stays at the top when scrolling */
  top: 0;
  z-index: 999;           /* Ensure it stays above other elements */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;          /* Use flexbox to position branding and nav side by side */
  align-items: center;
  justify-content: space-between; /* Branding on left, nav on right */
  height: 70px;           /* Fixed header height (adjust as you like) */
}

/* Branding (Logo + Clinic Name) */
.branding {
  display: flex;
  align-items: center;
}

.clinic-logo {
  height: 50px;           /* Adjust to match your design */
  width: auto;
  margin-right: 15px;     /* Space between logo and clinic name */
}

.clinic-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;    /* Prevent text from wrapping if space is tight */
}

/* Main Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  margin-left: 30px;      /* Space between each nav item */
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;            /* Dark text for a professional look */
  font-size: 1rem;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover {
  color: #007BFF;         /* Accent color on hover (pick any color you like) */
}

/* Container for center alignment and max-width */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Row and Column system for side-by-side content */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.column {
  flex: 1;
  min-width: 300px;
}

/* Quotes Section with Translucent Background */
#quotes {
  position: relative;
  width: 100%;
  height: 50vh; /* Reduced height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("images/quote-bg2.png") no-repeat center center ;
  /* background: url("images/quote-bg.png") no-repeat center center ; */
  background-size: contain;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Overlay for background to make text stand out */
.quotes-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  z-index: 1;
}

.quote-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 20px;
}

.quote-slide {
  display: none;
  animation: fadeIn 1s ease-in-out;
}

.quote-text {
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.quote-author {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
}

/* Quote Navigation Arrows */
.quote-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 3;
}

.quote-nav span {
  font-size: 2rem;
  cursor: pointer;
  pointer-events: all;
  color: #fff;
}

/* Fade In Animation for Quotes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* About Section */
#about p {
  line-height: 1.6;
  text-align: justify;
  margin: 0 auto;
  max-width: 800px; /* narrower text block for better readability */
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: rgba(0,123,255,0.1);
  border-radius: 50%;
  transform: scale(1.5);
}

.service-card h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #007BFF;
}

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-columns li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.service-columns li::before {
  content: "✓";
  color: #007BFF;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* Gallery Section */
.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery img {
  width: 300px;
  height: auto;
  cursor: pointer;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Doctors Section */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.doctor-card {
  background: #fff;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 18px rgba(0,0,0,0.15);
}

.doctor-photo {
  width: 120px;
  height: 120px;
  object-fit: cover; /* Ensures the face area is properly visible */
  border-radius: 50%;
  margin-bottom: 15px;
}

.doctor-card h3 {
  margin: 0;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #333;
}

.doctor-title {
  font-weight: 600;
  color: #007BFF;
  margin-bottom: 10px;
  text-align: center;
}
/* Contact Form */
.contact-column form {
  max-width: 500px;
  margin: 0 auto;
}

.contact-column form input,
.contact-column form textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-column form button {
  padding: 10px 20px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-info {
  margin-top: 20px;
  text-align: center;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .service-columns {
    grid-template-columns: 1fr; /* single column inside each card on narrow screens */
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .quote-text {
    font-size: 1.4rem;
  }
  .quote-author {
    font-size: 1rem;
  }
  .row {
    flex-direction: column;
  }
}


@media (max-width: 800px) {
  .header-container {
    height: auto;         /* Let height expand if needed */
    flex-wrap: wrap;      /* Branding & nav can wrap on smaller screens */
    padding: 10px 20px;
  }

  .main-nav ul {
    flex-direction: column;
    margin-top: 10px;
    align-items: flex-start; /* Or center them if you prefer */
  }

  .main-nav ul li {
    margin-left: 0;
    margin-bottom: 10px;  /* spacing between items in vertical list */
  }
}


/* Responsive Grid Gallery */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 15px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;  /* Center the container */
}

.grid-container img {
  width: 100%;    /* Fill the cell width */
  height: auto;   /* Keep the aspect ratio */
  display: block;
}
