/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set base font and background */
body {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #555;
}

/* Header styles */
header {
  background-color: #005678;
  color: white;
  padding: 20px;
  text-align: center;
}

header img {
  display: block;
  margin: 0 auto 10px;
}

header h1 {
  margin-bottom: 10px;
}

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

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Main content */
main {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 10px;
  margin-top: 40px;
  color: #666;
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.03);
}

.welcome-section {
  padding: 40px 20px;
  background-color: #fff;
}

.welcome-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-text {
  flex: 1 1 60%;
  min-width: 300px;
  /* border-left: 5px solid #0f4a48; */
  padding-left: 20px;
}
/* Indented bullet list for welcome section */
.welcome-text .indented-list {
  padding-left: 2rem; /* same as services-list */
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.testimonials-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-box {
  background-color: #f8f8f8;
  padding: 20px;
  font-style: italic;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
  border: none;
}

.testimonial-box .quote {
  font-size: 20px;
  color: #0f4a48;
  line-height: 1;
  margin-bottom: 10px;
}

.full-width {
  width: 100%;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px; /* 👈 Add this line */
}

.testimonial-grid .testimonial-box {
  flex: 1 1 calc(33.333% - 20px);
  margin: 0;
}

/* Hide visual content of empty side boxes */
.testimonial-box.empty {
  visibility: hidden;
}

/* Center the middle testimonial */
.testimonial-grid.last-row {
  justify-content: center;
}

.centered-box {
  flex: 0 0 60%; /* or try 50% for narrower width */
  margin: 0 auto;
}

.testimonial-videos {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.faq-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  color: #0f4a48;
  margin-bottom: 30px;
  text-align: center;
}

.faq-item {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #f8f8f8;
  border-left: 4px solid #0f4a48;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  font-size: 1.2rem;
  color: #0f4a48;
  margin-bottom: 10px;
}

.faq-item p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

@media (max-width: 768px) {
  .testimonial-grid {
    flex-direction: column;
  }

  .testimonial-grid .testimonial-box {
    flex: 1 1 100%;
  }
}

.quote {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0f4a48;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.top-bar {
  background-color: #005678; /* deep blue */
  color: white;
  font-size: 0.9rem;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-left span,
.top-bar-right span {
  margin-right: 15px;
}

.top-bar a {
  color: white;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* info after welcome blurb */
.services-links {
  padding: 40px 20px;
  background-color: #f4f9f9;
}

.services-list {
  padding: 40px 20px;
  background-color: #fff;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  flex: 1 1 30%;
  background-color: white;
  /* border-left: 4px solid #0f4a48; */ /* Remove this line */
  padding: 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.service-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-box h3 {
  margin-top: 0;
  color: #0f4a48;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.service-item {
  text-align: center;
  text-decoration: none;
  color: #333;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.service-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.service-item h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: "Lato", sans-serif;
}

.service-item:hover {
  transform: translateY(-5px);
}

/* other services bullets */
.services-list ul {
  padding-left: 2rem; /* or try 30px */
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* two column services with pic */
.two-column-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.services-left {
  flex: 1 1 48%;
}

.services-right {
  flex: 1 1 48%;
}

.services-left img,
.services-right img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
  }

  .services-right {
    margin-top: 20px;
  }
}

/* doctors formating */
.doctor-grid-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.doctor-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.doctor-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.doctor-card img {
  width: 100%;
  height: 300px; /* Adjust height as needed */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.doctor-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.doctor-card h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #0f4a48;
}

.doctor-card p {
  font-size: 0.95rem;
  color: #555;
}

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

  .doctor-card {
    max-width: 100%;
  }
}

/* Main navigation */
.main-nav {
  position: relative;
  text-align: center;
  margin-top: 20px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.main-nav li a:hover {
  text-decoration: underline;
}

/* Hamburger icon - hidden on desktop */
.nav-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  position: absolute;
  top: -10px;
  right: 20px;
}

/* Responsive mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    background-color: #005678;
    padding: 10px;
    margin-top: 40px;
  }

  .main-nav ul.active {
    display: flex;
  }

  .main-nav li {
    margin: 10px 0;
  }
}

/* Provider profile layout */
.profile-section {
  padding: 40px 20px;
  background-color: #fff;
}

.profile-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-image {
  flex: 1 1 40%;
}

.profile-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.profile-text {
  flex: 1 1 55%;
}

.profile-text h2 {
  font-size: 1.5rem;
  color: #0f4a48;
  margin-bottom: 20px;
}

.profile-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Stack on small screens */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-text {
    flex: 1 1 100%;
  }
}

/* chat dialog lens choice */
/* ===== Lens Chat Styling ===== */
.lens-chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lens-chat .msg {
  padding: 15px 20px;
  border-radius: 10px;
  line-height: 1.6;
}

.lens-chat .role {
  font-weight: bold;
  margin-bottom: 8px;
}

/* Patient messages */
.lens-chat .msg.patient {
  background-color: #e0f7fa; /* light teal */
  border: 1px solid #b2ebf2;
}

/* Educator messages */
.lens-chat .msg.educator {
  background-color: #f1f8e9; /* light green */
  border: 1px solid #dcedc8;
}

.lens-chat ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.lens-chat li {
  margin-bottom: 4px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .lens-chat {
    padding: 0 10px;
  }
}
/* end chat styling */

/* Centered container for the button */
.button-center {
  text-align: center;
  margin-top: 20px;
}

/* Centered CTA section for the vision simulator */
.simulator-cta {
  width: 100%;
  padding: 24px 0;
  display: flex; /* forces centering regardless of parent rules */
  justify-content: center; /* centers the button horizontally */
}

.sim-cta-button {
  display: inline-block;
  background-color: #005678; /* lighter blue */
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.sim-cta-button:hover {
  background-color: #1c8ac0; /* slightly darker on hover */
  transform: translateY(-2px);
}
