/* Ensure footer never overlaps previous content */
.site-footer {
  clear: both;
  width: 100%;
  position: relative;
  margin-top: 2rem;
  z-index: 1;
}

.page-container {
  padding-bottom: 6rem; /* Adjust if footer height changes */
}
/* Flex layout for partner schools section */
@media (max-width: 600px) {
  .partner-schools-flex .list-box {
    order: 1 !important;
  }
  .partner-schools-flex .contact-box {
    order: 2 !important;
  }
  .partner-schools-flex {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 10rem;
    gap: 2rem;
  }
  .map-box{
   visibility: hidden !important;
  }
  .list-box{
    width: 90% !important;
    height: auto !important;
    padding-right: 1rem !important;
    margin-left: 0 !important;
  }
  img.schools-thumbnail {
    width: 50% !important;
    height: auto !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
    display: block !important;
  }
  .partner-schools-flex .contact-box {
    margin: 0 auto !important;
    position: static !important;
    display: block !important;
    width: 80% !important;
    min-width: 0 !important;
    max-width: 400px !important;
  }
  div.white-box{
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-right: 0 !important;
  }
}
.partner-schools-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}
.partner-schools-flex .contact-box {
  margin-left: 20rem;
  margin-right: 0;
  margin-top:5rem;
  position: static;
}
.partner-schools-flex .list-box {
  margin-left: 0;
}
/* Modal Styles */
#thumbnailModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
/* Modal Styles */
#thumbnailModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-height: 90vh;
  max-width: 90vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.modal-image {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 1rem;
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-schools-section {
  font-family: 'Montserrat', Arial, sans-serif;
  width: 100%;
  background: url('./public/images/home-second.png') no-repeat bottom center;
  background-color: #f0f1f5;
  background-size: 100% auto;
  padding-top: 20rem;
}
.partner-title{
  text-align: left;
  margin-left: 2rem;
  margin-bottom: -4px;
  padding-bottom: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 4.2rem;
  line-height: 1;
}
.partner-schools-section img {
  vertical-align: top;
  margin-right: 0rem;
  margin-bottom: 0px;
  height: 3.7rem;
}
.partner-schools-section h2 {
  text-align: right;
  margin-right: 2.5rem;
  line-height: 1;
}
.partner-schools-section .list-box{
  background-color: #298dc8;
  width: 65%;
  border-radius: 2.5rem;
  margin-left: auto;
  margin-right:1rem;
  display: block;
  padding-right: 4rem;
  padding-bottom: 4rem;
  height: auto;
  min-height: 550px;
}
.partner-schools-section .list-box h6{
  color: white;
  text-align: right;
  font-size: 1.7rem;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 0;
}
.partner-schools-section .white-box{
  background-color: white;
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 45%;
  margin-left: auto;
  display: block;
  font-size: 1.2rem;
}
.partner-schools-section .white-box p{
  margin: 0 ;
  font-size: 1.7rem;
}
.partner-schools-section .schools-thumbnail {
  width: 40%;
  height: auto;
  margin-left: auto;
  display: block;
  padding-right: 4rem;
  cursor: pointer;
}

.map-box{
  background-color: white;
  border-radius: 2.5rem;
  padding: 0;
  width: 65%;
  margin-left: 5rem;
  display: block;
  font-size: 1.2rem;
  margin-top: -30%;

}
.map-box img.schools-map {
  width: 100%;
  height: auto;
}

.global-impact-content {
  width: 100vw;
  min-height: 65vh;
  height: auto;
  background-color: #dbe5ef;
  background-size: cover;
}

/* Impact counters section */
.counter-number {
  font-size: 10rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.1;
}
.counter-label {
  font-size: 19.5pt;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  color: #222;
  line-height: 1.1;
}
.impact-counters {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12rem;
  margin: 4rem 0;
}
.reviews-carousel {
  /* background: url('./public/images/Global-impact-Background.png') no-repeat center center;
  background-size: 100% auto; */
  background-color: #cedeecbe;
  min-height: 45vh;
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  /* Ensure container can hold the full track including scaled middle box */
  max-width: calc(3 * 24rem + 2 * 10rem + 6rem);
  overflow: visible;
}

.carousel-track-wrapper {
  overflow-y: visible;
  overflow-x: visible;
  width: 100%;
  max-width: calc(3 * 24rem + 2 * 10rem + 6rem);
  padding-top: 2rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.carousel-track {
  display: flex;
  justify-content: center;
  gap: 10rem;
  transition: transform 0.5s ease;
  /* Add extra space for the scaled middle box + safety buffer (total extra = 14rem) */
  width: calc(3 * 24rem + 2 * 10rem + 14rem);
  margin: 0 auto;
}

.review-box {
  min-width: 24rem;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.5rem;
  border: 0.5px solid #777777;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.5s ease, height 0.5s ease;
}

.review-box.middle {
  transform: scaleX(1.25) scaleY(1.1  ) translateY(-5%);
  z-index: 10;
  position: relative;
}

.review-box p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
  margin: 0;
  height: 10rem
}

.review-box div{
  margin-top: 1rem
}

.review-box .reviewer {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #298dc8;
}

.carousel-dots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  padding: 0;
}

