@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display/static/PlayfairDisplay-MediumItalic.ttf")
    format("truetype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

/* Navbar center-brand layout and truncation for long labels */
@media (min-width: 992px) {
  .navbar .navbar-collapse {
    position: relative;
  }

  .navbar .navbar-brand-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none; /* avoid capturing hover where logo overlaps links */
  }

  .navbar .navbar-brand-centered .navbar-brand {
    pointer-events: auto; /* re-enable clicks on the brand itself */
  }
  .navbar .nav-left,
  .navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 0;
  }

  /* Page-specific additions moved from inline templates */
  /* Horizontal timeline styles */
  .timeline-horizontal .timeline-item {
    flex: 0 0 200px;
    cursor: pointer;
    padding: 10px;
  }
  .timeline-horizontal .timeline-card {
    background: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }
  .timeline-horizontal .timeline-item.active .timeline-card {
    border: 2px solid #007bff;
  }

  /* Church slider */
  .church-slider {
    max-height: 600px;
    background: #000;
  }
  .church-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
  }
  .church-slider .swiper-slide img {
    height: 100%;
    width: auto;
    object-fit: cover;
  }

  /* Vertical timeline (right column) */
  .vertical-timeline {
    position: relative;
    padding-left: 36px;
  }
  .vertical-timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e9ecef;
    border-radius: 2px;
  }
  .vertical-timeline .timeline-item {
    position: relative;
    padding: 14px 16px 14px 40px;
    margin-bottom: 18px;
    cursor: pointer;
    background: transparent;
  }
  .vertical-timeline .timeline-marker {
    position: absolute;
    left: 6px;
    top: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #e9ecef;
    box-sizing: content-box;
  }
  .vertical-timeline .timeline-item.active .timeline-marker {
    border-color: #007bff;
    background: #007bff;
  }
  .vertical-timeline .timeline-entry .timeline-year {
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
  }
  .vertical-timeline .timeline-entry .timeline-text {
    color: #555;
  }

  @media (max-width: 991px) {
    .timeline-horizontal-list {
      gap: 18px;
    }
    .timeline-item {
      flex: 0 0 140px;
    }
    .church-slider .swiper-slide {
      height: 400px;
    }
    .church-slider {
      max-height: 400px;
    }
  }
  /* Hero section: ensure consistent height across pages and responsive sizes */
  .hero-home {
    min-height: 520px;
    position: relative;
    overflow: hidden;
  }
  .hero-home .bg-cover {
    background-size: cover;
    background-position: center;
    min-height: 520px;
    height: 100%;
  }
  .hero-home,
  .hero-home .container-fluid,
  .hero-home .row,
  .hero-home .bg-cover {
    min-height: clamp(480px, 65vh, 600px);
  }
  @media (max-width: 991px) {
    .hero-home {
      min-height: 320px;
    }
    .hero-home .bg-cover {
      min-height: 320px;
      height: 320px;
    }
  }
  .navbar .nav-left {
    justify-content: flex-start;
  }

  .navbar .nav-right {
    justify-content: flex-end;
  }

  /* Prevent very long link text from pushing layout — truncate with ellipsis */
  .navbar .nav-left .nav-link,
  .navbar .nav-right .nav-link {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
}

/* Homepage styles */
#hero .custom-button {
  /* position: absolute;
  bottom: 20px;
  z-index: 2;
  width: 140px;
  height: 140px;
  padding: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: normal;
  border-radius: 0;
  background-color: rgba(var(--bs-primary-rgb), 0.5);
  border-color: transparent; */
  position: absolute;
  bottom: 40px;
  z-index: 2;
  width: 430px;
  /* height: 61px; */
  padding: 12px;
  font-weight: 200;
  line-height: 1.4;
  white-space: normal;
  border-radius: 0;
  /* background-color: rgba(var(--bs-primary-rgb), 0.75); */
  background-color: rgba(var(--bs-dark-rgb), 0.7);
  border-color: transparent;
  font-size: 1.25rem;
}

#hero .custom-button-left {
  left: 0;
}

#hero .custom-button-right {
  right: 0;
}

