body,
html {
  margin: 0;
  padding: 0px;
  background: #CEDEC4;
  background: linear-gradient(132deg, rgba(206, 222, 196, 1) 35%, rgba(246, 246, 244, 1) 53%);
  /* background: linear-gradient(316deg, rgba(206, 222, 196, 1) 35%, rgba(246, 246, 244, 1) 53%); */
  /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
}

#main-div {
  width: 100%;
  /* background-image: url(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc4sg8mfgkjf3n4asw7j.png); */
  /*min-height: 100vh;*/
  /* background-color: #096326; Matching background */
  /* background-color: #80b90c; */
  /* background: #A7D73C; */
  /* background: radial-gradient(circle, rgba(167, 215, 60, 1) 0%, rgba(166, 214, 41, 1) 46%, rgba(7, 99, 38, 1) 100%); */
  background: linear-gradient(to right, #e9f5e1, #d1e7c6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* padding: 2rem; */
  box-sizing: border-box;
}

.btn {
  display: inline-block;
  /* margin-top: 1em; */
  padding: 12px 24px;
  background-color: #156c2e;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #0e4c1f;
  color: white;
}

#section-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 2px solid rebeccapurple; */
  margin-top: 30px;
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  color: #1d3f20;

}

#container-div {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  /* gap: 2rem; */
}

.navbar-custom {
  width: 100%;
  background-color: transparent;
  padding: 10px;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  /* border: 2px solid red; */
}

.sec-1-div {
  /* min-height: 100vh; */
  background: #CEDEC4;
  background: linear-gradient(132deg, rgba(206, 222, 196, 1) 35%, rgba(246, 246, 244, 1) 53%);
}

.nav-logo {
  width: 150px;
  height: 130px;
  object-fit: cover;
  /* border: 2px solid rebeccapurple; */
  padding-bottom: -60px;

}

.nav-links {
  /* padding-top: 10px; */
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: white;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  min-width: 18px;
  height: 18px;
  display: inline-block;
  text-align: center;
  line-height: 16px;
  font-weight: bold;
}

.category-item {
  width: 150px;
}

.category-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Keeps it square */
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #ccc;
}

.category-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-img-wrapper img:hover {
  transform: scale(1.05);
}

/* .product-card {
    width: 180px;
    margin: 10px;
  } */

.box {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.overlay {
  background: rgba(255, 255, 255, 0.8);
}

/* .arch {
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
   */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  width: 100%;
}

.product-carousel {
  display: flex;
  gap: 40px;
  /* spacing between cards */
  overflow: hidden;
  width: 90%;
  justify-content: center;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.main-pro-style {
  width: 95%;
  margin: auto;
}

.product-card {
  width: calc(22% - 20px);
  flex-shrink: 0;
  height: 400px;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.product-card img {
  width: 100%;
  border-radius: 8px;
  height: 300px;
  object-fit: cover;
  padding-top: 10px;
}

.product-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-bottom: 10px;
}

.pro-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-cart {
  width: 30px;
  height: 30px;
  border: none;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 7px;
}

.btn-cart>img {
  width: 100%;
  height: auto;
}

.btn-cart>img {
  width: 100%;
}

.product-card .overlay {
  margin-top: 10px;
}

/* Tablet view: show 2 per row */
@media screen and (max-width: 768px) {
  .product-card {
    width: calc(100% / 2 - 10px);
  }
}

/* Mobile view: show 1 per row */
@media screen and (max-width: 480px) {
  .product-card {
    width: 100%;
  }

  .carousel-container {
    flex-direction: column;
  }
}


.login {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: whitesmoke;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-top: -5px;
}

.login:hover {
  color: white;
  background-color: black;
  /* border: 1px solid white; */
}


.form-container {
  width: 100%;
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.form-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background-color: #7857d2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.form-container button:hover {
  background-color: #5a3bb7;
}

.form-container p {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.form-container p a {
  color: #7857d2;
  text-decoration: none;
}

.form-container p a:hover {
  text-decoration: underline;
}

#first-div {
  flex: 1;
}

#first-div p {
  font-size: 3.6rem;
  color: white;
  margin: 0 0 1rem;
  line-height: 1.3;
}

