/* ========================================
   FEATURED IMAGES
   ======================================== */

/* 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 */
.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;
}


/* ========================================
   HOMEPAGE - OUR COMMITTEES
   ======================================== */

.home #home-services-section {
  background: #23384d !important;
  padding-top: 72px !important;
  padding-bottom: 66px !important;
}

/* Match homepage section-heading style */
.home #home-services-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: #ffffff !important;
  border-bottom: 3px solid #c59a57;
}

/* Remove theme side lines */
.home #home-services-section .section-title::before,
.home #home-services-section .section-title::after {
  content: none !important;
  display: none !important;
}

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

.home #home-services-section .section-subtitle:empty {
  display: none !important;
}


/* ========================================
   HOMEPAGE COMMITTEE CARDS
   ======================================== */

.home #home-services-section .column.col-4 {
  display: flex;
  margin-bottom: 30px;
}

.home #home-services-section .front-single-service {
  position: relative;
  width: 100%;
  height: 100% !important;
  min-height: 350px;
  padding: 30px 36px 34px !important;
  background: #ffffff !important;
  border: 1px solid #e1e6ea;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(10, 28, 42, 0.12);
}

.home #home-services-section
.front-single-service.sameHeightDiv {
  height: 100% !important;
}

.home #home-services-section .front-service-texts {
  width: 100%;
}

/*
   Reserve equal title height so all
   committee summaries begin at the same level.
*/
.home #home-services-section .front-service-texts h3 {
  min-height: 92px;
  margin-bottom: 0 !important;
  color: #152f45 !important;
  line-height: 1.06 !important;
}

/* Hide theme-generated excerpt */
.home #home-services-section .front-service-texts p {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Replacement summary text */
.home #home-services-section .front-service-texts p::after {
  display: block;
  color: #394b59;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
}


/* ========================================
   HOMEPAGE COMMITTEE SUMMARIES
   ======================================== */

/* Dredging & Beneficial Reuse */
.home #home-services-section
.front-single-service:has(
  a[href*="dredging-beneficial-reuse-committee"]
)
.front-service-texts p::after {
  content: "Promotes reliable dredging of Bay Area waterways and advances the beneficial reuse of sediment through engagement on permitting, policy, funding, and regional science.";
}

/* Efficient Permitting */
.home #home-services-section
.front-single-service:has(
  a[href*="efficient-permitting-committee"]
)
.front-service-texts p::after {
  content: "Advances practical reforms that improve environmental review and permitting through greater coordination, predictability, and more effective project delivery.";
}

/* Government Affairs */
.home #home-services-section
.front-single-service:has(
  a[href*="government-affairs-committee"]
)
.front-service-texts p::after {
  content: "Brings BPC members together to track legislative and regulatory developments, inform advocacy positions, and engage with elected officials and public agencies.";
}

/* Resilient Shorelines */
.home #home-services-section
.front-single-service:has(
  a[href*="resilient-shorelines-committee"]
)
.front-service-texts p::after {
  content: "Supports policies and investments that strengthen shoreline resilience, infrastructure, and communities throughout the Bay Area.";
}

/* Water Resources */
.home #home-services-section
.front-single-service:has(
  a[href*="water-resources-committee"]
)
.front-service-texts p::after {
  content: "Focuses on policies, infrastructure, and planning efforts that strengthen water reliability and resilience across the Bay Area.";
}


/* ========================================
   HOMEPAGE COMMITTEE ICONS
   ======================================== */

.home #home-services-section .service-icon {
  margin-bottom: 16px;
}

.home #home-services-section .service-icon .fa {
  color: #1675c1 !important;
  font-size: 30px !important;
}

/* Dredging - anchor */
.home #home-services-section
.front-single-service:has(
  a[href*="dredging-beneficial-reuse-committee"]
)
.service-icon .fa::before {
  content: "\f13d";
}

/* Efficient Permitting - check mark */
.home #home-services-section
.front-single-service:has(
  a[href*="efficient-permitting-committee"]
)
.service-icon .fa::before {
  content: "✓";
  font-family: Arial, sans-serif !important;
  font-size: 29px;
  font-weight: 700;
}

