@import url('https://fonts.googleapis.com/css2?family=Beau+Rivage&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


#fullBody {
  display: none;
}

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

.container {
  width: 80vw;
  margin: 0 10%;
  height: auto;
}

h1 {
  color: #F5F5F5;
  font-family: "Bona Nova";
  font-size: 80px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 4.5px;
}

h2 {
  color: #860000;
  text-align: right;
  /* font-family: "Bona Nova"; */
  font-family: Rubik, sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  align-self: stretch;
}

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

h3 {
  color: var(--primary, #860000);
  text-align: center;
  font-family: Rubik;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

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: 24px;
  padding: 0 10%;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  align-items: stretch;
}

p {
  text-align: right;
  overflow: hidden;
  color: #1E1E1E;
  text-overflow: ellipsis;
  font-family: Rubik;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  /* 28.8px */
}


.hero {
  width: 100%;
  height: 600px;
  position: relative;
  padding: 0 5%;
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  max-height: 75vh;
}

#db_main_header_image {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

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

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

.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;
}


nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* padding: 20px,8%; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* background-image: linear-gradient(rgba(12,3,51,0.3),rgba(12,3,51,0.3)); */
}

/* #db_logo_header {
  position: absolute;
  top: 0;
  right: 10vw;
  border-radius: 0 0 10px 10px;
  width: 80px;
  max-height: 100px;
  object-fit: contain;
  background-color: #fff;
  } */

#db_logo_header {
  display: block;
  align-content: center;
  width: auto;
  height: 100px;
  object-fit: contain;
  position: absolute;
  top: 1vh;
  right: 10vw;
  /* background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.2) 0%, hsla(0, 0%, 96%, 0.5) 100%); */
  text-align: center;
  border-radius: 10px;
}

@media (max-width:600px) {
  #db_logo_header {
    display: none;
  }
}

.db_logo {
  overflow: hidden;
  align-self: center;
  width: auto;
  display: block;
  height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

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

@media (max-width:650px) {
  #db_kolel_name {
    font-size: 48px;
  }
}

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

#kolelTitle {
  display: grid;
  gap: 8px;
}

#kolelTitle h5 {
  color: #f5f5f5;
}

#headerMedia {
  width: 100vw;
}

.container a {
  text-decoration: none;
  display: inline-block;
  color: #FFF;
  font-size: 24px;
  text-align: right;
}

.button {
  display: flex;
  padding: 14px 60px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 2px solid #FFF;
  background: #ffffff10;
  backdrop-filter: blur(10px);
  color: #FFF;
  font-family: Rubik, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  flex-direction: column;
}

.button:hover {
  color: #ffb23f;
  border: 1px solid;
  padding: 14px 100px;
  transition: 0.3s;
}

@media (max-width:650px) {
  .button {
    padding: 9px 30px;
    font-size: 16px;
  }
}

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

/* hero section */

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

@media (max-width:650px) {
  #cards {
    margin: 25px 0;
  }
}

.card {
  width: auto;
  min-height: 250px;
  border-radius: 10px;
  padding: 20px 25px;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card:hover {
  background-color: #f2f2f2;
  filter: drop-shadow(#860000);
}

.card_title {
  color: var(--primary, #860000);
  text-align: center;
  font-family: Rubik, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.icons_and_titles_in_cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icons_in_cards {
  font-size: 34px;
  display: block;
  color: #152238;
}

.card img {
  width: 80%;
}

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

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

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

.card H4 {
  color: #494949;
  text-align: center;
  font-family: "Bona Nova";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* end of cards */

#kolel_discription {
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  border-radius: 10px;
  padding: 5px 10px;
  background: #f9f9f9;
  margin: 50px 0;
  gap: 48px;
}

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

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

#left img {
  min-height: 350px;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  max-height: 400px;
}

@media (max-width: 1030px) {
  #kolel_discription {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    border-radius: 10px;
    gap: 48px;
  }
}

@media (max-width:500px) {
  #left img {
    /* width: 500px; */
    max-width: 800px;
  }
}

#right p {
  width: 95%;
}

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

/* rabbi discription */

#rabbi_description {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0;
  gap: 48px;
}


