* { box-sizing: border-box; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body:lang(en) {font-family: var(--font-primary);}
body:lang(he) {font-family: var(--font-primary-he);}
body {padding:0;margin:0;font-size: 18px;line-height: 1.2;color: black;-webkit-font-smoothing: antialiased;}
input, textarea, button {border-radius: 0;-webkit-appearance:none;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}
nav ul{list-style: none;padding: 0;margin: 0;}
a {text-decoration:none;outline: none;color: inherit;}
img{border:0;display: flex;}
h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom: 20px;}
h1{font-size:52px;}
h2{font-size:35px;}
h3{font-size:38px;}
h4{font-size:35px;}
h5{font-size:22px;}
h6{font-size:18px;}
p{margin:0;}
/*--grid classes---*/
.row {display: flex;flex-wrap: wrap;}
.row-reverse {display: flex;flex-wrap: wrap;flex-direction: row-reverse;}
.flex-row-center{display: flex;justify-content: center;}

.hide-mobile{display:flex;}
.hide-desktop{display:none;}
 
 
.bg-img-settings{background-repeat: no-repeat;background-size: cover;}
.responsive-img{max-width: 100%;height: auto;}
.text-right{text-align: right;}
.text-left{text-align: left;}
.text-center{text-align: center;}
.to-right-auto{margin-left: auto;}
.to-left-auto{margin-right: auto;}
.hand{cursor:pointer;}
.t-b{font-weight:bold;}
.t-m{font-weight:500;}
.t-l{font-weight:300;}
.t-nob{font-weight:normal;}
.t-i{font-style: italic;}
.t-u{text-decoration:underline;}
.t-nou{text-decoration:none;}
.t-upper{text-transform: uppercase;}

.hide{display:none;}
.grid {width: 90%; margin: 0 auto; max-width: none;}

@media (min-width: 1024px) {
    .grid {width: 100%;margin: 0 auto;max-width: 1015px;}
}

/*---animation calsses---*/
.anim-target{/*a dummy class to target element in DOM*/}
.anim-general-transition{transition-property: transform,opacity;transition-timing-function: cubic-bezier(.175,.885,.32,1.175);transition-duration: 0.75s;}
.anim-delay-100{transition-delay: .1s;}
.anim-delay-200{transition-delay: .2s;}
.anim-delay-300{transition-delay: .3s;}
.anim-delay-400{transition-delay: .4s;}
.anim-delay-500{transition-delay: .5s;}
.anim-delay-600{transition-delay: .6s;}
.anim-delay-700{transition-delay: .7s;}
.anim-delay-800{transition-delay: .8s;}
.anim-delay-900{transition-delay: .9s;}
.anim-delay-1000{transition-delay: 1s;}
.anim-from-left{transform: translate(-20%,0);opacity: 0;}
.anim-from-right{transform: translate(20%,0);opacity: 0;}
.anim-from-top{transform: translate(0,-20%);opacity: 0;}
.anim-from-bottom{transform: translate(0,35%);opacity: 0;}
.anim-flip-y{transform: perspective(2500px) rotateY(-100deg);opacity: 0;}
.anim-to-zero{transform: translate(0,0);opacity: 1;}
.flip-to-zero{transform:perspective(2500px) rotateY(0);opacity: 1;}

/*--text page--*/
.text-page-top { padding-block-start: calc( var(--header-height) * 1.5 ); }
.text-page-content h3 { margin-block-start: 20px; }
.text-page-content a { color: inherit; }
.text-page-content a:hover { text-decoration: underline; }
/*--heaer--*/
.header {background-color: var(--color-navy);box-shadow: 0 5px 20px 0 rgb(0 0 0 / 9%);position: sticky;top: 0;z-index: 9999;display: flex;flex-direction: column;justify-content: center;height: var(--header-height);}
.header-menu-wrapper {max-width: 75%;width: 100%;display: flex;}
.menu-top-menu-container {width: 100%;}
.header-logo-wrapper {max-width: 208px;width: 100%;margin-inline-end: auto;display: flex;align-items: center;}
.header-logo {margin: auto;position: absolute;inset: 0;height: fit-content;}
.header-logo img { max-width: 100%; }
.header .grid { max-width: 100%; height: 100%; display: flex; width: 100%; align-items: center; position: relative; }
.swiper-button-next, .swiper-button-prev { color: var(--color-white); }
.header .grid>.row { width: 100%; height: 100%; }
.header-nav {display: flex;align-items: flex-end;height: 100%;width: 100%;gap: 10px;margin-inline: auto;padding-block-start: 30%;}
.menu-top-nav-container {height: 100%;}
.header-nav>li {display: flex;flex-direction: column;width: 100%;position: relative;padding-block: 6px;}
.header-nav>li:hover>a, .header-nav .sub-menu li:hover>a, .header-nav li.current-menu-item > a{color: white;}
.header-nav>li>.sub-menu {display: none;position: relative;width: max-content;padding: 10px 20px;flex-direction: column;align-items: flex-end;}

.header-nav>li.menu-item-has-children > a:before { content: ""; position: absolute; background: url(/wp-content/uploads/arr-down-dark.svg); width: 12px; height: 7px; inset-block-start: 6px; inset-inline-start: 0; }
/*--humburger anim--*/
.header-humburger-wrapper {width: 45px;height: 24px;display: flex;align-self: center;flex-direction: column;justify-content: space-between;margin-inline-start: auto;padding: 0;background: transparent;border: none;cursor: pointer;}
.header-humburger {width: 100%;background-color: white;height: 3px;display: flex;} 
.header-menu-wrapper.open {clip-path: circle(145% at left top);}
.header-humburger.line1,.header-humburger.line3 {transform: translateY(0) rotate(0);}
.header-humburger.line2.open {opacity: 0;}
.header-humburger.line2 {transition-duration: .75s;}
.header-humburger.line1.open {animation: huburger-line1-open .75s forwards;}
.header-humburger.line1.close {animation: huburger-line1-close .75s forwards;}
.header-humburger.line3.open {animation: huburger-line3-open .75s forwards;}
.header-humburger.line3.close {animation: huburger-line3-close .75s forwards;}
@keyframes huburger-line1-open{
    0%{transform: translateY(0) rotate(0);}
    50%{transform: translateY(10px) rotate(0);}
    100%{transform: translateY(10px) rotate(45deg);}
}
@keyframes huburger-line1-close{
    0%{transform: translateY(10px) rotate(45deg);}
    50%{transform: translateY(10px) rotate(0);}
    100%{transform: translateY(0) rotate(0);}
}
@keyframes huburger-line3-open{
    0%{transform: translateY(0) rotate(0);}
    50%{transform: translateY(-10px) rotate(0);}
    100%{transform: translateY(-10px) rotate(-45deg);}
}
@keyframes huburger-line3-close{
    0%{transform: translateY(-10px) rotate(-45deg);}
    50%{transform: translateY(-10px) rotate(0);}
    100%{transform: translateY(0) rotate(0);}
}
.header-menu-wrapper {height: calc(100% - var(--header-height));position: fixed;inset-inline-end: 0;z-index: 0;background-color: var(--color-cyan);top: var(--header-height);clip-path: circle(0% at left top);transition: all .6s cubic-bezier(.175,.885,.32,1.275);overflow-y: auto;}
.header,.header.scroll {height: var(--header-height);position: sticky;}
.heaer-logo { max-width: 30%; } 
.header-nav {flex-direction: column;} 
.header-nav>li:last-child {margin: 0;height: auto;}
.header-humburger {width: 100%;background-color: var(--color-cyan);height: 3px;display: flex;} 
.header-nav>li a {display: inline-flex;width: fit-content;font-size: 24px;color: var(--color-white);flex-direction: row-reverse;}  
.header .header-nav>li>.sub-menu {background-color: transparent;padding: 0;}
.header-nav>li.menu-item-has-children.active .sub-menu {
    display: flex;
    margin-block-start: 10px;
    gap: 10px;
}
.header-nav>li.menu-item-has-children>a {
    width: 100%;
}
.share-links:lang(en) {
    inset-inline-end: 0;
}
.header-humburger-wrapper:lang(en) {margin-inline-start: 20%; margin-inline-end: auto;}