.dot:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.3);
}

@media (max-width: 1200px) {
  .review-box {
    min-width: 24rem;
    width: 24rem;
    height: 24rem;
  }
  .carousel-track-wrapper {
    width: calc(3 * 24rem + 2 * 10rem);
    max-width: calc(3 * 24rem + 2 * 10rem);
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
}

/* Two-column view: 1000 - 1399px */
@media (min-width: 1000px) and (max-width: 1399px) {
  .review-box {
    min-width: 18rem;
    width: 18rem;
    height: 18rem;
    padding: 1.25rem;
  }
  .review-box p { font-size: 0.95rem; }
  .review-box .reviewer { font-size: 0.85rem; }
  .carousel-track { gap: 6rem; }
  .carousel-track-wrapper { max-width: calc(2 * 18rem + 1 * 6rem + 14rem); }
}

/* Single view: <1000px */
@media (max-width: 999px) {
  /* Keep boxes narrow on small screens (consistent with <768 rules) */
  .review-box {
    min-width: 16rem;
    width: 16rem;
    height: 16rem;
    padding: 1.5rem;
  }
  .review-box p { font-size: 0.95rem; line-height: 1.4; }
  .review-box .reviewer { font-size: 0.9rem; }
  .carousel-track { gap: 2rem; width: auto; }
  .carousel-track-wrapper { overflow-x: hidden; width: 100%; max-width: 100%; padding-top: 1rem; }
  .carousel-dots { gap: 0.5rem; }
}

@media (max-width: 768px) {
  .carousel-container {
    width: 95%;
  }
  .carousel-track-wrapper {
    width: 16rem;
  }
  .review-box {
    min-width: 16rem;
    width: 16rem;
    height: 16rem;
    padding: 1.5rem;
  }
  .review-box p {
    font-size: 1rem;
  }
}
.global-impact-section p {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
}
.global-impact-section{
  background: #f0f1f5;
}
.global-impact-section h2{
  margin-top: 0;
}
.impact-subtitle {
  font-size: 1.7rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
  margin-left: 7rem;
}
@media (max-width: 600px) {
  .global-impact-section {
    min-height: 650px;
    height: auto;
    padding-bottom: 2rem;
  }
  .impact-counters {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }
}
.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 80pt;
  font-weight: 200;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
}
.counter {
  line-height: 1.1;
}

/* Contact box styling */
 .contact-box {
  width: 25%;
  min-width: 200px;
  max-width: 300px;
  background: #f0f1f5;
  border-radius: 90px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  color: #222;
  text-align: center;
  padding: 0.50rem;
  text-decoration: none;
  margin: 0;
  transition: box-shadow 0.2s, background 0.2s;
  position: absolute;
  right: 2.5%;
  bottom: -25px;
}
.contact-box:hover {
  background: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.transparent-section img, .global-impact-section img {
  height: 6rem;
  vertical-align: bottom;
  margin-right: 0rem;
  margin-bottom: 10px;
}
 .global-impact-section img {
  height: 5rem;
  margin-bottom: 0;
}
.government-grants-content img.star-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  height: 4rem;
  pointer-events: none;
  z-index: 2;
}
/* Grant box title formatting */
.grant-box h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 400;
  text-align: center;
  margin: 0.5rem;
  height: 3rem;
  text-shadow: 0 0 2.5px rgba(0,0,0,0.11), 0 0.8px 2.5px rgba(0,0,0,0.11), 0 -0.8px 2.5px rgba(0,0,0,0.11), 0.8px 0 2.5px rgba(0,0,0,0.11), -0.8px 0 2.5px rgba(0,0,0,0.11);
}
.grant-box p, ul{
  font-size: 1.3rem;
  height: 4.5rem;
  text-align: left;
  margin-bottom: 0;
}
.grant-box ul{
  text-align: left;
  margin: 0 2rem;
}
@media(max-width: 1800px){
  .grant-box p, ul{
    font-size: 1rem;
    height: auto;
    margin-bottom: 1rem;
  }
}
/* Transparent section below white-section */
.transparent-section {
  width: 100vw;
  min-height: 160vh;
  height: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: url('./public/images/home-first-cropped.png') no-repeat center center fixed, #f0f1f5;
  background-size: cover;
  }
.transparent-section h2#titleDollars {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 4.2rem;
  text-align: left;
  margin-bottom: 8px;
  padding-bottom: 0;
}
@media(max-width: 600px){
  .transparent-section h2#titleDollars {
   font-size: 2rem;
   margin-bottom: 3rem;
  }
}
/* Government grants section styles */
.government-grants-content {
  width: 90%;
  margin-left: 0;
  margin-top: -10px;
  border-top-right-radius: 2rem;
  border-bottom-right-radius: 2rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #fafefe;
  box-sizing: border-box;
  padding: 9rem 5rem 9rem 8rem;
  text-align: left;
  position: relative;
}
/* Grants boxes layout */
.grants-boxes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5%;
  height: 280pt;
}

