html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  min-height: 100%;
}

html::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

body {
  background: #f8f9fb;
  color: #202124;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

:root {
  --page-section-space: var(--page-section-space-mobile, 32px);
  --page-block-space: var(--page-block-space-mobile, 24px);
  --page-heading-padding: var(--page-heading-padding-mobile, 24px);
  --page-card-gap: var(--page-card-gap-mobile, 24px);
}

.site-header {
  position: relative;
  z-index: 1020;
  background: var(--regular-menu-container-background, #fff);
  border-bottom: 1px solid #e0e0e0;
}

.logo-section {
  background: var(--regular-logo-container-background, #fff);
  border-bottom: 1px solid #e0e0e0;
  padding: 0.2rem 0;
}

.site-footer .footer-copyright {
  font-size: 0.98rem;
}

.navbar {
  background: var(--regular-navbar-bg, transparent) !important;
}

.header-logo {
  width: var(--site-logo-width, 320px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: var(--site-logo-max-height, 320px);
  display: block;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.header-logo-overlay-mobile {
  display: none;
}

.menu-links {
  gap: 1.2rem;
  list-style: none;
}

.menu-links .nav-link {
  color: var(--regular-menu-text-color, #333333) !important;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 0 !important;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.menu-links .nav-link:hover {
  color: #8a6b11 !important;
  border-bottom-color: #8a6b11;
}

.menu-links .nav-link.active {
  color: #8a6b11 !important;
  border-bottom-color: #8a6b11;
  font-weight: 600;
}

.menu-dropdown {
  position: relative;
  padding-bottom: 4px;
}

/* Keep regular desktop dropdowns fully visible (no clipping by parent containers). */
.site-header .navbar,
.site-header .container-fluid,
.site-header .navbar-collapse,
.site-header .menu-links,
.site-header .menu-dropdown {
  overflow: visible !important;
}

.menu-submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 1400;
  min-width: 220px;
  margin-top: 0;
  border: 1px solid #d7dce5;
  border-radius: 0.65rem;
  box-shadow: 0 10px 24px rgba(22, 33, 52, 0.14);
  overflow: hidden;
}

.menu-dropdown:hover > .menu-submenu,
.menu-dropdown:focus-within > .menu-submenu,
.menu-dropdown.is-open > .menu-submenu {
  display: block;
}

.menu-submenu .dropdown-item {
  font-size: 1rem;
  font-weight: 500;
  color: #253247;
  padding: 0.5rem 0.9rem;
}

.menu-submenu .dropdown-item:hover,
.menu-submenu .dropdown-item.active {
  background: #f0f4fb;
  color: #1f4b8d;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-login-link {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d4d9e2;
  background: #fff;
  color: #173f7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.6rem;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-login-link svg {
  width: 24px;
  height: 24px;
}

.header-login-link:hover {
  color: #fff;
  background: #1f4b8d;
  border-color: #1f4b8d;
  transform: translateY(-1px);
}

.header-login-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(31, 75, 141, 0.16);
}

.search-wrap {
  position: relative;
  width: 225px;
}

.mobile-menu-toggle,
.mobile-menu-panel {
  display: none;
}

.search-input {
  border: 1px solid #d4d9e2;
  border-radius: 999px;
  padding: 0.62rem 1rem 0.62rem 2.85rem;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: #1f4b8d;
  box-shadow: 0 0 0 0.18rem rgba(31, 75, 141, 0.16);
}

.btn-search {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #5f6b7a;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-search:hover {
  color: #1f4b8d;
  background: rgba(31, 75, 141, 0.06);
}

.btn-search:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(31, 75, 141, 0.16);
}

mark.search-hit {
  background: #ffe08a;
  color: inherit;
  padding: 0 0.08em;
  border-radius: 0.2em;
  box-shadow: inset 0 -1px 0 rgba(138, 107, 17, 0.35);
}

@media (min-width: 992px) {
  body.menu-overlay-active {
    --overlay-logo-progress: 0;
    --overlay-menu-hide-progress: 0;
    --overlay-menu-visibility-progress: 0;
  }

  body.menu-overlay-active .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
    transition: transform 0.28s ease, clip-path 0.24s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  }

  body.menu-overlay-active .site-header .logo-section {
    border-bottom-color: transparent;
    transition: border-color 0.28s ease;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .site-header {
    background: linear-gradient(180deg, var(--overlay-menu-gradient-top, rgba(25, 66, 121, 1)) 0%, var(--overlay-menu-gradient-bottom, rgba(25, 66, 121, 0)) 100%);
    border-bottom: none;
    box-shadow: none;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .site-header .logo-section {
    border-bottom: none;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .site-header .navbar {
    background: transparent !important;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .menu-links .nav-link {
    color: #fff !important;
    border-bottom-color: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .menu-links .nav-link:hover,
  body.menu-overlay-active:not(.menu-overlay-scrolled) .menu-links .nav-link.active {
    color: #caa55f !important;
    border-bottom-color: #caa55f;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .search-input {
    background: rgba(17, 24, 39, 0.25);
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .search-input::placeholder {
    color: rgba(255, 255, 255, 0.85);
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .btn-search {
    color: #fff;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .header-login-link {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(17, 24, 39, 0.25);
    color: #fff;
    box-shadow: none;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .header-login-link:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.95);
    color: #fff;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) main {
    padding-top: 0;
  }

  body.menu-overlay-active.menu-overlay-scrolled .site-header {
    background: var(--regular-menu-container-background, #fff);
    border-bottom-color: #e0e0e0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  body.menu-overlay-active:not(.menu-overlay-hide-on-scroll).menu-overlay-scrolled .site-header {
    clip-path: inset(0 0 calc((1 - var(--overlay-menu-visibility-progress, 1)) * 100%) 0);
  }

  /* Keep desktop dropdown fully visible when submenu is open. */
  body.menu-overlay-active.menu-dropdown-open .site-header {
    clip-path: none !important;
  }

  body.menu-overlay-active.menu-overlay-hide-on-scroll.menu-overlay-scrolled .site-header {
    clip-path: inset(0 0 0 0);
    transform: translateY(calc(var(--overlay-menu-hide-progress, 0) * -110%));
  }

  body.menu-overlay-active.menu-overlay-scrolled .site-header .logo-section {
    background: var(--regular-logo-container-background, #fff);
    border-bottom-color: #e0e0e0;
    max-height: calc((var(--site-logo-max-height, 320px) + 0.4rem) * var(--overlay-logo-progress, 1));
    opacity: var(--overlay-logo-progress, 1);
    overflow: hidden;
    transform: translateY(calc((1 - var(--overlay-logo-progress, 1)) * -18px));
    transition: max-height 0.22s ease, opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    padding-top: calc(0.2rem * var(--overlay-logo-progress, 1));
    padding-bottom: calc(0.2rem * var(--overlay-logo-progress, 1));
  }

  body.menu-overlay-active.menu-overlay-scrolled main {
    padding-top: var(--overlay-header-height, 0px);
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .logo-section {
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
  }

  /* Overlay logo in nav: hidden by default, shown only in overlay mode before scroll */
  .header-logo-overlay {
    display: none;
  }

  .nav-item-overlay-logo {
    display: none;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .nav-item-overlay-logo {
    display: flex;
    align-items: center;
    margin-left: var(--overlay-logo-menu-offset-desktop, 0px);
    margin-right: 0.5rem;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .nav-item-overlay-logo .header-logo-overlay {
    display: block;
    max-width: calc(var(--site-logo-width, 220px) * 0.55 * (var(--overlay-logo-size-scale, 100) / 100));
    max-height: calc(var(--site-logo-max-height, 80px) * 0.55 * (var(--overlay-logo-size-scale, 100) / 100));
    width: auto;
    height: auto;
  }

}

.hero {
  background: linear-gradient(120deg, #f7f3e4 0%, #fff 100%);
}

.page-section {
  padding-top: var(--page-section-space);
  padding-bottom: var(--page-section-space);
}

.page-stack {
  padding-top: 0;
}

.page-top-flush {
  padding-top: 0;
}

/* Apply configured block spacing consistently between all top-level blocks,
   including wrappers used for scroll animations. */
.page-stack > * + *,
.home-section-stack > * + * {
  margin-top: var(--page-block-space);
}

.page-block + .page-block {
  margin-top: var(--page-block-space);
}

.page-heading + .page-block {
  margin-top: var(--page-block-space);
}

.page-inner-gap {
  margin-top: var(--page-block-space);
}

.page-stack .g-4,
.home-section-stack .g-4 {
  --bs-gutter-x: var(--page-card-gap);
  --bs-gutter-y: var(--page-card-gap);
}

.page-heading {
  padding-top: var(--page-heading-padding);
  padding-bottom: var(--page-heading-padding);
}

.carousel-photo {
  height: 540px;
  object-fit: cover;
}

.section-photo {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.ministries-section-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  overflow: hidden;
}

.ministries-section-content {
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}

.ministries-section-card--with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(16, 24, 40, 0.18) 0%, rgba(16, 24, 40, 0.5) 100%), var(--ministries-section-bg-image);
  background-position: center, var(--ministries-section-bg-position, center);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

.ministries-section-card--with-image .ministries-section-content {
  margin: -0.25rem;
  margin-top: auto;
  padding: 1rem;
}

.ministries-section-card-link {
  cursor: pointer;
}

.ministries-section-link-overlay {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: inherit;
}

.page-carousel-full {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.page-carousel-full .carousel,
.page-carousel-full .carousel-inner,
.page-carousel-full .carousel-item {
  min-height: 0;
}

.page-carousel-full .carousel-inner {
  position: relative;
}

.page-carousel-full .page-carousel-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
}

.page-carousel-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}

.carousel-indicators [data-bs-target] {
  width: 0.62rem;
  height: 0.62rem;
  margin: 0 0.34rem;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-top: 0;
  border-bottom: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.28);
  text-indent: -9999px;
  opacity: 0.85;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.carousel-indicators .active {
  background-color: #fff;
  opacity: 1;
  transform: scale(1.2);
}

.carousel-indicators [data-bs-target]:hover,
.carousel-indicators [data-bs-target]:focus-visible {
  background-color: rgba(255, 255, 255, 0.75);
  opacity: 1;
}

.page-carousel-btn {
  position: static;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.page-carousel-btn:hover,
.page-carousel-btn:focus {
  background-color: rgba(0, 0, 0, 0.7);
  outline: none;
}

.page-carousel-btn .carousel-control-prev-icon,
.page-carousel-btn .carousel-control-next-icon {
  width: 1rem;
  height: 1rem;
}

.page-carousel-caption {
  left: 50%;
  right: auto;
  bottom: 2.75rem;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100% - 2rem);
  display: inline-block;
  text-align: center;
  z-index: 4;
  position: absolute;
  color: var(--page-carousel-caption-text-color, #fff);
}

.page-carousel-caption h5 {
  display: inline;
  color: inherit;
  position: relative;
  z-index: 1;
}

.page-carousel-caption--with-bg {
  position: absolute;
}

.page-carousel-caption--with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--page-carousel-caption-bg-color, #000);
  opacity: calc(var(--page-carousel-caption-bg-opacity, 50) / 100);
  z-index: 0;
}

.page-carousel-caption--no-bg::before {
  content: none;
}

.page-carousel-icon {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.page-carousel-icon-pause {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Crect x='3.5' y='2.5' width='3' height='11' rx='0.5'/%3E%3Crect x='9.5' y='2.5' width='3' height='11' rx='0.5'/%3E%3C/svg%3E");
}

.page-carousel-icon-play {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M3.5 2.5v11l10-5.5z'/%3E%3C/svg%3E");
  display: none;
}

.page-carousel-playpause[data-state="paused"] .page-carousel-icon-pause {
  display: none;
}

.page-carousel-playpause[data-state="paused"] .page-carousel-icon-play {
  display: inline-block;
}

.page-carousel-full .carousel-inner,
.page-carousel-full .carousel-item {
  aspect-ratio: 16 / 9;
}

.page-carousel-full .carousel-photo {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.local-video-section-full .local-video-player {
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  aspect-ratio: auto;
  touch-action: pan-y;
}

.local-video-section-full .youtube-video-item {
  touch-action: pan-y;
  position: relative;
}

.local-video-section-full .youtube-section-shell {
  padding: 0;
}

.local-video-section-full .youtube-embed-wrap {
  gap: 0;
}

.local-video-section-full .youtube-video-frame,
.local-video-section-full .youtube-video-item,
.local-video-section-full .youtube-video-item--no-controls {
  border-radius: 0;
}

@media (max-width: 1199px) {
  .page-carousel-full .carousel-inner,
  .page-carousel-full .carousel-item {
    aspect-ratio: 16 / 9;
  }
  .local-video-section-full .local-video-player {
    height: clamp(520px, 70vh, 720px);
  }
}

@media (max-width: 991.98px) and (orientation: portrait) {
  .page-carousel-full .carousel,
  .page-carousel-full .carousel-inner,
  .page-carousel-full .carousel-item {
    min-height: 0;
  }

  .page-carousel-full .carousel-photo {
    width: 100%;
    height: auto;
    max-height: 100dvh;
    object-fit: contain;
    object-position: center center;
  }

  .page-carousel-full .page-carousel-controls {
    right: 0.75rem;
    bottom: 0.75rem;
    gap: 0.4rem;
  }
}

.personal-card {
  max-width: 320px;
  margin: 0 auto;
}

.personal-card-photo {
  max-height: 210px;
}

.personal-card p {
  font-size: 0.92rem;
  line-height: 1.35;
}

.service-hero-image {
  max-width: 430px;
  width: 100%;
}

.donation-card {
  max-width: 560px;
  margin: 0 auto;
}

.donation-paypal-shell {
  max-width: 360px;
  margin: 0 auto;
}

.donation-paypal-rendered {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
}

.donation-paypal-rendered iframe,
.donation-paypal-rendered div,
.donation-paypal-shell iframe {
  max-width: 100% !important;
}

.donation-paypal-rendered iframe,
.donation-paypal-shell iframe {
  transform: scale(0.8);
  transform-origin: top center;
  margin-bottom: -54px;
}

.documents-list {
  max-width: 760px;
}

.documents-panel {
  padding: clamp(0.8rem, calc(var(--page-card-gap) * 0.55), 1.2rem) 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.section-surface-card {
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  padding: 1.5rem;
}

.youtube-section-shell.section-surface-card {
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  padding: 1.5rem;
}

.documents-title {
  margin-bottom: var(--page-card-gap);
}

.documents-panel.section-title-align-left .documents-title {
  text-align: left;
}

.documents-panel.section-title-align-center .documents-title {
  text-align: center;
}

.documents-panel.section-title-align-right .documents-title {
  text-align: right;
}

.documents-panel.section-content-align-left .documents-list {
  margin-left: 0;
  margin-right: auto;
}

.documents-panel.section-content-align-center .documents-list {
  margin-left: auto;
  margin-right: auto;
}

.documents-panel.section-content-align-right .documents-list {
  margin-left: auto;
  margin-right: 0;
}

.documents-list,
.youtube-content-list {
  width: min(760px, 100%);
}

.document-link {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  padding-top: clamp(0.65rem, calc(var(--page-card-gap) * 0.35), 1rem);
  padding-bottom: clamp(0.65rem, calc(var(--page-card-gap) * 0.35), 1rem);
  transition: transform 0.2s ease;
}

.documents-section .list-group-item,
.documents-section .list-group-item-action,
.documents-section .document-link {
  background-color: transparent !important;
  color: inherit !important;
}

.document-link:hover,
.document-link:focus {
  transform: translateY(-1px);
  background-color: transparent !important;
  color: inherit !important;
}

.documents-section .list-group-item-action:hover,
.documents-section .list-group-item-action:focus {
  background-color: transparent !important;
  color: inherit !important;
}

.document-icon {
  min-width: 34px;
  height: 22px;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #f1b4af;
  background: #fff5f4;
  color: #9f1d1d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  flex: 0 0 auto;
}

.document-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.document-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.document-list-item-title,
.video-list-item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
}

.documents-panel.section-content-align-center .document-link {
  justify-content: center;
  text-align: center;
}

.documents-panel.section-content-align-right .document-link {
  justify-content: flex-end;
  text-align: right;
}

.documents-panel.section-content-align-center .document-copy {
  align-items: center;
}

.documents-panel.section-content-align-right .document-copy {
  align-items: flex-end;
}

.documents-panel.section-content-align-center .document-title-row {
  justify-content: center;
}

.documents-panel.section-content-align-right .document-title-row {
  justify-content: flex-end;
}

@media (max-width: 575.98px) {
  .donation-card {
    max-width: 380px;
  }

  .donation-paypal-shell,
  .donation-paypal-rendered {
    max-width: 280px;
  }

  .donation-paypal-rendered iframe,
  .donation-paypal-shell iframe {
    transform: scale(0.72);
    margin-bottom: -76px;
  }
}

.social-networks-icons {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.social-network-link {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-network-link:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.social-network-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.youtube-section-shell {
  padding: clamp(0.8rem, calc(var(--page-card-gap) * 0.55), 1.2rem) 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.youtube-section-title {
  text-align: center;
}

.youtube-section-shell.section-title-align-left .youtube-section-title {
  text-align: left;
}

.youtube-section-shell.section-title-align-right .youtube-section-title {
  text-align: right;
}

.youtube-embed-wrap {
  display: grid;
  gap: 1rem;
}

.youtube-video-item {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.youtube-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.75rem;
  display: block;
  background: #111;
}

.youtube-video-item--no-controls {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.youtube-video-item--no-controls .youtube-video-frame {
  position: absolute;
  top: -56px;
  left: 0;
  width: 100%;
  height: calc(100% + 112px);
  aspect-ratio: auto;
  pointer-events: none;
  border-radius: 0;
}

.youtube-interaction-blocker {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
}

.youtube-mode-full .youtube-video-item {
  max-width: 100%;
}

.youtube-section-shell.section-content-align-left .youtube-video-item {
  margin-left: 0;
  margin-right: auto;
}

.youtube-section-shell.section-content-align-center .youtube-video-item {
  margin-left: auto;
  margin-right: auto;
}

.youtube-section-shell.section-content-align-right .youtube-video-item {
  margin-left: auto;
  margin-right: 0;
}

.youtube-mode-extended .youtube-video-item {
  max-width: 1000px;
}

.youtube-mode-middle .youtube-video-item {
  max-width: 760px;
}

.youtube-video-list {
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.youtube-section-shell.section-content-align-left .youtube-video-list {
  margin-left: 0;
  margin-right: auto;
}

.youtube-section-shell.section-content-align-right .youtube-video-list {
  margin-left: auto;
  margin-right: 0;
}

.youtube-video-list-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 0.65rem;
  text-decoration: none;
  color: #1f2937;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.youtube-video-list-link:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.youtube-video-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #b91c1c;
  flex: 0 0 auto;
}

.youtube-section-shell.section-content-align-center .youtube-video-list-link {
  justify-content: center;
  text-align: center;
}

.youtube-section-shell.section-content-align-right .youtube-video-list-link {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 575.98px) {
  .youtube-mode-extended .youtube-video-item,
  .youtube-mode-middle .youtube-video-item,
  .youtube-video-list {
    max-width: 100%;
  }
}

.event-photo-grid {
  display: grid;
  gap: var(--page-card-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

/* Center last gallery photo if alone in last row */
.event-photo-grid > .event-photo-item:only-child,
.event-photo-grid > .event-photo-item:last-child:nth-child(3n - 2) {
  grid-column: 2;
}

.event-photo-item {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-photo-media {
  width: 100%;
  height: 260px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: inherit !important;
  background-color: inherit !important;
  padding: 8px;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-photo-image {
  width: 98%;
  height: 98%;
  max-width: 98%;
  max-height: 98%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.event-photo-body {
  padding: 0.85rem 1rem 1rem;
  height: 94px;
  overflow: hidden;
  text-align: center;
}

.event-photo-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.event-photo-text {
  margin: 0.4rem 0 0;
  color: #475569;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.gallery-modal-content {
  background: var(--gallery-modal-bg, #fff);
  color: #181818;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: none;
  box-shadow: none;
  outline: none;
}

#galleryModal .modal-content,
#galleryModal .modal-dialog,
#galleryModal .modal-dialog-centered,
#galleryModal .modal-xl {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#galleryModal .modal-dialog {
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.28));
}

#galleryModal .modal-dialog {
  width: min(900px, calc(100vw - 1rem));
  max-width: none;
  height: min(600px, calc(100vh - 1rem));
  height: min(600px, calc(100dvh - 1rem));
  margin: 0.5rem auto;
}

.gallery-modal-content .modal-header {
  flex: 0 0 auto;
  padding: 0.25rem 0.45rem 0;
  background: var(--gallery-modal-bg, #fff);
  color: #181818;
  border-bottom: none;
}

.gallery-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(3px);
  color: #173f7a;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-modal-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.gallery-modal-close:focus-visible {
  outline: 2px solid #173f7a;
  outline-offset: 3px;
}

.gallery-modal-content .modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 0.25rem 0.25rem;
  background: var(--gallery-modal-bg, #fff);
  color: #181818;
}

#galleryCarousel,
#galleryCarousel .carousel-inner,
#galleryCarousel .carousel-item {
  height: 100%;
}

.gallery-modal-figure {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 56px;
  background: var(--gallery-modal-bg, #fff);
}

.gallery-modal-figure--no-caption {
  grid-template-rows: minmax(0, 1fr);
}

.gallery-modal-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  padding: 0.35rem 0.9rem;
}

#galleryCarousel .carousel-item.is-portrait .gallery-modal-image {
  width: 82%;
  height: 82%;
  margin: auto;
}
/* Dim modal backdrop for focus effect */
#galleryModal .modal-backdrop,
#galleryModal .modal-backdrop.show {
  background: rgba(0,0,0,0.82) !important;
}

.gallery-modal-caption {
  padding: 0.08rem 0.6rem 0.25rem;
  height: 56px;
  overflow: hidden;
}

.gallery-modal-title {
  margin: 0;
  font-size: 0.92rem;
}

.gallery-modal-description {
  margin: 0.35rem 0 0;
  color: #475569;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-modal-title:empty,
.gallery-modal-description:empty {
  display: none;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
  width: 10%;
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
  background-color: rgba(15, 23, 42, 0.65);
  border-radius: 999px;
  background-size: 60% 60%;
  width: 2.7rem;
  height: 2.7rem;
}

.contact-principal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--page-card-gap);
}

.contact-principal-card {
  position: relative;
  border: 1px solid rgba(31, 75, 141, 0.16);
  border-radius: 0.95rem;
  background: linear-gradient(155deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.1rem;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-principal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.contact-principal-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: #1f4b8d;
}

.contact-principal-icon svg {
  width: 1.24rem;
  height: 1.24rem;
  fill: currentColor;
}

.contact-principal-icon-link {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-principal-icon-link:hover,
.contact-principal-icon-link:focus-visible {
  color: #1f4b8d;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.contact-principal-label {
  margin: 0.05rem 0 0;
  color: #586272;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-weight: 700;
}

.contact-principal-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #112746;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-principal-value:hover {
  color: #1f4b8d;
  text-decoration: underline;
}

@media (min-width: 768px) {
}

@media (max-width: 767px) {
  .event-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-photo-grid > .event-photo-item:only-child,
  .event-photo-grid > .event-photo-item:last-child:nth-child(odd) {
    grid-column: 1 / span 2;
    justify-self: center;
  }

  .event-photo-media {
    height: 210px;
  }

  .contact-principal-card {
    min-height: 120px;
    padding: 0.95rem 1rem;
  }

  .contact-principal-value {
    font-size: 0.96rem;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
}

.site-footer {
  background: #1f4b8d;
  color: var(--footer-text-color, #ececec);
}

@media (min-width: 992px) {
  .site-footer .footer-sections-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(1rem, 1.8vw, 2rem);
  }

  .site-footer .footer-sections-grid > [class*='col-'] {
    flex: 1 1 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .site-footer .footer-sections-grid > .footer-logo-column {
    flex: 0 0 auto;
    width: auto;
  }
}

.site-footer .social-network-link {
  color: inherit;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}

.site-footer .social-network-link:hover {
  border-color: color-mix(in srgb, currentColor 70%, transparent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .footer-hours-column {
    padding-left: 0.9rem;
  }
}

.footer-links-list {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 14rem);
  margin-left: auto;
  margin-right: auto;
}

.footer-link-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, currentColor 15%, transparent), color-mix(in srgb, currentColor 6%, transparent));
  box-shadow: 0 6px 18px rgba(4, 13, 32, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  overflow: hidden;
}

.footer-link-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, color-mix(in srgb, currentColor 28%, transparent) 45%, transparent 70%);
  transform: translateX(-135%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.footer-link-chip:hover,
.footer-link-chip:focus-visible {
  color: inherit;
  transform: translateY(-2px) scale(1.01);
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  box-shadow: 0 12px 24px rgba(4, 13, 32, 0.3);
  background: linear-gradient(120deg, color-mix(in srgb, currentColor 22%, transparent), color-mix(in srgb, currentColor 10%, transparent));
}

.footer-link-chip:hover::after,
.footer-link-chip:focus-visible::after {
  transform: translateX(135%);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.68rem;
  text-align: left;
}

.footer-contact-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: linear-gradient(140deg, color-mix(in srgb, currentColor 24%, transparent), color-mix(in srgb, currentColor 8%, transparent));
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  box-shadow: 0 8px 18px rgba(4, 13, 32, 0.22);
}

.footer-contact-icon svg {
  width: 17px;
  height: 17px;
}

.footer-contact-icon-link {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-contact-icon-link:hover,
.footer-contact-icon-link:focus-visible {
  color: inherit;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, currentColor 62%, transparent);
  box-shadow: 0 12px 22px rgba(4, 13, 32, 0.32);
}

.footer-contact-content {
  min-width: 0;
}

.footer-contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 78%, transparent);
  margin-bottom: 0.08rem;
}

.footer-contact-value {
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .footer-contact-section {
    text-align: center !important;
  }

  .footer-contact-section .footer-contact-item {
    justify-content: center;
  }

  .footer-contact-section .footer-contact-content {
    text-align: left;
  }
}

.site-footer a,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer strong,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .footer-copyright,
.site-footer .footer-empty-state {
  color: inherit;
}

.site-footer .footer-heading-link {
  color: inherit;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: var(--footer-text-color, #ececec);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer-contact-email {
  display: inline-block;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.footer-contact-email.is-wrapped {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .footer-contact-item {
    justify-content: flex-start;
  }
}

.location-map iframe {
  width: 100%;
  min-height: 260px;
  display: block;
}

.location-map {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.service-hours-section {
  max-width: 1100px;
  margin: 0 auto;
}

.service-hour-card {
  padding: 1.25rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.9rem;
  background: #f8f9fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.service-hour-card h3 {
  color: #1f4b8d;
}

@media (max-width: 991px) {
  .site-footer a,
  .site-footer p,
  .site-footer li,
  .site-footer span,
  .site-footer strong,
  .site-footer h1,
  .site-footer h2,
  .site-footer h3,
  .site-footer h4,
  .site-footer h5,
  .site-footer h6,
  .site-footer .footer-copyright,
  .site-footer .footer-empty-state {
    color: var(--footer-text-color, #ececec);
  }

  body.menu-overlay-active .logo-section {
    border-bottom-color: transparent;
    color: var(--footer-text-color, #ececec);
  }

  .site-footer .footer-heading-link:hover,
  .site-footer .footer-heading-link:focus-visible,
  .site-footer .footer-heading-link:visited {
    color: var(--footer-text-color, #ececec);
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .site-header {
    background: linear-gradient(180deg, var(--overlay-menu-gradient-top, rgba(25, 66, 121, 1)) 0%, var(--overlay-menu-gradient-bottom, rgba(25, 66, 121, 0)) 100%);
    border-bottom: none;
    box-shadow: none;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .logo-section {
    background: transparent;
    border-bottom: none;
  }

  body.non-home-page.menu-overlay-active:not(.menu-overlay-scrolled) .logo-section {
    background: var(--regular-logo-container-background, #fff);
    border-bottom: 1px solid #e0e0e0;
  }

  body.menu-overlay-active.menu-overlay-scrolled .logo-section {
    background: var(--regular-logo-container-background, #fff);
    border-bottom: 1px solid #e0e0e0;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) main {
    padding-top: 0;
  }

  body.menu-overlay-active.menu-overlay-scrolled .site-header {
    background: var(--regular-menu-container-background, #fff);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  body.menu-overlay-active:not(.menu-overlay-hide-on-scroll).menu-overlay-scrolled .site-header {
    clip-path: inset(0 0 calc((1 - var(--overlay-menu-visibility-progress, 1)) * 100%) 0);
  }

  body.menu-overlay-active.menu-overlay-hide-on-scroll.menu-overlay-scrolled .site-header {
    clip-path: inset(0 0 0 0);
    transform: translateY(calc(var(--overlay-menu-hide-progress, 0) * -110%));
  }

  body.menu-overlay-active.menu-overlay-scrolled main {
    padding-top: var(--overlay-header-height, 0px);
  }

  body.menu-overlay-active.menu-overlay-hide-on-scroll.menu-overlay-scrolled main {
    padding-top: calc(var(--overlay-header-height, 0px) * (1 - var(--overlay-menu-hide-progress, 0)));
  }

  .site-header .container {
    position: relative;
  }

  .logo-section {
    position: relative;
    padding-left: 68px;
    padding-right: 0.5rem;
    background: linear-gradient(180deg, var(--overlay-menu-gradient-top, rgba(25, 66, 121, 1)) 0%, var(--overlay-menu-gradient-bottom, rgba(25, 66, 121, 0)) 100%);
    border-bottom: none;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .logo-link.has-overlay-logo .header-logo-normal {
    display: none;
  }

  body.menu-overlay-active:not(.menu-overlay-scrolled) .logo-link.has-overlay-logo .header-logo-overlay-mobile {
    display: block;
    width: calc(var(--site-logo-width-mobile, 220px) * 0.68 * (var(--overlay-logo-size-scale, 100) / 100));
    max-height: calc(var(--site-logo-max-height-mobile, 220px) * 0.68 * (var(--overlay-logo-size-scale, 100) / 100));
    margin-left: auto;
    margin-right: auto;
  }

  body.menu-overlay-active.menu-overlay-scrolled .logo-link.has-overlay-logo .header-logo-normal {
    display: block;
  }

  body.menu-overlay-active.menu-overlay-scrolled .logo-link.has-overlay-logo .header-logo-overlay-mobile {
    display: none;
  }

  .navbar {
    min-height: 56px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    transform: none;
    z-index: 1201;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
    color: #173f7a;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  }

  .mobile-menu-toggle:hover {
    transform: translateY(-1px);
  }

  .mobile-menu-toggle-bar {
    width: 26px;
    height: 3px;
    border-radius: 6px;
    background: #173f7a;
    transition: transform 0.28s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  body.menu-open .mobile-menu-toggle {
    background: rgba(23, 63, 122, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  body.menu-open .mobile-menu-toggle .mobile-menu-toggle-bar {
    background: #fff;
  }

  body.menu-open .mobile-menu-toggle .bar-1 {
    transform: translateY(9px) rotate(45deg);
  }

  body.menu-open .mobile-menu-toggle .bar-2 {
    opacity: 0;
  }

  body.menu-open .mobile-menu-toggle .bar-3 {
    transform: translateY(-9px) rotate(-45deg);
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid #173f7a;
    outline-offset: 3px;
  }

  .carousel-photo {
    height: 300px;
  }

  .local-video-section-full .local-video-player {
    height: 420px;
  }

  .navbar-collapse {
    display: none !important;
  }

  .search-form {
    margin-top: 0;
    width: auto;
    margin-left: auto;
  }

  .search-wrap {
    width: 210px;
  }

  .btn-search {
    width: 36px;
    height: 36px;
  }

  .search-input {
    width: 100%;
    font-size: 0.95rem;
  }

  .mobile-menu-backdrop {
    display: none;
  }

  .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    width: min(82vw, 280px) !important;
    max-width: min(82vw, 280px) !important;
    background: #1f4b8d;
    color: #fff;
    border-radius: 0 10px 10px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
  }

  .mobile-menu-panel .offcanvas-header,
  .mobile-menu-panel .offcanvas-body {
    background: #1f4b8d;
    color: #fff;
  }

  .mobile-menu-header {
    padding: 0;
  }

  .mobile-menu-body {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
  }

  .mobile-menu-search-form {
    margin: 0.35rem auto 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0;
    display: block;
    align-self: center;
    width: 100%;
    max-width: 238px;
  }

  .mobile-menu-search-form .search-wrap {
    width: 100%;
  }

  .mobile-menu-close {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    padding: 0.8rem 0.9rem 0.25rem;
    cursor: pointer;
    opacity: 0.85;
    transform: scale(0.92);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .mobile-menu-panel.show .mobile-menu-close,
  .mobile-menu-close:hover,
  .mobile-menu-close:focus-visible {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.2rem;
    padding: 0 1rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-entry {
    width: 100%;
    text-align: center;
  }

  .mobile-menu-entry-login {
    margin-bottom: 0.2rem;
  }

  .mobile-menu-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.48rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  }

  .mobile-menu-login-button svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-login-button:hover,
  .mobile-menu-login-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
  }

  .mobile-menu-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  }

  .mobile-menu-link.active {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.8);
    text-underline-offset: 5px;
  }

  .mobile-submenu-group {
    margin: -0.2rem 0 0.35rem 0;
    padding-left: 0.8rem;
    border-left: 2px solid rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .mobile-menu-sublink {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    padding: 0.2rem 0;
  }

  .mobile-menu-sublink.active,
  .mobile-menu-sublink:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .mobile-menu-social {
    margin-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .mobile-menu-social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
  }

  .mobile-menu-social-link:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  .mobile-menu-social-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-menu-social-text {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
  }

  .mobile-menu-social-empty {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
  }

  .offcanvas-backdrop.show {
    opacity: 0.28;
  }

  .header-logo {
    width: var(--site-logo-width-mobile, 220px);
    max-width: 100%;
    max-height: var(--site-logo-max-height-mobile, 220px);
  }
}

@media (max-width: 991.98px) and (orientation: portrait) {
  .mobile-menu-panel {
    height: 100dvh;
    max-height: 100dvh;
  }

  .mobile-menu-body {
    padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
  }

  .mobile-menu-search-form {
    max-width: min(92vw, 260px);
  }

  .mobile-menu-nav {
    gap: clamp(0.45rem, 1.6vh, 0.85rem);
    margin-top: clamp(0.6rem, 2vh, 1rem);
    padding: 0 0.9rem;
  }

  .mobile-menu-link {
    font-size: clamp(1.03rem, 2.7vh, 1.35rem);
  }

  .mobile-menu-sublink {
    font-size: clamp(0.9rem, 2.2vh, 1.05rem);
  }

  .mobile-menu-social {
    padding: clamp(0.8rem, 2.5vh, 1.4rem) 0;
  }
}

@media (max-width: 360px) {
  .logo-section {
    padding-top: 54px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .header-logo {
    width: min(var(--site-logo-width-mobile, 220px), calc(100vw - 1rem));
  }

  .mobile-menu-toggle {
    top: max(4px, env(safe-area-inset-top));
    left: max(4px, env(safe-area-inset-left));
  }
}

@media (min-width: 992px) {
  :root {
    --page-section-space: var(--page-section-space-desktop, 48px);
    --page-block-space: var(--page-block-space-desktop, 24px);
    --page-heading-padding: var(--page-heading-padding-desktop, 32px);
    --page-card-gap: var(--page-card-gap-desktop, 24px);
  }
}

/* Footer Logo Styles */
.footer-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-link {
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 0.8;
}


/* Scroll-in animations (per-page toggle via SitePage.enable_scroll_animations) */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.scroll-animate--left {
  transform: translateX(-48px);
}
.scroll-animate--right {
  transform: translateX(48px);
}
.scroll-animate.is-visible {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-animate.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 991.98px) and (orientation: landscape) {
  .mobile-menu-panel {
    width: min(88vw, 420px) !important;
    max-width: min(88vw, 420px) !important;
    border-radius: 0 10px 10px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
  }

  .mobile-menu-body {
    padding: 0.15rem 0.7rem 0.45rem;
    overflow-y: hidden;
  }

  .mobile-menu-close {
    padding: 0.55rem 0.85rem 0.1rem;
    font-size: 1.7rem;
  }

  .mobile-menu-search-form {
    margin-top: 0 !important;
    max-width: min(340px, 88vw);
  }

  .mobile-menu-nav {
    margin-top: 0.35rem;
    padding: 0 0.35rem;
    gap: 0.3rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 0.55rem;
  }

  .mobile-menu-entry {
    text-align: center;
  }

  .mobile-menu-link {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .mobile-submenu-group {
    margin: 0.08rem 0 0.2rem 0;
    padding-left: 0;
    border-left: 0;
    gap: 0.08rem;
  }

  .mobile-menu-sublink {
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0.08rem 0;
  }

  .mobile-menu-social {
    margin-top: 0.45rem;
    padding: 0.55rem 0;
    gap: 0.5rem;
  }

  .mobile-menu-social-link {
    width: 36px;
    height: 36px;
  }
}