/* #offer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 10px;
} */
.special-offer {
  color: white;
  width: 45%;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.svg-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  background: transparent;
}

.appointment-btn {
  background-color: #7857d2;
  color: white;
  border: none;
  padding: 1rem 1rem;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  /* margin-left: 1rem; */
}

/* #sec-div {
  flex: 1;
  text-align: center;
}

#sec-div img {
  width: 100%;
  max-width: 500px;
} */

@media (max-width: 768px) {
  #container-div {
    flex-direction: column;
    text-align: center;
  }

  #first-div h1 {
    font-size: 2rem;
  }

  .appointment-btn {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(132deg, rgba(206, 222, 196, 1) 35%, rgba(246, 246, 244, 1) 53%);
} */

/* Override section height in mobile */


/* 
#circle-container {
  position: relative;
  width: 700px;
  height: 700px;
  margin: auto;
  display: none;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #d3efdc;
  border-radius: 50%;
  padding: 40px 60px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333;
  z-index: 1;
}

.icon1 {
  position: absolute;
  width: 140px;
  height: 120px;
  background: #deefd3;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  transform-origin: center;
  transition: 0.3s;
}

.icon1:hover {
  transform: scale(1.1);
  background: #cedec4;
}

.icon1 img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 6px;
  background-color: transparent;
  mix-blend-mode: multiply;
}

.accordion-columns {
  display: flex;
  flex-wrap: wrap;

  justify-content: space-between;
  gap: 10px;
}

.accordion-column {
  flex: 1;
  min-width: 45%;

  display: flex;
  flex-direction: column;
  gap: 10px;
}


.accordion-item {
  background: #e0f7ea;
  border-radius: 8px;
  padding: 10px 15px;
}

.accordion-item summary {
  font-weight: bold;
  cursor: pointer;
}

.accordion-item p {
  margin: 5px 0 0;
  font-size: 0.95rem;
} */

.skin {
  margin: auto;
}

.skin-section {
  padding: 20px 20px 70px 20px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;

}

.skin-flex {
  gap: 80px;
  max-width: 1200px;
}

.skin-image {
  flex: 1 1 400px;
  margin-top: 30px;
}

.skin-content {
  flex: 1 1 500px;
}


/* Show circle layout ONLY on desktop */
/* @media (min-width: 768px) and (max-width:1024px){
  #circle-container {
    display:none !important ;
  }

  #accordion-container {
    display: block;
    padding: 20px;
  }
} */

/* Default: Show accordion for all smaller widths */
/* #circle-container {
  display: none;
}

#accordion-container {
  display: block;
} */