.grant-box {
  position: relative;
  width: 100%;
  min-width: 180px;
  min-height: 180px;
  height: 20rem;
  background: white;
  border-radius: 0.5rem;
  border: 0.5px solid #777777;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  flex-direction: column;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
  text-align: center;
  padding: 3rem;
}
@media (max-width: 600px) {
  .grant-box {
    width: 90vw;
  }
  .grants-boxes {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
  }
  .government-grants-content {
    width: 100%;
    display: flex ;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .contact-box {
    position: static;
    margin: 15rem auto 0 auto;
    display: block;
    left: unset;
    right: unset;
    bottom: unset;
    width: 80vw;
    min-width: 0;
    max-width: 400px;
  }
}


.page-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100vw;
  min-width: 100vw;
  min-height: 100vh;
}

.landing-title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 110vh;
  height: 110vh;
  width: 100vw;
  max-width: 100vw;
  text-align: center;
  background: url('public/images/Lomdei Home page background.png') no-repeat center center;
  background-size: cover;
}
/* Center main-logo horizontally and vertically within landing-title-container */
.main-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: auto;
}

.lomdei-logo {
  width: 100%;
  max-width: 65%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 2rem;
}

.landing-title-container h1 {
  font-size:2rem;
  text-align: center;
  max-width: 95%;
  line-height: 1.5;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}
@media (max-width: 1000px) {
  .landing-title-container h1 {
    font-size:1.7rem;
    max-width: 95%;
  }
}
@media (max-width: 800px) {
  .landing-title-container h1 {
    font-size:1.3rem;
    max-width: 95%;
  }
}
@media (max-width: 600px) {
.landing-title-container h1 {
  font-size:1.3rem;
  width: 90vw;
  max-width: 70%;
  line-height: 1.5;
}
}
/* New white section directly under the landing section */
.white-section {
  background: #f0f1f5;
  width: 100vw;
  min-height: 110vh;
  height: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
/* Center content inside white-section */
.white-section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 75%;
  height: 100%;
}
.white-section-content h2{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}
/* Programs section styles */
.programs-title {
  text-align: left;
  margin-left: 2rem;
  margin-bottom: 0;
  padding-bottom: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 4.2rem;
  line-height: 1;
}
@media(max-width: 600px){
  .programs-title {
   font-size: 2rem;
   margin-bottom: 3rem;
  }
}

.programs-grid {
  display: flex;
  gap: 10%;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
}

.program-square {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    min-width: 26.25rem;
    min-height: 26.25rem;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  background: #f0f1f5;
  border-radius: 1.5rem;
  border: 0.5px solid #777777;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  text-decoration: none;
  transition: box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  padding: 2%;
}
@media (max-width: 1500px) {
  .program-square {
    min-width: 300px;
    min-height: 300px;
    font-size: 3rem;
  }
}
.program-square.disabled {
  pointer-events: none;
}
.program-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50%;
  width: 100%;
}

.program-icon img {
  width: 100%;
  height: 8.5rem;
  vertical-align: middle;
  margin-right: 1rem;
  margin-bottom: 0;
}
.program-title {
  height: 6rem;
  font-size: 4rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'Jost', Arial, sans-serif;
  text-shadow: 0 0 3px rgba(0,0,0,0.035), 0 0.8px 3px rgba(0,0,0,0.035), 0 -0.8px 3px rgba(0,0,0,0.035), 0.8px 0 3px rgba(0,0,0,0.035), -0.8px 0 3px rgba(0,0,0,0.035);
}

.program-desc {
  height: 6rem;
  font-size: 1.7rem;
  text-align: center;
  color: black;
  font-family: 'Montserrat', Arial, sans-serif;
}

@media(max-width: 1600px){
  .program-title {
      font-size: 3rem;
  }
  .program-desc {
      font-size: 1.5rem;
  }
  .program-icon img {
      height: 8rem;
      margin-bottom: 1rem;
  }
}
@media(max-width: 1300px){
  .program-title {
      font-size: 2rem;
  }
  .program-desc {
      font-size: 1rem;
  }
  .program-icon img {
      height: 6rem;
      margin-bottom: 1rem;
  }
}


.program-square:hover {
  background: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}


@media (max-width: 600px) {
  .landing-title-container {
    width: 98vw;
    max-width: 98vw;
    padding: 0 1vw;
  }
  .lomdei-logo, .landing-logo {
    width: 90vw;
    max-width: 90vw;
    margin-bottom: 1rem;
  }
  .programs-grid {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}


.landing-logo {
  width: 65vw;
  max-width: 65%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}


body {
  min-height: 100vh;
  min-width: 100vw;
  margin: 0;
  padding: 0;
  background: url('public/images/Lomdei Home page background.png') no-repeat center center fixed;
  background-size: cover;
  z-index: 0;
}
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}