* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  /* width: 80vw; */
  height: auto;
}

#searchUser {
  display: flex;
  flex-direction: row;
}


h2 {
  text-align: right;
  align-self: stretch;
}

@media(max-width:400px) {
  h2 {
    font-size: 32px;
  }
}


h4 {
  color: #FFFCF5;
  font-family: Rubik;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

h5 {
  justify-content: center;
  color: #303030;
  text-align: center;
  font-family: Rubik;
  font-size: 28px;
  padding: 0 10%;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  align-items: stretch;
}

.hero {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, rgba(13, 20, 30, 0.75) 0%, rgba(13, 20, 30, 0.85) 100%), url(../images/herosection_hp.jpg) lightgray 50% / cover no-repeat;
  position: relative;
  padding: 0 5%;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 30px;
}

/* Video background styles */
.hero.has-video {
  background: none;
  overflow: hidden;
  height: 80vh;
}

#youtube-player {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

/* Mobile responsive styles for video hero */
@media (max-width: 600px) {
  .hero.has-video {
    height: 60vh;
  }
  
  .hero.has-video #youtube-player {
    height: 50vh;
  }
  
  /* Make video bigger on mobile */
  #youtube-player iframe {
    transform: scale(2.2) !important;
  }
  
  .hero.has-video #youtube-player {
    transform: translate(-50%, -50%) scale(2.0) !important;
  }
}

/* Ensure YouTube iframe also covers the full area */
#youtube-player iframe {
  width: 150vw !important;
  height: 150vh !important;
  object-fit: cover;
  object-position: center;
  position: absolute;
  left: -25vw;
  top: -25vh;
  min-width: 150vw;
  min-height: 150vh;
  transform: scale(1.8);
  transform-origin: center center;
}

/* Ensure the video fills the entire container */
.hero.has-video #youtube-player {
  width: 100vw;
  height: 100vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.8);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(0deg, rgba(13, 20, 30, 0.80) 0%, rgba(13, 20, 30, 0.35) 100%);
  z-index: 0;
  pointer-events: none;
}

.videoSoundIcon{
  display: block;
  width: 32px;
  aspect-ratio: 1/1;
  position: absolute;
  right: 10%;
  top: 90%;
  color: white;
  border-radius: 50px;
  background-color: #f1f1f110;
  z-index: 100;
  align-content: center;
  text-align: center;
}

.videoSoundIcon:hover{
  background-color: #f1f1f17e;
}

#header {
  text-align: center;
  gap: 48px;
  display: flex;
  flex-direction: column;
  /* object-fit: cover; */
  align-items: center;
}

#header_text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
  margin-top: 50px;
  /* min-height: 250px; */
}

@media (max-width:600px) {
  #header h1 {
    font-size: 48px;
  }
}

@media (max-width:600px) {
  #header h4 {
    font-size: 24px;
  }
}

.container a {
  text-decoration: none;
  display: inline-block;
  color: #FFF;
  font-size: 24px;
  border: 2p solid #fff;
  padding: 4px, 10px;
}

.search-bar {
  width: 80vw;
  max-width: 800px;
  padding: 14px 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12.5px);
  display: flex;
  align-items: center;
  height: 77px;
  overflow: hidden;
}

@media (max-width:600px) {
  .search-bar {
    padding: 14px 20px;
  }
  .search-bar textarea {
    padding-bottom: 22px;
  }
}

.search-bar:hover {
  border-radius: 10px;
  border: 1px solid #FFF;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12.5px);
}

.search-bar textarea {
  background: transparent;
  flex: 5;
  height: auto;
  border: 0;
  outline: none;
  color: #fff;
  font-family: Rubik;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  resize: none; /* Prevent resizing */
  overflow-wrap: break-word;
  white-space: pre-wrap;
  align-content: center;
  overflow: hidden;
}

::placeholder {
  color: #bbb;
}

.search-bar button {
  width: auto;
  flex-shrink: 0;
  border: 0;
  align-content: center;
  background: transparent;
}

#search_icon {
  font-size: 24px;
  color: #fff;
  padding: 2px;
}

/* hero section */

/* about us */
#about_us {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  /* margin: 0 auto; Optional: to center the container itself horizontally */
  gap: 48px;
  margin-bottom: 30px;
}

#about_us_right,
#about_us_left {
  flex: 1;
  /* Take up equal space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

@media (max-width:600px) {
  #about_us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    margin: 0 10% auto;
    /* Optional: to center the container itself horizontally */
    padding: 50px 0;
    border-radius: 10px;
    gap: 48px;
  }
}








/* #about_us_left {
  position: relative;
  align-items: center;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  overflow: hidden; 
}

#about_us_left img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

#about_us_left::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%),
    linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  background-repeat: no-repeat;
  background-size: calc(100% + 20px) 30%, calc(100% + 20px) 30%, 31% calc(100% + 20px), 30% calc(100% + 20px);
  background-position: bottom, top, right, left;
  pointer-events: none;
  border-radius: 10px;
} */

@media (max-width:600px) {
  #about_us_left img {
    width: 100%;
    /* max-width: 800px; */
  }
}

@media (max-width:600px) {
  #about_us_left img {
    width: 100%;
    max-width: 800px;
  }
}




#about_us_left {
  display: inline-block;
  position: relative;
  background: white;
}

#about_us_left img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;

  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 25%, black 75%, transparent 100%),
    linear-gradient(to left, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-composite: multiply;
  mask-image: linear-gradient(to top, transparent 0%, black 25%, black 75%, transparent 100%),
    linear-gradient(to left, transparent 0%, black 25%, black 75%, transparent 100%);
  mask-composite: intersect;
}