.header .grid>.row:lang(en) {
    flex-direction: row-reverse;
}

.header-menu-wrapper:lang(en) {
    inset-inline-start: 0;
}


.header-nav>li a:lang(en) {
    width: auto;
    white-space: nowrap;
}

.menu-item-arrow:lang(en) {
    padding-inline-end: 30%;
}
.menu-item-arrow {
    display: flex;
    background: url(/wp-content/uploads/arr-down-dark.svg) 100% 0 no-repeat;
    width: 12px;
    height: 7px;
}
.header-nav>li.menu-item-has-children {
    cursor: pointer;
}
.btn-donate-header { background-color: var(--color-sky); color: var(--color-navy); padding: 8px 20px; font-weight: 600; font-size: clamp(0.8rem, 2vw, 26px); transition: background-color 0.3s; width: 100%; display: flex; justify-content: center; align-items: center; }
.btn-donate-header:hover { background-color: var(--color-orange); color: var(--color-white); }
footer a:hover { text-decoration: underline; }
.footer { background-color: var(--color-sky); text-align: center; }
.footer h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 25px; color: var(--color-navy); }
.footer-form { display: flex; flex-direction: column; gap: 12px; max-width: 950px; margin: 0 auto 60px; }
.wpcf7 form input { padding: 12px; border: 1px solid var(--color-gray-medium); border-radius: 4px; font-size: 0.95rem; width: 100%; font-family: inherit; }
.newsletter-form form > p { display: flex; flex-wrap: wrap; gap: 10px; }
.reveal-title { transform: translateY(100px); opacity:0; transition: all .6s ease; }
.reveal-title.active { transform: translateY(0); opacity:1; }
.share-links { display: flex; flex-direction: column; position: fixed; width: 80px; height: 250px; inset-block-start: 20%; inset-block-end: auto; margin-block: auto; gap: 10px; align-items: center; justify-content: center; background-color: #f4ce50; z-index: 999; }
.share-toggle { display: none; width: 56px; height: 56px; border: 0; padding: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.share-dots { position: relative; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; box-shadow: -10px 0 0 currentColor, 10px 0 0 currentColor; display: block; }
.share-dots::before,
.share-dots::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; background: currentColor; transform: translate(-50%, -50%); opacity: 0; }

@media (max-width: 768px) {
    .share-links { width: 56px; height: 56px; border-radius: 9999px; inset-block-end: 10px; inset-block-start: auto; inset-inline-start: 10px; }
    .share-links .share-link { display: none; }
    .share-links .share-toggle { display: flex; }
    .share-links.is-open { width: 80px; height: 250px; border-radius: 0; }
    .share-links.is-open .share-link { display: inline-flex; }

    /* When open, show X instead of 3 dots */
    .share-links.is-open .share-dots { width: 18px; height: 18px; background: transparent; box-shadow: none; }
    .share-links.is-open .share-dots::before,
    .share-links.is-open .share-dots::after { opacity: 1; }
    .share-links.is-open .share-dots::before { transform: translate(-50%, -50%) rotate(45deg); }
    .share-links.is-open .share-dots::after { transform: translate(-50%, -50%) rotate(-45deg); }
}
.wpcf7-form-control-wrap[data-name="email"] { width: 100%; }
.bg-grey { background-color: var(--color-gray-light); padding-block: 40px 15px; }
.about-top .container { max-width: 100%; margin-inline: auto; background-color: var(--color-white); }
.about-team { padding-block-end: 50px; }
.about-top-content { max-width: 750px; margin-inline: auto; padding-block: 115px; }
.about-team h2 { margin-block: 60px; }
.team-grid { display: grid; gap: 10px; margin-inline: auto; }
.about-title { color: var(--color-orange); letter-spacing: 5.25px; font-size: 35px; text-align: center; margin: 0; padding-block: 40px; }
.btn-primary { padding-inline: 60px; padding-block: 13px; background-color: var(--color-sky); color: var(--color-white); font-family: var(--font-primary-he-bold); display: flex; max-width: fit-content; transition: .4s ease; }
.about-top-content .text { text-align: justify; margin-block-end: 40px; line-height: 1.4; }
.about-top-content .btn-primary { margin-inline: auto; }
.btn-primary:hover { background-color: var(--color-yellow); }
.newsletter-form form > p > br { display: none; }
.wpcf7 form input[type="submit"] { padding: 12px; background-color: var(--color-navy); color: var(--color-white); border: none; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 1rem; transition: background-color 0.3s; max-width: fit-content; height: fit-content; }
.footer-form input[type="submit"]:hover { background-color: var(--color-navy-light); }
.footer-form form  p { display: flex; gap: 5px; }
.copyright { font-size: 0.9rem; background-color: var(--color-navy); margin-top: 20px; color: white; padding-block: 10px; }
.wn-credit { display: flex; direction: ltr; justify-content: center; gap: 5px; align-items: center; }
/* Container */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-main .container { max-width: 950px; border: 1px solid var(--color-gray-light); padding-inline: 100px; line-height: 1.5; }
.single-page-content .container { padding-block-start: 50px; }
.single-page-content h1 { line-height: 1; margin-block-start: 20px; }
body.blog,body.page-template-contact-us { background-color: var(--color-gray-light); }
.blog-post { display: grid; grid-template-columns: repeat(2, 1fr); }
.blog-header.section-wide { margin-block-start: 40px; }
.blog-main.section-wide { margin-block-end: 50px; }
.blog-posts { max-width: 940px; width: 100%; margin-inline: auto; display: flex; flex-direction: column; gap: 35px; padding-block-end: 20px; }
.blog-post-image > img { max-width: 100%; height: auto; }
.blog-post-text h2 { font-size: 28px; }
.blog-post-text .text { line-height: 1.4; }
.blog-post-text {border: 1px solid var(--color-gray-light);}
.menu-toggle { background: none; border: none; cursor: pointer; padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.hamburger { width: 25px; height: 3px; background-color: var(--color-white); display: block; transition: 0.3s; }
.logo img { height: 40px; width: auto; }
.contact-main.section-wide { padding-block: 80px; }
.contact-main.section-wide .container { max-width: 500px; }
.field-wrapper.two-items > p { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field-wrapper.two-items > p br { display: none; }
.contact-main.section-wide form > p { display: flex; flex-direction: column; gap: 20px; margin-block-start: 20px; }
.contact-main.section-wide form > p br { display: none; }
.contact-main.section-wide form textarea,.contact-main.section-wide form input { font-family: inherit; width: 100%; border: none; border-block-end: 1px solid var(--color-text-light); resize: none; font-size: 24px; height: 120px; border-radius: inherit; }
.contact-main.section-wide form input { height: 35px; font-size: inherit; padding-block: 0; }
.contact-main.section-wide form input[type="submit"]:lang(en) {
    color: white;
    background-color: var(--color-navy);
    border-radius: 0;
    padding-block: 10px;
    font-weight: normal;
}

.contact-main.section-wide form input[type="submit"]:lang(en):hover {
    background-color: var(--color-yellow);
}
.contact-main.section-wide form input[type="submit"] { margin-inline: auto; color: var(--color-yellow); background-color: transparent; border: none; height: auto; padding-inline: 55px; border-radius: 20px; transition: all .4s ease; }
.contact-main.section-wide form input[type="submit"]:hover { background-color: var(--color-gray-medium); color: var(--color-cyan); }
/* ========== HERO SECTION - Mobile First ========== */
.hero { background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%); text-align: center; min-height: 300px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-image { position: relative; z-index: 9; max-width: 300px; transform: translateY(400px); transition: all .4s ease; }
.hero-image.show { transform: translateY(0); }
.hero:before { content: ""; position: absolute; width: 100%; height: 100%; background-color: var(--color-navy); z-index: 1; opacity: 0.85; }
.hero video { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-title { color: var(--color-white); font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.3; direction: rtl; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }

/* ========== ABOUT SECTION - Mobile First ========== */
.about { padding: 40px 20px; background-color: var(--color-gray-light); }
.about-text {font-size: clamp(0.9rem, 1.5vw, 1rem);line-height: 1.8;color: var(--color-text-light);margin-bottom: 25px;text-align: justify;max-width: 980px;margin-inline: auto;}
.btn-learn-more { display: inline-block; padding: 12px 30px; background-color: var(--color-navy); color: var(--color-white); border-radius: 4px; font-weight: 600; transition: background-color 0.3s; }
.btn-learn-more:hover { background-color: var(--color-navy-light); }
 
/* ========== ACTION SECTION - Mobile First (Stacked) ========== */
.action-section { padding-block-start: 80px; margin: 0; }
.blog-items-grid { display: grid; max-width: fit-content; gap: 40px; margin-inline: auto; }
.blog-items h4 {
    font-family: var(--font-primary-he);
    margin-block-start: 40px;
    font-size: 23px;
}
.blog-item {max-width: 455px;width: 100%;height: 455px;position: relative;}
.blog-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; max-width: 100%; }
.blog-items { background-color: #eeeee8; padding-block: 80px; }
.blog-items.section-wide {
    background-color: #eeeee8;
}
.blog-item-wrapper { padding: 20px; height: 100%; display: flex; align-items: flex-end; }
.blog-item h3 { position: relative; font-size: 26px; color: var(--color-white); z-index: 1; }
.recent-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.recent-post-text h5 { font-size: 18px; margin: 0; }
.recent-post-image img { max-width: 100%; width: 100%; height: 165px; object-fit: cover; object-position: center; }
.section-main.single-page-recent .container { padding: 0; border: none; }
.section-main.single-page-recent  .wrapper { display: flex; align-items: center; }
.section-main.single-page-recent h4 { font-size: 20px; margin: 0; margin-inline-end: auto; }
.section-main.single-page-recent .wrapper { padding-block: 25px; }
.team-member { position: relative; display: flex; align-items: center; overflow: hidden; }
.recent-post-text { padding: 20px; border: 1px solid var(--color-gray-light); }
.blog-post-tags { display: flex; gap: 5px; margin-block: 20px; justify-content: flex-end; }
.share-wrapper { display: flex; padding-block: 25px; margin-block: 25px; border-block: 1px solid var(--color-gray-medium); gap: 25px; }
.acf-file-like { display: flex; gap: 20px; align-items: flex-start; padding: 20px; border: 1px solid var(--color-gray-medium); margin-block-start: 20px; }
.file-info { font-size: 16px; }
 .tag { padding: 5px 15px; border: 1px solid var(--color-gray-medium); }
.tag:hover { border-color: var(--color-text-light); }
.single-page-recent.section-main { padding-block-end: 80px; }
.team-member img {object-fit: cover;width: 100%;height: 100%;    transition: transform .4s cubic-bezier(0.14, 0.4, 0.09, 0.99);}
.team-member h5 { position: absolute; color: var(--color-white); opacity: 0; inset: 0; height: fit-content; margin: auto; text-align: center; max-width: 80%; font-weight: normal; font-family: var(--font-primary-he); z-index: 2; }
.team { padding-block: 80px; }
.team-member:hover img { transform: scale(1.1); }
.team-member:before { content: ""; position: absolute; width: 100%; height: 100%; background-color: var(--color-navy); opacity: .8; transform: translate3d(110%, 0, 20px); inset: 0; transition: transform .4s cubic-bezier(0.14, 0.4, 0.09, 0.99); inset-inline-end: 0; z-index: 1; }
.team-member:hover:before { transform: translate3d(0, 0, 20px); }
.team-member:hover h5{ opacity:1; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-primary-he-bold); }
.wpcf7 input[type="url"]:lang(he), .wpcf7 input[type="email"]:lang(he), .wpcf7 input[type="tel"]:lang(he) { direction: rtl; }
.blog-item:before { content: ""; position: absolute; width: 100%; height: 100%; background-color: var(--color-navy); opacity: .85; z-index: 1; }
.blog-item h3:hover { color: var(--color-yellow); }
.action-grid { display: flex; flex-direction: column; }
.action-card { padding: 40px 30px; text-align: center; min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.action-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 25px; line-height: 1.3; }
/* Support Card - Yellow */
.action-support { background-color: var(--color-yellow); color: var(--color-text); }
.btn-donate { display: inline-block; padding: 12px 35px; background-color: var(--color-white); color: var(--color-text); border-radius: 25px; font-weight: 700; font-size: 1rem; transition: transform 0.3s, box-shadow 0.3s; border: 2px solid transparent; }
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

/* Newsletter Card - Teal */
.action-newsletter { background-color: var(--color-teal); color: var(--color-white); }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 400px; }
.newsletter-form input { padding: 12px; border: none; border-radius: 4px; font-size: 0.95rem; width: 100%; }
.newsletter-form button { padding: 12px; background-color: var(--color-navy); color: var(--color-white); border: none; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 0.95rem; transition: background-color 0.3s; }
.newsletter-form button:hover { background-color: var(--color-navy-light); }
/* WhatsApp Card - Dark Blue */
.action-whatsapp { background-color: var(--color-navy); color: var(--color-white); }
.action-whatsapp p { font-size: clamp(0.9rem, 1.5vw, 1rem); margin-bottom: 15px; line-height: 1.6; }
.whatsapp-link { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background-color: var(--color-white); border-radius: 50%; margin-top: 15px; transition: transform 0.3s; }
.whatsapp-link:hover { transform: scale(1.1); }
.whatsapp-icon { width: 35px; height: 35px; color: var(--color-whatsapp); }
.community-content { display: grid; max-width: fit-content; gap: 50px; margin-inline: auto; padding-block-end: 40px; }
.community .container { background-color: var(--color-white); max-width: 100%; }
.bg-cyan { background-color: var(--color-cyan); }
.bg-navy { background-color: var(--color-navy); }
.community-content-item { color: var(--color-white); }
.community-content-item-wrapper { padding: 30px; height: 100%; display: flex; flex-direction: column; }
.community-content-item-wrapper a { color: black; background-color: var(--color-light-blue); padding: 13px 50px; display: flex; max-width: fit-content; margin-inline: auto; margin-block-start: auto; transition: .4s ease; }
.community-content-item-wrapper:hover a{ transform: translateY(-50px); }
.community-content-item:hover { transform: scale(1.15); }
 .community-content-item:hover .text { opacity: 0; }
.community-content-item:hover h2 { transform: translateY(50px); }
.about-title:lang(en) { color: var(--color-navy); font-weight: normal; letter-spacing: normal; }
h1:lang(en), h2:lang(en), h3:lang(en), h4:lang(en), h5:lang(en), h6:lang(en) {font-family:var(--font-primary)}
.community-content:lang(en) { display: flex; flex-direction: column; max-width: 950px; width: 100%; }
.header-nav:lang(en) { align-items: flex-start; }
.header-nav>li:lang(en) {align-items: flex-start;}
.header-nav>li.menu-item-has-children:lang(en) > a:before { inset-inline-end: 0; inset-inline-start: auto; }
.header-nav>li.menu-item-has-children>a:lang(en) { justify-content: flex-start; }
.community-content:lang(en) .community-content-item { max-width: 100%; }
.book-item-wrapper h3 { font-weight: normal; font-size: 30px; margin-block-end: 40px; }
.books-wrapper {max-width: 980px;display: grid;margin-inline: auto;gap: 10px;padding-block: 40px;}
.book-item { border: 1px solid #b0a986; background-color: #fcfcfc; padding: 35px; }
.books { background-color: white; margin-block-start: 40px; }
.book-item-wrapper > a { display: flex; padding: 10px 30px; max-width: fit-content; background-color: var(--color-navy); color: var(--color-white); margin-block-start: 50px; transition: all .4s ease; }
.book-item-wrapper > a:hover { background-color: var(--color-yellow); }
.book-item .text { margin-block-start: 40px; }
.book-item img { border-radius: 5px; border: 1px solid var(--color-white); box-shadow: rgba(151, 151, 151, 0.5) 0px 0px 23px 0px; }
.community-content:lang(en) .community-content-item-wrapper.text-center { text-align: start; }
.community-content:lang(en) .community-content-item:hover .text { display: none; }
.community-content:lang(en) .community-content-item-wrapper.text-center> a { margin-inline: 0; position: relative; inset-inline-start: 0; }
.community-content:lang(en) .community-content-item-wrapper.text-center img { display: none; margin-inline: auto; }
.community-content-item h2:lang(en) { font-weight: normal; }
.taking-action-section-title:lang(en) { font-size: 30px; font-weight: 500; }
.community-content:lang(en) .community-content-item:lang(en):hover h2 {display: none;}
.community-content:lang(en) .community-content-item-wrapper.text-center:hover > a { inset-inline-start: 40%; transition: all .4s ease; }
.taking-action-feature-grid:lang(en) { grid-template-columns: repeat(1, 1fr); }
.taking-action-feature-content:lang(en) h4 { font-weight: normal; }
.community-content:lang(en) .community-content-item-wrapper.text-center:hover img { display: block; }
.video-item:lang(en) { flex-direction: column; }
.video-item:lang(en) .text { max-width: 100%; }
.video-item:lang(en) iframe { max-width: 550px; }
.conferece-youtube:lang(en) .container { max-width: 980px; padding: 0; }
.community-content-item h2 {transition: .4s ease;margin-block-start: 50px;}
.community.bg-grey { padding-block: 45px 70px; }
.community-content-item {max-width: 445px;transition: .4s ease;}
.search.section-main .container { display: flex; align-items: center; padding: 0; border: none; padding-block: 40px; }
.search.section-main .search-wrapper img { cursor: pointer; }
.search.section-main .container form { display: none; gap: 5px; }
.search.section-main .search-wrapper.active form { display: flex; }
.search.section-main .search-wrapper.active form input { border: none; height: 30px; }
.search.section-main .search-wrapper { margin-inline-start: auto; display: flex; align-items: center; gap: 5px; }
.search.section-main .container .archive-link { font-size: 30px; cursor: pointer; }
/*--about en--**/
.about-en { background-color: var(--color-blue-grey); padding-block: 150px; }
.about-grid { max-width: 900px; width: 100%; margin-inline: auto; }
.about-en-item { display: flex; gap: 80px; }
.about-en-item:not(:last-child) { margin-block-end: 210px; position: relative; }
.about-en-item:not(:last-child):before { content: ""; position: absolute; width: 100%; height: 1px; background-color: var(--color-navy); inset-block-end: -100px; }

.about-en-text > img {max-width: 200px;width: 100%;}
.about-en-text .text { line-height: 1.6; }
.about-en-item h3 { font-size: 30px; } 
.about-banner { background-color: var(--color-navy); color: var(--color-white); padding-block: 100px 150px; } 
.banner-title h2 { font-size: 56px; display: flex; align-items: flex-end; } 
.banner-title h2 > span { display: flex; max-width: 70%; } 
.about-banner .row {margin-inline: auto;max-width: fit-content;align-items: center;} 
.banner-text .text { max-width: 520px; line-height: 1.6; } 
.banner-title h2 > img { margin-block-end: 15px; } 
.banner-text .text p:has(a[href^="http"]) { font-weight: bold; margin-block-start: 40px; position: relative; font-size: 14px; } 
.banner-text .text p:has(a[href^="http"]):before { content: ""; position: absolute; width: 50px; height: 1px; background-color: white; inset-block-start: -17px; } 
.banner-text .text p:has(a[href^="http"]):hover > a {transform: translateX(10px);color: var(--color-orange);} 
.banner-text .text p:has(a[href^="http"]) > a { display: flex; transition: all .4s ease; }
/* ========== ARTICLES SECTION - Mobile First ========== */
.articles { padding: 0; margin: 0; background-color: var(--color-gray-light); } 
.articles-container { width: 100%; max-width: 950px; margin: 0 auto; padding-block: 60px; } 
.article-grid { display: flex; flex-direction: column; gap: 20px; } 
.article-card { display: flex; flex-direction: column-reverse; overflow: hidden; text-decoration: none; color: inherit; position: relative; }

/* Article color variants */
.article-orange { background-color: var(--color-orange); } 
.article-orange .article-content { background-color: var(--color-navy); margin-top: 10px; margin-left: 0; } 
.article-lightblue { background-color: var(--color-light-blue); } 
.article-lightblue .article-content { background-color: var(--color-navy); margin-top: 10px; margin-left: 0; } 
.article-cyan { background-color: var(--color-cyan); } 
.article-orange-dark { background-color: var(--color-orange-dark); } 
.article-cyan .article-content { background-color: var(--color-navy); margin-top: 10px; margin-left: 0; } 
.article-image { width: 100%; height: 220px; overflow: hidden; } 
.article-image img { width: 100%; height: 100%; object-fit: cover; } 
.article-content { padding: 25px; background-color: var(--color-navy); color: var(--color-white); position: relative; display: flex; flex-direction: column; z-index: 2; transition: transform 0.4s ease; } 
.article-content h3 { font-size: 24px; margin-bottom: 20px; line-height: 1.4; font-weight: 300; } 
.article-meta { font-size: 0.85rem; opacity: 0.9; margin-bottom: 30px; } 
.article-meta em { font-style: italic; } 
.article-arrow { display: flex; align-items: center; width: 100px; height: 2px; background-color: var(--color-light-blue); position: relative; } 
.article-arrow::after { content: ''; position: absolute; right: 0; width: 10px; height: 10px; border-top: 2px solid var(--color-light-blue); border-right: 2px solid var(--color-light-blue); transform: rotate(45deg); transform-origin: center; margin-right: -1px; } 
.article-cyan .article-arrow { background-color: var(--color-light-blue); } 
.article-cyan .article-arrow::after { border-color: var(--color-light-blue); } 
.page-template-conferences { background-color: var(--color-gray-light); } 
body.page-template-contemplation { background-color: var(--color-gray-light); } 
.contemplation-content.section-wide { padding-block: 50px; } 
.contemplation-content.section-wide .container { max-width: 980px; line-height: 1.5; font-size: 22px; } 
.contemplation-content.section-wide .container p > a { background-color: var(--color-light-blue); padding: 8px 25px; display: flex; max-width: fit-content; margin-block-start: 30px; transition: .4s ease; } 
.contemplation-content.section-wide .container p > a:hover { background-color: var(--color-text); color: var(--color-white); }
/* ========== EDUCATION PAGE - Mobile First ========== */
.page-template-education { background-color: var(--color-gray-light); } 
.education.section-wide { margin-block-start: 40px; padding-block: 20px 60px; } 
.education .container { max-width: 100%; } 
.education-grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 980px; margin-inline: auto; padding-block-start: 10px; } 
.education-card { color: var(--color-white); min-height: 320px; } 
.education-card__inner { height: 100%; padding: 28px 22px 18px; display: flex; flex-direction: column; } 
.education-card__full-link { height: 100%; padding: 28px 22px 18px; display: flex; flex-direction: column; align-items: center; } 
.education-card__full-link:hover { text-decoration: none; } 
.education-card__title { font-size: 50px; line-height: 1.1; margin-bottom: 18px; } 
.education-card__text { font-size: 15px; line-height: 1.55; max-width: 34ch; flex: 1 1 auto; } 
.education-card__btn { margin-top: 14px; background-color: var(--color-yellow); color: var(--color-navy); font-family: var(--font-primary-he-bold); font-size: 22px; padding-inline: 10px; transition: .4s ease; text-align: start; } 
.education-card__btn:hover { background-color: var(--color-sky); } 
.education-card__bar { width: 100%; max-width: 220px; display: flex; height: 10px; margin-top: 18px; margin-inline: auto; } 
.education-card__bar-yellow { width: 33.3%; background-color: var(--color-yellow); } 
.education-card__bar-blue { width: 33.3%; background-color: var(--color-light-blue); } 
.education-card__bar-cyan { width: 33.3%; background-color: var(--color-cyan); } 
.education-card--navy { background-color: var(--color-navy); } 
.education-card--navy-light { background-color: var(--color-navy-light); }
body.page-template-network { background-color: var(--color-gray-light); } 
.network.section-wide { background-color: var(--color-navy); } 
.network .text { color: var(--color-white); line-height: 1.6; } 
.network.section-wide { margin-block-end: 20px; } 
.network.section-wide .row {max-width: 930px;gap: 100px;margin-inline: auto;} 
.network .row > img { max-width: 300px; } 
.network .text h2 { font-size: 35px; font-weight: normal; margin-block-end: 0; } 
.network .text > a {display: flex;margin-block: 40px;padding: 12px 70px;max-width: fit-content;background-color: var(--color-teal);transition: all .4s ease;}
.network .text > a:hover { background-color: var(--color-yellow); }
/* ========== DONATE PAGE - Mobile First ========== */
.page-template-donate { background-color: var(--color-gray-light); } 
.donate-header.section-wide { margin-block-start: 40px; padding-block: 40px 30px; } 
.donate-subtitle { max-width: 500px; margin-inline: auto; color: var(--color-navy); line-height: 1.6; font-size: 22px; } 
.donate-translate-wrapper { margin-block-start: 16px; } 
.donate-translate { display: inline-flex; justify-content: center; align-items: center; padding: 10px 18px; background-color: var(--color-light-blue); color: var(--color-navy); font-family: var(--font-primary); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; } 
.donate-options.section-wide { padding-block: 20px 40px; } 
.donate-grid { display: grid; grid-template-columns: 1fr; gap: 0; /* max-width: 980px; */ margin-inline: auto; border: 1px solid var(--color-gray-light); } 
.donate-card { background-color: var(--color-navy); color: var(--color-white); min-height: 330px; } 
.donate-card__inner { height: 100%; padding: 26px 30px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; } 
.donate-card__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; opacity: 0.9; } 
.donate-card__title:lang(en) { font-size: 22px; font-weight: normal; text-align: center; max-width: 75%; margin-block-start: 20px; }
.donate-card__text:lang(en) { font-size: 18px; }
.donate-card__icon img { max-width: 100%; height: auto; } 
.donate-card__title { font-size: 18px; margin: 0; } 
.donate-options .container { max-width: 1587px; } 
.donate-card.donate-card--navy .donate-card__text { margin-block-end: auto; } 
.donate-card__text { font-size: 22px; line-height: 1.55; max-width: 32ch; margin: 0; min-height: 200px; margin-block-start: 50px; } 
.donate-card__text p { margin: 0; } 
.donate-card.donate-card--blue { background-color: var(--color-light-blue); color: var(--color-navy); } 
.donate-card__btn { display: inline-flex; justify-content: center; align-items: center; background-color: var(--color-navy); color: var(--color-white); padding: 10px 48px; font-size: 22px; transition: .4s ease; margin-block-start: 30px; margin-block-end: auto; } 
.donate-card.donate-card--navy .donate-card__btn { background-color: var(--color-cyan); } 
.donate-card.donate-card--navy .donate-card__btn:hover { background-color: var(--color-orange); } 
.donate-card__btn:hover { background-color: rgba(0, 0, 0, 0.5); }

/* Donate card theme variants (values are keys from ACF `theme`) */
.donate-card--navy { background-color: var(--color-navy); }
.donate-card--cyan,
.donate-card--teal { background-color: var(--color-cyan); }
.donate-card--sky,
.donate-card--light-blue { background-color: var(--color-light-blue); color: var(--color-navy); }
.donate-card--yellow,
.donate-card--orange { background-color: var(--color-yellow); color: var(--color-navy); }

.donate-card--sky .donate-card__btn,
.donate-card--light-blue .donate-card__btn,
.donate-card--yellow .donate-card__btn,
.donate-card--orange .donate-card__btn { background-color: var(--color-navy); }

.donate-card--sky .donate-card__btn:hover,
.donate-card--light-blue .donate-card__btn:hover,
.donate-card--yellow .donate-card__btn:hover,
.donate-card--orange .donate-card__btn:hover { background-color: rgba(9, 49, 71, 0.9); } 
.video-item { display: flex; } 
.video-item iframe { aspect-ratio: 16/9; } 
.video-item h3 { letter-spacing: 5px; } 
.conferece-youtube { padding-block: 80px; } 
.video-item .text { line-height: 1.56; } 
.conference-header .text { max-width: 600px; margin-inline: auto; text-align: center; line-height: 1.5; } 
.conferece-slider { max-width: 980px; width: 100%; margin-inline: auto; padding-block: 40px; } 
.conferece-slider .thumbs {margin-block-start: 20px;} 
.conferece-slider .thumbs img { max-width: 120px; width: 100%; height: 120px; object-fit: cover; object-position: center; } 
.conference-header { padding-block: 80px; margin-block-start: 40px; }
/* ========== GALLERY SECTION - Mobile First ========== */
.gallery { padding: 0; margin: 0; } 
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ========== SOCIAL LINKS - Mobile First ========== */
.social-links { padding: 40px 20px; margin: 0; background-color: var(--color-white); margin-block: 50px; } 
.social-links-container { width: 100%; max-width: 1050px; margin: 0 auto; } 
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; justify-items: center; } 
.social-item { display: flex; align-items: center; justify-content: center; transition: transform 0.3s, opacity 0.3s; } 
.social-item:hover { transform: scale(1.05); opacity: 0.8; } 
.social-item img { max-width: 100%; height: auto; object-fit: contain; }