@media (max-width: 768px) {
  .skin-section {
 padding: 20px 15px 50px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .skin-flex {
   
    padding: 20px 15px 50px 15px;
  }

  .skin-image img {
    width: 100%;
  }

  .skin {
    text-align: center;
    font-size: 1.2rem;
    /* padding-top: 100px; */
    /* margin-bottom: 30px; */
  }
  .skin-content h3{
    font-size: 1.3rem;
    text-align: center;
  }
}

/* Tablet View (769px to 1024px) */
/* Tablet View (769px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .skin-section {
    padding: 40px 20px;
    /* Remove the red border after debugging */
    /* border: 2px solid red; */
    display: flex;
    /* Ensure flex container properties are active */
    flex-direction: column;
    /* Stack elements vertically in tablet for better readability */
    align-items: center;
    /* Center items horizontally */
    justify-content: center;
  }

  .skin-flex {
    flex-direction: column;
    /* Stack children vertically */
    gap: 40px;
    width: 100%;
    /* Take full width of parent */
    max-width: 700px;
    /* Optional: limit width for better readability on larger tablets */
  }

  .skin-image {
    flex: none;
    /* Remove flex-basis for image in this view, let it take natural width */
    width: 60%;
    /* max-width: 200px; */
    margin-left: auto;
    /* Center the image */
    margin-right: auto;
    /* Center the image */
    text-align: center;
  }

  .skin-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    /* Ensures image respects width and margin auto */
  }

  .skin-content {
    flex: none;
    /* Remove flex-basis for content, let it take natural width */
    width: 90%;
    /* Adjust content width to fit better */
    padding: 0 10px;
    text-align: left;
    margin-left: auto;
    /* Center the content block */
    margin-right: auto;
    /* Center the content block */
  }

  .skin h1 {
    font-size: 2.2rem;
    text-align: center;
    /* Center the heading */
    margin-bottom: 30px;
    /* Add some space below the heading */
  }

  /* Adjustments for general text within skin-content */
  .skin-content h3 {
    font-size: 1.3rem;
    /* Slightly smaller for tablets */
    text-align: center;
  }

  .skin-content strong {
    font-size: 1.1rem;
    /* Adjust font size for strong tags */
  }

  .skin-content p {
    font-size: 1rem;
    /*
   Adjust font size for paragraphs */
  }
  .skin-content p:last-child {
    /* The italicized consultation text */
    text-align: left;
    /* This specific paragraph should be centered based on your previous intent */
    font-size: 0.95rem;
    /* Slightly smaller for the note */
    margin-top: 10px;
  }
}


@media (max-width: 768px) {

  .clinic-flex {
    gap: 40px;
  }
}


/* Base styles (desktop first approach) */
.hair {
  text-align: center;
  font-size: 1.2rem;
}

.hair-section {
  padding: 20px 20px 70px 20px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hair-flex {
  display: flex;
  flex-direction: row;
  /* side-by-side on desktop */
  gap: 80px;
  max-width: 1200px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  /* Allows wrapping on smaller desktop sizes if content is too wide */
  margin-top: 30px;
}

.hair-image {
  flex: 1 1 400px;
  /* Base flex-basis for desktop */
}

.hair-image img {
  width: 100%;
}

.hair-content {
  flex: 1 1 500px;
  /* Base flex-basis for desktop */
}

/* Tablet View (769px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hair-section {
    padding: 40px 20px;
    display: flex;
    /* Ensure flex container properties are active */
    flex-direction: column;
    /* Stack elements vertically in tablet for better readability */
    align-items: center;
    /* Center items horizontally */
    justify-content: center;
  }

  .hair {
    font-size: 2.2rem;
    /* Adjust heading size for tablet */
    text-align: center;
    /* Center the heading */
    margin-top: 0;
    /* Reset specific margin if it causes issues */
    margin-bottom: 40px;
    /* Add more space below heading */
  }

  .hair-flex {
    flex-direction: column;
    /* Stack image and content vertically */
    gap: 40px;
    /* Reduced gap for tablet */
    width: 100%;
    /* Take up more width */
    max-width: 700px;
    /* Max width for consistency */
  }

  .hair-image {
    flex: none;
    order: -1;
    /* Remove flex-basis for image in this view, let it take natural width */
    width: 60%;
    /* max-width: 200px; */
    margin-left: auto;
    /* Center the image */
    margin-right: auto;
    /* Center the image */
    text-align: center;
  }

  .hair-image img {
    width: 100%;
    /* Ensure image fills its container */
    height: auto;
    border-radius: 10px;
    display: block;
    /* Important for margin:auto to work on flex items */
  }

  .hair-content {
    flex: none;
    /* Disable flex growth/shrink/basis */
    width: 100%;
    /* Adjust content width for tablet */
    padding: 0 10px;
    text-align: left;
    margin-left: auto;
    /* Center the content block */
    margin-right: auto;
  }

  .hair-content h3 {
    font-size: 1.3rem;
    /* Adjust font size */
    text-align: center;
    /* This is correctly set to center */
    margin-bottom: 15px;
  }

  .hair-content .section-group strong {
    font-size: 1.1rem;
    /* Adjust font size for strong tags */
    display: block;
    /* Ensure strong is a block-level element for text-align to work on its text */
    text-align: left;
    /* Explicitly align strong's content left */
  }

  .hair-content .section-group p {
    display: block;
    text-align: left !important;
    /* <--- ADDED !important here as a last resort */
    font-size: 1rem;
    /* border: 2px solid black; */
    /* Remove after debugging */
  }

  .hair-content p:last-child {
    /* The italicized consultation text */
    text-align: left;
    /* This specific paragraph should be centered based on your previous intent */
    font-size: 0.95rem;
    /* Slightly smaller for the note */
    margin-top: 10px;
  }
}

