:root {
    --site-black: #111111;
    --site-black-soft: #1c1c1c;
    --site-red: #c8102e;
    --site-red-dark: #9c0c23;
    --site-cream: #f7f6f4;
    --site-text-muted: #6c7280;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1f24;
    background-color: var(--site-cream);
    background-image:
        repeating-linear-gradient(45deg, rgba(17, 17, 17, 0.02) 0, rgba(17, 17, 17, 0.02) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(-45deg, rgba(17, 17, 17, 0.02) 0, rgba(17, 17, 17, 0.02) 1px, transparent 1px, transparent 14px);
    background-attachment: fixed;
}

/* Topbar */
.site-topbar {
    background: linear-gradient(135deg, var(--site-black) 0%, var(--site-red-dark) 220%);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.site-topbar a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.site-topbar a:hover {
    color: #fff;
}

.site-topbar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    margin-left: 0.4rem;
}

.site-topbar .social-links a:hover {
    background-color: var(--site-red);
}

/* Navbar */
.site-navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 0 0 rgba(17, 17, 17, 0);
    transition: box-shadow 0.2s ease;
}

.site-navbar.is-scrolled {
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
    border-bottom-color: transparent;
}

.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: var(--site-black);
    line-height: 1.1;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
}

.site-navbar .brand-text {
    min-width: 0;
}

.brand-text-main,
.brand-text-sub {
    white-space: normal;
}

.brand-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--site-text-muted);
    letter-spacing: 0.04em;
}

.site-navbar .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-text-main {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--site-black);
    letter-spacing: 0.01em;
}

.brand-text-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--site-red);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

@media (max-width: 991.98px) {
    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-text-main {
        font-size: 0.9rem;
    }

    .brand-text-sub {
        font-size: 0.62rem;
    }
}

.site-navbar .nav-link {
    color: #2b2e35;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--site-red);
}

.site-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
}

.site-navbar .dropdown-item {
    font-weight: 600;
    color: #2b2e35;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus,
.site-navbar .dropdown-item.active {
    background-color: var(--site-red);
    color: #fff;
}

/* Secondary page hero */
.about-hero {
    background: linear-gradient(135deg, var(--site-black) 0%, var(--site-red-dark) 130%);
    padding: 5rem 0;
    color: #fff;
}

.about-hero h1 {
    font-weight: 800;
    font-size: 2.4rem;
}

/* Team cards */
.team-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0.9rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(156, 12, 35, 0.14);
}

.team-card-body {
    padding: 1.5rem;
}

