:root {
  --bs-primary: #1f4e9c;
  --bs-primary-rgb: 31, 78, 156;
  --bs-link-color: #1f4e9c;
  --bs-link-hover-color: #163a75;
  --mt-blue: #1f4e9c;
  --mt-blue-dark: #163a75;
  --mt-green: #3d8b3d;
  --mt-green-dark: #2f6d2f;
  --mt-soft: #eef3fa;
  --bs-body-font-family: "Roboto Slab", Georgia, serif;
  --mt-heading-font: "Roboto Slab", Georgia, serif;
}
body { color: #3b3b3b; background: #fff; }
h1, h2, h3, h4, h5 { color: var(--mt-blue-dark); font-family: var(--mt-heading-font); font-weight: 700; }
a { text-decoration: none; }
.btn-primary { --bs-btn-bg: var(--mt-blue); --bs-btn-border-color: var(--mt-blue); --bs-btn-hover-bg: var(--mt-blue-dark); --bs-btn-hover-border-color: var(--mt-blue-dark); --bs-btn-active-bg: var(--mt-blue-dark); --bs-btn-disabled-bg: var(--mt-blue); border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; padding: .65rem 1.6rem; }
.btn-success { --bs-btn-bg: var(--mt-green-dark); --bs-btn-border-color: var(--mt-green-dark); --bs-btn-hover-bg: #245a24; --bs-btn-hover-border-color: #245a24; border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; padding: .65rem 1.6rem; }
.skip-link { position: absolute; left: -999px; } .skip-link:focus { left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* toolbar */
.toolbar { background: var(--mt-blue); color: #fff; font-size: .9rem; }
.toolbar a { color: #fff; } .toolbar a:hover { text-decoration: underline; }
/* announcement marquee: scrolls right to left, pauses on hover/focus */
.notice-marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.notice-track { display: inline-block; padding-left: 100%; animation: notice-scroll 28s linear infinite; }
.notice-marquee:hover .notice-track, .notice-marquee:focus-within .notice-track { animation-play-state: paused; }
@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.toolbar-links { flex: none; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .notice-marquee { white-space: normal; } .notice-track { animation: none !important; padding-left: 0; } }
.toolbar .sep { color: var(--mt-green); padding: 0 .35rem; }

/* header and nav */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 1030; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--mt-blue-dark); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-img { height: 46px; width: auto; max-width: min(260px, 62vw); object-fit: contain; }
.navbar .nav-link { color: var(--mt-blue-dark); font-weight: 500; padding: 1.4rem .9rem; }
.navbar .nav-link:hover, .navbar .nav-link.active, .navbar .dropdown-toggle.show { color: var(--mt-green-dark); }
.dropdown-menu { border: 0; border-top: 3px solid var(--mt-green); border-radius: 0; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.dropdown-item { padding: .55rem 1.2rem; } .dropdown-item:hover, .dropdown-item:focus { background: var(--mt-soft); color: var(--mt-blue); }
@media (min-width: 1200px) { .navbar .dropdown-menu { margin-top: 0; } }
@media (max-width: 991.98px) { .navbar .nav-link { padding: .75rem 0; border-bottom: 1px solid #eee; } .dropdown-menu { box-shadow: none; border-top: 0; padding-left: 1rem; } }

/* hero */
.hero .carousel-item { height: 420px; background: linear-gradient(120deg, #1f4e9c 0%, #2e6fb8 55%, #3d8b3d 100%); }
.hero .carousel-item img { height: 100%; width: 100%; object-fit: cover; }
.hero-title { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 1rem; pointer-events: none; }
.hero-title span { font-family: var(--mt-heading-font); background: rgba(255,255,255,.88); color: var(--mt-blue-dark); font-weight: 800; font-size: clamp(1.4rem, 4.5vw, 2.8rem); text-align: center; padding: .9rem 1.6rem; border-radius: 6px; text-transform: uppercase; }
@media (max-width: 575.98px) { .hero .carousel-item { height: 230px; } }

/* sections */
.section { padding: 4rem 0; } .section-soft { background: var(--mt-soft); }
.section-title { text-align: center; margin-bottom: 2.2rem; position: relative; padding-bottom: .9rem; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 60px; height: 3px; background: var(--mt-green); transform: translateX(-50%); }
.about-photo { aspect-ratio: 4/3; background: linear-gradient(135deg, #dbe7f7, #e6f2e3); border-radius: 4px; display: grid; place-items: center; color: var(--mt-blue); }
.nav-tabs-about { flex-wrap: wrap; } .nav-tabs-about .nav-link { padding: .5rem .65rem; font-size: .95rem; white-space: nowrap; }
/* All panes share one grid cell, so the block is as tall as the longest tab and nothing below it moves when switching. */
.tab-content-stable { display: grid; }
.tab-content-stable > .tab-pane { display: block; grid-area: 1 / 1; visibility: hidden; }
.tab-content-stable > .tab-pane.active { visibility: visible; }
.tab-photo { float: left; width: 150px; max-width: 40%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin: 0 1rem .5rem 0; }
.tab-body::after { content: ""; display: block; clear: both; }
.tab-person { margin-top: .5rem; } .tab-person span { color: var(--mt-green); }
.nav-tabs-about .nav-link { color: var(--mt-blue); border: 0; border-bottom: 2px solid #cfd8e6; border-radius: 0; font-weight: 500; }
.nav-tabs-about .nav-link.active { background: var(--mt-blue); color: #fff; border-color: var(--mt-blue); }
.blue-block { background: var(--mt-blue); color: #fff; } .blue-block h2, .blue-block h3, .blue-block h4 { color: #fff; }
.news-item { display: flex; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; }
.news-item:hover { color: #cfe6cf; } .news-item small { color: rgba(255,255,255,.7); }
.thumb { width: 72px; height: 56px; flex: none; border-radius: 3px; object-fit: cover; background: linear-gradient(135deg, #5d86c6, #6fb26f); }
.card-ph { position: relative; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, #dbe7f7, #e0efdd); display: grid; place-items: center; color: #7b93b8; font-size: 2rem; }
.card-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card { border: 0; box-shadow: 0 3px 14px rgba(0,0,0,.09); overflow: hidden; height: 100%; }
.event-card .card-body { padding: 1rem 1.1rem; } .event-card h3 { font-size: 1.05rem; margin: 0; }
.event-date { color: var(--mt-green-dark); font-size: .85rem; }
.cta-band { background: var(--mt-blue); color: #fff; padding: 2.4rem 0; } .cta-band h2 { color: #fff; margin: 0; font-size: 1.7rem; }
.btn-light-outline { border: 2px solid #fff; color: #fff; border-radius: 2px; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; padding: .6rem 1.5rem; } .btn-light-outline:hover { background: #fff; color: var(--mt-blue); }

/* breadcrumb banner */
.page-banner { background: linear-gradient(120deg, rgba(31,78,156,.95), rgba(61,139,61,.9)); color: #fff; padding: 2.6rem 0; }
.page-banner h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 .35rem; }
.page-banner .breadcrumb { margin: 0; --bs-breadcrumb-divider-color: #cfe0f5; --bs-breadcrumb-item-active-color: #fff; } .page-banner .breadcrumb a { color: #fff; }
.prose { line-height: 1.85; text-align: justify; } .prose h4 { margin: 1.4rem 0 .7rem; } .prose p { margin-bottom: 1rem; } .prose ul, .prose ol { padding-left: 1.4rem; }
.side-nav a { display: block; padding: .65rem 1rem; border-left: 3px solid transparent; color: var(--mt-blue-dark); border-bottom: 1px solid #eee; }
.side-nav a:hover, .side-nav a.active { background: var(--mt-soft); border-left-color: var(--mt-green); color: var(--mt-blue); font-weight: 500; }

/* footer */
.site-footer { background: #e7eaed; padding-top: 3.5rem; } .site-footer h5 { margin-bottom: 1.1rem; }
.site-footer a { color: #3b3b3b; } .site-footer a:hover { color: var(--mt-blue); }
.site-footer li { margin-bottom: .45rem; } .site-footer i { color: var(--mt-green); margin-right: .55rem; }
.copyright { background: #111; color: #ccc; text-align: center; padding: 1rem; margin-top: 2.5rem; font-size: .9rem; }
.wa-float { position: fixed; right: 16px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 1040; } .wa-float:hover { color: #fff; transform: scale(1.06); }
.form-label { font-weight: 500; } .form-section { border-left: 4px solid var(--mt-green); padding-left: .9rem; margin: 2rem 0 1rem; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 1200px) { .navbar .nav-link, .navbar .btn { white-space: nowrap; } .navbar .nav-link { padding-left: .7rem; padding-right: .7rem; } }

/* No outline box after mouse clicks on the menu; keyboard users still get a visible underline. */
.navbar .nav-link:focus, .navbar .nav-link.show:focus, .navbar .nav-link:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.navbar .nav-link:focus-visible { outline: none; box-shadow: none; color: var(--mt-green-dark); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.navbar-toggler:focus { box-shadow: none; }

/* ---- Gallery: filter bar, photo grid, lightbox ---- */
.gallery-toolbar { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.gf-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.1rem; border: 2px solid var(--mt-blue); border-radius: 999px; background: #fff; color: var(--mt-blue);
  font: 500 .92rem/1.2 var(--mt-heading-font); cursor: pointer; transition: background-color .18s, color .18s, box-shadow .18s; }
.gf-btn:hover { background: var(--mt-soft); }
.gf-btn:focus-visible { outline: 3px solid rgba(31,78,156,.35); outline-offset: 2px; }
.gf-btn.is-active { background: var(--mt-blue); color: #fff; box-shadow: 0 4px 12px rgba(31,78,156,.25); }
.gf-count { min-width: 1.5rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(31,78,156,.12); font-size: .75rem; text-align: center; }
.gf-btn.is-active .gf-count { background: rgba(255,255,255,.25); }
.gallery-status { margin: 0; font-size: .85rem; color: #6b7280; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dbe7f7, #e0efdd); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.07); }
.g-item:focus-visible { outline: 3px solid var(--mt-green); outline-offset: 2px; }
.g-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: .85rem; color: #fff;
  background: linear-gradient(to top, rgba(7,30,70,.82) 0%, rgba(7,30,70,.25) 45%, rgba(7,30,70,0) 70%); opacity: 0; transition: opacity .25s ease; }
.g-item:hover .g-overlay, .g-item:focus-visible .g-overlay { opacity: 1; }
.g-overlay .bi { position: absolute; top: .75rem; right: .75rem; font-size: 1rem; background: rgba(255,255,255,.2); border-radius: 50%; padding: .45rem; line-height: 1; }
.g-title { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.g-cat { font-size: .75rem; opacity: .85; }
@media (hover: none) { .g-overlay { opacity: 1; background: linear-gradient(to top, rgba(7,30,70,.7) 0%, rgba(7,30,70,0) 45%); } .g-overlay .bi { display: none; } .g-cat { display: none; } }
@media (max-width: 575.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .g-title { font-size: .8rem; } .gf-btn { padding: .4rem .85rem; font-size: .85rem; } }

.lb-content { position: relative; background: #0b1623; border: 0; border-radius: 8px; padding: 1rem 3.5rem; }
.lb-figure { margin: 0; text-align: center; }
.lb-figure img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 4px; }
.lb-figure figcaption { display: flex; flex-direction: column; gap: .15rem; margin-top: .75rem; color: #fff; font-weight: 500; }
.lb-figure small { color: rgba(255,255,255,.65); font-weight: 400; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background-color .18s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: .6rem; right: .6rem; z-index: 2; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .6rem; } .lb-next { right: .6rem; }
.lb-nav[hidden] { display: none; }
@media (max-width: 575.98px) { .lb-content { padding: 2.75rem .5rem 1rem; } .lb-nav { top: auto; bottom: .75rem; transform: none; } .lb-figure figcaption { padding: 0 3rem; } }
@media (prefers-reduced-motion: reduce) { .g-item img, .g-overlay, .gf-btn { transition: none; } .g-item:hover img { transform: none; } }

/* ---- Captcha ---- */
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.captcha-img { border: 1px solid #d5dbe3; border-radius: 4px; background: #f4f7fa; max-width: 100%; height: auto; }
.captcha-input { max-width: 190px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.captcha-box .form-text { margin-top: .4rem; }

/* several announcements scroll one after another */
.notice-item { display: inline-block; margin-right: 3.5rem; }
.notice-item a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Tables inside page text: header cells stand out whatever the editor kept (its header row is plain <th> cells). */
.prose table th { background: var(--mt-soft); color: var(--mt-blue-dark); font-weight: 700; }
.prose table th, .prose table td { padding: .6rem .75rem; vertical-align: middle; }
.prose .table-responsive { margin-bottom: 1.25rem; }
/* Page text is justified; inside narrow table cells that stretches the words apart, so tables stay left-aligned. */
.prose table th, .prose table td { text-align: left; }

/* Error pages (404, 403, ...) */
.error-page { padding-top: 4rem; padding-bottom: 4rem; }
.error-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: .04em; background: linear-gradient(135deg, var(--mt-blue), var(--mt-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-links { max-width: 36rem; padding: 1.25rem 1.5rem; background: #f4f7fb; border-radius: 6px; }
.error-links a { color: var(--mt-blue); text-decoration: none; } .error-links a:hover { text-decoration: underline; }
.error-page .btn-outline-primary { --bs-btn-color: var(--mt-blue); --bs-btn-border-color: var(--mt-blue); --bs-btn-hover-bg: var(--mt-blue); --bs-btn-hover-border-color: var(--mt-blue); border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; padding: .65rem 1.6rem; }

/* The top bar shows Login / My Account / Logout; Logout is a button styled like its neighbours' links. */
.toolbar-links .toolbar-link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; } .toolbar-links .toolbar-link-btn:hover { text-decoration: underline; }

/* My Account dropdown in the top bar: the bar's links are white, the menu is a normal light panel. */
.toolbar .dropdown-menu { font-size: .92rem; margin-top: .5rem; } .toolbar .dropdown-menu a, .toolbar .dropdown-menu button { color: #212529; } .toolbar .dropdown-menu a:hover { text-decoration: none; }

.toolbar { position: relative; z-index: 1040; }   /* above the sticky header, so the My Account dropdown is not hidden behind it */
@media (max-width: 575px) { .toolbar-links { white-space: normal; text-align: right; } }   /* let the top-bar links wrap on phones instead of touching the edge */