/* ========== FOOTER - Mobile First ========== */
.footer { background-color: var(--color-sky); text-align: center; } 
.footer h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; color: var(--color-navy); padding-block: 25px; } 
.footer-form button { padding: 12px; background-color: var(--color-navy); color: var(--color-white); border: none; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 1rem; transition: background-color 0.3s; } 
.footer-form button:hover { background-color: var(--color-navy-light); } 
.copyright { font-size: 0.9rem; background-color: var(--color-navy); margin-top: 20px; color: white; padding-block: 10px; }

@media (min-width: 320px) {
    .btn-donate-header { height: auto; max-width: 100px; align-self: flex-end; } 
    .community-content-item { height: auto; } 
    .books-wrapper { grid-template-columns: repeat(1, 1fr); } 
    .header-nav>li>.sub-menu { align-items: center; width: 100%; text-align: center; } 
    .header-nav li.current-menu-item { background-color: #8ecae7; width: 100%; justify-content: center; } 
    .network.section-wide { padding-block: 50px; } 
    .header-nav>li { border-block-end: 1px solid var(--color-teal); } 
    .header-nav>li.menu-item-has-children > a:before { filter: invert(1); inset-block-start: 16px; } 
    .header .header-nav>li>.sub-menu>li {margin: 0;} 
    .header-nav>li>.sub-menu { text-align: start; align-items: flex-start; } 
    .menu-item-arrow { padding-inline-end: 0; position: absolute; width: 30%; inset-inline-end: 0; }
    .menu-item-arrow:lang(en) { padding-inline-end: 0; }
    .header-nav>li.menu-item-has-children.active .sub-menu:lang(en) { align-items: flex-start; }
    .header-nav>li.menu-item-has-children.active .sub-menu { align-items: center; }
    .header-nav>li.menu-item-has-children>a {justify-content: center;} 
    .community-content { grid-template-columns: repeat(1, 1fr); } 
    .blog-post { grid-template-columns: repeat(1, 1fr); } 
    .header-nav>li { align-items: center; } 
    .blog-post-image > img { object-fit: cover; width: 100%; height: 100%; } 
    .single-page-content .container { padding: 15px; } 
    .header-nav {max-width: 90%;gap: 0;padding-block-start: 50px;} 
    .single-page-content h1 { font-size: 40px; } 
    .about-text p:has(a) { text-align: center; } 
    .recent-posts { grid-template-columns: repeat(1, 1fr); } 
    .blog-post-image { order: 1; } 
    .blog-post-text { order: 2; padding: 20px; } 
    .community .container { width: 100%; } 
    .video-item iframe { width: 100%; height: 250px; } 
    .gallery-grid img { height: 120px; } 
    .video-item h3{ max-width: 100%; padding-block-start: 50px;} 
    .midrasha-content .text { padding-inline: 25px; } 
    .video-item .text { max-width: 100%; } 
    .taking-action-feature-grid:lang(en) { grid-template-columns: repeat(1, 1fr); }
    .donate-subtitle:lang(en) { max-width: 100%; }
    .wpcf7 form input[type="submit"] { max-width: 100%; }
    .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 90%; } 
    .wpcf7-not-valid-tip { font-size: 14px; } 
    .video-item { flex-direction: column; gap: 20px; } 
    .about-en-item { flex-direction: column; } 
    .about-grid { max-width: 90%; } 
    .about-en-img img { max-width: 100%; } 
    .about-en-item:nth-child(even) { flex-direction: column; } 
    .about-en-text { display: flex; flex-direction: column; position: relative; } 
    .about-en-text img { order: 1; } .about-en-text h3 { order: 2; } 
    .about-en-text .text { order: 3; } 
    .about-en-item { gap: 40px; } 
    .about-en-item:not(:last-child):before { display: none; } 
    .about-en-text:before { content: ""; position: absolute; width: 100%; height: 1px; background-color: var(--color-navy); } 
    .about-en-item:not(:last-child) { margin-block-end: 50px; }
    .about-en { padding-block-end: 50px; } 
    .about-banner .row { flex-direction: column; gap: 50px; max-width: 90%; margin-inline: auto; align-items: flex-start; } 
    .about-banner { padding-block: 50px; } 
    .banner-title h2 { font-size: 40px; gap: 10px; } 
    .banner-title h2 > span { max-width: 100%; } 
    .banner-title h2 > img { margin-block-end: 5px; } 
    .header-menu-wrapper { max-width: 100%; } 
    .hero-image.show { max-width: 80%; } 
    .taking-action-section-title { font-size: 50px; } 
    .newsletter-form .wpcf7-not-valid-tip { color: var(--color-white); text-align: start; margin-block-start: 5px; } 
    .taking-action-feature-images { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
    .wpcf7-form-control-wrap { width: 100%; } 
    .header-logo { max-width: 100px; } 
    .footer-form form p { flex-direction: column; } 
    .footer-form form p br { display: none; } 
    .network .text { max-width: 100%; } 
    .header-humburger-wrapper:lang(en) { margin-inline-start: 2.5%; } 
    .header-humburger-wrapper { margin-inline-end: 2.5%; }
    .header-nav>li.menu-item-has-children> .menu-item-link-wrap:lang(en) {/* justify-content: flex-end; */}
    .header-nav>li.menu-item-has-children> .menu-item-link-wrap {display: flex;align-items: center;width: 100%;flex-direction: row-reverse;justify-content: flex-end;}
}

/* ========================================
   TABLET BREAKPOINT - @media (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
    .logo img {
        height: 50px;
    }
    .taking-action-section-title {
    font-size: 50px;
}
        .gallery-grid img {
    height: 180px;
}
    .footer-form form p {
    flex-direction: row;
}

@media (min-width: 768px) {
    .donate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .donate-card {
        min-height: 520px;
    }
}

@media (min-width: 768px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        padding-block-start: 20px;
    }

    .education-card {
        min-height: 350px;
    }

    .education-card__inner {
        padding: 32px 44px 20px;
    }

    .education-card__full-link {
        padding: 32px 24px 20px;
    }

    .education-card__text {
        font-size: 18px;
    }
}
.blog-items-grid {
    grid-template-columns: repeat(1, 1fr);
}
.header-humburger-wrapper {
    margin-inline-end: 5%;
}
    /* Hero */
    .hero {
        min-height: 400px;
    }

    /* About */
    .about {
        padding: 60px 40px;
    }

    /* Action Section - 2 columns */
    .action-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .action-card {
        flex: 1 1 calc(50% - 20px);
        min-width: 200px;
    }

    /* Articles - still stacked on tablet */
    .articles {
        padding: 0 20px;
        margin-block-start: 80px;
    }

    .article-grid {
        gap: 20px;
    }

    .article-orange .article-content,
    .article-lightblue .article-content,
    .article-cyan .article-content {
        margin-top: 0;
        margin-left: 10px;
    }

    .article-image {
        height: 220px;
    }
 

    /* Social Links - 6 columns on tablet */
    .social-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
    }
}

