/* Hand-written layout tweaks on top of the migrated Divi CSS. */
@media (min-width: 981px) {
  /* Home: align "Bishop Esterka Legacy" title with the top of the photo */
  .home .et_pb_section_0 .et_pb_column_0 { padding-top: 0 !important; }
  .home .et_pb_section_0 .et_pb_text_0 h1 { margin-top: -9px; }
}
/* Blog grids: equal-height cards */
.et_pb_blog_grid .et_pb_salvattore_content { display: flex; flex-wrap: wrap; }
.et_pb_blog_grid .et_pb_salvattore_content > .column { display: flex; flex-direction: column; }
.et_pb_blog_grid .et_pb_salvattore_content > .column > .et_pb_post { flex: 1; }
.et_pb_blog_grid .et_pb_salvattore_content > .column > .et_pb_post { display: flex; flex-direction: column; }
.et_pb_blog_grid .et_pb_post .post-content { flex: 1; display: flex; flex-direction: column; }
.et_pb_blog_grid .et_pb_post .post-content .more-link { margin-top: auto; }
.et_pb_blog_grid .et_pb_post.clearfix::before, .et_pb_blog_grid .et_pb_post.clearfix::after { display: none; }
.et_pb_blog_grid .et_pb_post .et_pb_image_container { margin-bottom: 0; }
@media (min-width: 981px) {
  /* Home: line up "Our Mission" with "What We Do" */
  .home .et_pb_text_5 { margin-top: -20px; }
}
/* Bishop Esterka page: book titles start level with the cover image */
.et_pb_row_3 .et_pb_text_4 h4:nth-of-type(2) { margin-top: -10px; line-height: 1.3; }
.et_pb_row_3 .et_pb_text_5 h4 { margin-top: -14px; line-height: 1.3; }
/* Contact form: darker, more readable text */
.et_pb_contact_form .input, .et_pb_contact_form .input::placeholder { color: #000 !important; opacity: 1; }

/* Our Impact: matching titles and equal-height boxes */
.et_pb_row_1 .et_pb_text_2 h3, .et_pb_row_1 .et_pb_text_3 h3,
.et_pb_row_1 .et_pb_text_2 h3 *, .et_pb_row_1 .et_pb_text_3 h3 * { font-weight: 700 !important; }
@media (min-width: 981px) {
  .et_pb_row_1.et_pb_equal_columns > .et_pb_column { display: flex; flex-direction: column; }
  .et_pb_row_1.et_pb_equal_columns > .et_pb_column > .et_pb_text { flex: 1; }
}

/* Our Impact: keep "How You Can Get Involved" box off the section divider */
.page-id-our-impact .et_pb_section_3, body:has(.et_pb_section_3 .et_pb_row_4) .et_pb_section_3 { padding-top: 40px !important; }

/* Articles page: equal cards, no shadows, read more at bottom */
.et_pb_blog_0 .et_pb_post { box-shadow: none !important; }
.et_pb_blog_0 .et_pb_post .post-content-inner { height: auto !important; max-height: none !important; overflow: visible !important; }
.et_pb_blog_0 .et_pb_post .entry-title, .et_pb_blog_0 .et_pb_post .post-meta { padding-left: 0; }
.et_pb_blog_0 .et_pb_post .post-content .more-link { display: inline-block; padding-top: 16px; }
.et_pb_blog_0 .et_pb_post .post-meta { margin-bottom: 12px; }
@media (min-width: 981px) {
  .et_pb_blog_0 .et_pb_salvattore_content { display: grid !important; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 40px 5.5%; }
  .et_pb_blog_0 .et_pb_salvattore_content > .column { display: contents !important; }
  .et_pb_blog_0 .et_pb_post { margin: 0 !important; height: 100%; }
}

/* Hide article dates on article cards */
.et_pb_blog_grid .et_pb_post .post-meta { display: none !important; }

/* Related articles under each article */
.related-grid .et_pb_post { box-shadow: none !important; display: flex; flex-direction: column; }
.related-grid .et_pb_post .post-content { flex: 1; display: flex; flex-direction: column; }
.related-grid .et_pb_post .post-content .more-link { margin-top: auto; display: inline-block; padding-top: 16px; }
.related-grid .et_pb_post .post-content-inner { height: auto !important; overflow: visible !important; }
.related-grid .et_pb_post.clearfix::before, .related-grid .et_pb_post.clearfix::after { display: none; }
.related-grid .et_pb_post .et_pb_image_container { margin-bottom: 0; }
.related-grid { display: grid !important; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 981px) { .related-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 5.5%; } .related-grid .et_pb_post { margin: 0 !important; } }

/* Footer content */
#main-footer .site-footer-info { text-align: center; padding: 10px 0; }
#main-footer .site-footer-info p { margin: 0 0 8px; padding: 0; }
#main-footer #footer-widgets .footer-widget { width: 100% !important; float: none; margin: 0 !important; }
#main-footer .footer-donate { margin-top: 8px; }
#footer-bottom .footer-copy { text-align: center; margin: 0; padding: 0; }
#main-footer #footer-widgets { display: flex; justify-content: center; padding: 40px 0 24px; }
#main-footer #footer-widgets .footer-widget, #main-footer #footer-widgets .fwidget { width: auto !important; max-width: 100%; }
#main-footer .footer-donate { font-size: 16px; }
#footer-bottom .footer-copy { color: rgba(255,255,255,.75); font-size: 13px; }