/* Mobile View (max-width: 768px - combining your existing mobile queries) */
@media (max-width: 768px) {

  /* Changed from 767px to 768px for consistency */
  .hair-section {
    padding: 20px 15px 50px 15px;
    /* Adjust padding for mobile */
  }

  .hair {
    font-size: 1.8rem;
    /* Smaller heading for mobile */
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
  }

  .hair-flex {
    flex-direction: column;
    /* Always stack on mobile */
    gap: 30px;
    /* Smaller gap */
    width: 100%;
    /* Take full width */
  }

  .hair-image {
    order: -1;
    /* Move image to the top */
    flex: none;
    width: 90%;
    /* Adjust image width for mobile */
    max-width: 500px;
    /* Limit max width on mobile */
    margin: 0 auto;

  }

  .hair-image img {
    width: 100%;
    height: auto;
  }

  .hair-content {
    flex: none;
    width: 90%;
    /* Adjust content width for mobile */
    margin: 0 auto;
    padding: 0;
    /* Remove extra padding if inner content has it */
  }

  .hair-content h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
  }

  .hair-content .section-group {
    margin-bottom: 15px;
    /* Spacing for groups */
  }

  .hair-content .section-group strong {
    font-size: 1rem;
  }

  .hair-content .section-group p {
    font-size: 0.9rem;
    display: block;
    text-align: left;
  }

  .hair-content p:last-child {
    font-size: 0.85rem;
    margin-top: 20px;
    text-align: left;
  }
}


/* Base Styles for Desktop (these are already mostly in your inline styles, but good to define here too) */
.founder-section {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(132deg, rgba(206, 222, 196, 1) 35%, rgba(246, 246, 244, 1) 53%);
  padding: 40px 20px 70px 20px;
  /* Added bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.founder {
  font-size: 2.5rem;
  color: #2f3e2f;
  text-align: center;
  margin-bottom: 40px;
  /* Space below the main title */
  margin-top: 0;
  /* Reset default h1 margin-top */
}

.founder-flex {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 80px;
  /* Your existing gap */
  margin: auto;
}

.founder-image {
  flex: 1 1 400px;
  /* Base flex-basis for desktop */
  max-width: 500px;
  /* Max width for image container on desktop */
}

.founder-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: block;
  /* Important for preventing extra space below image */
}

.founder-content {
  flex: 1 1 500px;
  /* Base flex-basis for desktop */
  max-width: 600px;
  /* Max width for content container on desktop */
  text-align: left;
  /* Default text alignment */
  /* Remove margin-left: -5px from inline style if you want to control here */
}

.founder-content h3 {
  font-weight: normal;
  color: #444;
  margin-bottom: 20px;
  margin-left: -5px;
  /* Keep this if you want the slight indent on desktop */
}

.founder-content h3 strong {
  font-size: 1.5rem;
  color: #2f3e2f;
}

.founder-p {
  font-size: medium;
  /* Your existing font size */
  margin-top: -10px;
  /* Your existing margin */
  margin-bottom: 20px;
  /* Consistent spacing */
  line-height: 1.5;
}