/* ========================================
   DESKTOP BREAKPOINT - @media (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {

    /* Hero */
    .hero { min-height: 450px; }

    /* About */
    .about { padding: 80px 60px; } 
    .blog-post-image { order: 2; } 
    .blog-post-text { padding: 35px; } 
    .blog-post-text { order: 1; } 
    .network .text { max-width: 50%; } 
    .blog-post { grid-template-columns: repeat(2, 1fr); } 
    .team-grid { max-width: 50%; }
    /* Action Section - 3 columns side by side */
    .action-grid { flex-direction: row; flex-wrap: nowrap; } 
    .action-grid:lang(en) { flex-direction: row-reverse; } 
    .grid { max-width: 95%; } 
    .action-card { flex: 1; } 
    .newsletter-form { max-width: 100%; }

    /* Articles - Horizontal Row Layout */
    .article-grid { gap: 20px; } 
    .article-card { flex-direction: row; min-height: 335px; height: 335px; } 
    .article-content { width: 40%; min-width: 40%; padding: 25px 30px; order: 1; margin-left: 10px; } 
    .article-image { width: 60%; height: 335px; min-height: 335px; order: 2; } 
    .article-card:hover .article-content { transform: translateX(50px); } 
    .article-content h3 { font-size: 24px; margin-bottom: 20px; }

    /* Footer */
    .footer { padding: 30px 0 0; }
    .footer-form button { grid-column: 1 / -1; max-width: 300px; margin: 0 auto; }
}

