*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  display: block !important;
  min-height: 100vh !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  margin: 0 !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  color: rgb(15, 74, 0);
  background: linear-gradient(to right, rgb(181, 252, 176) 40%, #ffffffd1 54%);
  transition: 0.5s ease-in-out;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  border-radius: 6px;
}

li {
  list-style: none;
}

.navbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  text-align: center;
  padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 20px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1)),
    url("../images/IMG_9570.JPG") center/cover no-repeat;
  background-color: rgb(234, 234, 234);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.2s ease-in-out;
}

.navbar.scrolled {
  box-shadow: 0 0 0.75rem rgb(17, 110, 1);
}

.site-logo {
  width: min(90%, 320px);
  margin: 0 auto;
}

.headerUl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.5vw, 28px);
  list-style: none;
  padding: 0;
  margin: 8px auto 0;
  width: 100%;
}

.headerUl li a {
  display: flex;
  color: rgb(32, 102, 14);
  text-align: center;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: clamp(13px, 1.6vw, 16px);
  white-space: nowrap;
}

.headerUl li a:hover {
  color: white;
  background-color: rgb(92, 138, 92);
  transition: ease-in-out 0.3s;
}

.join {
  background-color: rgb(114, 228, 114);
  color: rgb(36, 122, 20);
  border: 2px solid rgb(38, 89, 25);
  border-radius: 6px;
}

.join:hover {
  color: rgb(72, 109, 72);
  background-color: rgb(207, 253, 204);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 31px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 23px;
  width: 23px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: rgb(17, 110, 1);
  border: 1px solid rgb(11, 65, 1);
}

input:focus + .slider {
  box-shadow: 0 0 1px rgb(17, 110, 1);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 100px;
  border: 1px solid rgb(170, 169, 169);
}

.slider.round:before {
  border-radius: 100%;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}

main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 5%;
  flex: 1;
  width: 100%;
}

.footer {
  background-color: rgb(115, 159, 112);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  width: 100%;
  padding: 20px clamp(12px, 4vw, 40px);
  margin-top: 40px;
  z-index: 10;
}

.footer p {
  font-size: 13px;
  color: beige;
  margin: 2px 0;
}

.address,
.contact {
  text-align: center;
}

.footerUL {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}

.footerUL li a {
  color: rgb(15, 74, 0);
  text-decoration: none;
  white-space: nowrap;
}

.footerUL li a:hover {
  color: beige;
  transition: ease-in-out 0.3s;
}

