/* Homepage-only Bootstrap 4 presentation. Disable via wildisrael_preprocess_html. */
body.wild-home-redesign {
  --wild-forest: #173f31;
  --wild-muted: #67746c;
  --wild-border: #dce3dd;
  color: #22332b;
  background: #fff;
}
.wild-home-redesign .wild-home-layout { background: #fff; text-align: start; }
.wild-home-redesign .wild-home-layout .container { max-width: 1180px; }
.wild-home-redesign .wild-home-layout section { padding: 30px 0; }
.wild-home-redesign .wild-home-section-heading { text-align: center; margin: 0 auto 24px; }
.wild-home-redesign .wild-home-section-heading h2 {
  font-size: clamp(25px, 2.8vw, 34px); font-weight: 700; line-height: 1.25;
  color: var(--wild-forest); margin: 0 0 8px; padding: 0;
}
.wild-home-redesign .wild-home-description { color: var(--wild-muted); font-size: 15px; line-height: 1.65; }
.wild-home-redesign .wild-home-description :is(h2,h3,h4,p) {
  font: inherit; color: inherit; margin: 0; padding: 0; background: none;
}
.wild-home-redesign .wild-home-description p:empty { display: none; }
.wild-home-redesign .wild-home-description a { color: var(--wild-forest); text-decoration: underline; text-underline-offset: 3px; }
.wild-home-redesign .wild-home-description strong { font-weight: 500; }
.wild-home-redesign .wild-home-nature { background: #eaf0e6; }
.wild-home-redesign .wild-home-layout .row { margin-inline: -10px; }
.wild-home-redesign .wild-home-layout :is(.wild-home-item,.wild-home-category,.wild-home-feature) { padding-inline: 10px; margin-bottom: 20px; }
.wild-home-redesign .wild-home-card {
  background: #fff; border: 1px solid var(--wild-border); border-radius: 5px;
  overflow: hidden; height: 100%; box-shadow: 0 2px 5px rgb(23 63 49 / 3%);
}
.wild-home-redesign .wild-home-card > summary { display: block; cursor: pointer; list-style: none; }
.wild-home-redesign .wild-home-card > summary::-webkit-details-marker { display: none; }
.wild-home-redesign .wild-home-cover { display: block; width: 100%; height: 160px; object-fit: cover; transition: filter .2s; }
.wild-home-redesign .wild-home-card > summary:hover .wild-home-cover { filter: brightness(1.06); }
.wild-home-redesign .wild-home-card-body { padding: 13px 16px; text-align: center; }
.wild-home-redesign .wild-home-card h3 { color: #22332b; font-size: 18px; font-weight: 600; margin: 0 0 5px; line-height: 1.4; }
.wild-home-redesign .wild-home-card-action { color: var(--wild-forest); font-size: 13px; display: block; margin-top: 8px; }
.wild-home-redesign .wild-home-card .wild-home-description { padding: 0; font-size: 13px; }
.wild-home-redesign .wild-home-category:has(> details[open]),
.wild-home-redesign .wild-home-feature:has(> details[open]) { flex-basis: 100%; max-width: 100%; }
.wild-home-redesign .wild-home-expanded { padding: 20px; border-top: 1px solid var(--wild-border); }
.wild-home-redesign .wild-home-feature > details > summary { display: flex; align-items: stretch; min-height: 180px; }
.wild-home-redesign .wild-home-feature .wild-home-cover { width: 46%; height: 190px; }
.wild-home-redesign .wild-home-feature .wild-home-card-body { flex: 1; text-align: start; align-self: center; padding: 20px; }
.wild-home-redesign .wild-home-features { padding-bottom: 4px; }
.wild-home-redesign .wild-home-community { padding-top: 0; }
.wild-home-redesign :is(.wild-home-more,.wild-home-extra) { border-top: 1px solid var(--wild-border); padding: 12px 0; }
.wild-home-redesign :is(.wild-home-more,.wild-home-extra) > summary { cursor: pointer; color: var(--wild-forest); font-weight: 500; padding: 8px; }
.wild-home-redesign :is(a,summary,button):focus-visible { outline: 3px solid #708950; outline-offset: 4px; }
/* Reset the builder's banner spacing inside the new section containers. */
.wild-home-redesign .wild-home-layout :is(.gbb-row,.bb-inner,.column-inner,.gsc-column,.block,.view-content-wrapper,.view-content-2) {
  background: none !important; padding-block: 0 !important; margin-block: 0 !important;
  min-height: 0 !important; height: auto;
}
.wild-home-redesign .wild-home-layout :is(.bb-container,.container-fw) { width: 100%; max-width: none; padding: 0; }
.wild-home-redesign .wild-home-layout .row-wrapper { margin: 0; }
.wild-home-redesign .wild-home-layout .gsc-column { padding-inline: 0; }
.wild-home-redesign .wild-home-layout .gva-view { margin: 0; }
.wild-home-redesign .wild-home-layout .post-block {
  border: 1px solid var(--wild-border); border-radius: 5px; overflow: hidden;
  background: #fff !important; padding: 0 !important; margin: 0 !important; height: 100%;
}
.wild-home-redesign .wild-home-layout .post-inner { height: 100%; display: flex; flex-direction: column; }
.wild-home-redesign .wild-home-layout :is(.post-block .image,.post-block .item-image) { width: 100%; margin: 0; float: none; }
.wild-home-redesign .wild-home-layout .post-block img { width: 100%; height: 175px; object-fit: cover; display: block; }
.wild-home-redesign .wild-home-layout .post-meta-wrap {
  position: static !important; transform: none !important; background: #fff !important;
  width: 100% !important; padding: 12px 14px !important; text-align: center;
}
.wild-home-redesign .wild-home-layout .post-title { font-size: 16px !important; line-height: 1.5; margin: 0 !important; font-weight: 600; }
.wild-home-redesign .wild-home-layout .post-title a { color: #22332b !important; }
.wild-home-redesign .wild-home-layout .post-categories:empty { display: none; }
.wild-home-redesign .wild-home-layout .post-block .post-inner::after,
.wild-home-redesign .wild-home-layout .post-block .image::after { display: none; }
.wild-home-redesign #content .content-main-inner { padding-block: 0; }
.wild-home-redesign #content .block { margin-bottom: 0; }
/* Keep the editable slideshow, with flowing text over a readable photo overlay. */
body.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-header { height: 400px !important; min-height: 400px !important; }
body.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-photo { width: 100%; height: 100%; object-fit: cover; }
/* Layer coordinates and custom styles come from the Gavias editor. */
body.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-captions {
  background: linear-gradient(90deg, rgb(12 33 24 / 8%), rgb(12 33 24 / 68%));
}
body.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-title { font-size: clamp(26px, 3.1vw, 42px) !important; line-height: 1.3 !important; color: #fff !important; }
body.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-description { font-size: clamp(16px, 1.7vw, 22px) !important; line-height: 1.6 !important; color: #fff !important; }
body.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-action a { display: inline-block; color: #fff; background: #173f31; border: 1px solid #d2dfd0; border-radius: 4px; padding: 11px 24px; font-size: 16px; }
.wild-home-redesign #footer { background: #173f31 !important; color: #edf3ee; }
.wild-home-redesign #footer :is(.footer-center,.footer-inner,.copyright) { background: transparent !important; }
.wild-home-redesign #footer .footer-center { padding-block: 28px; }
.wild-home-redesign #footer :is(a,h2,h3,.block-title) { color: #edf3ee !important; }
@media (min-width: 992px) {
  body.wild-home-redesign #header.header-default .header-main { background: #fff !important; }
  body.wild-home-redesign #header .wild-header-utilities { min-height: 72px; padding-block: 6px; border-bottom: 1px solid #e5ebe5; }
  body.wild-home-redesign #header .wild-header-utilities .branding img { max-height: 56px !important; }
  body.wild-home-redesign #header .gva-navigation > .gva_menu > li > a { color: #223b2e !important; padding-block: 15px !important; }
  body.wild-home-redesign #header :is(.wild-header-account,.wild-header-search,.wild-header-language) { color: #173f31; }
}
@media (max-width: 991px) {
  /* Extra specificity overrides the older inline mobile overlay rule. */
  body.frontpage.wild-home-redesign #header.header-default { position: relative !important; background: #173f31 !important; }
  body.frontpage.wild-home-redesign #block-wildisrael-gaviassliderlayerhome .wild-fast-header { height: 340px !important; min-height: 340px !important; }

}
@media (max-width: 575px) {
  .wild-home-redesign .wild-home-layout section { padding-block: 24px; }
  .wild-home-redesign .wild-home-layout .container { padding-inline: 20px; }
  .wild-home-redesign .wild-home-section-heading { margin-bottom: 20px; }
  .wild-home-redesign .wild-home-cover { height: 190px; }
  .wild-home-redesign .wild-home-layout .post-block img { height: 210px; }
  .wild-home-redesign .wild-home-expanded { padding: 12px; }
  .wild-home-redesign .wild-home-feature .wild-home-cover { width: 42%; height: 170px; }
  .wild-home-redesign .wild-home-feature .wild-home-card-body { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wild-home-redesign .wild-home-cover { transition: none; } }
/* The legacy theme hides every header inside nodes; section headings are content. */
body.wild-home-redesign.hidden-title .node--view-mode-full .wild-home-section-heading { display: block !important; }
body.frontpage.wild-home-redesign #header.header-default.mobile-header {
  position: relative !important; inset: auto !important; margin: 0 !important;
}
body.frontpage.wild-home-redesign .slideshow_content,
body.frontpage.wild-home-redesign #header.header-default.mobile-header ~ .main.main-page {
  margin-top: 0 !important; padding-top: 0 !important; top: auto !important;
}
@media (min-width: 992px) {
  body.frontpage.wild-home-redesign #header.header-default.mobile-header { height: auto !important; min-height: 0 !important; }
  body.frontpage.wild-home-redesign #header.header-default > div:not(.topbar) { position: relative !important; height: auto !important; inset: auto !important; }
}
@media (max-width: 991px) {
  body.frontpage.wild-home-redesign #header.header-default.mobile-header.mobile-header-overlay { position: relative !important; height: 90px !important; }
}
/* All builder rows remain visible in their saved order, including standalone views. */
.wild-home-redesign .wild-home-all-rows > .wild-home-builder-row { padding-block: 22px; }
.wild-home-redesign .wild-home-all-rows > .wild-home-row-tinted { background: #eaf0e6; }
.wild-home-redesign .wild-home-all-rows .bb-container.container { max-width: 1180px; padding-inline: 20px; margin-inline: auto; }
.wild-home-redesign .wild-home-all-rows .wild-home-section-heading { display: block !important; visibility: visible !important; opacity: 1 !important; margin-bottom: 16px; }
.wild-home-redesign .wild-home-all-rows .wild-home-section-heading .title { color: var(--wild-forest) !important; }
.wild-home-redesign .wild-home-all-rows .wild-home-section-heading .title span { color: inherit !important; }
.wild-home-redesign .wild-home-all-rows .wild-home-items { display: flex; flex-wrap: wrap; }
.wild-home-redesign .wild-home-all-rows .wild-home-item { min-width: 0; }

/* Section shortcuts reuse the editable builder header photographs. */
.wild-home-redesign .wild-home-section-nav { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; max-width:1180px; margin:18px auto; padding:0 20px; }
.wild-home-redesign .wild-home-section-nav a { position:relative; min-height:116px; overflow:hidden; border-radius:7px; display:flex; align-items:flex-end; padding:12px; background:#173f31; color:white; text-shadow:0 1px 4px black; }
.wild-home-section-nav img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.wild-home-section-nav a::after { content:''; position:absolute; inset:0; background:linear-gradient(transparent,#09281dd9); }
.wild-home-section-nav span { position:relative; z-index:1; line-height:1.35; font-weight:700; }
.wild-home-redesign .wild-home-layout > .wild-home-updates { width:calc(100% - 40px); max-width:1140px; }
.wild-home-redesign .wild-home-all-rows .wild-home-section-banner { position:relative; isolation:isolate; overflow:hidden; border-radius:8px; min-height:180px; padding:40px 24px; display:flex !important; flex-direction:column; justify-content:center; scroll-margin-top:100px; }
.wild-home-section-banner .wild-home-banner-photo { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.wild-home-redesign .wild-home-all-rows .wild-home-section-banner :is(.title,.wild-home-description,.wild-home-description a) { color:#fff !important; text-shadow:0 1px 5px #000; }
@media(max-width:991px) { .wild-home-redesign .wild-home-section-nav { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:575px) { .wild-home-redesign .wild-home-section-nav { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 12px; } }