#about_us_right p {
  width: 95%;
}

@media (min-width:1260px) {
  p {
    font-size: 1.2vw;
  }
}

#about_us_right p b {
  width: 95%;
  overflow: hidden;
  color: #860000;
  text-align: right;
  text-overflow: ellipsis;
  font-family: Rubik;
  font-size: 1em;
  font-style: normal;
  font-weight: normal;
  line-height: 160%;
  /* 28.8px */
}

#kolelInfo {
  display: flex;
  flex-direction: row;
  margin-top: 74px
}

@media (max-width:600px) {
  #kolelInfo {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}

/* end of about us */
#divider {
  display: flex;
  width: auto;
  object-fit: contain;
  justify-content: center;
  /* margin-top: 100px; */
}

#divider img {
  height: 35px;
  width: auto;
  /* margin: 30px 0 */
}

@media(max-width:680px) {
  #divider {
    height: auto;
    align-items: center;
  }
}

/* end of divider */

#info_section {
  gap: 24px;
  display: flex;
  flex-direction: column;
}

#info_header {
  display: flex;
  flex-direction: column;
  height: auto;
  gap: 8px;
  padding: 50px 0;
  object-fit: cover;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  /* background: linear-gradient(0deg, rgba(13, 20, 30, 0.80) 0%, rgba(13, 20, 30, 0.50) 100%), url(../images/yeshivab&w.jpg) lightgray 0px -232.796px / 100% 431.831% no-repeat; */
  background-size: cover;
}

/* @media (max-width:600px) {
  #info_header {
    background: linear-gradient(0deg, rgba(13, 20, 30, 0.80) 0%, rgba(13, 20, 30, 0.50) 100%), url(../images/yeshivab&w.jpg) lightgray 0px -232.796px / 100% 431.831% no-repeat;
    background-size: auto;
  }
} */

#info_header H2 {
  color: #152238;
  text-align: center;
  padding: 0 2%;
}

#info_header H5 {
  color: #152238;
}

@media (max-width:600px) {
  #info_header H5 {
    font-size: 16px;
  }
}

.homePageH2{
  font-size: 50px;
}

#cards {
  padding: 0 0 10px 0;
  display: grid;
  grid-gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card:hover {
  background-color: #9E9E9E;
  filter: drop-shadow(0px 0px 4px rgba(134, 0, 0, 0.1));
  cursor: pointer;
}

.numbers_card {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.numbers_card:hover {
  transform: scale(0.95);
}

.card i {
  /* width: auto;
  height: auto; */
  line-height: normal;
}

.card img {
  width: 100%;
}

.card_icon {
  /* width: auto;
  height: auto; */
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.fa-regular {
  font-size: 48px;
  color: #152238;
}

.card p {
  text-align: center;
  padding: 0 10%;
  line-height: 160%;
  height: auto;
}

/* end of info */
/* reviews */

#reviews_section {
  background-color: #f1f3f4;
  padding: 50px 0 100px 0;
}

#section_reviews {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

#reviews_header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  align-items: center;
}

#reviews_header h2 {
  text-align: center;
}

#reviews_grid {
  display: grid;
  grid-gap: 2em;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

@media (max-width:600px) {
  #reviews_grid {
    display: grid;
    grid-gap: 2em;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.review_card {
  border-radius: 10px;
  background: #FFFEF9;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.12);
  padding: 10px 50px;
  justify-content: center;
  align-items: center;
}

.review_card p {
  width: auto;
  text-align: right;

}

#review_image {
  width: auto;
  height: auto;
  padding-bottom: 25px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#review_image img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

#title h4 {
  color: #860000;
  font-family: "Bona Nova";
  font-size: 24px;
  font-weight: bold;
}

#title h5 {
  font-size: 18px;
}

/* footer checkup */




/* end of footer */
#addUserPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: white;
  border: 1px solid black;
  z-index: 1000;
}

/* Spinner Styles */
.spinner,
.spinner:after {
  box-sizing: border-box;
}

.spinner {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.spinner:after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  /* border: 6.4px solid currentColor; */
  border-color: #860000;
  animation: spinner 1.2s linear infinite;
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#footerAboutParagraph{
  font-weight: 700;
}

#googleMaps_homePage {
  width: 100%;
  height: 600px;
  margin-top: 0px;
  margin-bottom: 50px;
}

.googleMapsPopup {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
  pointer-events: none;
  white-space: nowrap;
}


.mapsDivider {

  margin-top: 32px;
  margin-bottom: 48px;
}


.kollelsNumbers{
  color: #152238;
  text-align: center;
  margin-top: 20px;
}

#kollelsNumbersSection{
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
}

.h2_english{
  text-align: left
}

.lang_switch_btn {
  position: absolute;
  top: 45px;
  left: 100px;
  right: auto;
  padding: 8px 16px;
}

.button:hover {
  border-radius: 10px;
  border: 1px solid #FFF;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12.5px);
  color: #ffb23f;
  border: 1px solid;
  /* padding: 14px 100px; */
  transition: 0.3s;
}

/* Mobile responsive styles */
@media (max-width:600px) {
  .lang_switch_btn {
    top: 50px;
    left: 10px;
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* @media (max-width:600px) {
  .lang_switch_btn {
    top: 15px;
    left: 5px;
    padding: 5px 10px;
    font-size: 12px;
  }
} */

.card_paragraph {
  font-size: 20px;
}