/* ==========================================================================
   1. GLOBAL SITE & HEADER/FOOTER
   ========================================================================== */
:root {
  --brand-dark: #213611;
  --brand-sage: #A3B18A;
  --brand-sage-hover: #B6C1A4;
  --site-bg: #f8f9fa;
}

body {
  background-color: var(--site-bg) !important;
}

/* Logo and Header Fixes */
.site-logo-img img {
  filter: none !important;
  width: 120px !important;
  height: 55px;
}

.site-logo-img .transparent-custom-logo img,
.ast-theme-transparent-header .site-logo-img img {
  filter: revert !important;
}

.ast-primary-header-bar {
  background-color: #4A5443 !important;
}

.ast-theme-transparent-header #masthead {
  position: fixed;
}

header nav ul li a {
  transition: color 0.3s ease, opacity 0.3s ease !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

header nav ul li a:hover,
.current_page_item a {
  color: #a5d650 !important;
  opacity: 0.8 !important;
}

main {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding-bottom: 4rem;
  min-height: 400px;
}

a, .page-title {
  color: var(--brand-dark);
  transition: color 0.3s ease;
}

/* ==========================================================================
   2. MAIN HERO CAROUSEL (ACF)
   ========================================================================== */
.carousel-container {
  width: 100%;
  margin-top: 125px;
  overflow: hidden;
}

.slide-item {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex !important;
  align-items: center;
}

.slide-overlay {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
}

.slide-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-left: 2rem;
}
.slide-content h2 {
  margin-top: 0;
  font-size: 2rem;
  color: var(--brand-dark);
}
.slide-content p {
  line-height: 1.6;
  color: #555;
}

/* ==========================================================================
   3. SHARED CARD ARCHITECTURE (Enhanced for Books)
   ========================================================================== */
.post-card, .event-card, .resource-card {
  background: #fff;
  border: 1px solid #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
.post-card:hover, .event-card:hover, .resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Standard Image Sizing for Articles/Videos */
:not([data-type=book]) .post-image, :not([data-type=book]) .event-image, :not([data-type=book]) .resource-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
:not([data-type=book]) .post-image img, :not([data-type=book]) .event-image img, :not([data-type=book]) .resource-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s ease;
}

[data-type=book] .resource-card {
  display: flex;
  flex-direction: column !important; /* Stacks image on top of text */
  height: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
[data-type=book] .resource-image, [data-type=book] .post-image {
  width: 100%; /* Full width image area */
  height: 220px; /* Fixed height creates a consistent "shelf" */
  background-color: #e4e4e4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  flex-shrink: 0;
}
[data-type=book] .resource-image img, [data-type=book] .resource-image a img, [data-type=book] .post-image img, [data-type=book] .post-image a img {
  max-height: 100%; /* Keeps book height consistent */
  width: auto !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  -o-object-fit: contain !important;
     object-fit: contain !important;
}
[data-type=book] .resource-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Makes the text area expand to fill the card */
  padding: 24px;
}
[data-type=book] .resource-info .author-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 8px;
}
[data-type=book] .resource-info h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  line-height: 1.2;
  height: 100px; /* Ensures titles take up same space even if short */
}
[data-type=book] .resource-info .resource-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  flex-grow: 1; /* Pushes the button to the bottom */
  margin-bottom: 20px;
}
[data-type=book] .resource-info .read-more {
  margin-top: auto;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.projects-grid {
  margin-top: 2rem;
}

.resource-card[data-type=related_project] .resource-image img, [data-type=related_project] .post-image a img {
  -o-object-fit: contain !important;
     object-fit: contain !important;
  max-height: 80%;
  margin: auto;
}

.slick-track:has([data-type=book]) {
  align-items: stretch; /* This "locks" the card heights together */
}

.post-card:hover .post-image img,
.resource-card:hover .resource-image img {
  transform: scale(1.05);
}

.section-header {
  background: none;
}

.post-content, .event-info, .resource-info {
  padding: 25px;
  max-height: 300px;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  align-items: flex-end;
}

.event-info {
  align-items: flex-start;
}

.post-content h3, .event-info h3, .resource-info h3 {
  margin: 0 0 15px 0;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--brand-dark);
}
.post-content h3 a, .event-info h3 a, .resource-info h3 a {
  text-decoration: none;
  color: inherit;
}