/* Government Affairs - gavel */
.home #home-services-section
.front-single-service:has(
  a[href*="government-affairs-committee"]
)
.service-icon .fa::before {
  content: "\f0e3";
}

/* Resilient Shorelines - waves */
.home #home-services-section
.front-single-service:has(
  a[href*="resilient-shorelines-committee"]
)
.service-icon .fa::before {
  content: "≋";
  font-family: Georgia, serif !important;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

/* Water Resources - water drop */
.home #home-services-section
.front-single-service:has(
  a[href*="water-resources-committee"]
)
.service-icon .fa::before {
  content: "\f043";
}


/* ========================================
   HOMEPAGE COMMITTEE CARD LINKS
   ======================================== */

.home #home-services-section .front-single-service > a {
  position: absolute;
  inset: 0;
  z-index: 3;
}


/* ========================================
   HOMEPAGE - OUR WORK IN ACTION
   ======================================== */

.home #home-projects-section {
  background: #faf9f7 !important;
  padding-top: 64px !important;
  padding-bottom: 70px !important;
}

/* Match homepage section-heading style */
.home #home-projects-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;
}

.home #home-projects-section .section-title::before,
.home #home-projects-section .section-title::after {
  content: none !important;
  display: none !important;
}

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

.home #home-projects-section .section-subtitle:empty {
  display: none !important;
}


/* ========================================
   OUR WORK IN ACTION CARDS
   ======================================== */

.home #home-projects-section .column.col-3 {
  display: flex;
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

.home #home-projects-section .front-single-project {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e3e8ed;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(23, 50, 74, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home #home-projects-section .front-single-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23, 50, 74, 0.11);
}


/* ========================================
   OUR WORK IN ACTION IMAGES
   ======================================== */

.home #home-projects-section .front-single-project-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 !important;
  overflow: hidden;
  background: #edf1f4;
  border-radius: 0 !important;
}

.home #home-projects-section .front-single-project-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center;
  border-radius: 0 !important;
  transition: transform 0.25s ease;
}

.home #home-projects-section
.front-single-project:hover
.front-single-project-img img {
  transform: scale(1.025);
}

.home #home-projects-section .front-single-project-img > a {
  position: absolute;
  inset: 0;
  z-index: 2;
}


/* ========================================
   OUR WORK IN ACTION TITLES
   ======================================== */

.home #home-projects-section .project-details {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 18px 18px 20px !important;
  background: #ffffff;
}

.home #home-projects-section .project-details h4 {
  margin: 0 !important;
  line-height: 1.3 !important;
}

.home #home-projects-section .project-details h4 a {
  color: #244a67 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.home #home-projects-section .project-details h4 a:hover,
.home #home-projects-section .project-details h4 a:focus {
  color: #3266cb !important;
}


/* ========================================
   HOMEPAGE - MEET OUR POLICY TEAM
   ======================================== */

.home #home-team-section {
  background: #ffffff !important;
  padding-top: 64px !important;
  padding-bottom: 70px !important;
}

/* Match all other homepage section headings */
.home #home-team-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;
}

.home #home-team-section .section-title::before,
.home #home-team-section .section-title::after {
  content: none !important;
  display: none !important;
}

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

.home #home-team-section .section-subtitle:empty {
  display: none !important;
}


/* ========================================
   CENTER THE THREE STAFF MEMBERS
   ======================================== */

.home #home-team-section .columns {
  justify-content: center;
}

/* Staff columns */
.home #home-team-section .column.col-3 {
  flex: 0 0 30%;
  max-width: 30%;
  display: flex;
  justify-content: center;
}

/* Individual staff block */
.home #home-team-section .single-team-item {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 6px 18px 10px;
  text-align: center !important;
}


/* ========================================
   STAFF HEADSHOTS
   ======================================== */

.home #home-team-section .single-team-item-image {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(23, 50, 74, 0.10);
}

/* Standardize headshots */
.home #home-team-section .single-team-item-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center;
  border-radius: 50% !important;
}

/* Keep image fully clickable */
.home #home-team-section .single-team-item-image > a {
  position: absolute;
  inset: 0;
  z-index: 2;
}


