/* ============================= */
/* 📱 Base Mobile-First Styles  */
/* Already defined in your CSS! */
/* ============================= */

/* ============================= */
/* 📲 Tablet Breakpoint (≥600px) */
/* ============================= */
@media (max-width: 360px) {
  .container-hero-image .hero-image-text {
    padding: 0.6rem 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }

  #quote-font {
    font-family: "OH", heboo;
    z-index: 1;
    font-size: 1rem;
  }

  .container-hero-image span:last-of-type {
    display: block;
    font-size: 0.5rem;
  }
}

@media (min-width: 600px) {
  header.container {
    padding: 1rem 2rem;
  }

  header.container .logo img {
    width: 100%;
    height: 100%;
  }

  nav {
    position: static;
    position: absolute;
    left: 36px;
    top: 46px;
    cursor: pointer;
  }

  .container-hero-image img:first-of-type {
    display: none;
  }

  .container-hero-image img:last-of-type {
    width: 100%;
    height: auto;
    display: block;
  }

  .container-hero-image .hero-image-text {
    padding: 0.75rem 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  #quote-font {
    font-family: "OH", heboo;
    z-index: 1;
    font-size: 2rem;
  }

  .container-hero-image span:last-of-type {
    display: block;
  }

  .partners_container-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pictures-of-something__card,
  .pictures-of-center__card,
  .Yaakovs-section__card {
    width: 100vw;
  }

  .btn,
  .btn-xl {
    font-size: 1.75rem;
    padding: 12px 20px;
    text-decoration: none;
  }
}