/* ========================================
   IPAD AIR LANDSCAPE - @media (min-width: 1180px)
   ======================================== */
@media (min-width: 1180px) {
    .action-section { margin-inline: 7%; } 
    .articles { margin-inline: 7%; } 
    .blog-items-grid { grid-template-columns: repeat(2, 1fr); } 
    .gallery { margin-inline: 5%; } 
    .social-links { margin-inline: 7%; } 
    .community-content { grid-template-columns: repeat(2, 1fr); } 
    .education-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "a b c" "d e f" "g . f"; gap: 26px; }

    .education-card--a { grid-area: a; }
    .education-card--b { grid-area: b; }
    .education-card--c { grid-area: c; }
    .education-card--d { grid-area: d; }
    .education-card--e { grid-area: e; }
    .education-card--f { grid-area: f; }
    .education-card--g { grid-area: g; }
    .education-card { min-height: 390px; } 
    .education-card--tall { min-height: calc(390px * 2 + 26px); } 
    .donate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media(min-width: 1279px){
    .newsletter-form .wpcf7-form-control-wrap[data-name="fname"],.newsletter-form .wpcf7-form-control-wrap[data-name="sname"],.newsletter-form .wpcf7-form-control-wrap[data-name="phone"] {
    display: flex;
    flex-direction: column;
    flex: 0.4;
}
        .header .header-nav>li>.sub-menu>li {margin-inline-start: 30px;}
    .header-nav>li.menu-item-has-children> .menu-item-link-wrap {
    justify-content: flex-start;
}
    .donate-subtitle:lang(en) { max-width: 70%; }
    .taking-action-feature-grid:lang(en) { grid-template-columns: minmax(260px, 500px) 1fr; }
    .community-content-item {
    height: 410px;
}
    .header-nav>li.menu-item-has-children> .menu-item-link-wrap:lang(en) {
    flex-direction: row;
    display: flex;
    align-items: center;
}
    .about-en-img img {
    max-width: 400px;
}
 .books-wrapper {
    grid-template-columns: repeat(2, 1fr);
}
.about-en-text .text {
    order: 2;
}
.network.section-wide {
    padding-block: 200px;
}
.about-en-text img,.about-en-text a {
    order: 3;
}

.about-en-text:before {
    display: none;
}
.about-text > p:has(a) {
    padding: 10px 40px;
    background-color: #254151;
    max-width: fit-content;
    margin-inline: auto;
    margin-block-start: 50px;
    color: white;
}

.about-text > p:has(a):hover {
    background-color: var(--color-orange);
}
.about-en-item:not(:last-child) {
    margin-block-end: 210px;
}

.about-en-item:not(:last-child):before {
    display: flex;
}
    .gallery-grid img {
    height: 260px;
}
    .team-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 980px;
}
    .about-banner .row {
    max-width: fit-content;
}