.founder-content div p {
  /* Applies to paragraphs inside the divs (academic journey etc.) */
  font-size: large;
  /* From your HTML inline style */
  line-height: 1.6;
}

.founder-content p:last-child {
  /* The italicized vision statement */
  font-size: large;
  /* From your HTML inline style */
  font-style: italic;
  color: #666;
  margin-top: 20px;
  line-height: 1.5;
}


/* Tablet View (min-width: 769px and max-width: 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .founder-section {
    padding: 40px 20px;
    display: flex;
    /* Ensure flex container properties are active */
    flex-direction: column;
    /* Stack elements vertically in tablet for better readability */
    align-items: center;
    /* Center items horizontally */
    justify-content: center;
  }

  .founder {
    font-size: 2.2rem;
    /* Adjust heading size for tablet */
    text-align: center;
    /* Center the heading */
    margin-top: 0;
    /* Reset specific margin if it causes issues */
    /* margin-bottom: 40px; */
    /* Add more space below heading */
  }

  .founder-flex {
    flex-direction: column;
    /* Stack image and content vertically */
    gap: 40px;
    /* Reduced gap for tablet */
    width: 100%;
    /* Take up more width */
    max-width: 700px;
    
  }

  .founder-image {
     flex: none;
    /* Remove flex-basis for image in this view, let it take natural width */
    width: 60%;
    /* max-width: 200px; */
    margin-left: auto;
    /* Center the image */
    margin-right: auto;
    /* Center the image */
    text-align: center;
  }

  .founder-image img {
    width: 100%;
    /* Ensure image fills its container */
    height: auto;
    border-radius: 10px;
    display: block;
  }

  .founder-content {
    flex: none;
    /* Disable flex growing/shrinking */
    width: 100%;
    /* Adjust content width for tablet */
    margin: 0 auto;
    /* Center the content block */
    padding: 0;
    /* Remove inner padding if parent padding is enough */
    text-align: left;
    /* Ensure text is left aligned */
  }

  .founder-content h3 {
    font-size: 1.3rem;
    text-align: center;
    /* Center the doctor's name */
    margin-left: 0;
    /* Reset margin-left from desktop */
    margin-bottom: 15px;
  }

  .founder-content h3 strong {
    font-size: 1.4rem;
    /* Adjust name size */
  }

  .founder-p {
    font-size: 1rem;
    /* Adjust font size for this paragraph */
    margin-top: 10px;
    /* Keep your tablet-specific margin-top */
    text-align: left;
    /* Ensure left alignment */
  }

  .founder-content div p {
    /* Paragraphs inside the divs */
    font-size: 1rem;
    /* Adjust paragraph font size for tablet */
    line-height: 1.5;
    text-align: left;
    /* Ensure left alignment */
  }

  .founder-content p:last-child {
    font-size: 0.95rem;
    margin-top: 25px;
  }
}


