/* Center all featured images site-wide */
.wp-post-image {
  display: block;
  margin: 0 auto;
}

/* Hide featured image on specific pages */
.page-id-45896 .post-thumbnail,
.page-id-45896 .wp-post-image,
.page-id-45676 .post-thumbnail,
.page-id-45676 .wp-post-image,
.page-id-45298 .post-thumbnail,
.page-id-45298 .wp-post-image,
.page-id-43133 .post-thumbnail,
.page-id-43133 .wp-post-image {
  display: none !important;
}


/* ========================================
   HOMEPAGE HERO
   ======================================== */

.home .header-image-container {
  position: relative;
  overflow: hidden;
  min-height: 560px !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Subtle dark blue-gray overlay */
.home .header-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 48, 0.30);
  z-index: 1;
  pointer-events: none;
}

/* Keep hero content above the overlay */
.home .header-image-container .header-texts {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Main hero heading */
.home .header-image-container .header-texts h1 {
  color: #f4f1eb !important;
  font-size: 36px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.18 !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.24);
}

/* Hero subheading */
.home .header-image-container .header-texts h3 {
  color: #e3e6e8 !important;
  max-width: 950px;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  letter-spacing: 0.1px !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

/* Hero mailing list button */
.home .header-image-container .header-image-btn {
  display: inline-block;
  background: #2f5d85 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 30px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

/* Hero mailing list button hover */
.home .header-image-container .header-image-btn:hover {
  background: #244b6d !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}


/* ========================================
   HOMEPAGE ABOUT SECTION
   ======================================== */

.home #home-about-section {
  padding-top: 52px !important;
  padding-bottom: 56px !important;
}

/* Vertically center image and text columns */
.home #home-about-section .columns {
  align-items: center;
}

/* Tighten spacing below section heading */
.home #home-about-section .mb-100 {
  margin-bottom: 42px !important;
}

/* Section heading */
.home #home-about-section .section-title {
  position: relative;
  width: fit-content;
  margin: 0 auto !important;
  padding: 0 0 10px !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #263746 !important;
  border-bottom: 3px solid #c59a57;
}

/* Remove theme's existing decorative lines */
.home #home-about-section .section-title::before,
.home #home-about-section .section-title::after {
  content: none !important;
  display: none !important;
}

/* Hide empty subtitle space */
.home #home-about-section .section-subtitle:empty {
  display: none !important;
}


/* About image frame */
.home #home-about-section .about-section-image {
  padding: 0 !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Crop source image to remove embedded white border */
.home #home-about-section .front-about-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* About text column */
.home #home-about-section .about-section-content {
  padding: 0 0 0 28px !important;
}

/* Body copy */
.home #home-about-section .about-section-content p.has-medium-font-size {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  color: #5f666c !important;
}

/* Remove empty paragraph spacing */
.home #home-about-section .about-section-content p:empty {
  display: none !important;
}

/* Remove bottom margin from final paragraph */
.home #home-about-section .about-section-content p.has-medium-font-size:last-of-type {
  margin-bottom: 0 !important;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1024px) {

  .home .header-image-container {
    min-height: 500px !important;
  }

  .home .header-image-container .header-texts h1 {
    font-size: 32px !important;
  }

  .home .header-image-container .header-texts h3 {
    font-size: 21px !important;
    max-width: 800px;
  }

  .home #home-about-section {
    padding-top: 46px !important;
    padding-bottom: 50px !important;
  }

  .home #home-about-section .mb-100 {
    margin-bottom: 34px !important;
  }

  .home #home-about-section .section-title {
    font-size: 27px !important;
  }

  .home #home-about-section .about-section-content {
    padding-left: 22px !important;
  }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {

  .home .header-image-container {
    min-height: 440px !important;
  }

  .home .header-image-container .header-texts {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home .header-image-container .header-texts h1 {
    font-size: 27px !important;
    line-height: 1.2 !important;
  }

  .home .header-image-container .header-texts h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }

  .home .header-image-container .header-image-btn {
    padding: 13px 24px !important;
    font-size: 15px !important;
  }

  .home #home-about-section {
    padding-top: 38px !important;
    padding-bottom: 42px !important;
  }

  .home #home-about-section .mb-100 {
    margin-bottom: 26px !important;
  }

  .home #home-about-section .section-title {
    font-size: 24px !important;
  }

  .home #home-about-section .columns {
    align-items: flex-start;
  }

  .home #home-about-section .about-section-image {
    padding: 0 !important;
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
  }

  .home #home-about-section .about-section-content {
    padding: 0 !important;
  }

  .home #home-about-section .about-section-content p.has-medium-font-size {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }
}