.banner-title h2 > span {
    max-width: 70%;
}

.about-banner .row {
    flex-direction: row;
    gap: 450px;
}
.menu-item-arrow {
    position: relative;
    padding-inline-end: 80%;
    inset: 0;
}
 .menu-item-arrow:lang(en) {
    inset-inline-start: 0;
}
        .about-grid {
        max-width: 900px;
    }
.video-item {
    flex-direction: row;
}
 
        .about-en-item {
        flex-direction: row;
    }
.about-en-item:nth-child(even) { flex-direction: row-reverse; }
.community .container {
    width: 90%;
}
    .btn-donate-header {
    max-width: 300px;
    height: 100%;
}
    .header-logo {
    max-width: 190px;
}
.header-humburger-wrapper {
    margin-inline-end: 20%;
}
}
/* ========================================
   EXTRA LARGE SCREENS
   ======================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    .single-page-content .container {
    padding: 50px;
}
    .header-nav>li>.sub-menu:lang(en) {
    align-items: flex-start;
}
    .header-nav>li.menu-item-has-children.active .sub-menu {
    align-items: flex-end;
}
    .header-nav>li.menu-item-has-children.active .sub-menu:lang(en) {
    align-items: flex-start;
}
.header-nav>li:hover>a, .header-nav .sub-menu li:hover>a, .header-nav li.current-menu-item > a{color: inherit;}
.header-nav {
    max-width: 60%;
}
    .header-nav li.current-menu-item:lang(en) {
    text-align: start;
}
.header-nav li.current-menu-item {
    background-color: transparent;
    text-align: end;
}
.header-nav>li {
    border-block-end: none;
}
.header-nav>li.menu-item-has-children > a:before {
    filter: invert(0);
}
.single-page-content h1 {
    font-size: 52px;
}
    .header-nav>li {
    align-items: flex-end;
}
.about-text p:has(a) {
    text-align: start;
}
.wpcf7 form input[type="submit"] {
    max-width: fit-content;
}
.header-menu-wrapper {
    max-width: 400px;
}
.recent-posts {
    grid-template-columns: repeat(3, 1fr);
}
    .wpcf7-form-control-wrap[data-name="fname"], .wpcf7-form-control-wrap[data-name="sname"], .wpcf7-form-control-wrap[data-name="phone"] {
    display: flex;
    flex-direction: column;
}
.video-item h3 {
    max-width: 70%;
}
    .video-item .text {
    max-width: 60%;
}
.video-item iframe {
    height: 360px;
}
        .taking-action-section-title {
    font-size: 79px;
}
.hero-image.show {
    max-width: 600px;
}
.taking-action-feature-images {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
    .hero-title {
        font-size: 4rem;
    }

    .action-card {
        padding: 60px 40px;
    }
}

/* --- Midrasha: main slider + vertical thumbs --- */
.midrasha-slider {
    display: flex;
    gap: 10px;
    align-items: stretch;
    max-height: 800px;
    max-width: 980px;
    margin-inline: auto;
    padding-block-end: 20px;
}