/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {

  /* Changed from 767px for consistency with common breakpoints */
  .founder-section {
    padding: 30px 15px 50px 15px;
    /* Adjust padding for mobile */
    /* Existing flex properties already make it column */
  }

  .founder {
    text-align: center;
    /* Already there */
    font-size: 1.8rem;
    /* Smaller for mobile */
    /* padding-bottom: 15px; */
    /* Adjust padding */
    /* margin-top: 20px; */
    /* Adjust top margin */
  }

  .founder-flex {
  

    padding: 20px 20px 70px 20px;
    /* Explicitly stack for mobile */
    gap: 30px;
    /* Smaller gap */
    width: 100%;
    /* Take full width */
    max-width: none;
    /* Remove max-width constraint for mobile */
  }

  .founder-p {
    font-size: 0.95rem;
    /* Adjust font size for mobile */
    margin-top: 10px;
    /* Your existing mobile margin-top */
    text-align: left;
    /* Ensure left alignment */
  }

  .founder-image {
    order: -1;
    /* Move image to top */
    flex: none;
    /* Disable flex growth/shrink */
    width: 90%;
    /* Adjust image width for mobile */
    max-width: 300px;
    /* Limit max size */
    margin: 0 auto;
    /* Center image */
  }

  .founder-image img {
    width: 100%;
    /* Ensure img fills its container */
  }

  .founder-content {
    flex: none;
    /* Disable flex growth/shrink */
    width: 100%;
    /* Adjust content width for mobile */
    padding: 0;
    /* Remove padding */
    margin: 0 auto;
    /* Center content block */
    text-align: left;
    /* Ensure left alignment */
  }

  .founder-content h3 {
    font-size: 1.2rem;
    text-align: center;
    /* Center the doctor's name */
    margin-left: 0;
    /* Reset margin-left */
    margin-bottom: 10px;
  }

  .founder-content h3 strong {
    font-size: 1.3rem;
  }

  .founder-p {
    text-align: center;
  }

  .founder-content div p {
    /* Paragraphs inside the divs */
    font-size: 0.9rem;
    /* Smaller font for mobile */
    line-height: 1.4;
    text-align: left;
    /* Ensure left alignment */
  }

  .founder-content p:last-child {
    /* The italicized vision statement */
    font-size: 0.85rem;
    text-align: left;
    /* Center the vision statement */
    margin-top: 20px;
  }
}

/* Base Styles for Desktop */
.clinic-section {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(132deg, rgba(206, 222, 196, 1) 35%, rgba(246, 246, 244, 1) 53%);
  padding: 40px 20px 70px 20px;
  /* Consistent padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.clinic {
  font-size: 2.5rem;
  color: #2f3e2f;
  text-align: center;
  padding: 20px;
  margin-top: 0;
  /* Reset default h1 margin */
  margin-bottom: 20px;
  /* Space below title */
}

.clinic-flex {
  max-width: 1200px;
  /* display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center; */
  gap: 80px;
  /* Your existing gap */
  margin: auto;
  margin-bottom: 15px;
  /* Your existing margin */
  margin-top: 30px;
  /* Your existing margin */
}

.clinic-content {
  flex: 1 1 500px;
  /* Base flex-basis for content */
  max-width: 600px;
  /* Max width for content on desktop */
}

/* Existing section-group style */
.section-group {
  margin-bottom: 20px;
  /* Already defined, but ensure it's here */
}

.clinic-content div strong {
  /* Styles for strong tags inside divs */
  font-size: larger;
  /* Already inline, but good to have a CSS rule */
  display: block;
  /* Make strong a block element for better spacing */
  /* margin-bottom: 5px;  */
}

.clinic-content div p {
  /* Styles for p tags inside divs */
  font-size: large;
  /* Already inline, but good to have a CSS rule */
  /* line-height: 1.6; Improve readability */
}

.clinic-content p:last-child {
  /* The italicized final paragraph */
  font-style: italic;
  color: #666;
  /* margin-top: 30px; */
  font-size: large;
  /* Already inline, but good to have a CSS rule */
  /* line-height: 1.5; */
}

.clinic-content a {
  color: #2f3e2f;
  text-decoration: underline;
}

.clinic-image {
  flex: 1 1 400px;
  margin-top: 30px;
  /* Base flex-basis for image */
  /* Remove display:flex, flex-direction, justify-content, align-items here
       unless clinic-image contains multiple items that need flex behavior */
  /* Based on HTML, it only contains img, so these are not necessary for a single img */
}

.clinic-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: block;
  /* Important for preventing extra space below image */
}