/* ============================= */
/* 💻 Desktop Breakpoint (≥1024px) */
/* ============================= */
@media (min-width: 1120px) {
  /* Glightbox */

  /* 6.  Safety cap: never exceed container size */
  .glightbox-container .ginner-container,
  .glightbox-container .gslide-media,
  .glightbox-container .gslide-image img {
    width: 65%;
    height: 55%;
  }

  /* Header */

  /* Nav */

  header {
    position: relative;
    max-width: 1120px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0 auto;
    padding: 0px 0px 24px 0px;
  }

  .logo {
    width: 150px;
    height: 150px;
    margin-bottom: -13px;
    margin-right: -20px;
  }

  .logo img {
    width: 100%;
    height: 100%;
  }

  .hamburger {
    cursor: pointer;
    position: relative;
    left: auto;
    top: auto;
    margin-left: 5px;
    border: none;
  }

  header p {
    font-size: 2rem;
    margin: 0;
  }

  /* Hero Section */

  .hero-section {
    margin: 0 auto;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
  }

  .container-hero-image {
    width: 100%;
    margin: 5px auto;
    aspect-ratio: 664 / 557;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
  }

  .container-hero-image .hero-image-text {
    padding: 64px 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
  }

  .container-hero-image picture {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 664 / 557;
    height: min-content;
  }

  /* move the visible area down */
  .container-hero-image img {
    object-fit: cover; /* you already have this */
    object-position: center 95%; /* ↑ increase % to push image down */
    width: 100%;
    height: 100%;
  }

  #quote-font {
    font-size: 3rem;
  }

  .container-hero-image span:last-of-type {
    display: block;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
  }

  /* Hero Text and CTA */

  .container-hero-txt {
    padding: 3rem 0px;
  }

  .container-hero-txt h1 {
    font-size: 3.1875rem;
    font-style: normal;
    font-weight: 300;
    line-height: 70%;
    letter-spacing: 0.1px;
  }

  .container-hero-txt span:first-of-type {
    display: inline-block;
  }

  .container-hero-txt span:last-of-type {
    display: block;
    padding: 16px 0px;
    font-size: 2.75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 44.2px */
    color: var(--main-color);
    letter-spacing: 0.2px;
    text-align: left;
  }

  .paragraph-hero {
    color: #581f18;
    font-family: Heebo;
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.66rem;
    width: 80%;
  }

  .cta-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 16px;
  }

  #cta-btn-span {
    color: var(--main-color);
    font-family: Heebo;
    font-size: 1.9rem;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    padding: 0px;
  }

  .cta-btn .btn-l {
    background-color: var(--btn-background);
    color: #581f18;
    font-family: Heebo;
    font-size: 2rem;
    padding: 10px 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 39px */
    display: block;
    border-radius: 8px;
    border: 2px solid #581f18;
    cursor: pointer;
    text-decoration: none;
    transform: scale(1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out,
      color 0.3s ease-in-out;
  }

  .cta-btn .btn-l:hover {
    background-color: #feede1;
    color: #581f18;
    transform: scale(1.05);
  }

  .cta {
    max-width: 1120px;
    max-height: 510px;
    margin: 0 auto;
    overflow: hidden;
    background-image: url(/assets/CTA-Hero.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 2.159;
  }

  .cta a.btn-xl {
    display: none;
  }

  /* About the center */

  .about-center-section {
    margin: 0 auto;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
  }

  .container-center-txt {
    padding: 3rem 0px;
  }

  /* Text about the center */
  .container-center-txt h2 {
    font-size: 3.1875rem;
    font-family: Heebo;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0.1px;
  }

  .container-center-txt p {
    color: #43403f;
    text-align: inherit;
    font-family: Heebo;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2rem;
    align-self: stretch;
  }

  .container-center-txt .paragraph-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Carousel 1 */

  .pictures-of-something__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 1rem;
  }

  .pictures-of-something__container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .pictures-of-something__card {
    flex: 0 0 30%;
    scroll-snap-align: start;
    padding: 0px;
    border-radius: 2px;
    overflow: hidden;
  }

  .pictures-of-something__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or use 'contain' if you want full image visible */
    object-position: center;
    display: block;
  }

  /* about-center-section-expanded */

  .about-center-section-expanded {
    width: 100vw;
    background-color: #f7f6f2;
    overflow-x: hidden;
    margin: 0 auto;
  }

  .about-center-text-padding {
    padding: 0px 0px;
  }

  .about-center-section-expandad .container {
    margin: 0 auto;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
  }

  #header-about {
    font-size: 3.1875rem;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
    letter-spacing: 0.1px;
    text-align: inherit;
    padding: 0px;
  }

  .about-center-section-expandad span {
    color: #915724;
    font-family: Heebo;
    font-size: 2.375rem;
    font-style: normal;
    font-weight: 600;
    line-height: 134%; /* 124.425% */
    text-align: inherit;
    width: 70%;
  }

  .top-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    align-items: center;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    direction: ltr;
  }

  .container-center-expendad-txt {
    padding: 0px;
  }

  .container-center-expendad-txt span .center-img-link a {
    color: #935e20;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 400;
    line-height: 32px; /* 133.333% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    cursor: pointer;
  }

  .container-center-expendad-txt {
    width: 550px;
    padding-right: 0px;
  }

  .container-center-expendad-txt p {
    color: #43403f;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 300;
    line-height: 41.006px;
    text-align: inherit;
    letter-spacing: 0.1px;
  }

  .googels-image {
    width: 550px;
    height: 100%;
    padding: 0px;
    overflow: hidden;
  }

  .googels-image img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    object-position: cover;
    display: block;
    margin-top: -50px;
    margin-left: -50px;
  }

  .bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    align-items: center;
    gap: 3rem;
    padding-top: 1.5rem;
    direction: ltr;
  }

  .carousel_2_wrapper {
    display: flex;
    flex-direction: column;
    width: 550px;
    padding-top: 10px;
    padding-right: auto;
  }

  .pictures-of-center__card {
    flex: 1 0 100%;
    scroll-snap-align: start;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
  }

  .pictures-of-center__image {
    aspect-ratio: 550 / 317;
    width: 100%;
    min-width: 550px;
    margin: 0 auto;
  }

  .pictures-of-center__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-repeat: no-repeat;
    display: block;
  }

  .container-center-expendad-txt-2 {
    padding: 0px;
  }

  /* Text for carousel */
  .container-center-expendad-txt-2 p:first-of-type {
    color: #915724;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 500;
    line-height: 41.006px; /* 141.4% */
    text-align: inherit;
    letter-spacing: 0.1px;
  }

  .container-center-expendad-txt-2 p:last-of-type {
    color: #43403f;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 300;
    line-height: 41.006px;
    text-align: inherit;
    letter-spacing: 0.1px;
  }

  .cta-container-expandad {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 64px 0px 32px 0px;
  }

  .cta-container-expandad span {
    color: var(--main-color);
    font-family: Heebo;
    font-size: 1.9rem;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    padding: 0px;
  }

  .cta-container-expandad a.btn {
    background-color: var(--btn-background);
    text-decoration: none;
    color: #581f18;
    font-family: Heebo;
    font-size: 2rem;
    padding: 10px 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 39px */
    display: block;
    border-radius: 8px;
    flex-shrink: 0;
    min-width: max-content;
    cursor: pointer;
    transform: scale(1); /* initial state */
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out,
      color 0.3s ease-in-out; /* optional, for smooth color change */
  }

  .cta-container-expandad a.btn:hover {
    background-color: #feede1;
    color: #581f18;
    transform: scale(1.01);
  }

  /* Partners */

  .partners_container {
    margin: 0 auto;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 3rem 0px;
  }

  .partners_container-txt {
    display: flex;
    padding: 10px 0px;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
  }

  .header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
  }

  .header-wrapper h2 {
    font-size: 3.1875rem;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
    letter-spacing: 0.1px;
  }

  div.header-wrapper span {
    color: #915724;
    font-family: Heebo;
    font-size: 2.375rem;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 124.425% */
    display: block;
    width: 75%;
    padding: 8px 0px;
  }

  .partners_container-txt p:first-of-type {
    color: var(--secondary-color);
    text-align: left;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 300;
    line-height: 133%;
    letter-spacing: 0.1px;
  }

  #dream-like {
    color: var(--secondary-color);
    text-align: left;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 500;
    line-height: 133%;
    letter-spacing: 0.1px;
  }

  .partners_container-txt p:last-of-type {
    color: var(--main-color);
    text-align: left;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 500;
    line-height: 32px; /* 133.333% */
  }

  .partners_container-txt span {
    color: var(--secondary-color);
    text-align: left;
    font-family: Heebo;
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 133%; /* 241.667% */
    padding: 32px 0px;
  }

  section.partners_container {
    padding: 3rem 0px;
  }

  .partners_container-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    justify-items: center;
    align-items: center;
    max-width: 1200px;
    max-height: 400px;
    margin: 0 auto;
    padding: 0.5rem 0;
  }

  .grid__item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    align-items: center;
    transition: transform 0.3s ease;
  }

  .grid__item:hover {
    transform: scale(1.05);
  }

  .grid__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .grid__item img:hover {
    transform: scale(1.01);
  }

  /* Yaakov's section */

  .Yaakovs-section__container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 48px 0px 24px 0px;
    max-width: 1120px;
    margin: 0 auto;
  }

  .Yaakovs-section__container .text-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 48px;
    justify-content: space-around;
    align-items: stretch;
  }

  .Yaakovs-section__container .text-wrapper .text-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .Yaakovs-section__container h2 {
    color: #935e20;
    text-align: left;
    font-family: Heebo;
    font-size: 3.1875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 133%; /* 122.222% */
    letter-spacing: 0.1px;
  }

  .Yaakovs-section__container .text-wrapper p {
    color: #3c3a3b;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 300;
    line-height: 133%;
    padding-top: 0.5%;
    letter-spacing: 0.1px;
  }

  .Yaakovs-section__container .text-wrapper img {
    width: 426px;
    aspect-ratio: 533 / 504;
    object-fit: cover;
    border-radius: 2px;
    object-position: right center;
    display: block;
  }

  .Yaakovs-section__container span {
    color: #935e20;
    text-align: left;
    font-family: Heebo;
    font-size: 2.6875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 133%;
    letter-spacing: 0.1px;
  }

  /* carousel-3*/

  .Yaakovs-section__container-carousel {
    direction: ltr;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    scrollbar-width: none; /* Firefox */
  }

  .Yaakovs-section__container-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
  }

  .Yaakovs-section__card {
    flex: 0 0 calc((100% - 2rem) / 3); /* (100% - 2 gaps) / 3 */
    aspect-ratio: 4 / 3; /* keeps a steady height */
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .Yaakovs-section__image,
  .Yaakovs-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.4rem;
  }

  /* final-cta */

  .final-cta__container-wrapper {
    width: 100vw;
    background-image: url("../assets/Background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    margin: 0 auto;
  }

  .final-cta__container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0px;
    max-width: 1120px;
    background-image: none;
    margin: 0 auto;
  }

  .final-cta__container-txt {
    display: flex;
    padding: 10px 0;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
    width: 85%;
  }

  .final-cta__container-txt p:first-of-type {
    color: var(--Light-text, #8b602d);
    text-align: left;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 400;
    line-height: 32px; /* 133.333% */
    letter-spacing: 0.1px;
    direction: ltr;
  }

  .final-cta__container-txt p:last-of-type {
    color: var(--Dark-text, #592d20);
    text-align: left;
    font-family: Heebo;
    font-size: 1.625rem;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 133.333% */
    letter-spacing: 0.1px;
    direction: ltr;
  }

  .btn-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    padding-top: 24px;
  }

  .btn-wrapper span {
    color: #592d20;
    text-align: right;
    font-family: Heebo;
    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 58px; /* 241.667% */
  }

  .btn-wrapper .btn {
    background-color: var(--btn-background);
    color: #581f18;
    font-family: Heebo;
    font-size: 2rem;
    padding: 10px 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 39px */
    display: block;
    border-radius: 8px;
    flex-shrink: 0;
    min-width: max-content;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out,
      color 0.3s ease-in-out;
  }

  .btn-wrapper .btn:hover {
    background-color: #feede1;
    color: #581f18;
    transform: scale(1.05);
  }

  .cta-container-expandad span {
    color: var(--main-color);
    font-family: Heebo;
    font-size: 1.9rem;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    padding: 0px;
  }

  .cta-container-expandad button.btn {
    background-color: var(--btn-background);
    color: #581f18;
    font-family: Heebo;
    font-size: 2rem;
    padding: 10px 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 39px */
    display: block;
    border-radius: 8px;
    flex-shrink: 0;
    min-width: max-content;
  }

  /* Contribution contaneir  */
  .contribution__container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 3rem 24px;
    max-width: 1120px;
    background-image: none;
    margin: 0 auto;
  }

  .contribution__container span {
    color: #000;
    text-align: right;
    font-family: Heebo;
    font-size: 2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 133%; /* 133.333% */
    text-align: left;
    direction: ltr;
  }

  .contribution__container span strong {
    color: var(--main-color);
    text-align: right;
    font-family: Heebo;
    font-size: 2rem;
    font-style: normal;
    font-weight: 500;
    line-height: 133%; /* 133.333% */
    text-align: left;
    direction: ltr;
  }

  /* Footer */

  .footer__container-wrapper {
    width: 100vw;
    height: auto;
    margin: 0 auto;
  }

  .footer__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    max-width: 1120px;
    margin: 0 auto;
  }

  .footer-text {
    padding: 0px;
  }
  .donation-info {
    font-family: Heebo;
    direction: ltr;
    text-align: left;
    color: white;
  }

  .donation-info strong {
    display: block;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0.75rem 0rem 0.25rem 0rem;
  }

  .donation-info p {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 32px;
  }

  .donation-info a {
    color: white;
    text-decoration: underline;
  }

  /* Footer Form */

  .footer__container-wrapper {
    background-color: #42403f;
  }

  .footer__container {
    background-color: #42403f;
  }

  .footer-form {
    width: 50%;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: Heebo, sans-serif;
    color: white;
    border-radius: 2px;
  }

  .contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    width: 100%;
  }

  .contact-form .form-footer {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    padding-top: 8px;
    width: 100%;
  }

  .contact-form button {
    padding: 8px 24px;
    background-color: white;
    color: #42403f;
    font-weight: bold;
    font-size: 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  .contact-form .social-icons a {
    color: white;
    font-size: 1.8rem; /* Adjust size as needed */
    transition: color 0.3s ease;
    margin-left: 12px;
    display: inline-block;
  }

  .contact-form .social-icons a:hover {
    color: #aaaaaa; /* Optional: hover effect */
  }
}