@media (max-width:800px) {
  #rabbi_description {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media(max-width:500px) {
  #rabbi_description {
    display: flex;
    flex-direction: column-reverse;
  }
}

#right {
  flex: 1;
  /* Take up equal space */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

#left {
  flex: 1;
  /* Take up equal space */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

#right img {
  min-height: 350px;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  max-height: 400px;
}

@media (max-width: 1030px) {
  #rabbi_description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    border-radius: 10px;
    gap: 48px;
  }
}

@media (max-width:500px) {
  #right img {
    /* width: 500px; */
    max-width: 800px;
  }
}

#right p {
  width: 95%;
}

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


/* end of discription */

/* gallery */
#gallery {
  gap: 24px;
  display: inline-flex;
  flex-direction: column;
  margin: 50px 10%;
}

#gallery_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:1000px) {
  #gallery_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;
  }
}

#gallery_header H2 {
  color: #FFFDD0;
  text-align: center;
  padding: 0 2%;
}

#gallery_header H5 {
  color: #FFFCF5;
}

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

/* gallery body */
#gallery_body {
  display: grid;
  grid-gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.gallery_image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* end of gallery body */

/* reviews */

#reviews {
  gap: 48px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  padding: 50px 0;
}

.review {
  width: 100%;
  overflow: hidden;
}

.review_cards {
  width: 100%;
  display: grid;
  align-items: flex-start;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.review_cards .item {
  display: flex;
  width: auto;
  min-height: 450px;
  height: auto;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 60px 38px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.review_cards :hover {
  background-color: #f2f2f2;
  color: #fff;
  filter: drop-shadow(#5f5f5f12);
  transition: 0.3s;
}

#reviews h2 {
  color: var(--primary, #860000);
  text-align: center;
  /* font-family: "Bona Nova"; */
  font-family: Rubik, sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 2.4px;
}

#reviews h4 {
  color: var(--primary, #860000);
  text-align: right;
  font-family: Rubik;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  /* 33.6px */
}

#reviews p {
  height: 200px;
  color: #303030;
  text-align: right;
  font-family: Rubik;
  /* width: 100%; */
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 22.4px */
  padding-bottom: 10px;
  /* overflo  w-x: hidden; */
}

#reviews h5 {
  color: #5f5f5f;
  text-align: right;
  font-family: Rubik;
  font-size: 18px;
  font-style: normal;
  padding: 0;
  font-weight: 500;
  line-height: 140%;
  /* 28px */
}

.read-more-btn {
  color: #303030;
  background: #152238;
  background-color: #1B1B1B;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  display: contents;
  text-decoration-line: overline;
}

.read-more-btn:hover {
  color: #860000;
  font-size: 16px;
  display: contents;
  text-decoration-line: overline;
}

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

.review_card {
  display: grid;
  /* flex-direction: column; */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  justify-content: space-between;
  padding: 10px;
  background-color: #303030;

}

.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;
}

#reviews_1 {
  display: grid;
  position: relative;
  width: 100%;
  -ms-touch-action: pan-y;

}



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

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

/* second_donation_section */

#second_donation_section {
  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 -209.088px / 100% 278.961% no-repeat;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  object-fit: cover;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  gap: 16px;
  background-color: #1E1E1E;
  margin: 50px 10%;
  background-size: auto;
}

#second_donation_section::AFTER {
  background-color: #1E1E1E;
}

#second_donation_section h3 {
  color: #FFFDD0;
  text-align: center;
  font-family: "Bona Nova";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#db_kolel_main_img ::before {
  /* background-color: rgba(0, 0, 0, 0.12); */
}

.divider {
  justify-content: center;
  display: flex;
}

/* footer */
#footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  flex-direction: row;
  padding: 48px;
  background: #303030;
  /* justify-content: space-between; */
  border-radius: 10px;
  justify-items: start;
  align-items: start;
  margin-bottom: 100px;
}

@media (max-width:650px) {
  #footer {
    flex-direction: column;
  }
}

.footerHeadlines {
  font-size: 20px;
  color: #f5f5f5;
  font-weight: 700;
}

#footer p {
  color: white;
  font-size: 16px;
  text-align: right;
  max-width: 90%;
}