.section-wide {
    background-color: var(--color-white);
    max-width: 90%;
    margin-inline: auto;
    margin-block-start: 40px;
}

.midrasha-content .text {
    max-width: 800px;
    margin-inline: auto;
    padding-block: 50px;
}
.midrasha-content .text a {
    font-size: 22px;
    background-color: var(--color-sky);
    padding: 10px 20px;
    transition: .4s ease;
}

.midrasha-content .text a:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}
.page-template-the-midrasha {
    background-color: var(--color-gray-light);
}

.midrasha {
    margin-block: 40px;
}

.midrasha-slider .swiper.main {
    flex: 1 1 auto;
    min-width: 0;
}

.midrasha-slider .swiper.thumbs {
    flex: 0 0 140px;
}

.midrasha-slider .swiper.thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
}

.midrasha-slider .swiper.thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.midrasha-slider .swiper.thumbs img,
.midrasha-slider .swiper.main img {
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .midrasha-slider {
        display: block;
        max-height: none;
        max-width: 100%;
    }
    .taking-action-feature-item .btn-primary {
    margin-inline: auto;
}
.community-content:lang(en) .community-content-item-wrapper.text-center> a {
    margin-block-start: 50px;
}
    .midrasha-slider .swiper.thumbs,
    .midrasha-slider .swiper-button-next,
    .midrasha-slider .swiper-button-prev {
        display: none;
    }

    .midrasha-slider .swiper.main {
        overflow: visible;
    }
.section-wide {
    max-width: 100%;
    padding: 0;
}

.section-wide .container {
    padding: 0;
    padding-block: 20px;
}
 

.donate-options .container {
    width: 100%;
}
    .midrasha-slider .swiper.main .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .midrasha-slider .swiper.main .swiper-slide {
        width: auto !important;
        height: auto;
    }
}

