/*
 * KSJI-710 — Mostly inner-page overrides (.main-header--subpage, contact, etc.).
 * Also loaded on the homepage for shared pieces (e.g. compact footer bar).
 */

/*
 * Inner pages: cleenhearts clones .sticky-header → .sticky-header--cloned { position: fixed }.
 * Same sticky-header--three as homepage so the fixed bar matches site-wide.
 * Subpage position/margin must NOT apply to the clone (overrides fixed).
 */
.main-header-three.main-header--subpage:not(.sticky-header--cloned) {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  margin-top: 4px;
}

/*
 * Homepage (index) only: transparent menu rail over hero. Sticky clone keeps Cleenhearts
 * white bar + shadows (clone has .sticky-header--cloned). Inner pages unchanged.
 */
.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-header__right {
  background-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-header__right__left,
.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-header__nav,
.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-menu.main-menu--three,
.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-menu.main-menu--three > .main-menu__list {
  background-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-menu.main-menu--three .main-menu__list > li > a {
  color: #ffffff;
}

.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-menu.main-menu--three .main-menu__list > li.current > a,
.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-menu.main-menu--three .main-menu__list > li:hover > a {
  color: var(--cleenhearts-secondary, #ffbf00);
  text-shadow: none;
}

@media (min-width: 1200px) {
  .main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-menu.main-menu--three .main-menu__list > li + li::before {
    color: rgba(255, 255, 255, 0.4);
  }
}

.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .main-header-three__social__title {
  color: rgba(255, 255, 255, 0.95);
}

.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .social-link-two a {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

.main-header-three:not(.main-header--subpage):not(.sticky-header--cloned) .mobile-nav__btn span {
  background-color: #ffffff;
}

/*
 * Sticky clone: Cleenhearts adds box-shadow on the header, logo, and .main-header__right
 * — reads as a doubled bar. Keep one shadow on the fixed header only (all pages).
 */
.main-header-three.sticky-header--cloned.sticky-header--three .main-header-three__logo,
.main-header-three.sticky-header--cloned.sticky-header--three .main-header__right {
  box-shadow: none !important;
}

/*
 * Compact nav rail: sticky clone + inner static header (theme defaults: sticky li 36px, menu--three li 41px).
 */
@media (min-width: 1200px) {
  .sticky-header--cloned.main-header-three .main-menu.main-menu--three .main-menu__list > li {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .main-header-three.main-header--subpage:not(.sticky-header--cloned) .main-menu.main-menu--three .main-menu__list > li {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

/* Sticky clone: beat .sticky-header--cloned.sticky-header--three extra logo padding */
.sticky-header--cloned.main-header-three .main-header-three__logo {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin-top: 2px !important;
}

/* Inner static header: shorter logo cell to match compact sticky bar */
.main-header-three.main-header--subpage:not(.sticky-header--cloned) .main-header-three__logo {
  padding: 8px 16px 8px 20px !important;
  margin-top: 6px !important;
}
.main-header-three.main-header--subpage:not(.sticky-header--cloned) .main-header-three__logo img {
  max-height: 72px;
}

@media (max-width: 1199px) {
  .main-header-three.main-header--subpage:not(.sticky-header--cloned) .main-header__right {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .sticky-header--cloned.main-header-three .main-menu.main-menu--three .main-menu__list > li {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .main-header-three.main-header--subpage:not(.sticky-header--cloned) .main-menu.main-menu--three .main-menu__list > li {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/*
 * Homepage: Meet The Team — shorter than uncropped assets (~301px) but stable.
 * Theme uses img { width: 100% } + tall rasters; max-height+ cover alone mis-sized
 * the frame and cropped heads. Fixed frame + contain keeps slides equal height.
 */
.ksji-home-team-one .team-single__image,
.ksji-leadership-team-one .team-single__image {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 77, 0.05);
}

.ksji-home-team-one .team-single__image img,
.ksji-leadership-team-one .team-single__image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 767px) {
  .ksji-home-team-one .team-single__image,
  .ksji-leadership-team-one .team-single__image {
    height: 228px;
  }
}

/* Top header bar (inner pages): FAQ replaces social icons */
.topbar-one__right .ksji-topbar-faq-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.topbar-one__right .ksji-topbar-faq-link:hover {
  color: var(--cleenhearts-secondary, #ffbf00);
  border-color: var(--cleenhearts-secondary, #ffbf00);
  background-color: rgba(255, 191, 0, 0.12);
}
@media (max-width: 575px) {
  .topbar-one__right .ksji-topbar-faq-link {
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* Inner pages — page hero + breadcrumb band (taller breadcrumb row) */
.page-header {
  padding-top: 92px;
  padding-bottom: 96px;
}
@media (max-width: 767px) {
  .page-header {
    padding-top: 72px;
    padding-bottom: 76px;
  }
}
@media (max-width: 425px) {
  .page-header {
    padding-top: 60px;
    padding-bottom: 64px;
  }
}
.page-header__title {
  margin-bottom: 14px;
}
.page-header .cleenhearts-breadcrumb {
  margin-top: 10px;
  padding-top: 18px;
  padding-bottom: 12px;
  min-height: 52px;
  align-items: center;
}
.page-header .cleenhearts-breadcrumb li {
  font-size: 15px;
  line-height: 1.65;
}
.page-header .cleenhearts-breadcrumb li i {
  font-size: 15px;
}

/*
 * Instagram — theme styles FB / LinkedIn / YouTube but omits .fa-instagram (icon invisible on dark topbar).
 */
.social-link a:has(.fa-instagram),
.social-link-two a:has(.fa-instagram),
.topbar-one__social a:has(.fa-instagram),
.topbar-two .topbar-one__social a:has(.fa-instagram),
.topbar-four .topbar-one__social a:has(.fa-instagram),
.mobile-nav__social a:has(.fa-instagram),
.sidebar-one__socila.social-link a:has(.fa-instagram),
.main-header-three .social-link-two a:has(.fa-instagram) {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: #fff !important;
  border-color: transparent !important;
}
.social-link a:has(.fa-instagram):hover,
.social-link-two a:has(.fa-instagram):hover,
.topbar-one__social a:has(.fa-instagram):hover,
.topbar-two .topbar-one__social a:has(.fa-instagram):hover,
.topbar-four .topbar-one__social a:has(.fa-instagram):hover,
.mobile-nav__social a:has(.fa-instagram):hover,
.sidebar-one__socila.social-link a:has(.fa-instagram):hover,
.main-header-three .social-link-two a:has(.fa-instagram):hover {
  filter: brightness(1.08);
  color: #fff !important;
  border-color: transparent !important;
}

/* Topbar: theme dark bg — contact line in white (inner pages load this sheet). */
.topbar-one .topbar-one__info__item,
.topbar-one .topbar-one__info__item span {
  color: rgba(255, 255, 255, 0.95);
}
.topbar-one .topbar-one__info__item a,
.topbar-one .topbar-one__info__link {
  color: #fff;
}
.topbar-one .topbar-one__info__item a:hover,
.topbar-one .topbar-one__info__link:hover {
  color: var(--cleenhearts-secondary, #ffbf00);
}
.topbar-one .topbar-one__info__icon {
  color: var(--cleenhearts-secondary, #ffbf00);
}

@media (max-width: 991px) {
  .topbar-one .topbar-one__info__item--address {
    display: none;
  }
}

/* Tighter topbar + header gap — bar sits higher under viewport top. */
.topbar-one__inner {
  padding-top: 4px;
  padding-bottom: 8px;
}
.topbar-one {
  padding-top: 0;
  padding-bottom: 2px;
}

/*
 * Header logo — all main-header-three (index + inner): same enlarged mark + flat transparent
 * “card” as former homepage treatment (beats theme white/teardrop logo panel).
 */
.main-header-three:not(.sticky-header--cloned) .main-header-three__logo,
.sticky-header--cloned.main-header-three .main-header-three__logo {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 12px 20px 10px 24px;
  max-width: 380px;
  margin-top: 10px;
}
.main-header-three:not(.sticky-header--cloned) .main-header-three__logo img,
.sticky-header--cloned.main-header-three .main-header-three__logo img {
  display: block;
  max-height: 100px;
  width: auto;
  max-width: 100%;
}
.sticky-header--cloned.main-header-three .main-header-three__logo img {
  max-height: 70px;
}
@media (max-width: 575px) {
  .main-header-three:not(.sticky-header--cloned) .main-header-three__logo,
  .sticky-header--cloned.main-header-three .main-header-three__logo {
    max-width: 280px;
    padding: 10px 12px 8px 14px;
    height: auto;
    min-height: 0;
    margin-top: 8px;
  }
  .main-header-three:not(.sticky-header--cloned) .main-header-three__logo img,
  .sticky-header--cloned.main-header-three .main-header-three__logo img {
    max-height: 80px;
  }
}

.mobile-nav__content .logo-box img {
  max-height: 32px;
  width: auto;
}
.about-info-two__logo img {
  max-height: 44px;
  width: auto;
}

/* Homepage gift card — cash / in-kind options; one row, distinct colors per option */
.donations-gift .ksji-gift-card__amount {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}
.donations-gift .ksji-gift-card__amount .gift-card__btn {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  min-height: 52px;
  padding: 10px 8px;
  line-height: 1.2;
  border-radius: 12px;
  text-transform: none;
  white-space: normal;
  font-size: clamp(11px, 1.65vw, 15px);
  font-weight: 700;
  color: var(--cleenhearts-white, #fff);
  border-width: 2px;
  border-style: solid;
  border-color: #fff;
  transition: filter 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Cash donation — KSJI navy */
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(1) {
  background-color: #00004d;
}
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(1):hover,
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(1).active {
  background-color: #00004d;
  border-color: #fff;
  filter: brightness(1.12);
  color: var(--cleenhearts-white, #fff);
}
/* Non-perishable food — yellow (dark text for contrast) */
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(2) {
  background-color: #f5c518;
  color: #00004d;
}
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(2):hover,
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(2).active {
  background-color: #e6b800;
  border-color: #fff;
  filter: none;
  color: #00004d;
}
/* Cloth — same red as header “Join Now” (.main-header__btn.cleenhearts-btn) */
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(3) {
  background-color: var(--cleenhearts-sec-title, #d70000);
}
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(3):hover {
  background-color: #b00000;
  border-color: #fff;
  filter: none;
  color: var(--cleenhearts-white, #fff);
}
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(3).active {
  background-color: var(--cleenhearts-sec-title, #d70000);
  border-color: #fff;
  filter: none;
  color: var(--cleenhearts-white, #fff);
}
.donations-gift .ksji-gift-card__amount .gift-card__btn:nth-child(3).active:hover {
  background-color: #b00000;
}
.donations-gift .ksji-gift-card__amount .gift-card__btn.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

/* Page title / breadcrumb band: theme uses base blue overlay — use black instead. */
.page-header__bg::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

/* About blocks: main photo scales to the circle and crops evenly */
.about-one__image__one {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 32%;
  flex-shrink: 0;
}

/* --- Contact page (connes.php): brand-colored cards, form --- */
.contact-page-ksji__lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--cleenhearts-text, #757277);
}

.ksji-contact-page .contact-page-ksji__lead {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.ksji-contact-page .contact-page-ksji__form.contact-one__form {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 2.35rem 1.5rem 2.65rem;
  margin-left: 0;
  margin-right: 0;
  background-color: var(--cleenhearts-white, #fff);
  border: 1px solid rgba(0, 0, 77, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(0, 0, 77, 0.09);
  overflow: hidden;
}

.ksji-contact-page .contact-page-ksji__form.contact-one__form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--cleenhearts-base, #00004d) 0%,
    var(--cleenhearts-secondary, #ffbf00) 50%,
    var(--cleenhearts-sec-title, #d70000) 100%
  );
}

.ksji-contact-page .contact-page-ksji__form .contact-one__form__bg {
  display: none;
}

@media (min-width: 768px) {
  .ksji-contact-page .contact-page-ksji__form.contact-one__form {
    padding: 2.85rem 2.35rem 3rem;
  }
}

@media (min-width: 1200px) {
  .ksji-contact-page .contact-page-ksji__form.contact-one__form {
    padding: 3rem 2.75rem 3.15rem;
  }
}

.ksji-contact-page .contact-page-ksji__form .contact-one__title {
  margin-bottom: 0.6rem;
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--cleenhearts-base, #00004d);
  text-transform: none;
  letter-spacing: -0.02em;
}

.ksji-contact-page .contact-page-ksji__form .form-one__control__input,
.ksji-contact-page .contact-page-ksji__form .form-one__control__message {
  border: 1px solid rgba(0, 0, 77, 0.14);
  color: #2a2a33;
}

.ksji-contact-page .contact-page-ksji__form .form-one__control__input:focus,
.ksji-contact-page .contact-page-ksji__form .form-one__control__message:focus {
  outline: none;
  border-color: var(--cleenhearts-base, #00004d);
  box-shadow: 0 0 0 3px rgba(0, 0, 77, 0.12);
}

.ksji-contact-page .contact-page-ksji__form .form-one__control__input {
  padding: 14px 20px;
  font-size: 16px;
  min-height: 52px;
}

.ksji-contact-page .contact-page-ksji__form .form-one__control__message {
  min-height: 190px;
  padding-top: 16px;
  resize: vertical;
}

.ksji-contact-page .contact-page-ksji__form .bootstrap-select > .dropdown-toggle {
  padding: 14px 18px;
  font-size: 16px;
  min-height: 52px;
  border: 1px solid rgba(0, 0, 77, 0.14) !important;
}

.ksji-contact-page .contact-page-ksji__form .bootstrap-select.show > .dropdown-toggle,
.ksji-contact-page .contact-page-ksji__form .bootstrap-select > .dropdown-toggle:focus {
  outline: none !important;
  border-color: var(--cleenhearts-base, #00004d) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 77, 0.12) !important;
}

.contact-page-ksji__info-item {
  padding: 1.35rem 1.35rem;
  border-radius: 16px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-page-ksji__info > .col-md-4:nth-child(1) .contact-page-ksji__info-item {
  background: linear-gradient(145deg, rgba(0, 0, 77, 0.1) 0%, rgba(0, 0, 77, 0.03) 100%);
  border: 1px solid rgba(0, 0, 77, 0.12);
  border-left: 4px solid var(--cleenhearts-base, #00004d);
}

.contact-page-ksji__info > .col-md-4:nth-child(2) .contact-page-ksji__info-item {
  background: linear-gradient(145deg, rgba(255, 191, 0, 0.2) 0%, rgba(255, 191, 0, 0.06) 100%);
  border: 1px solid rgba(255, 191, 0, 0.4);
  border-left: 4px solid var(--cleenhearts-secondary, #ffbf00);
}

.contact-page-ksji__info > .col-md-4:nth-child(3) .contact-page-ksji__info-item {
  background: linear-gradient(145deg, rgba(215, 0, 0, 0.1) 0%, rgba(215, 0, 0, 0.03) 100%);
  border: 1px solid rgba(215, 0, 0, 0.18);
  border-left: 4px solid var(--cleenhearts-sec-title, #d70000);
}

.contact-page-ksji__info-item:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 77, 0.11);
  transform: translateY(-3px);
}

.contact-page-ksji__info .contact-one__info__icon::after {
  display: none;
}

.contact-page-ksji__info > .col-md-4:nth-child(1) .contact-one__info__icon {
  border-color: transparent;
  background: var(--cleenhearts-base, #00004d);
}

.contact-page-ksji__info > .col-md-4:nth-child(1) .contact-one__info__icon span {
  color: var(--cleenhearts-white, #fff);
}

.contact-page-ksji__info > .col-md-4:nth-child(2) .contact-one__info__icon {
  border-color: transparent;
  background: #c9950c;
  background: linear-gradient(135deg, #e6ac00 0%, #f4c430 100%);
}

.contact-page-ksji__info > .col-md-4:nth-child(2) .contact-one__info__icon span {
  color: var(--cleenhearts-base, #00004d);
}

.contact-page-ksji__info > .col-md-4:nth-child(3) .contact-one__info__icon {
  border-color: transparent;
  background: var(--cleenhearts-sec-title, #d70000);
}

.contact-page-ksji__info > .col-md-4:nth-child(3) .contact-one__info__icon span {
  color: var(--cleenhearts-white, #fff);
}

.contact-page-ksji__info .contact-one__info__item:hover .contact-one__info__icon {
  border-color: transparent;
}

.contact-page-ksji__info .contact-one__info__item:hover .contact-one__info__icon span {
  color: inherit;
}

.contact-page-ksji__info > .col-md-4:nth-child(1) .contact-one__info__item:hover .contact-one__info__icon span,
.contact-page-ksji__info > .col-md-4:nth-child(3) .contact-one__info__item:hover .contact-one__info__icon span {
  color: var(--cleenhearts-white, #fff);
}

.contact-page-ksji__info > .col-md-4:nth-child(2) .contact-one__info__item:hover .contact-one__info__icon span {
  color: var(--cleenhearts-base, #00004d);
}

.contact-page-ksji__info .contact-one__info__title {
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-weight: 700;
  color: var(--cleenhearts-base, #00004d);
}

.contact-page-ksji__map-wrap {
  margin-top: 3.25rem;
}

.contact-page-ksji__map {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.09);
}

.contact-page-ksji__map-iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

@media (min-width: 768px) {
  .contact-page-ksji__map-iframe {
    height: 420px;
  }
}

@media (min-width: 1200px) {
  .contact-page-ksji__map-iframe {
    height: 500px;
  }
}

/* Resource pages (resource.php) — same event-card-four pattern as news.php; body copy must not use title case. */
.resource-detail-page .event-card-four__text,
.resource-detail-page .resource-card-body {
  text-transform: none;
}

.resource-detail-page .resource-card-body p,
.resource-detail-page .resource-card-body li,
.resource-detail-page .resource-card-body a,
.resource-detail-page .resource-card-body strong {
  text-transform: none;
}

.resource-detail-page .resource-prayer-quote {
  border-color: var(--cleenhearts-base, #00004d) !important;
  text-transform: none;
}

.resource-detail-page .resource-prayer-quote p,
.resource-detail-page .resource-prayer-quote footer {
  text-transform: none;
}

.resource-detail-page .event-card-four__meta li {
  text-transform: none;
}

.resource-detail-page .event-card-four__image img {
  object-fit: cover;
  object-position: center;
  min-height: 240px;
}

@media (min-width: 992px) {
  .resource-detail-page .event-card-four__image img {
    min-height: 320px;
  }
}

.resource-detail-page .resource-card-actions .cleenhearts-btn {
  margin-top: 4px;
}

.resource-not-found-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--cleenhearts-base, #00004d);
  padding: 5px 0;
}

.resource-not-found-links a:hover {
  color: var(--cleenhearts-purple, #00004d);
}

.resource-not-found-links .fa-chevron-right {
  font-size: 11px;
  opacity: 0.9;
}

/* Homepage FAQ — second column (accordion): footer field + light headings */
.faq-one.faq-one--home-fraternity .ksji-faq-about-content-col {
  padding: clamp(22px, 4vw, 40px);
  border-radius: 20px;
  background-color: var(--cleenhearts-base, #00004d);
  background-image: url("../images/backgrounds/footer-bg-2-1.png");
  background-position: top center;
  background-size: auto;
  background-repeat: no-repeat;
}

.faq-one.faq-one--home-fraternity .ksji-faq-about-content-col .sec-title__tagline {
  color: rgba(255, 255, 255, 0.92);
}

.faq-one.faq-one--home-fraternity .ksji-faq-about-content-col .sec-title__tagline::before {
  background-color: rgba(255, 255, 255, 0.95);
}

.faq-one.faq-one--home-fraternity .ksji-faq-about-content-col .sec-title__tagline::after {
  border-color: rgba(255, 255, 255, 0.85);
}

.faq-one.faq-one--home-fraternity .ksji-faq-about-content-col .sec-title__title {
  color: var(--cleenhearts-white, #fff);
}

.faq-one.faq-one--home-fraternity .ksji-faq-about-content-col .faq-one__text {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 991px) {
  .faq-one.faq-one--home-fraternity .ksji-faq-about-content-col {
    margin-top: 4px;
  }
}

/* FAQ page (faq.php): second band — accordion list matches main footer field */
.faq-page-inner.ksji-faq-page-inner--footer-match .faq-page-inner__bg {
  mix-blend-mode: normal;
  background-color: var(--cleenhearts-base, #00004d);
  background-image: url("../images/backgrounds/footer-bg-2-1.png");
  background-position: top center;
  background-size: auto;
  background-repeat: no-repeat;
}

/* Charity band (help-people-cta.php — St. Vincent / KSJI Constant Support copy): footer field */
.ksji-help-people.ksji-help-people--footer-match {
  background-color: var(--cleenhearts-base, #00004d);
  background-image: url("../images/backgrounds/footer-bg-2-1.png");
  background-position: top center;
  background-size: auto;
  background-repeat: no-repeat;
}

/* Subscribe strip: same background treatment as .footer-two / main-footer (footer-bg-2-1.png) */
.subscribe.subscribe--footer-bg {
  background-color: var(--cleenhearts-base, #00004d);
}

.subscribe.subscribe--footer-bg .subscribe__bg {
  background-position: top center;
  background-size: auto;
  background-repeat: no-repeat;
}

.subscribe.subscribe--footer-bg .subscribe__bg::after {
  display: none;
}

.subscribe.subscribe--footer-bg .subscribe__title,
.subscribe.subscribe--footer-bg .subscribe__title-image {
  text-shadow: none;
}

/* Subscribe inside main footer: parent already carries footer-bg-2-1.png */
.main-footer > .subscribe.subscribe--in-footer {
  background-color: transparent;
  border-top: 0;
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (max-width: 991px) {
  .main-footer > .subscribe.subscribe--in-footer {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

@media (max-width: 575px) {
  .main-footer > .subscribe.subscribe--in-footer {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

/* Footer bottom bar (copyright + MTI): shorter vertical rhythm site-wide */
.footer-three__bottom:has(.footer-content-container),
.footer-three.main-footer .footer-three__bottom {
  padding-top: 8px;
  padding-bottom: 8px;
}

.footer-three__bottom__inner {
  gap: 0.35rem 1rem;
}

.footer-three__copyright {
  font-size: 12px;
  line-height: 1.3;
}

a.footer-mti-link {
  font-size: 12px;
  line-height: 1.2;
}

/* News / events: readable body (theme capitalizes .event-card-four__text) */
.event-card-four__text.ksji-news-body {
  text-transform: none;
}

.event-card-four__text.ksji-news-body p {
  margin-bottom: 0.85rem;
}

.event-card-four__text.ksji-news-body p:last-child {
  margin-bottom: 0;
}

.event-card-four__text.ksji-news-body .ksji-news-scripture {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.event-card-four__text.ksji-news-body .ksji-news-scripture__ref {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--cleenhearts-base, #000077);
}

.event-card-grid__excerpt {
  margin: 0 0 1rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cleenhearts-text, #666);
}

@media (max-width: 575px) {
  .event-card-grid__excerpt {
    font-size: 14px;
  }
}

/* Events page: anchor targets clear sticky header */
#commandery-events,
#ksji-commandery-events-list {
  scroll-margin-top: 100px;
}

/* Events page: 4 cards in 2×2 layout (two .row blocks, two col-lg-6 per row) */
.ksji-events-grid > .row + .row {
  margin-top: 30px;
}

.events-page #ksji-commandery-events-list .event-card-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-page #ksji-commandery-events-list .event-card-grid__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.events-page #ksji-commandery-events-list .event-card-grid__meta {
  margin-top: auto;
}

/* News list (event-card-four): keep thumbnail height balanced; tall photos won’t stretch the row */
.event-card-four__image {
  align-self: flex-start;
}

/* News page presentation refresh + strict date ordering */
.news-page .events-list-page .event-card-four {
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.12);
  overflow: hidden;
  position: relative;
  background: #fff;
  color: var(--cleenhearts-base, #00004d);
}

.news-page .events-list-page .event-card-four__content {
  padding: clamp(18px, 2vw, 26px);
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.news-page .events-list-page .event-card-four__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
  background: rgba(var(--cleenhearts-secondary-rgb, 255, 191, 0), 0.14);
  color: var(--cleenhearts-base, #00004d);
  font-weight: 600;
}

.news-page .events-list-page .event-card-four__title {
  margin-bottom: 10px;
}

.news-page .events-list-page .event-card-four__title a,
.news-page .events-list-page .event-card-four__text,
.news-page .events-list-page .event-card-four__meta,
.news-page .events-list-page .event-card-four__meta__title,
.news-page .events-list-page .event-card-four__meta li {
  color: var(--cleenhearts-base, #00004d);
}

.news-page .events-list-page .event-card-four::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 16px;
  height: 100%;
  background: var(--news-accent, #0ea5a4);
  z-index: 2;
  pointer-events: none;
}

.news-page .events-list-page .event-card-four::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 28px;
  height: 100%;
  background-color: var(--news-accent, #0ea5a4);
  -webkit-mask: url("../images/news/news-card-right-accent.png") right center / 100% 100% no-repeat;
  mask: url("../images/news/news-card-right-accent.png") right center / 100% 100% no-repeat;
  z-index: 3;
  pointer-events: none;
}

.news-page .events-list-page .event-card-four__meta {
  margin-top: 14px;
  border-top: 1px solid rgba(16, 24, 40, 0.1);
  padding-top: 14px;
}

.news-page #supreme-convention-2026 { order: 10; }
.news-page #muster-inspection-2026 { order: 20; }
.news-page #easter-program-2026 { order: 30; }
.news-page #good-friday-2026 { order: 40; }
.news-page #easter-program { order: 50; }
.news-page #anniversary-program-2025 { order: 55; }
.news-page #fr-alex-installation-2024 { order: 60; }
.news-page #charity-food-drive-2024 { order: 70; }

/* Color accents per news item (date badge + time pill) */
.news-page #supreme-convention-2026 .event-card-four__date,
.news-page #supreme-convention-2026 .event-card-four__time {
  background: #f30009;
  color: #fff;
}
.news-page #supreme-convention-2026 .event-card-four { --news-accent: #f30009; }

.news-page #anniversary-program-2025 .event-card-four__date,
.news-page #anniversary-program-2025 .event-card-four__time {
  background: #001046;
  color: #fff;
}
.news-page #anniversary-program-2025 .event-card-four { --news-accent: #001046; }

.news-page #muster-inspection-2026 .event-card-four__date,
.news-page #muster-inspection-2026 .event-card-four__time {
  background: #001046;
  color: #fff;
}
.news-page #muster-inspection-2026 .event-card-four { --news-accent: #001046; }

.news-page #easter-program-2026 .event-card-four__date,
.news-page #easter-program-2026 .event-card-four__time {
  background: #ff6a00;
  color: #fff;
}
.news-page #easter-program-2026 .event-card-four { --news-accent: #ff6a00; }

.news-page #good-friday-2026 .event-card-four__date,
.news-page #good-friday-2026 .event-card-four__time {
  background: #f30009;
  color: #fff;
}
.news-page #good-friday-2026 .event-card-four { --news-accent: #f30009; }

.news-page #easter-program .event-card-four__date,
.news-page #easter-program .event-card-four__time {
  background: #001046;
  color: #fff;
}
.news-page #easter-program .event-card-four { --news-accent: #001046; }

.news-page #fr-alex-installation-2024 .event-card-four__date,
.news-page #fr-alex-installation-2024 .event-card-four__time {
  background: #ff6a00;
  color: #fff;
}
.news-page #fr-alex-installation-2024 .event-card-four { --news-accent: #ff6a00; }

.news-page #charity-food-drive-2024 .event-card-four__date,
.news-page #charity-food-drive-2024 .event-card-four__time {
  background: #f30009;
  color: #fff;
}
.news-page #charity-food-drive-2024 .event-card-four { --news-accent: #f30009; }

.news-page .events-list-page .event-card-four__date span,
.news-page .events-list-page .event-card-four__time__icon {
  color: #fff !important;
}

/* News list: keep day + month on the accent chip (theme hover was forcing generic purple) */
.news-page .events-list-page .event-card-four:hover .event-card-four__date {
  background-color: var(--news-accent, #00004d) !important;
  color: #fff !important;
}

.news-page .events-list-page .event-card-four:hover .event-card-four__date span {
  color: #fff !important;
}

@media (min-width: 992px) {
  .event-card-four__image {
    height: 248px;
  }

  .event-card-four__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }
}

@media (max-width: 991px) {
  .event-card-four__image {
    height: min(220px, 58vw);
    max-height: 260px;
  }

  .event-card-four__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }
}

/* Easter news cards: show full artwork (no crop) */
#easter-program .event-card-four__image,
#easter-program-2026 .event-card-four__image,
#good-friday-2026 .event-card-four__image,
#muster-inspection-2026 .event-card-four__image,
#anniversary-program-2025 .event-card-four__image {
  height: auto;
  max-height: none;
}

#easter-program .event-card-four__image img,
#easter-program-2026 .event-card-four__image img,
#good-friday-2026 .event-card-four__image img,
#muster-inspection-2026 .event-card-four__image img,
#anniversary-program-2025 .event-card-four__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

/* Events grid cards: consistent band height */
.event-card-grid__image {
  height: 200px;
}

.event-card-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

@media (min-width: 576px) {
  .event-card-grid__image {
    height: 218px;
  }
}

@media (min-width: 992px) {
  .event-card-grid__image {
    height: 232px;
  }
}

/* Homepage: photo strip — full width; same bg treatment as .footer-two (footer-bg-2-1.png + base) */
.events-gallery--compact {
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
  background-color: var(--cleenhearts-base, #00004d);
  background-image: url("../images/backgrounds/footer-bg-2-1.png");
  background-position: top center;
  background-size: auto;
  background-repeat: no-repeat;
}

.events-gallery--compact .events-gallery__strip {
  position: relative;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0.75rem clamp(10px, 2vw, 24px) 1.25rem;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

@media (max-width: 575px) {
  .events-gallery--compact .events-gallery__strip {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.events-gallery--compact .owl-item {
  display: block;
}

.events-gallery--compact .owl-item > .item {
  width: 100%;
  max-width: none;
}

.events-gallery--compact .events-gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: none;
  max-height: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(100, 130, 200, 0.12);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .events-gallery--compact .events-gallery__image {
    transition: none;
  }
}

.events-gallery--compact .events-gallery__item:hover .events-gallery__image {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(0, 0, 45, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.55);
}

.events-gallery--compact .events-gallery__image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-gallery--compact .events-gallery__link {
  width: min(calc(100% - 24px), 260px);
  max-width: min(88%, 260px);
  padding: 9px 12px;
  font-size: 13px;
  gap: 7px;
}

.events-gallery--compact .events-gallery__link img {
  width: 28px !important;
  height: 28px !important;
}

.events-gallery--compact .owl-dots {
  margin-top: 0.85rem !important;
}

.events-gallery--compact .owl-theme .owl-dots .owl-dot span {
  background: rgba(255, 255, 255, 0.28);
}

.events-gallery--compact .owl-theme .owl-dots .owl-dot.active span,
.events-gallery--compact .owl-theme .owl-dots .owl-dot:hover span {
  background: var(--cleenhearts-secondary, #ffbf00);
}

/* Homepage hero: match footer bg field + slide photo pans L→R on active item */
.main-slider-three {
  background-color: var(--cleenhearts-base, #00004d);
  background-image: url("../images/backgrounds/footer-bg-2-1.png");
  background-position: top center;
  background-size: auto;
  background-repeat: no-repeat;
}

.main-slider-three .main-slider-three__bg {
  background-position: 0% 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .main-slider-three__carousel .owl-item.active .main-slider-three__bg {
    animation: ksji-hero-bg-pan 22s ease-in-out infinite alternate;
  }
}

@keyframes ksji-hero-bg-pan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Homepage — “Our purpose”: two stacked landscape Commandery photos */
.about-three .ksji-about-three-landscape__stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  max-width: 100%;
}

.about-three .ksji-about-three-landscape__frame {
  margin: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--cleenhearts-base, #00004d) 0%, #121830 100%);
  box-shadow:
    0 16px 44px rgba(0, 0, 45, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .about-three .ksji-about-three-landscape__frame:hover {
    transform: translateY(-4px);
    box-shadow:
      0 22px 52px rgba(0, 0, 45, 0.26),
      0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}

.about-three .ksji-about-three-landscape__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.about-three .ksji-about-three-landscape__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991px) {
  .about-three .ksji-about-three-landscape__stack {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Homepage — “Our purpose” body copy: full justification */
.about-three .about-three__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Who We Are–style full-width column: no side image, justified body copy */
.about-one .ksji-about-one__content--full .sec-title {
  text-align: left;
}

/* Who We Are: pull content closer to page hero (long title + default section-space is tall) */
.about-one.ksji-about-page--who-we-are.section-space {
  padding-top: 64px;
}
@media (max-width: 767px) {
  .about-one.ksji-about-page--who-we-are.section-space {
    padding-top: 48px;
  }
}
@media (max-width: 575px) {
  .about-one.ksji-about-page--who-we-are.section-space {
    padding-top: 40px;
  }
}
.about-one.ksji-about-page--who-we-are .sec-title {
  margin-bottom: 22px;
}
.about-one.ksji-about-page--who-we-are .sec-title__tagline {
  margin-bottom: 12px;
}

.about-one .ksji-about-one__content--full .about-one__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.about-one .ksji-about-one__content--full .contact-information {
  text-align: left;
}

/* KSJI History: body copy full justification */
.about-one.ksji-about-page--history .ksji-about-one__content--full .about-one__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* KSJI History (international): archival images stacked on the right */
.about-one.ksji-about-one--full-with-stack.ksji-about-page--history {
  overflow-x: hidden;
}

.about-one.ksji-about-one--full-with-stack.ksji-about-page--history:has(.ksji-history-stack__item.is-zoomed) {
  overflow: visible;
}

.about-one.ksji-about-one--full-with-stack.ksji-about-page--history:has(.ksji-history-stack__item.is-zoomed) .container,
.about-one.ksji-about-one--full-with-stack.ksji-about-page--history:has(.ksji-history-stack__item.is-zoomed) .row {
  overflow: visible;
}

.about-one.ksji-about-page--history .ksji-history-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .about-one.ksji-about-page--history .ksji-history-stack {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    position: sticky;
    top: 100px;
  }
}

.about-one.ksji-about-page--history .ksji-history-stack__frame {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f1ea 0%, #e8e4db 100%);
  border: 1px solid rgba(0, 0, 77, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 77, 0.1), 0 2px 0 rgba(255, 255, 255, 0.85) inset;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.about-one.ksji-about-page--history .ksji-history-stack__item--primary .ksji-history-stack__frame {
  padding: 8px 10px 10px;
}

.about-one.ksji-about-page--history .ksji-history-stack__img {
  width: 100%;
  height: auto;
  max-height: min(360px, 48vw);
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 12px;
}

@media (min-width: 992px) {
  .about-one.ksji-about-page--history .ksji-history-stack__item--primary .ksji-history-stack__img {
    max-height: 340px;
  }

  .about-one.ksji-about-page--history .ksji-history-stack__item:not(.ksji-history-stack__item--primary) .ksji-history-stack__img {
    max-height: 300px;
  }
}

.about-one.ksji-about-page--history .ksji-history-stack__caption {
  margin: 0.6rem 0 0;
  padding: 0 4px;
  font-family: var(--cleenhearts-font, "DM Sans", sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(0, 0, 55, 0.72);
  letter-spacing: 0.01em;
}

/* KSJI History: click to enlarge stack images; mouse leaves figure to reset */
.about-one.ksji-about-page--history .ksji-history-stack--zoomable .ksji-history-stack__item {
  cursor: zoom-in;
  transition: transform 0.38s ease, box-shadow 0.38s ease;
  border-radius: 20px;
}

.about-one.ksji-about-page--history .ksji-history-stack--zoomable .ksji-history-stack__item.is-zoomed {
  cursor: zoom-out;
  z-index: 60;
  position: relative;
  transform: scale(1.48);
  transform-origin: center center;
  outline: none;
}

.about-one.ksji-about-page--history .ksji-history-stack--zoomable .ksji-history-stack__item.is-zoomed .ksji-history-stack__frame {
  overflow: visible;
  box-shadow: 0 28px 70px rgba(0, 0, 77, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .about-one.ksji-about-page--history .ksji-history-stack--zoomable .ksji-history-stack__item {
    transition: none;
  }
}

/* Who We Are — Armor of God medallions (right column, circular presentation) */
.about-one.ksji-about-page--who-we-are .ksji-history-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.65rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .about-one.ksji-about-page--who-we-are .ksji-history-stack {
    align-items: stretch;
    max-width: 288px;
    margin-left: auto;
    margin-right: 0;
    position: sticky;
    top: 92px;
  }
}

.about-one.ksji-about-page--who-we-are .ksji-history-stack__item {
  margin: 0;
  width: 100%;
  max-width: 288px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .about-one.ksji-about-page--who-we-are .ksji-history-stack__item {
    margin-left: 0;
    margin-right: 0;
  }
}

.about-one.ksji-about-page--who-we-are .ksji-history-stack__frame {
  border-radius: 50%;
  aspect-ratio: 1;
  width: 100%;
  max-width: 288px;
  margin: 0 auto;
  padding: 11px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 252, 245, 1) 0%, rgba(232, 223, 200, 1) 42%, rgba(198, 186, 158, 1) 100%);
  border: 2px solid rgba(0, 0, 77, 0.12);
  box-shadow:
    0 14px 40px rgba(0, 0, 77, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    inset 0 -4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: hidden;
}

.about-one.ksji-about-page--who-we-are .ksji-history-stack__img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 50%;
  display: block;
}

.about-one.ksji-about-page--who-we-are .ksji-history-stack__item--primary .ksji-history-stack__img,
.about-one.ksji-about-page--who-we-are .ksji-history-stack__item:not(.ksji-history-stack__item--primary) .ksji-history-stack__img {
  max-height: none;
}

.about-one.ksji-about-page--who-we-are .ksji-history-stack__caption {
  margin: 0.65rem 0 0;
  padding: 0 6px;
  text-align: center;
  font-family: var(--cleenhearts-font, "DM Sans", sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: rgba(0, 0, 55, 0.68);
  letter-spacing: 0.02em;
}

@media (min-width: 992px) {
  .about-one.ksji-about-page--who-we-are .ksji-history-stack__caption {
    text-align: left;
  }
}

/* KSJI Commandery 710 local history: split hero + intro paragraphs — full justification */
.about-one.ksji-about-page--commandery-history .about-one__text,
.about-one.ksji-about-page--commandery-history .about-one__text-box .about-one__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Shared timeline (710 History page + Leadership): era narrative copy */
.story-one.ksji-story-commandery-710 .story-one__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* What We Stand For — FAQ-style about strip */
.faq-one.faq-one--ksji-about .faq-one__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Homepage — “Living Our Object In Service”: no template fundraising strip; KSJI blurbs */
.donations-three.ksji-donations-three--object .donation-card__content {
  padding-top: 0.25rem;
}

.donations-three.ksji-donations-three--object .ksji-object-card__text {
  text-align: justify;
  text-transform: none;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-bottom: 1.15rem;
  min-height: 4.75em;
}

/* Object cards: solid / gradient panels instead of stock photos (add .ksji-object-card__image--has-photo on the link when real images are ready) */
.donations-three.ksji-donations-three--object .ksji-object-card__image {
  min-height: 208px;
  aspect-ratio: 16 / 10;
  background-color: var(--cleenhearts-base, #00004d);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.donations-three.ksji-donations-three--object .ksji-object-card__image::before,
.donations-three.ksji-donations-three--object .ksji-object-card__image::after {
  display: none;
}

.donations-three.ksji-donations-three--object .ksji-object-card__image:not(.ksji-object-card__image--has-photo) img {
  display: none !important;
}

.donations-three.ksji-donations-three--object .ksji-object-card__image--has-photo {
  background: none;
  aspect-ratio: auto;
  min-height: 0;
}

.donations-three.ksji-donations-three--object .ksji-object-card__image--has-photo img {
  display: block !important;
  width: 100%;
  min-height: 208px;
  object-fit: cover;
  object-position: center center;
}

.donations-three.ksji-donations-three--object .ksji-object-card__image[data-ksji-pillar="charity"] {
  background: linear-gradient(145deg, #e63946 0%, #9d174d 100%);
}

.donations-three.ksji-donations-three--object .ksji-object-card__image[data-ksji-pillar="fraternity"] {
  background: linear-gradient(145deg, #3d5afe 0%, #1d4ed8 100%);
}

.donations-three.ksji-donations-three--object .ksji-object-card__image[data-ksji-pillar="church"] {
  background: linear-gradient(145deg, #312e81 0%, #1e1b4b 100%);
}

.donations-three.ksji-donations-three--object .ksji-object-card__image[data-ksji-pillar="mutual-aid"] {
  background: linear-gradient(145deg, #12b886 0%, #0f766e 100%);
}

.donations-three.ksji-donations-three--object .donation-card:hover .ksji-object-card__image:not(.ksji-object-card__image--has-photo) {
  filter: brightness(1.06);
}

/* Gatherings & Observances (homepage): color panels instead of stock photos — add .ksji-events-three__panel--has-photo + background-image when using real photos */
.events-three.ksji-events-three--gatherings .ksji-events-three__panel:not(.ksji-events-three__panel--has-photo) {
  background-color: var(--cleenhearts-base, #00004d);
  background-image: linear-gradient(145deg, #312e81 0%, #1e1b4b 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel:not(.ksji-events-three__panel--has-photo)::after {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 100%);
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel:not(.ksji-events-three__panel--has-photo) .events-three__card__title {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel[data-ksji-panel="ceremonial"]:not(.ksji-events-three__panel--has-photo) {
  background-image: linear-gradient(155deg, #ea580c 0%, #7c2d12 100%);
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel[data-ksji-panel="fraternal"]:not(.ksji-events-three__panel--has-photo) {
  background-image: linear-gradient(145deg, #3d5afe 0%, #1d4ed8 100%);
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel[data-ksji-panel="parish"]:not(.ksji-events-three__panel--has-photo) {
  background-image: linear-gradient(145deg, #312e81 0%, #1e1b4b 100%);
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel[data-ksji-panel="charity"]:not(.ksji-events-three__panel--has-photo) {
  background-image: linear-gradient(145deg, #e63946 0%, #9d174d 100%);
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel--has-photo {
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel[data-ksji-panel="parish"].ksji-events-three__panel--has-photo {
  background-position: center center;
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel[data-ksji-panel="ceremonial"].ksji-events-three__panel--has-photo {
  background-position: 70% center;
}

.events-three.ksji-events-three--gatherings .ksji-events-three__panel[data-ksji-panel="fraternal"].ksji-events-three__panel--has-photo {
  background-position: center center;
}

/* Gatherings & Observances — accordion tab titles readable (avoid clipped vertical-rl text in narrow strip) */
@media (min-width: 992px) {
  .events-three .choice:not(.expand) {
    width: 200px;
    min-width: 200px;
  }

  .events-three .events-three__card__top {
    padding: 68px 14px 104px;
  }

  .events-three .events-three__card__title {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 26px;
    top: auto;
    line-height: 1.3;
    font-size: 17px;
    max-width: none;
    z-index: 12;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .events-three .choice:not(.expand) {
    width: 155px;
    min-width: 155px;
  }

  .events-three .events-three__card__title {
    font-size: 15px;
    left: 10px;
    right: 10px;
    bottom: 22px;
  }
}

/* Meeting landing pages (meeting.php) — donation-details layout, KSJI copy */
.ksji-meeting-page .sidebar-donation {
  background-color: var(--cleenhearts-base, #00004d);
  background-image: url("../images/backgrounds/footer-bg-2-1.png");
  background-position: top center;
  background-size: auto;
  background-repeat: no-repeat;
  border-radius: 18px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 12px 40px rgba(0, 0, 77, 0.18);
  color: var(--cleenhearts-white, #fff);
  position: relative;
  z-index: 1;
}

/* Theme gives .sidebar-donation__item a cream panel — breaks contrast with inherited light text */
.ksji-meeting-page .sidebar-donation .sidebar-donation__item {
  background-color: transparent !important;
  border-radius: 0;
  padding: 0 !important;
  box-shadow: none;
}

.ksji-meeting-page .sidebar-donation .sidebar-donation__campaings.sidebar-donation__item {
  padding: 0 !important;
}

.ksji-meeting-page .sidebar-donation__item + .sidebar-donation__item {
  margin-top: 1.25rem;
  padding-top: 1.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.ksji-meeting-page .sidebar-donation__title {
  color: var(--cleenhearts-white, #fff) !important;
}

/* Address row: theme forces navy on label + body — force light text on KSJI sidebar */
.ksji-meeting-page .sidebar-donation .sidebar-donation__organizer__address__title .sidebar-donation__organizer__address__icon {
  color: var(--cleenhearts-secondary, #ffbf00) !important;
}

.ksji-meeting-page .sidebar-donation .sidebar-donation__organizer__address__text {
  color: rgba(255, 255, 255, 0.95) !important;
}

.ksji-meeting-page .sidebar-donation .sidebar-donation__organizer__address address.sidebar-donation__organizer__address__address,
.ksji-meeting-page .sidebar-donation address.sidebar-donation__organizer__address__address {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
}

.ksji-meeting-page .sidebar-donation .sidebar-donation__organizer__address {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ksji-meeting-page .ksji-meeting-sidebar__tag {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.88) !important;
}

.ksji-meeting-page .ksji-meeting-sidebar__contact {
  color: rgba(255, 255, 255, 0.95) !important;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ksji-meeting-page .ksji-meeting-sidebar__contact.mb-0 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.ksji-meeting-page .ksji-meeting-sidebar__contact .icon-phone,
.ksji-meeting-page .ksji-meeting-sidebar__contact .icon-envelope {
  color: var(--cleenhearts-secondary, #ffbf00) !important;
}

.ksji-meeting-page .ksji-meeting-sidebar__contact a {
  color: var(--cleenhearts-secondary, #ffbf00) !important;
  font-weight: 600;
}

.ksji-meeting-page .ksji-meeting-sidebar__contact a:hover {
  color: #fff !important;
}

/* Divider after each nav link */
.ksji-meeting-page .ksji-meeting-sidebar__links li {
  margin-bottom: 0;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ksji-meeting-page .ksji-meeting-sidebar__links li:first-child {
  padding-top: 0;
}

.ksji-meeting-page .ksji-meeting-sidebar__links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ksji-meeting-page .ksji-meeting-sidebar__links a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98) !important;
  display: block;
}

.ksji-meeting-page .ksji-meeting-sidebar__links a:hover {
  color: var(--cleenhearts-secondary, #ffbf00) !important;
}

.ksji-meeting-page .ksji-meeting-body .donation-card-three__text__inner {
  text-transform: none;
  line-height: 1.65;
}

.ksji-meeting-page .ksji-meeting-subhead {
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--cleenhearts-base, #00004d);
}

.ksji-meeting-page .donation-card__image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Resource: Knights Prayer illustration */
.ksji-resource-prayer-figure img {
  max-width: min(100%, 380px);
  height: auto;
}

/* Resource: Odes — modal reader */
.ksji-odes-open-btn {
  --bs-btn-color: var(--cleenhearts-white, #fff);
  --bs-btn-bg: var(--cleenhearts-base, #00004d);
  --bs-btn-border-color: var(--cleenhearts-base, #00004d);
  --bs-btn-hover-bg: #1a1a6b;
  --bs-btn-hover-border-color: #1a1a6b;
  --bs-btn-active-bg: #14145c;
  --bs-btn-active-border-color: #14145c;
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-weight: 600;
  border-radius: 100px;
  padding: 0.65rem 1.75rem;
}

.ksji-odes-modal .modal-content {
  border-radius: 20px;
  overflow: hidden;
}

.ksji-odes-modal__header {
  background: linear-gradient(
    165deg,
    var(--cleenhearts-base, #00004d) 0%,
    #12125c 45%,
    #1e1e74 100%
  );
  color: var(--cleenhearts-white, #fff);
  position: relative;
}

.ksji-odes-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  opacity: 0.9;
}

.ksji-odes-modal__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.88;
  font-weight: 600;
}

.ksji-odes-modal__title {
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  color: var(--cleenhearts-white, #fff);
  letter-spacing: -0.02em;
}

.ksji-odes-modal__rule {
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--cleenhearts-secondary, #ffbf00),
    rgba(255, 191, 0, 0.25)
  );
}

.ksji-odes-modal__body {
  background: linear-gradient(
    180deg,
    #faf8f4 0%,
    var(--cleenhearts-white2, #efece7) 100%
  );
  font-family: var(--cleenhearts-font, "DM Sans", sans-serif);
}

.ksji-ode-sheet__masthead {
  text-align: center;
  margin-bottom: 1.75rem;
}

.ksji-ode-sheet__ode-name {
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cleenhearts-base, #00004d);
  margin-bottom: 0.35rem;
}

.ksji-ode-sheet__subtitle {
  margin-bottom: 0;
  color: var(--cleenhearts-text, #555);
  font-size: 1rem;
}

.ksji-ode-sheet__subtitle--display {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--cleenhearts-base, #00004d);
}

.ksji-ode-sheet__divider {
  border: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 77, 0.18),
    transparent
  );
  opacity: 1;
}

.ksji-ode-verse {
  margin-bottom: 1.5rem;
}

.ksji-ode-verse__label,
.ksji-ode-chorus__label {
  font-family: var(--cleenhearts-heading-font, "Quicksand", sans-serif);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cleenhearts-base, #00004d);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.ksji-ode-verse__lines p,
.ksji-ode-chorus__lines p {
  margin: 0;
  line-height: 1.75;
  font-size: 1.05rem;
  color: #2a2a33;
}

.ksji-ode-chorus {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: rgba(0, 0, 77, 0.06);
  border-radius: 14px;
  border-left: 4px solid var(--cleenhearts-secondary, #ffbf00);
}

.ksji-ode-chorus__lines p {
  font-weight: 600;
  font-style: italic;
  color: var(--cleenhearts-base, #00004d);
}

/* Odes modal: Opening + Closing side-by-side (lg+), top-aligned */
.ksji-odes-modal__columns {
  align-items: flex-start;
}

@media (min-width: 992px) {
  .ksji-odes-modal__columns .ksji-ode-sheet__masthead {
    margin-bottom: 1.35rem;
  }

  .ksji-odes-modal__columns .ksji-ode-sheet__ode-name {
    font-size: 1.32rem;
    line-height: 1.25;
  }

  .ksji-odes-modal__columns .ksji-ode-verse__lines p,
  .ksji-odes-modal__columns .ksji-ode-chorus__lines p {
    font-size: 0.97rem;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .ksji-odes-modal__columns .ksji-ode-chorus {
    padding: 1rem 1rem 1.05rem;
  }
}

@media (max-width: 575px) {
  .ksji-odes-modal__body {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  .ksji-ode-verse__lines p,
  .ksji-ode-chorus__lines p {
    font-size: 0.98rem;
  }
}

/* Resource: Knights Prayer — modal (sole artwork: knight illustration) */
.ksji-prayer-modal__figure {
  margin-left: auto;
  margin-right: auto;
  max-width: 440px;
}

.ksji-prayer-modal__figure-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: min(48vh, 380px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ksji-prayer-modal__lead {
  color: var(--cleenhearts-text, #555);
  line-height: 1.65;
}

.ksji-prayer-modal .resource-prayer-quote,
.ksji-prayer-modal__quote {
  border-color: var(--cleenhearts-base, #00004d) !important;
  text-transform: none;
}

.ksji-prayer-modal .resource-prayer-quote p {
  text-transform: none;
  color: #2a2a33;
}

/* Knights Prayer — white page + modal (no blue/cream panels) */
body.ksji-body-knights-prayer .resource-detail-page--knights-prayer {
  background-color: #fff;
}

body.ksji-body-knights-prayer .resource-detail-page--knights-prayer .event-card-four {
  background-color: #fff;
}

body.ksji-body-knights-prayer .resource-detail-page--knights-prayer .event-card-four__date {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 77, 0.12);
}

/* Knights Prayer resource — uncropped illustration in normal event-card column (not full-bleed) */
.resource-detail-page.resource-detail-page--knights-prayer .event-card-four__image {
  align-self: flex-start;
  overflow: visible;
}

.resource-detail-page.resource-detail-page--knights-prayer .event-card-four__image img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
}

.ksji-prayer-modal .ksji-odes-modal__header {
  background: var(--cleenhearts-white, #fff) !important;
  color: var(--cleenhearts-base, #00004d);
  border-bottom: 1px solid rgba(0, 0, 77, 0.08);
}

.ksji-prayer-modal .ksji-odes-modal__eyebrow {
  color: var(--cleenhearts-base, #00004d);
  opacity: 0.82;
}

.ksji-prayer-modal .ksji-odes-modal__title {
  color: var(--cleenhearts-base, #00004d) !important;
}

.ksji-prayer-modal .ksji-odes-modal__body,
.ksji-prayer-modal .ksji-prayer-modal__body {
  background: var(--cleenhearts-white, #fff) !important;
}

/* Footer news: index-2 `blog-two` carousel — layout tweaks only (theme owns .blog-card-two) */
.latest-news-strip.latest-news-strip--blog-two {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(35, 25, 20, 0.07);
}

.latest-news-strip--blog-two .blog-two__carousel .owl-stage {
  display: flex;
}

.latest-news-strip--blog-two .blog-two__carousel .owl-item {
  display: flex;
  height: auto;
}

.latest-news-strip--blog-two .blog-card-two {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.latest-news-strip--blog-two .blog-card-two__image {
  flex: 0 0 auto;
}

.latest-news-strip--blog-two .blog-card-two__image__link {
  min-height: 220px;
}

.latest-news-strip--blog-two .blog-card-two__image__link img {
  width: 100%;
  min-height: 220px;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.latest-news-strip--blog-two .blog-card-two__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.latest-news-strip--blog-two .blog-card-two__text {
  text-transform: none;
  flex: 1 1 auto;
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.latest-news-strip--blog-two .blog-card-two__title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.latest-news-strip--blog-two .blog-card-two__link {
  margin-top: auto;
}

/* Latest news carousel: month label — readable band (matches subscribe / site gold + navy) */
.latest-news-strip--blog-two .blog-card-two__date {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 77, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 77, 0.08);
}

.latest-news-strip--blog-two .blog-card-two__date__month {
  background-color: #f4b040;
  color: var(--cleenhearts-base, #00004d);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-radius: 14px;
  margin-top: 6px;
}

.latest-news-strip--blog-two .blog-card-two:hover .blog-card-two__date__month {
  background-color: var(--cleenhearts-base, #00004d);
  color: #f4b040;
}

@media (max-width: 767px) {
  .latest-news-strip--blog-two .blog-two__carousel .owl-dots {
    margin-top: 2rem !important;
  }

  .latest-news-strip--blog-two .blog-card-two__date__month {
    margin-top: 0;
    padding: 8px 14px;
    border-radius: 12px;
  }
}

/* --- Video gallery (video-gallery.php) --- */
.ksji-video-gallery-page__container {
  max-width: min(100%, 88rem);
}

@media (min-width: 1400px) {
  .ksji-video-gallery-page__container {
    max-width: min(100%, 96rem);
  }
}

.ksji-video-gallery-page__intro {
  max-width: 48rem;
  color: rgba(35, 25, 20, 0.72);
  line-height: 1.65;
}

.ksji-video-gallery-page--single .ksji-video-gallery-page__intro {
  max-width: 52rem;
}

.ksji-video-gallery-page--single .row.gutter-y-30 > [class*="col-"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.ksji-video-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cleenhearts-white, #fff);
  box-shadow: 0 12px 40px rgba(0, 0, 77, 0.08);
  border: 1px solid rgba(0, 0, 77, 0.06);
  display: flex;
  flex-direction: column;
}

.ksji-video-card__media {
  background: rgba(0, 0, 77, 0.07);
}

.ksji-video-card__frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.ksji-video-card__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ksji-video-card__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  vertical-align: middle;
  background: #0d0d12;
}

.ksji-video-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  flex: 1 1 auto;
}

.ksji-video-card__title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--cleenhearts-base, #00004d);
}

.ksji-video-card__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(35, 25, 20, 0.68);
  word-break: break-word;
}

/* Exec / leadership: stacked faq images (same full-width block as theme .faq-one__image) */
.ksji-faq-one-gallery .faq-one__image + .faq-one__image {
  margin-top: 1.25rem;
}

/* Homepage — stat strip: below hero in normal flow (not overlapping slider) */
.ksji-about-info-strip.about-info--home-three {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  z-index: 1;
  background-color: var(--cleenhearts-white, #fff);
  padding-top: 48px;
  padding-bottom: 40px;
}

@media (min-width: 1200px) {
  .ksji-about-info-strip.about-info--home-three {
    padding-top: 56px;
    padding-bottom: 48px;
  }
}

@media (max-width: 767px) {
  .ksji-about-info-strip.about-info--home-three {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}

@media (max-width: 575px) {
  .ksji-about-info-strip.about-info--home-three {
    padding-top: 32px;
    padding-bottom: 28px;
  }
}

/* “Our purpose” block no longer reserves space for overlapping stats */
.about-three.ksji-about-three--after-stats {
  padding-top: 130px;
  padding-bottom: 130px;
}

@media (max-width: 767px) {
  .about-three.ksji-about-three--after-stats {
    padding: 110px 0;
  }
}

@media (max-width: 575px) {
  .about-three.ksji-about-three--after-stats {
    padding: 80px 0;
  }
}

/* Homepage — stat strip: icon left, text right, bright icon discs */

.ksji-about-info-strip.about-info--home-three .about-info__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 10px 14px 10px 10px;
  border: none;
  box-shadow: none;
}

.ksji-about-info-strip.about-info--home-three .about-info__item:hover {
  border: none;
  box-shadow: none;
}

.ksji-about-info-strip.about-info--home-three .about-info__content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px 12px 4px;
  border-radius: 18px 18px 18px 10px;
  margin-top: 0;
}

@media (min-width: 1200px) {
  .ksji-about-info-strip.about-info--home-three .about-info__content {
    padding: 12px 18px 14px 6px;
    border-radius: 22px 22px 22px 12px;
  }
}

.ksji-about-info-strip.about-info--home-three .about-info__icon,
.ksji-about-info-strip.about-info--home-three .about-info__icon--secondary {
  float: none;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin: 0;
  margin-left: 4px;
  font-size: 26px;
  position: relative;
  z-index: 3;
}

.ksji-about-info-strip.about-info--home-three .about-info__icon span,
.ksji-about-info-strip.about-info--home-three .about-info__icon--secondary span {
  font-size: 24px;
}

.ksji-about-info-strip.about-info--home-three .about-info__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
  padding-bottom: 0;
  letter-spacing: 0.02em;
}

.ksji-about-info-strip.about-info--home-three .ksji-about-info-strip__complement {
  font-family: var(--cleenhearts-font, "DM Sans", sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.01em;
}

/* Per-card colors: 1 — Faith, 2 — Hope, 3 — Charity, 4 — Fraternity */
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(1) .about-info__item {
  background: linear-gradient(180deg, rgba(255, 191, 0, 0.14) 0%, rgba(255, 255, 255, 0.97) 100%);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(1) .about-info__content {
  background-image: none;
  mix-blend-mode: normal;
  background-color: rgba(255, 191, 0, 0.12);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(1) .about-info__title {
  color: rgba(70, 52, 0, 0.92);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(1) .ksji-about-info-strip__complement {
  color: rgba(100, 75, 5, 0.88);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(1) .about-info__icon {
  background-color: #ffbf00;
  box-shadow: 0 4px 14px rgba(255, 191, 0, 0.55);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(1) .about-info__icon span {
  color: #1a0f4d;
}

.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(2) .about-info__item {
  background: linear-gradient(180deg, rgba(30, 120, 80, 0.12) 0%, rgba(255, 255, 255, 0.97) 100%);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(2) .about-info__content {
  background-image: none;
  mix-blend-mode: normal;
  background-color: rgba(30, 120, 80, 0.1);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(2) .about-info__title {
  color: rgba(10, 70, 48, 0.92);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(2) .ksji-about-info-strip__complement {
  color: rgba(12, 90, 60, 0.88);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(2) .about-info__icon {
  background-color: #12b886;
  box-shadow: 0 4px 14px rgba(18, 184, 134, 0.45);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(2) .about-info__icon span {
  color: #fff;
}

.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(3) .about-info__item {
  background: linear-gradient(180deg, rgba(120, 35, 45, 0.1) 0%, rgba(255, 255, 255, 0.97) 100%);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(3) .about-info__content {
  background-image: none;
  mix-blend-mode: normal;
  background-color: rgba(120, 35, 45, 0.09);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(3) .about-info__title {
  color: rgba(85, 26, 35, 0.92);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(3) .ksji-about-info-strip__complement {
  color: rgba(105, 30, 42, 0.88);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(3) .about-info__icon {
  background-color: #e63946;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.45);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(3) .about-info__icon span {
  color: #fff;
}

.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(4) .about-info__item {
  background: linear-gradient(180deg, rgba(0, 0, 77, 0.07) 0%, rgba(255, 255, 255, 0.95) 100%);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(4) .about-info__content {
  background-image: none;
  mix-blend-mode: normal;
  background-color: rgba(0, 0, 77, 0.08);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(4) .about-info__title {
  color: rgba(0, 0, 55, 0.9);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(4) .ksji-about-info-strip__complement {
  color: rgba(0, 0, 90, 0.78);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(4) .about-info__icon {
  background-color: #3d5afe;
  box-shadow: 0 4px 14px rgba(61, 90, 254, 0.45);
}
.ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(4) .about-info__icon span {
  color: #fff;
}

.ksji-about-info-strip.about-info--home-three .about-info__item:hover .about-info__icon::after {
  opacity: 0;
  transform: scale(0);
}

@media (prefers-reduced-motion: no-preference) {
  .ksji-about-info-strip.about-info--home-three .about-info__item:hover .about-info__icon {
    transform: scale(1.06);
  }

  .ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(1) .about-info__item:hover .about-info__icon span {
    color: #0d0626;
  }

  .ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(2) .about-info__item:hover .about-info__icon span,
  .ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(3) .about-info__item:hover .about-info__icon span,
  .ksji-about-info-strip.about-info--home-three .col-xl-3:nth-child(4) .about-info__item:hover .about-info__icon span {
    color: #fff;
  }
}

/* "Called to love and serve" block (help-people-cta.php) — smaller overlapping circle photos */
@media (min-width: 1200px) {
  .ksji-help-people .help-people__images {
    width: 44%;
    height: calc(100% - 300px);
  }
}

.ksji-help-people .help-people__images__inner {
  gap: 22px;
  padding: 12px;
}

.ksji-help-people .help-people__images__inner img {
  width: 280px;
  height: 280px;
}

@media (max-width: 991px) {
  .ksji-help-people .help-people__images__inner img {
    width: 248px;
    height: 248px;
  }
}

@media (max-width: 767px) {
  .ksji-help-people .help-people__images__inner img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 412px) {
  .ksji-help-people .help-people__images__inner img {
    width: 185px;
    height: 185px;
  }
}

@media (max-width: 360px) {
  .ksji-help-people .help-people__images__inner img {
    width: 170px;
    height: 170px;
  }
}

/* Partner logo strip — Archdiocese of Toronto + KSJI Commandery 710 (not stock square “brands”) */
.ksji-partner-logos .client-carousel__item__hover-img {
  display: none;
}

.ksji-partner-logos .client-carousel__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  width: auto !important;
  height: auto !important;
}

.ksji-partner-logos .client-carousel__item img.client-carousel__item__img {
  position: relative;
  width: auto !important;
  height: auto !important;
  max-height: 56px;
  max-width: min(280px, 42vw);
  object-fit: contain;
  object-position: center center;
}

/* Keep partner logo scroller static: no hover swap/fade/animation */
.ksji-partner-logos .client-carousel__item,
.ksji-partner-logos .client-carousel__item img {
  transition: none !important;
}

.ksji-partner-logos .client-carousel__item:hover .client-carousel__item__hover-img {
  opacity: 0 !important;
}

@media (max-width: 767px) {
  .ksji-partner-logos .client-carousel__item,
  .ksji-partner-logos .client-carousel__item img.client-carousel__item__img {
    width: auto !important;
    height: auto !important;
  }

  .ksji-partner-logos .client-carousel__item img.client-carousel__item__img {
    max-height: 44px;
    max-width: min(220px, 46vw);
  }
}

@media (max-width: 375px) {
  .ksji-partner-logos .client-carousel__item img.client-carousel__item__img {
    max-height: 38px;
    max-width: min(190px, 48vw);
  }
}