.team-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(150deg, var(--site-black) 0%, var(--site-red-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 3.5rem;
}

.team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* Hero carousel */
.site-hero {
    position: relative;
}

.site-hero .carousel-item {
    height: 88vh;
    min-height: 520px;
    background-size: cover;
    background-position: center;
}

.site-hero .slide-a { background: linear-gradient(135deg, #1c1c1c 0%, #3a0d13 55%, #c8102e 130%); }
.site-hero .slide-b { background: linear-gradient(135deg, #0d0d0d 0%, #4a0f18 55%, #9c0c23 130%); }
.site-hero .slide-c { background: linear-gradient(135deg, #14141a 0%, #2b2b2b 60%, #c8102e 140%); }

.site-hero .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    display: flex;
    align-items: center;
}

.site-hero .eyebrow,
.about-hero .eyebrow,
.cta-banner .eyebrow {
    color: #fff;
    background-color: var(--site-red);
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.site-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.15;
    margin-top: 1rem;
}

.site-hero p.lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
}

.site-hero .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

.site-hero .carousel-indicators .active {
    background-color: var(--site-red);
}

.btn-accent {
    background-color: var(--site-red);
    border-color: var(--site-red);
    color: #fff;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--site-red-dark);
    border-color: var(--site-red-dark);
    color: #fff;
}

.link-accent {
    color: var(--site-red);
    text-decoration: none;
}

.link-accent:hover {
    color: var(--site-red-dark);
    text-decoration: underline;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--site-black) 0%, var(--site-red-dark) 55%, var(--site-red) 140%);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-gradient:hover {
    filter: brightness(1.12);
    color: #fff;
}

.btn-outline-accent {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
}

.btn-outline-accent:hover {
    background-color: #fff;
    color: var(--site-black);
}

/* Accordion */
.accordion {
    --bs-accordion-active-color: var(--site-red-dark);
    --bs-accordion-active-bg: rgba(200, 16, 46, 0.08);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.15);
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239c0c23'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Filter pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #e4e1dc;
    background-color: #fff;
    color: var(--site-black);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--site-red);
    color: var(--site-red);
    text-decoration: none;
}

.filter-pill.active {
    background-color: var(--site-red);
    border-color: var(--site-red);
    color: #fff;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.25);
}

@media (max-width: 575.98px) {
    .filter-pills {
        flex-wrap: nowrap;
    }

    .filter-pill {
        flex: 1 1 0;
        justify-content: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Sections */
.site-section {
    padding: 5.5rem 0;
}

.site-section-alt {
    background-color: var(--site-cream);
}

.section-label {
    color: var(--site-red);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.section-title {
    font-weight: 800;
    font-size: 2.1rem;
    margin-top: 0.4rem;
    color: var(--site-black);
    position: relative;
    padding-bottom: 0.9rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--site-red) 0%, var(--site-red-dark) 100%);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Intro */
.intro-media {
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    background: linear-gradient(150deg, var(--site-black) 0%, var(--site-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.intro-media-img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.intro-media .placeholder-icon {
    width: 25%;
    max-width: 92px;
    height: auto;
}

.intro-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 55%);
}

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: 0.9rem;
    background-color: #fff;
    border: 1px solid #eee;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(156, 12, 35, 0.14);
    border-color: transparent;
}

.feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--site-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
}

/* Stats band */
.stats-band {
    background: linear-gradient(120deg, var(--site-black) 0%, var(--site-red-dark) 130%);
    color: #fff;
    padding: 3.5rem 0;
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--site-red);
}

.stat-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

/* Event cards */
.event-card {
    position: relative;
    border: 1px solid #eceef1;
    border-radius: 0.9rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(156, 12, 35, 0.14);
}

.event-card .event-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e9eaec;
}

.event-card .event-image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.9);
    transform: scale(1.15);
}

.event-card .event-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-card .event-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--site-black) 0%, var(--site-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
}

.event-card .event-image-placeholder .placeholder-icon {
    width: 44px;
    height: 44px;
}

.event-card .event-date {
    color: var(--site-red);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-hero-image {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 0.9rem;
    overflow: hidden;
    background-color: #e9eaec;
}

.post-hero-image .post-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) brightness(0.85);
    transform: scale(1.15);
}

.post-hero-image .post-hero-fg {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 768px) {
    .post-hero-image {
        height: 480px;
    }
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(120deg, var(--site-black) 0%, var(--site-red-dark) 130%);
    color: #fff;
    border-radius: 1.1rem;
    padding: 3.5rem;
}

.cta-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0.9rem;
    padding: 3rem;
}

.text-preline {
    white-space: pre-line;
}

/* Pagination */
.pagination .page-link {
    color: var(--site-black);
    border-color: #eee;
    margin: 0 0.15rem;
    border-radius: 0.5rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--site-red);
    border-color: var(--site-red);
    color: #fff;
}

.pagination .page-link:hover {
    color: var(--site-red);
    background-color: var(--site-cream);
}

.pagination .page-item.disabled .page-link {
    color: #bbb;
}

/* Contact */
.contact-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 0.9rem;
    padding: 1.75rem;
    height: 100%;
}

.contact-card .icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--site-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--site-black) 0%, var(--site-red-dark) 130%);
    color: rgba(255, 255, 255, 0.6);
    padding: 3.5rem 0 1.5rem;
}

.site-footer .navbar-brand {
    gap: 0.65rem;
}

.site-footer .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.site-footer .brand-text-main {
    color: #fff;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.site-footer li {
    overflow-wrap: break-word;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--site-red);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    margin-right: 0.5rem;
}

.site-footer .social-links a:hover {
    background-color: var(--site-red);
    color: #fff;
}

::selection {
    background-color: var(--site-red);
    color: #fff;
}

@media (max-width: 767.98px) {
    .site-hero h1 {
        font-size: 2.2rem;
    }
    .cta-banner {
        padding: 2.25rem;
    }
}
