/* General Reset & Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e8f1f9;
  color: #003366;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

header {
  background-color: #003366;
  color: white;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.logo img {
  height: 70px;
  max-width: 100%;
}

.clinic-name {
  font-size: 1.6rem;
  font-weight: bold;
}

.tagline {
  font-size: 0.95rem;
  color: #cce6ff;
}

nav {
  background-color: #00509e;
}

nav .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.75rem 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  font-weight: 700;
  color: #ffcc00;
}

/* Hero Slideshow */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 12s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }

@keyframes fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}

.quote-box {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 51, 102, 0.7);
  padding: 1.5rem 2.5rem;
  border-radius: 10px;
  border: 3px solid darkblue;
  max-width: 80%;
  text-align: center;
}

.quote-box h1 {
  font-size: 2rem;
  font-style: italic;
  color: white;
}

/* Section Styles */
main {
  padding: 2rem 0;
}

h2 {
  border-bottom: 2px solid #003366;
  padding-bottom: 0.3rem;
  margin-top: 2rem;
}

h3 {
  color: #003366;
  text-align: center;
}

.section {
  background-color: white;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.info-item {
  flex: 1 1 220px;
}

/* Profile Card */
.profile-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: #003366;
  padding: 1.5rem;
  color: white;
  border-radius: 10px;
  border: 3px solid black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.profile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid black;
}

.profile-details h3 {
  margin-top: 0;
  color: white;
}

.profile-details p {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #00509e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Mobile & Tablet Styles */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .hero {
    height: 60vh;
  }

  .quote-box h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    flex-direction: column;
    text-align: center;
  }

  nav .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .hero {
    height: 50vh;
  }

  .slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .quote-box {
    padding: 1rem;
    max-width: 90%;
  }

  .quote-box h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 40vh;
  }

  .clinic-name {
    font-size: 1.3rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .quote-box h1 {
    font-size: 1rem;
  }
}

.contact-header {
    background-color: #003366; /* Dark blue */
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto; /* Center horizontally */
}

.contact-tagline {
    text-align: center;
    margin-top: 15px;
    font-size: 1.2em;
    color: #003366; /* Optional: match the theme */
}