.join-footer {
  color: rgb(27, 131, 0);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.join-footer:hover {
  color: beige;
  transition: ease-in-out 0.3s;
}

.site-badge {
  width: 70px;
  height: auto;
}

@media screen and (max-width: 500px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footerUL {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

/*---------------------------- HOME PAGE ----------------------*/
main.home-Info {
  display: flex;
  justify-content: flex-start !important;
  flex-direction: column;
  width: 97%;
  padding: clamp(16px, 3vw, 40px);
  margin-left: clamp(10px, 2vw, 20px);
}

.home-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1400px;
  margin: 800px auto 0 auto !important;
  width: 100%;
  box-sizing: border-box;
}

.home-content-wrapper {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  background: linear-gradient(to right, rgb(181, 252, 176) 50%, #ffffffd1 50%);
  border-radius: 12px;
  padding: clamp(16px, 3vw, 32px);
  box-shadow: 0 0 0.75rem rgb(44, 102, 13);
  transition: 0.5s ease-in-out;
}

/* Image gallery */
.container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.mySlides {
  width: 100%;
}

.slide-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: black;
  cursor: pointer;
  z-index: 10;
  padding: 10px 14px;
  background: rgba(214, 252, 215, 0.65);
  border-radius: 50%;
}

.prev {
  left: 6px;
}

.next {
  right: 6px;
}

.landAck {
  text-align: center;
}

.landAck h2 {
  color: rgb(15, 74, 0);
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 12px;
}

.landAck p {
  width: 50%;
  margin: 20px auto 0 auto !important;
  color: rgb(15, 74, 0);
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.5;
}

.home-faq-container {
  flex: 1 1 360px;
  border-radius: 12px;
  padding: clamp(16px, 3vw, 32px) !important;
  box-sizing: border-box !important;
}

/* 2. FAQs Title - Centered */
.home-faq-container h3 {
  color: rgb(15, 74, 0) !important;
  font-size: clamp(18px, 2.4vw, 24px) !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

.accordion {
  display: block !important;
  width: 80% !important;
  max-width: 800px !important;

  margin: 0 auto 0px auto !important;

  position: relative !important;
  background-color: rgb(151, 205, 147) !important;
  color: #000 !important;
  cursor: pointer !important;
  font-size: clamp(13px, 1.6vw, 16px) !important;
  text-align: left !important;
  border: 2px solid rgb(15, 74, 0) !important;
  border-radius: 0px !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  padding: 12px 45px 12px 15px !important;
  transition: background-color 0.3s ease-out !important;
  box-sizing: border-box !important;
}

/* Plus / Cross Icon */
.accordion::after {
  content: "+" !important;
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 20px !important;
  transition: transform 0.3s ease !important;
}

.accordion.active::after {
  transform: translateY(-50%) rotate(45deg) !important;
}

.accordion:hover {
  background-color: rgb(130, 185, 126) !important;
}

.accordion.active {
  background-color: #ccc !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-bottom: 0 !important;
}

.panel {
  display: block !important;
  width: 80% !important;
  max-width: 800px !important;

  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: -2px !important;
  margin-bottom: 0px !important;

  position: relative !important;
  overflow: hidden !important;
  max-height: 0;
  transition: max-height 0.3s ease-out !important;
  background-color: rgb(214, 214, 214) !important;

  border: 2px solid rgb(15, 74, 0) !important;
  border-top: none !important;

  box-sizing: border-box !important;
  padding: 0 15px !important;
}

/* 5. Panel Text Padding */
.panel-content {
  padding: 14px 16px !important;
  text-align: left !important;
  font-size: 14px !important;
  color: #000 !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

.accordion.active + .panel {
  border: 2px solid rgb(15, 74, 0) !important;
  border-top: none !important;
  border-radius: 0 0 0px 0px !important;
  margin-bottom: 0px !important;
}

.visit {
  display: block;
  width: fit-content;
  margin: 20px auto 0 auto !important;
  background-color: #fff;
  color: rgb(48, 109, 24);
  border: 2px solid rgb(20, 56, 10);
  border-radius: 6px;
  text-decoration: none;
  font-size: clamp(16px, 2vw, 20px);
  transition: ease-in-out 0.3s;
  padding: 10px 20px;
}

.visit:hover {
  color: #fff;
  background-color: rgb(114, 183, 109);
}

@media screen and (max-width: 650px) {
  .landAck p {
    width: 80%;
  }
}

/* ------------------------- Contact Page ---------------------------- */
main.contact-Info {
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1300px;
  margin: 0px auto;
  padding: clamp(16px, 3vw, 40px);
}

.aboutContainer {
  width: 70%;
  max-width: 1370px;
  margin: 0 auto;
  flex: 1 1 420px;
  border-radius: 12px;
  padding: clamp(16px, 3vw, 32px);
  text-align: center;
  margin-top: 165px;
  background: linear-gradient(to right, rgb(181, 252, 176) 50%, #ffffffd1 50%);
  box-shadow: 0 0 0.75rem rgb(44, 102, 13);
  transition: 0.5s ease-in-out;
}

.aboutContainer h2 {
  font-size: clamp(24px, 3.4vw, 40px);
  color: rgb(27, 67, 27);
  margin-bottom: 16px;
}

.contactInfo {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-areas:
    "queries hours"
    "phone   phone" !important;
  gap: 32px 40px !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 30px auto !important;
  align-items: start !important;
}

.queriesBlock {
  grid-area: queries !important;
}

.hoursBlock {
  grid-area: hours !important;
}

.phoneBlock {
  grid-area: phone !important;
  justify-self: center !important;
  max-width: 320px !important;
  margin-top: -4%;
}

.infoBlock {
  text-align: center !important;
}

.infoBlock h3 {
  margin-bottom: 8px !important;
}

.infoBlock p {
  margin: 4px 0 !important;
}

.queriesBlock {
  margin-top: -1.5%;
}

.hoursBlock {
  margin-top: -2%;
  width: 100%;
}

@media screen and (max-width: 650px) {
  main.contact-Info {
    width: 100% !important;
    padding: 16px 0 !important;
  }

  .aboutContainer {
    width: 86% !important;
    max-width: 400px;
    margin-top: 155px !important;
    padding: 24px 16px !important;
  }

  .contactInfo {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "queries"
      "hours"
      "phone" !important;
    gap: 24px !important;
  }
}

.map {
  flex: 1 1 420px;
  border-radius: 12px;
  padding: clamp(12px, 2vw, 20px);
  margin-top: 0px;
}

.map iframe {
  width: 100%;
  height: clamp(300px, 40vw, 450px);
  border: 0;
  border-radius: 8px;
}

/* ----------------------------- Parent Info ------------------------- */
main.parent-Info {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
  width: 95% !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: clamp(16px, 3vw, 40px);
  text-align: center;
  box-sizing: border-box;
}

.parent-containers {
  margin-top: 140px;
  background: linear-gradient(to right, rgb(181, 252, 176) 50%, #ffffffd1 50%);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 48px) !important;
  text-align: left;
  height: auto;
  width: 100% !important;
  max-width: 1500px;
  box-sizing: border-box;
  box-shadow: 0 0 0.75rem rgb(44, 102, 13);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.5s ease-in-out;
}

.parentHeader,
.policy-container,
.schedules-container,
.faq-container {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.faq-container {
  margin-bottom: 5%;
}

.policy-container iframe,
.schedules-container iframe {
  width: 85%;
  height: clamp(400px, 70vw, 600px);
  border: none;
  border-radius: 8px;
  display: block;
  margin-bottom: 5%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.parentHeader {
  text-align: center;
}

.parentHeader h2 {
  color: rgb(26, 69, 26);
  font-size: clamp(30px, 3.4vw, 35px);
}

.policy-container h3,
.schedules-container h3,
.faq-container h3 {
  color: rgb(46, 112, 46);
  font-size: clamp(22px, 2.4vw, 24px);
  margin-bottom: 12px;
  margin-top: 3%;
  text-align: center;
}

.pdf-mobile-link {
  display: none;
  text-align: center;
  margin: 10px 0 0;
  color: rgb(48, 109, 24);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 600px) {
  main.parent-Info {
    width: 96% !important;
  }

  .policy-container iframe,
  .schedules-container iframe {
    display: none;
  }

  .pdf-mobile-link {
    display: block;
  }
}

/* ---------------------------- About Us ----------------------------- */
main.main-about {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 140px !important;
  margin-bottom: 60px !important;
  margin-left: 0.1%;
  flex: 1 0 auto !important;
  align-items: center;
}

.about-card {
  border-radius: 16px !important;
  padding: clamp(24px, 4vw, 40px) !important;
  width: 90% !important;
  max-width: 1400px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 36px !important;
  background: linear-gradient(to right, rgb(181, 252, 176) 50%, #ffffffd1 50%);

  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 25px !important;
  margin-bottom: 40px !important;
  box-shadow: 0 0 0.75rem rgb(44, 102, 13);
  transition: 0.5s ease-in-out;
}

.staffImg {
  width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
}

.wel-container {
  width: 100%;
  text-align: center;
}

.staff .wel-container h1 {
  text-align: center;
  margin: 0 auto;
  width: 100%;
  font-size: clamp(22px, 3.4vw, 30px);
}

.staff h2 {
  color: rgb(27, 131, 0);
  text-align: center;
  font-size: clamp(18px, 3.4vw, 26px);
  margin-top: 2%;
}

.staff-group h3 {
  width: 15%;
  margin-left: auto;
  margin-right: auto;
  color: rgb(48, 109, 24);
  margin-top: 5%;
  text-align: center;
  font-size: clamp(16px, 3.4vw, 20px);
}

.info-text h3 {
  margin-top: 2%;
  text-align: center;
  font-size: clamp(15px, 3.4vw, 28px);
}

.info-text p {
  text-align: center;
  margin-top: 1%;
  width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(12px, 3.4vw, 18px);
}

.infoIN-text h3 {
  margin-top: 2%;
  text-align: center;
  font-size: clamp(15px, 3.4vw, 28px);
}

.infoIN-text p {
  text-align: center;
  margin-top: 1%;
  width: 60%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 6%;
  font-size: clamp(12px, 3.4vw, 18px);
}

.staff-member {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;

  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto 12px auto !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
}

.staff-member h4 {
  color: rgb(32, 102, 14);
  font-size: clamp(14px, 2.2vw, 18px) !important;
  margin: 0 !important;
  text-align: left !important;
}

.staff-member p {
  font-size: clamp(14px, 2.2vw, 18px) !important;
  margin: 0 !important;
  text-align: right !important;
}

.info-img {
  width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
}

@media screen and (max-width: 520px) {
  .staffImg {
    width: 100%;
  }

  .info-img {
    width: 90%;
  }

  .info-text h3 {
    font-size: 20px;
  }

  .infoIN-text h3 {
    font-size: 20px;
  }

  .info-text p {
    width: 90%;
  }

  .infoIN-text p {
    width: 90%;
  }

  .staff-member {
    flex-direction: column !important;
    text-align: center !important;
    gap: 4px !important;
  }

  .staff-group h3 {
    text-decoration: underline;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    width: 70%;
  }

  .staff-member h4,
  .staff-member p {
    text-align: center !important;
  }
}

/*---------------------------- Programs -------------------------------*/
main.programs-Info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px);
  box-sizing: border-box;
  color: rgb(15, 74, 0);
}

.programsContainer {
  width: 95% !important;
  max-width: 1600px !important;
  margin: 130px auto 40px auto !important;
  border-radius: 16px !important;
  padding: clamp(24px, 4vw, 48px) !important;
  background: linear-gradient(to right, rgb(181, 252, 176) 50%, #ffffffd1 50%);
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: clamp(20px, 3vw, 36px);
  box-shadow: 0 0 0.75rem rgb(44, 102, 13);
  transition: 0.5s ease-in-out;
}

.programs,
.program-block,
.curriculum-block {
  width: 100% !important;
  max-width: 950px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.programs h2 {
  color: rgb(15, 74, 0);
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
}

.program-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 40px);
  border-radius: 12px;
  padding: clamp(16px, 3vw, 24px);
  text-align: left;
  width: 100%;
}

.program-block.reverse {
  flex-direction: row-reverse;
}

.program-block img {
  flex: 0 1 420px;
  width: 60%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.program-details {
  flex: 1 1 300px;
  margin-top: -7%;
}

.infantImg {
  margin-left: -12%;
  margin-right: auto;
}

.todImg {
  margin-left: auto;
  margin-right: -12%;
}

.preImg {
  margin-left: -12%;
  margin-right: auto;
}

.schImg {
  margin-left: auto;
  margin-right: -12%;
}

.program-details {
  flex: 2 1 320px;
}

.program-details h3 {
  color: rgb(46, 112, 46);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.program-details h4 {
  color: rgb(92, 138, 92);
  font-size: clamp(15px, 1.8vw, 18px);
  margin-top: 12px;
  margin-bottom: 4px;
}

.program-details p {
  color: rgb(72, 109, 72);
  font-size: clamp(14px, 1.7vw, 18px);
  margin-bottom: 2px;
  width: 112%;
}

.program-details-SchAge {
  margin-left: -4%;
  margin-right: auto;
}

.program-details-SchAge h3 {
  color: rgb(46, 112, 46);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.program-details-SchAge h4 {
  color: rgb(92, 138, 92);
  font-size: clamp(15px, 1.8vw, 18px);
  margin-top: 12px;
  margin-bottom: 4px;
}

.program-details-SchAge p {
  color: rgb(72, 109, 72);
  font-size: clamp(14px, 1.7vw, 18px);
  margin-bottom: 2px;
  width: 100%;
}

.collage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.collage-grid img {
  height: 350px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: ease-in-out 0.2s;
}

.collage-grid img:hover {
  opacity: 0.7;
}

.infantCollage img {
  flex: 1 1 calc((100% - 20px) / 3);
  max-width: calc((100% - 20px) / 3);
}

.preCollage img {
  flex: 1 1 calc((100% - 10px) / 2);
  max-width: calc((100% - 10px) / 2);
}

.schoolCollage img {
  flex: 1 1 calc((100% - 30px) / 4);
  max-width: calc((100% - 30px) / 4);
}

.collage-grid img:hover {
  opacity: 0.7;
}

.curriculum-block {
  border-radius: 12px;
  padding: clamp(16px, 3vw, 24px);
  text-align: center;
}

.curriculum-block h4 {
  color: rgb(46, 112, 46);
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 12px;
  text-align: center;
}

.curriculum-block p {
  color: rgb(42, 78, 42);
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.6;
}

.scroll-containerPro {
  background-color: rgb(234, 234, 234);
  width: 120%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 8px;
  margin-top: 16px;
  border-radius: 8px;
  scroll-snap-type: x mandatory;
  margin-top: 5%;
  margin-right: auto;
  margin-left: -10%;
  margin-bottom: 10%;
  box-sizing: border-box;
}

.scroll-containerPro img {
  flex: 0 0 auto;
  width: clamp(180px, 40vw, 320px);
  height: clamp(140px, 28vw, 220px);
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  cursor: pointer;
  width: 70%;
  height: auto;
}

.modal,
.infantModal,
.preModal,
.schoolModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.modal.active,
.infantModal.active,
.preModal.active,
.schoolModal.active {
  display: flex;
}

.modal-content,
.infantModal-content,
.preModal-content,
.schoolModal-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.modal .close,
.infantModal .close,
.preModal .close,
.schoolModal .close {
  position: fixed;
  top: clamp(12px, 3vw, 24px);
  right: clamp(16px, 4vw, 32px);
  font-size: clamp(28px, 5vw, 40px);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  z-index: 2001;
}

@media screen and (max-width: 650px) {
  .programsContainer h2 {
    margin-top: 20px;
  }

  .program-block,
  .program-block.reverse {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 16px 0 !important;
  }

  .program-block img,
  .infantImg,
  .todImg {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 auto 16px auto !important;
    display: block !important;
  }

  .program-details,
  .infants,
  .toddlers,
  .program-details-SchAge {
    width: 100% !important;
    flex: none !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .program-details p,
  .program-details-SchAge p {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .collage-grid img {
    height: 140px;
  }

  .infantCollage img,
  .preCollage img,
  .schoolCollage img {
    flex: 1 1 calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
  }
}
