@font-face {
  font-family: 'archivo';
  src: url('/fonts/archivoBlack.ttf') format('truetype');
}

@font-face {
  font-family: 'hebrew';
  src: url('/fonts/Open\ Sans\ Hebrew\ Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'work';
  src: url('/fonts/WorkSans-Thin.ttf') format('truetype');
}

@font-face {
  font-family: 'sweet';
  src: url('/fonts/SweetGetawayDemoRegular-2XyK.ttf') format('truetype');
}

@font-face {
  font-family: 'pala';
  src: url('/fonts/palr45w.ttf') format('truetype');
}

@font-face {
  font-family: 'monts';
  src: url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}

/* Reset box-sizing for all elements */
* {
  box-sizing: border-box;
}

/* Set maximum width and center the body */
html {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  font-size: 16px;
}

body {
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

/* Responsive margins for body based on screen width */
@media (min-width: 1300px) {
  body {
    margin-left: 50px;
  }
}
@media (min-width: 1400px) {
  body {
    margin-left: 100px;
  }
}
@media (min-width: 1500px) {
  body {
    margin-left: 150px;
  }
}

/* Navigation styles */
nav {
  height: 5rem;
  width: 100%;
  background-color: #2f3d7c;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
}

.logox {
  width: 3rem;
  margin-top: 0.02rem;
  margin-left: 2rem;
}

.nav__list {
  display: flex;
  color: #fff;
  list-style: none;
  margin-right: 2rem;
  align-items: center;
  height: 100%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.nav-link {
  font-family: sans-serif;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.nav-link.active,
.nav__list a:hover {
  color: gold;
}

.hero {
  margin-top: 5rem;
  width: 100%;
  height: 80vh;
  background-image: url(images/homepic.png);
  background-position: center;
  background-size: cover;
  position: relative;
}

.clip {
  margin-top: 3rem;
  width: 60%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8));
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.subtitle {
  color: gold;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: blue;
  margin-top: -1.7rem;
}

.welcome-english {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 4rem;
  color: blue;
  margin-top: -2px;
}

.welcome-hebrew {
  color: blue;
  font-size: 3rem;
  margin-top: -2.3rem;
}

.nasenyi-span {
  color: gold;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 5rem;
}

.learn {
  margin-top: -2px;
  font-size: 1rem;
  background-color: blue;
  color: gold;
  border: none;
  padding: 2px;
  border-radius: 2px;
}

/* Decorative sections */
.deco1 {
  width: 100%;
  height: 15vh;
}
.deco1 .top1 {
  width: 100%;
  height: 15vh;
  background-color: #2f3d7c;
  clip-path: polygon(0 0, 0 100%, 100% 0);
  z-index: -1;
}
.deco1 .top2 {
  width: 100%;
  height: 15vh;
  background-color: rgb(0, 0, 114);
  clip-path: polygon(100% 0, 100% 44%, 100% 54%, 0 100%, 0 72%);
  margin-top: -15vh;
  z-index: 20;
}
.deco1 .top3 {
  width: 100%;
  height: 15vh;
  background-color: #ffd700;
  clip-path: polygon(99.8% 55%, 52% 85%, 99.8% 100%);
  margin-top: -17vh;
}

/* Main content section */
.main {
  font-family: 'pala', sans-serif;
  width: 80%;
  max-width: 1400px;
  height: 40vh;
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

h3, .shalom1 {
  color: blue;
  margin-bottom: 1.2rem;
}

.shalom1 {
  display: inline-block;
  position: relative;
  font-weight: bold;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: gold;
  text-decoration-thickness: 1px;
}

/* Village and community sections */
.village {
  margin-top: 3rem;
}

.community {
  width: 100%;
}

.card__holder {
  width: 90%;
  max-width: 1400px;
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.card {
  flex: 1 1 22%; /* approximately 4 cards per row on large screens */
  min-width: 200px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background-color: #2323b8;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

.image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -10px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.caption {
  margin-top: -0.4px;
  font-size: 0.9rem;
  color: #000;
  text-align: center;
}

.text__holder1 {
  font-family: 'pala', sans-serif;
  color: #fff;
  border: 0.5px solid gold;
  border-radius: 3px;
  font-size: 1rem;
  word-spacing: 1.5px;
  font-weight: 400;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 98%;
  margin: 0 auto 2px auto;
  padding: 2px;
}

/* About section styles */
.about__info {
  margin-bottom: -1.5rem;
}
.about-us {
  background-color: #87cefa;
  padding: 3px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "box1 box2 box2"
    "box3 box2 box2";
  gap: 10px;
}

.box1 {
  grid-area: box1;
  background-image: url('/images/pastorjew.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.box2 {
  grid-area: box2;
  background-color: rgb(230, 226, 221);
  border: 0.1px solid blue;
  border-radius: 3px;
  padding: 10px;
}

.box3 {
  grid-area: box3;
  background-color: rgb(230, 226, 221);
  border: 0.1px solid blue;
  border-radius: 3px;
  padding: 10px;
}

/* Titles and headings */
.title {
  text-decoration: underline;
  color: blue;
  font-family: sans-serif;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

.mission {
  font-family: 'monts';
  font-size: 1rem;
  margin-top: -1rem;
}

.box3-p {
  font-family: 'monts', sans-serif;
  font-size: 0.3rem;
  margin-top: -1rem;
  margin-bottom: 0;
}

.values-container {
  margin-top: -2.9rem;
  margin-left: -1.9rem;
  font-family: 'monts', sans-serif;
  font-size: 0.3rem;
  margin-bottom: 0;
}

.v {
  font-weight: 900;
  color: #0398fa;
  font-size: 0.8rem;
}

ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 20px;
}

li {
  line-height: 1;
  font-family: 'monts', sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* About section header */
.topsectionheading {
  width: 60%;
  text-align: center;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* About header styles */
.about-head {
  color: blue;
  background-color: #fff;
  font-size: 2rem;
  font-weight: 600;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  margin-top: 1rem;
  grid-template-rows: 20vh 45vh;
  grid-template-areas:
    "box1 box1 box2"
    "box1 box1 box3";
  gap: 10px;
}

.box {
  background: #f0f0f0;
  border-radius: 12px;
  text-align: center;
  border: 1px solid red;
}

#box1 {
  background-image: url('/images/pastorjew.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Titles inside boxes */
.title {
  text-decoration: underline;
  color: blue;
  font-family: sans-serif;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive adjustments for smaller screens */
@media(max-width: 912px) {
  body {
    margin-left: 0;
  }
  /* Stack boxes vertically in grid layout */
  .about-head {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  /* Adjust font sizes for smaller screens */
  .welcome-english {
    font-size: 3rem;
  }
  .nasenyi-span {
    font-size: 4rem;
  }
  .subtitle {
    font-size: 1.5rem;
  }
  .qns {
    font-size: 2.5rem;
  }
  /* Make cards full width */
  .card__holder {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
}

/* Contact page styles */
.contact {
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  flex-direction: row;
  font-family: Arial, Helvetica, sans-serif;
}

@media(max-width: 768px) {
  .contact {
    flex-direction: column;
  }
}

.contactus {
  flex: 1 1 35%;
  min-width: 250px;
  padding: 10px;
  background-color: #f2f2f2;
  border-radius: 8px;
}

.box22 {
  flex: 1 1 60%;
  min-width: 300px;
  padding: 10px;
  background-color: #e0e0e0;
  border-radius: 8px;
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

textarea {
  resize: vertical;
}

.phone-input {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.flag {
  width: 30px;
  height: 20px;
  margin-right: 10px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 3px;
}

button {
  margin-top: 15px;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

/* Footer styles */
footer {
  margin-top: 2rem;
  width: 100%;
  height: 40vh;
  background-color: #2f3d7c;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  flex-wrap: wrap;
}

li {
  list-style: none;
  margin-top: -9px;
}

.footer__nav {
  margin-top: 1.5rem;
}

.tel, .mail, .loc {
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 0.7;
  color: #fff;
  margin-top: -4px;
}

@media(max-width: 530px) {
  .tel, .mail, .loc {
    font-size: 0.7rem;
  }
}

.footer__contact {
  font-family: sans-serif;
  color: #fff;
  font-size: 0.7rem;
}

.logox__footer {
  max-height: 80%;
  width: 20%;
}

@media(max-width: 1025px) {
  .logox__footer {
    width: 90%;
  }
}

/* About page styles */
.top {
  width: 100%;
  height: 40vh;
  margin-top: 3rem;
  background-image: url('/images/aboutpic.png');
  background-size: 98%;
  background-position: center;
  background-repeat: no-repeat;
}

.top__heading {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: gold;
  background-color: rgba(0,0,0, .5);
  width: fit-content;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-head {
  color: blue;
  background-color: #fff;
  font-size: 2rem;
  font-weight: 600;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  margin-top: 1rem;
  grid-template-rows: 20vh 45vh;
  grid-template-areas:
    "box1 box1 box2"
    "box1 box1 box3";
  gap: 10px;
}

.box1 {
  grid-area: box1;
  background-image: url('/images/pastorjew.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.box2 {
  grid-area: box2;
  background-color: rgb(230, 226, 221);
  border: 0.1px solid blue;
  border-radius: 3px;
  padding: 10px;
}

.box3 {
  grid-area: box3;
  background-color: rgb(230, 226, 221);
  border: 0.1px solid blue;
  border-radius: 3px;
  padding: 10px;
}

/* Titles inside boxes */
.title {
  text-decoration: underline;
  color: blue;
  font-family: sans-serif;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive adjustments for smaller screens */
@media(max-width: 912px) {
  body {
    margin-left: 0;
  }
  .about-head {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .welcome-english {
    font-size: 3rem;
  }
  .nasenyi-span {
    font-size: 4rem;
  }
  .subtitle {
    font-size: 1.5rem;
  }
  .qns {
    font-size: 2.5rem;
  }
  .card__holder {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
}