.resource-card[data-type=video] .resource-image img {
  filter: brightness(0.7);
}

.post-date, .event-date, .resource-meta {
  font-size: 13px;
  height: 40px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.read-more, .event-link, .resource-link {
  margin-top: auto !important;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  font-weight: bold;
  color: var(--brand-dark);
  text-decoration: none;
  display: inline-block;
}
.read-more:hover, .event-link:hover, .resource-link:hover {
  color: var(--brand-sage);
}

.post-category, .resource-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--brand-dark);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  z-index: 5;
}

/* ==========================================================================
   4. EQUAL HEIGHT ENGINE & SLICK FIXES
   ========================================================================== */
.events-carousel-container,
.posts-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.posts-slick-carousel,
.events-slick-carousel,
.resources-slick-carousel {
  display: block !important;
  margin: 0 -18px;
}
.posts-slick-carousel .slick-list,
.events-slick-carousel .slick-list,
.resources-slick-carousel .slick-list {
  padding: 25px 0;
}
.posts-slick-carousel .slick-track,
.events-slick-carousel .slick-track,
.resources-slick-carousel .slick-track {
  display: flex !important;
  align-items: stretch !important;
}
.posts-slick-carousel .slick-slide,
.events-slick-carousel .slick-slide,
.resources-slick-carousel .slick-slide {
  height: auto !important;
  padding: 0 18px;
  outline: none;
}
.posts-slick-carousel .slick-slide > div,
.events-slick-carousel .slick-slide > div,
.resources-slick-carousel .slick-slide > div {
  height: 100%;
  display: flex;
}

.post-card-wrapper, .event-card-wrapper, .resource-card-wrapper {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
}

/* ==========================================================================
   5. BUTTONS & CTA
   ========================================================================== */
.ast-custom-button, .cta-button {
  width: -moz-fit-content !important;
  width: fit-content !important;
  line-height: 1.2;
  background-color: var(--brand-sage) !important;
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px !important;
  font-weight: 600;
  text-decoration: none;
  border: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}
.ast-custom-button:hover, .cta-button:hover {
  background-color: var(--brand-sage-hover) !important;
  transform: translateY(-2px);
}

.full-width-cta {
  position: relative;
  width: 100%;
  border-radius: 10px;
  margin-top: 2rem;
  background-image: url("../images/cta_bg.jpg");
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-overlay {
  background: rgba(33, 54, 17, 0.7);
  width: 100%;
  height: 100%;
  padding: 60px 0;
  display: flex;
  align-items: center;
}

.cta-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.cta-text {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}
.cta-text h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ==========================================================================
   6. RESOURCE FILTERS
   ========================================================================== */
.resource-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.resource-filter-bar .filter-btn {
  cursor: pointer;
  font-size: 0.9rem;
  padding: 10px 20px;
  background-color: #fff !important;
  color: var(--brand-dark) !important;
  border: 1px solid var(--brand-sage) !important;
  border-radius: 8px !important;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.resource-filter-bar .filter-btn.active {
  background-color: var(--brand-sage) !important;
  opacity: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #fff !important;
}
.resource-filter-bar .filter-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.resource-section-wrap {
  margin-bottom: 5rem;
}

/* ==========================================================================
   7. FEATURED BLOG GRID
   ========================================================================== */
.featured-news-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.main-featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--brand-dark);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.main-featured-card .featured-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  -o-object-fit: cover;
     object-fit: cover;
}
.main-featured-card .featured-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(33, 54, 17, 0.95) 0%, rgba(33, 54, 17, 0) 100%);
  color: #ffffff;
}
.main-featured-card .featured-content-overlay h2 {
  font-size: 2.2rem;
  margin: 10px 0;
  color: #ffffff;
}