@media (max-width: 575.98px) {
  #hero .custom-button {
    width: 120px;
    height: 120px;
    font-size: 0.75rem;
  }
}

.hero-image-left {
  background-image: url("/assets/img/sacred-heart/sacred-heart-side.jpeg");
  background-position: center 35%;
}

.hero-image-right {
  background-image: url("/assets/img/most-blessed-sacrament/most-blessed-sacrament-front%202.webp");
  background-position: center 35%;
}

.hero-home .hero-image-left,
.hero-home .hero-image-right {
  background-position: center 35%;
}

.hero-overlay {
  max-width: 700px;
}

.hero-panel {
  display: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 42px;
  border-radius: 6px;
}

.hero-title {
  line-height: 1.5;
}

.home-volunteer {
  background: url("/assets/img/divider-img.jpg");
}

.contact-image-most-blessed {
  background: url("/assets/img/contact-bg.jpg");
}

.contact-image-sacred-heart {
  background: url("/assets/img/SacredHeadChurchwhole.jpg");
}

.home-footer {
  background: #111;
}

/* Shared page styles previously declared in templates */

.site-footer {
  background: #111;
}

.page-image-sacred-heart-exterior {
  background: url("/assets/img/sacred-heart-exterior.jpeg");
}

.page-image-img-7589 {
  background: url(https://i0.wp.com/blessedsacramenthamilton.com/wp-content/uploads/2020/03/IMG_7589.jpg?resize=146%2C195);
}

.page-image-contact-bg {
  background: url(/assets/img/contact-bg.jpg);
}

.pdf-modal-container {
  position: relative;
  padding-top: 56.25%;
}

.pdf-modal-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.initially-hidden {
  display: none;
}

.page-image-most-blessed-sacrement-outside {
  background: url("/assets/img/most-blessed-sacrement-outside.jpg");
}

.page-image-hero-bg-2 {
  background: url("/assets/img/hero-bg-2.jpg") center center;
  background-size: cover;
}

.page-image-sacrament-anointing-of-the-sick {
  background: url("/assets/img/sacrament-anointing-of-the-sick.jpeg") center
    center;
}

.page-image-sacrament-baptism {
  background: url("/assets/img/sacrament-baptism.jpg") center center;
}

.page-image-sacrament-confirmation {
  background: url("/assets/img/sacrament-confirmation.jpg") center center;
}

.page-image-sacrament-communtion {
  background: url("/assets/img/sacrament-communtion.webp") center center;
}

.page-image-sacrament-holy-order {
  background: url("/assets/img/sacrament-holy-order.jpg") center center;
}

.page-image-sacrament-of-marriage {
  background: url("/assets/img/sacrament-of-marriage.jpg") center center;
}

.page-image-sacrament-penance {
  background: url("/assets/img/sacrament-penance.jpg");
}

.page-image-sacrament-baptism-card {
  min-height: 200px;
  background: url("/assets/img/sacrament-baptism.jpg");
}

.page-image-sacrament-confirmation-card {
  min-height: 200px;
  background: url("/assets/img/sacrament-confirmation.jpg");
}

.page-image-sacrament-communtion-card {
  min-height: 200px;
  background: url("/assets/img/sacrament-communtion.webp");
}

.page-image-sacrament-anointing-of-the-sick-card {
  min-height: 200px;
  background: url("/assets/img/sacrament-anointing-of-the-sick.jpeg");
}

.page-image-sacrament-penance-card {
  min-height: 200px;
  background: url("/assets/img/sacrament-penance.jpg");
}

.page-image-sacrament-holy-order-card {
  min-height: 200px;
  background: url("/assets/img/sacrament-holy-order.jpg");
}

.page-image-sacrament-of-marriage-card {
  min-height: 200px;
  background: url("/assets/img/sacrament-of-marriage.jpg");
}

.page-image-literature-class-google-classroom-header {
  background: url("https://i0.wp.com/blessedsacramenthamilton.com/wp-content/uploads/2025/08/Literature-Class-Google-Classroom-Header.png")
    center center;
  background-size: cover;
}

.text-align-left {
  text-align: left;
}

.world-youth-day-video {
  aspect-ratio: 1.3333333333333;
}

.video-player-container {
  contain: size style;
}