/* ========================================
   STAFF NAMES
   ======================================== */

.home #home-team-section .single-team-item h4 {
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
}

.home #home-team-section .single-team-item h4 a {
  color: #244a67 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

.home #home-team-section .single-team-item h4 a:hover,
.home #home-team-section .single-team-item h4 a:focus {
  color: #3266cb !important;
}


/* ========================================
   STAFF POSITIONS
   ======================================== */

/* Gray instead of theme green */
.home #home-team-section .single-team-item p {
  max-width: 260px;
  margin: 0 auto !important;
  color: #6b747c !important;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  white-space: normal;
}


/* ========================================
   EVENT PAGES
   FULL-WIDTH SECTION BACKGROUNDS
   ======================================== */

.bpc-event-page .bpc-section {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}


/* ========================================
   INDIVIDUAL COMMITTEE PAGES
   FULL-WIDTH SECTION BACKGROUNDS
   ======================================== */

.bpc-committee-page .bpc-section {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}


/* ========================================
   INDIVIDUAL COMMITTEE HERO
   ======================================== */

.bpc-committee-page .bpc-hero {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  overflow: hidden;
}


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

@media (max-width: 1024px) {

  /* Hero */
  .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;
  }


  /* About */
  .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;
  }


  /* Committees */
  .home #home-services-section {
    padding-top: 62px !important;
    padding-bottom: 56px !important;
  }

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

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

  .home #home-services-section .front-single-service {
    min-height: 0;
  }


  /* Our Work in Action */
  .home #home-projects-section {
    padding-top: 54px !important;
    padding-bottom: 56px !important;
  }

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

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

  .home #home-projects-section .project-details {
    min-height: 82px;
  }


  /* Team */
  .home #home-team-section {
    padding-top: 54px !important;
    padding-bottom: 56px !important;
  }

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

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

  .home #home-team-section .column.col-3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .home #home-team-section .single-team-item {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home #home-team-section .single-team-item-image {
    width: 175px;
    height: 175px;
  }
}


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

@media (max-width: 767px) {

  /* Hero */
  .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;
  }


  /* About */
  .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;
  }


  /* Committees */
  .home #home-services-section {
    padding-top: 50px !important;
    padding-bottom: 42px !important;
  }

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

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

  .home #home-services-section .column.col-4 {
    margin-bottom: 20px;
  }

  .home #home-services-section .front-single-service,
  .home #home-services-section
  .front-single-service.sameHeightDiv {
    height: auto !important;
    min-height: 0;
    padding: 28px 28px 30px !important;
  }

  .home #home-services-section .front-service-texts h3 {
    min-height: 0;
  }

  .home #home-services-section
  .front-service-texts p::after {
    font-size: 16px;
    line-height: 1.65;
  }


  /* Our Work in Action */
  .home #home-projects-section {
    padding-top: 44px !important;
    padding-bottom: 46px !important;
  }

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

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

  .home #home-projects-section .column.col-3 {
    margin-bottom: 20px;
  }

  .home #home-projects-section .front-single-project {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .home #home-projects-section .project-details {
    min-height: 0;
    padding: 17px 18px 19px !important;
  }

  .home #home-projects-section .project-details h4 a {
    font-size: 16px !important;
  }


  /* Team */
  .home #home-team-section {
    padding-top: 44px !important;
    padding-bottom: 46px !important;
  }

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

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

  .home #home-team-section .column.col-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 34px;
  }

  .home #home-team-section .column.col-3:last-child {
    margin-bottom: 0;
  }

  .home #home-team-section .single-team-item {
    max-width: 320px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .home #home-team-section .single-team-item-image {
    width: 170px;
    height: 170px;
    margin-bottom: 20px;
  }

  .home #home-team-section .single-team-item h4 a {
    font-size: 18px !important;
  }

  .home #home-team-section .single-team-item p {
    font-size: 15px !important;
  }


  /* Individual committee hero */
  .bpc-committee-page .bpc-hero {
    width: calc(100% - 28px);
    border-radius: 8px;
  }
}