/* ========== TAKING ACTION PAGE ========== */
.taking-action-hero {
    padding-block: 60px 30px;
}
body.page-template-taking-action {
    background-color: var(--color-gray-light);
}
.taking-action-page-title {
    color: var(--color-yellow);
    letter-spacing: 5px;
    margin: 0;
}
.taking-action-page-title.text-center:lang(en) {
    color: var(--color-text);
    font-size: 35px;
    letter-spacing: 1px;
    font-weight: normal;
}
.taking-action-subtitle {
    max-width: 900px;
    margin-inline: auto;
    line-height: 1.6;
    padding-block-start: 15px;
}

.taking-action-feature {
    background-color: var(--color-white);
    padding-block: 60px;
}
.taking-action-section-title {
    color: var(--color-navy);
    margin-block-end: 30px;
}
 
.taking-action-feature-grid {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 100px;
    align-items: start;
    max-width: 980px;
    margin-inline: auto;
}

.taking-action-feature-images {
    display: grid;
    gap: 10px;
}

.taking-action-feature-image {
    display: block;
    overflow: hidden;
}

.taking-action-feature-image img {
    width: 385px;
    height: 215px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-inline-start: auto;
}

.taking-action-feature-content {
    display: grid;
    gap: 25px;
    text-align: start;
}

.taking-action-feature-item-title {
    margin-block-end: 10px;
    color: var(--color-navy);
    font-size: 35px;
    line-height: 1;
}

.taking-action-feature-item-text {
    line-height: 1.4;
}

.taking-action-feature-item .btn-primary {
    margin-block-start: 10px;
}

.taking-action-gallery-section {
    background-color: var(--color-white);
    padding-block: 60px;
}

.taking-action-gallery-section.is-alt {
    background-color: var(--color-gray-light);
}

.taking-action-section-text {
    max-width: 1000px;
    margin-inline: auto;
    line-height: 1.6;
    padding-block-end: 25px;
}

.taking-action-gallery {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    gap: 10px;
    max-width: fit-content;
    margin-inline: auto;
}

.taking-action-gallery a {
    display: block;
    overflow: hidden;
}

.taking-action-gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1024px) {
    .taking-action-feature-grid { grid-template-columns: 1fr; gap: 25px; } 
    .taking-action-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .taking-action-hero { padding-block: 40px 20px; } 
    .taking-action-page-title { letter-spacing: 3px; } 
    .taking-action-feature, .taking-action-gallery-section { padding-block: 40px; } 
    .taking-action-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