.small-post-card {
  display: flex;
  gap: 15px;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  transition: all 0.3s ease;
  align-items: center;
}
.small-post-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--brand-sage);
}
.small-post-card .small-thumb {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer, .site-primary-footer-wrap[data-section=section-primary-footer-builder] {
  background-color: var(--brand-dark) !important;
  color: #ffffff;
  padding: 60px 0 20px;
}

/* Inner container to hold logo and nav within 1200px */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 20px;
  /* Smaller Logo */
}
.footer-top .footer-logo img {
  width: auto;
  height: 60px; /* Reduced from original giant size */
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}
.footer-nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-nav ul li a:hover {
  color: var(--brand-sage);
}

/* Centered Copyright Section */
.footer-bottom {
  text-align: center;
  padding-top: 10px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ==========================================================================
   9. DECORATION & RESPONSIVE
   ========================================================================== */
.section-header {
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  color: var(--brand-dark);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  margin-top: 2rem;
  font-weight: 600;
  width: -moz-fit-content;
  width: fit-content;
}
.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background-color: var(--brand-sage);
  border-radius: 2px;
}

.natural-branch {
  height: 80px;
  width: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="80" viewBox="0 0 200 80"><path d="M0 40 C 20 40, 30 35, 50 38 S 80 45, 100 40 S 130 30, 150 35 S 180 42, 200 40" fill="none" stroke="%235d4037" stroke-width="3" stroke-linecap="round"/><path d="M45 37 Q 50 20 65 25 T 45 37" fill="%234a6741"/><path d="M110 42 Q 105 55 90 50 T 110 42" fill="%237ca36f"/><path d="M145 34 Q 155 15 170 20 T 145 34" fill="%234a6741"/><path d="M25 40 Q 20 55 5 50 T 25 40" fill="%2395b38a"/><circle cx="100" cy="40" r="1.5" fill="%235d4037"/></svg>');
  background-repeat: repeat-x;
  background-size: auto 100%;
}

@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  .slide-item {
    height: 450px;
  }
  .slide-content {
    margin-left: 0;
    max-width: 90%;
    padding: 25px;
  }
  /* Mobile Books: Revert to stacked column layout */
  [data-type=book] .resource-card {
    flex-direction: column !important;
  }
  [data-type=book] .resource-image {
    width: 100%;
    height: 280px;
  }
}
.resource-header {
  background: none !important;
}

.resource-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Play Icon Overlay */
.resource-card:hover .play-icon-overlay {
  background: var(--brand-sage);
  transform: translate(-50%, -50%) scale(1.1);
}

.resource-card[data-type=book] .resource-info {
  max-height: 400px;
}

.site-footer {
  /* Layer 1: Semi-transparent color overlay */
  /* Layer 2: The background image */
  background: linear-gradient(#4A5443, rgba(74, 84, 67, 0.94)), url("../images/footer.png");
  /* Ensures the image covers the entire area without repeating */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Optional: Ensure text remains readable */
  color: #ffffff;
  padding: 40px 0;
}

footer .legal-links a {
  color: white;
}

header.site-header {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background-color: #4A5443 !important;
  z-index: 1000;
}

.ast-custom-button.right {
  float: right;
}

.shf-about-hero {
  margin-top: 2rem;
}

html {
  scroll-behavior: smooth;
}

.archive-header {
  background: none !important;
}

.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(var(--brand-dark-rgb, 33, 54, 17), 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  cursor: pointer !important;
  pointer-events: all !important;
}
.play-icon-overlay svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  margin-left: 5px;
}

[data-type=video] .resource-image img {
  filter: brightness(0.7);
}

.resource-post-header {
  background: none;
}

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
  padding: 2rem 2rem !important;
}

.wp-post-image {
  width: 100%;
}

.resource-link-btn {
  float: right;
  width: -moz-fit-content;
  width: fit-content;
}

.project-header, .shf-contact-header, .tribe-events-calendar-list__event-header {
  background: none !important;
}

.shf-contact-container {
  margin-top: 10rem !important;
}

.ast-container:has(.shf-events-hero) {
  flex-direction: column;
}

.slide-overlay:has(.slide-content.right) {
  justify-content: flex-end !important;
}
.slide-overlay:has(.slide-content.right) .slide-content.right {
  margin-left: 0;
  margin-right: 2rem;
}/*# sourceMappingURL=style.css.map */