body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.bg-primary { background-color: #1a2b3c !important; }
.bg-secondary { background-color: #f8f5f0 !important; }
.bg-dark { background-color: #2c3e50 !important; }
.bg-tone { background-color: #e9eef2 !important; }
.text-default { color: #555 !important; }
.accent-color { color: #c9a77d !important; }
.accent-background-color { background-color: #c9a77d !important; }

.btn-outline-accent {
  border: 2px solid #c9a77d;
  color: #c9a77d;
  background: transparent;
  font-weight: 600;
}

.btn-outline-accent:hover {
  background: #c9a77d;
  color: #fff;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .landing-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.navbar-close {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    padding: 4.5rem 1.25rem 1.5rem;
    background: rgba(26, 43, 60, 0.98);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 12px 0 24px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
  }

  .navbar-collapse.show {
    transform: translateX(0);
  }

  .navbar-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .navbar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1020;
  }

  .navbar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.overlay-strong::before {
  background: rgba(0, 0, 0, 0.7);
}

.overlay-content {
  position: relative;
  z-index: 2;
}

.header-westport {
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
}

.landing-hero-bg {
  background-image: url('../imgs/bible.jpeg');
}

.events-hero {
  overflow: hidden;
}

.contact-hero-split {
  background: url('../imgs/contact_us/background.jpg') center/cover no-repeat;
  padding: 3.5rem 0;
}

.contact-hero-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.contact-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-hero-content .header-heading,
.contact-hero-content .header-subheading {
  color: #b0a8b9;
}

.hero-scroll,
.event-scroll {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

.hero-scroll img,
.event-scroll img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.hero-nav,
.event-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 43, 60, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.hero-nav:hover,
.hero-nav:focus,
.event-nav:hover,
.event-nav:focus {
  background: rgba(26, 43, 60, 0.95);
  outline: none;
}

.hero-nav-prev,
.event-nav-prev {
  left: 1rem;
}

.hero-nav-next,
.event-nav-next {
  right: 1rem;
}

.hero-nav svg {
  width: 20px;
  height: 20px;
}

.landing-participate-bg {
  background-image: url('https://images.unsplash.com/photo-1526994428133-7c20f6b7c0e9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

.header-heading {
  font-size: 4rem;
  color: whitelack;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-subheading {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: -0.5rem;
}

.block-wrapper {
  padding: 4rem 0;
}

.block-icon-md {
  font-size: 3.5rem;
  color: #c9a77d;
}

.footer {
  background-color: #1a2b3c;
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-heading {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-main-menu .list-mr-4 {
  margin-right: 2rem;
}

.event-list-date {
  position: absolute;
  top: 0;
  left: 0;
  background: #c9a77d;
  color: white;
  padding: 0.5rem 0.8rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}

.event-list-date-day {
  font-size: 1.8rem;
  font-weight: 700;
}

.upcoming-events-grid.is-scrollable {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  scroll-padding-left: 0.5rem;
  scroll-padding-right: 0.5rem;
}

.upcoming-events-grid.is-scrollable .upcoming-event-card {
  flex: 0 0 320px;
  max-width: 320px;
  scroll-snap-align: start;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.events-upcoming-bg {
  background-color: #1a2b3c;
  background-image: url('../imgs/events/event-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

.landing-event-body {
  background-color: #0D1218;
}

.weight-light {
  font-weight: 300;
}

.landing-news-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  body {
    overflow-x: hidden;
  }

  .header-heading {
    font-size: 3rem;
  }

  .header-subheading {
    font-size: 1.4rem;
  }

  .block-wrapper {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .header-westport {
    min-height: 60vh;
  }

  .contact-hero-split {
    padding: 2.5rem 0;
  }

  .contact-hero-content {
    text-align: center;
  }

  .header-heading {
    font-size: 2.4rem;
  }

  .header-subheading {
    font-size: 1.2rem;
  }

  .landing-news-image {
    min-height: 260px;
  }

  .landing-news-image {
    display: none;
  }

  .upcoming-events-grid.is-scrollable .upcoming-event-card {
    flex: 0 0 260px;
    max-width: 260px;
  }

  .navbar .btn {
    margin-top: 0.5rem;
  }
}

@media (max-width: 576px) {
  .header-heading {
    font-size: 2rem;
  }

  .header-subheading {
    font-size: 1rem;
  }

  .block-wrapper {
    padding: 2.5rem 0;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.95) 55%), #000;
  z-index: 9999;
}

.page-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 36px 36px;
  opacity: 0.35;
}

.page-loader.is-visible {
  display: flex;
}

.loader {
  width: 54px;
  height: 54px;
  display: inline-block;
  position: relative;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-right-color: rgba(255, 255, 255, 0.7);
  animation: ringSpin 0.8s linear infinite;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.loader::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(255, 255, 255, 0.9);
  border-left-color: rgba(255, 255, 255, 0.5);
  animation: ringSpinReverse 1.1s linear infinite;
  will-change: transform;
}

@keyframes ringSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ringSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