/* Tablet View (min-width: 769px and max-width: 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .clinic-section {
    padding: 40px 20px;
    display: flex;
    /* Ensure flex container properties are active */
    flex-direction: column;
    /* Stack elements vertically in tablet for better readability */
    align-items: center;
    /* Center items horizontally */
    justify-content: center;

  }

  .clinic {
    font-size: 2.2rem;
    /* Adjust heading size for tablet */
    text-align: center;
    /* Center the heading */
    margin-top: 0;
    /* Reset specific margin if it causes issues */
    margin-bottom: 40px;
    /* Add more space below heading */
  }

  .clinic-flex {
    flex-direction: column;
    /* Stack image and content vertically */
    gap: 40px;
    /* Reduced gap for tablet */
    width: 100%;
    /* Take up more width */
    max-width: 700px;
    /* Max width for consistency */
  }

  .clinic-content {
    flex: none;
    /* Disable flex growth/shrink/basis */
    width: 100%;
    /* Adjust content width for tablet */
    /* padding: 0 10px; */
    text-align: left;
    margin-left: auto;
    /* Center the content block */
    margin-right: auto;
    /* Remove inner padding */
  }

  .clinic-content strong {
    /* General strong styling */
    font-size: 1.1rem;
  }

  .clinic-content div p {
    /* Paragraphs within divs */
    font-size: 1rem;
    /* Adjust font size for tablet paragraphs */
    /* line-height: 1.5; */
  }

  .clinic-content p:last-child {
    /* The italicized final paragraph */
    font-size: 0.95rem;
    /* Slightly smaller for the note */
    /* margin-top: 25px; */
    /* text-align: center; */
    /* Center the final italicized text */
  }

  .clinic-image {
    flex: none;
    order: -1;
    /* Remove flex-basis for image in this view, let it take natural width */
    width: 70%;
    /* max-width: 500px; */
    margin-left: auto;
    /* Center the image */
    margin-right: auto;
    /* Center the image */
    text-align: center;
  }

  .clinic-image img {
    width: 100%;
    /* Ensure image fills its container */
    height: auto;
    border-radius: 10px;
    display: block;
  }
}


/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {

  /* Changed from 767px for consistency with common breakpoints */
  .clinic-section {
        padding: 20px 15px 50px 15px;

    /* Adjust padding for mobile */
  }

  .clinic {
    font-size: 1.8rem;
    padding: 0 10px 15px 10px;
    /* Adjust padding */
    margin-top: 15px;
    /* Adjust top margin */
  }

  .clinic-flex {
    flex-direction: column;
    /* Explicitly stack for mobile */
    gap: 30px;
    /* Smaller gap */
    width: 100%;
    /* Take full width */
    max-width: none;
    /* Remove max-width constraint for mobile */
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .clinic-content {
    flex: none;
    /* Disable flex growing/shrinking */
    width: 95%;
    /* Adjust content width for mobile */
    margin: 0 auto;
    padding: 0;
  }

  /* Your existing mobile specific text-align rules */
  /* The general rule for clinic-content h1, h3, p is text-align: left; */
  /* However, ensure this is overriding any center alignment */
  .clinic-content h1,
  .clinic-content h3,
  .clinic-content p {
    text-align: left;
    /* Keep text left aligned */
  }

  .clinic-content strong {
    /* General strong styling for mobile */
    font-size: 1rem;
  }

  .clinic-content div p {
    /* Paragraphs within divs */
    font-size: 0.9rem;
    /* Smaller font for mobile */
    line-height: 1.4;
  }

  .clinic-content p:last-child {
    /* The italicized final paragraph */
    font-size: 0.85rem;
    margin-top: 20px;
    text-align: left;
    /* Center the final italicized text */
  }

  .clinic-image {
    order: -1;
    /* Move image to top */
    flex: none;
    /* Disable flex growth/shrink */
    width: 90%;
    /* Adjust image width for mobile */
    max-width: 500px;
    /* Limit max size */
    margin: 0 auto;
  }

  .clinic-image img {
    width: 100%;
  }
}

@media (max-width: 767px) {
  section {
    height: auto !important;
    /* Removes 100vh on mobile */
  }
}

@media (min-width: 768px) and (max-width:1024px) {
  section {
    height: auto !important;
    /* Removes 100vh on mobile */
  }
}