#footer ul {
  display: inline-grid;
  grid-auto-flow: row;
  grid-gap: 8px;
  justify-content: space-between;
  margin: auto;
  align-items: start;
}

@media (max-width:650px) {
  #footer ul {
    display: inline-grid;
    grid-auto-flow: row;
    justify-content: center;
  }
}

.footerList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: start;
  align-items: flex-start;
  width: 100%;
}

#footer li {
  grid-template-rows: auto;
  align-content: center;
  gap: 8px;
  color: #860000;
}

#footer li a {
  font-size: 16px;
  color: #e5e5e5;
  width: 80%;
}

#contactFooterIcons {
  width: 100%;
}

.lineContentElements {
  display: flex;
  align-items: center;
  gap: 8px;
}

#footer li p {
  color: #f5f5f5;
}

#footerLogoImage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footerIcons {
  text-align: center;
  width: 6%;
  height: 24px;
  color: #e9e9e9;
  align-content: center;
  min-width: 22px;
}

/* #db_logo_Footer{
  border-radius: 100%;
  width: 50%;
} */

#db_logo_footer {
  width: auto;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  background: linear-gradient(135deg, hsla(0, 0%, 100%, 0.2) 0%, hsla(0, 0%, 96%, 0.5) 100%);
  border-radius: 10px;
  align-self: auto;
}

#footerBankDetails {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}


#AccessibilityBtn {
  color: #f5f5f5;
  background-color: transparent;
  /* Fully transparent background */
  text-align: right;
  font-family: Rubik;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0 10px;
}

.popupModal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.popUpModalForReview-content {
  position: relative;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  top: 10px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  background: #f9f9f9;
  text-align: center;
}

.close:hover {
  background: #e5e5e5;
}

.popupModal img {
  max-width: 100%;
  /* max-height: 500px; */
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

.openPopupForReview {
  color: #5f5f5f;
  border: none;
  background-color: transparent;
  font-size: 16px;
}

.openPopupForReview:hover {
  color: #000;
  border: 1px;
  border-color: #860000;
}

.readMore {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#donationButton{
  display: flex;
  flex-direction: column;
}


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

#switchToHebrew,
#switchToEnglish {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  font-size: 14px;
  z-index: 100;
}

/* RTL (Hebrew) specific styles */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] #switchToEnglish {
  left: 20px;
}

[dir="rtl"] p,
[dir="rtl"] #db_rabbi_name,
[dir="rtl"] #kolel_discription h2,
[dir="rtl"] #rabbi_description h2 {
  text-align: right !important;
}

[dir="rtl"] #gallery h2,
[dir="rtl"] #reviews h2 {
  text-align: center !important;
}

/* LTR (English) specific styles */
[dir="ltr"] {
  text-align: left;
}

[dir="ltr"] #switchToHebrew {
  left: 20px;
}

[dir="ltr"] #db_kolel_description,
[dir="ltr"] #db_rabbi_description,
[dir="ltr"] #db_review_body_1,
[dir="ltr"] #db_review_body_2,
[dir="ltr"] #db_review_body_3,
[dir="ltr"] #db_reviewer_1,
[dir="ltr"] #db_reviewer_2,
[dir="ltr"] #db_reviewer_3,
[dir="ltr"] #db_reviewer_1_position,
[dir="ltr"] #db_reviewer_2_position,
[dir="ltr"] #db_reviewer_3_position,
[dir="ltr"] #footerBankDetails p,
[dir="ltr"] #reviews p,
[dir="ltr"] #reviews h4,
[dir="ltr"] .footerList p,
[dir="ltr"] #kolel_discription h2,
[dir="ltr"] #rabbi_description h2,
[dir="ltr"] #db_rabbi_name {
  text-align: left !important;
}

[dir="ltr"] #gallery h2,
[dir="ltr"] #reviews h2 {
  text-align: center !important;
}

[dir="ltr"] .db_kolel_name {
  font-family: "Noto Sans", sans-serif;
  font-size: 70px;
}

.subTitleDonation {
  text-align: center;
  font-size: 1rem;
  margin-top: 0.5rem;
}