/* ==========================================================================
   MASENO UNIVERSITY CHRISTIAN UNION (MUCU) - UNIFIED DESIGN SYSTEM
   ========================================================================== */

/* 1. ROOT VARIABLES & TOKENS */
:root {
    --mucu-green: #18ac5c;    /* Primary Brand Green #18ac5c */
    --mucu-amber: #f59e0b;    /* Amber Gold Accent #f59e0b */
    --mucu-blue: #25aae1;     /* Secondary Sky Blue #25aae1 */
    --first-color: #0f172a;   /* Deep Slate/Navy #0f172a */
    --second-color: #18ac5c;  /* MUCU Primary Green */
    --third-color: #0f172a;   /* Primary Dark Slate #0f172a */
    --text-color: #ffffff;
    --mucu-blue-dark: #0284c7;
    --mucu-dark: #0f172a;
    --bs-body-bg: #ffffff;
    --bs-body-color: #1e293b;
}

/* REDESIGN ANIMATIONS & UTILITIES */
.divine-shadow {
    box-shadow: 0 10px 40px -10px rgba(58, 176, 226, 0.05), 0 4px 10px -2px rgba(58, 176, 226, 0.02);
}
.hero-mask {
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="black"/><path d="M0,90 Q 25,80 50,95 T 100,85 L 100,100 L 0,100 Z" fill="white"/></svg>');
    mask-size: 100% 100%;
}
@keyframes spirit-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}
.animate-spirit-glow {
    animation: spirit-glow 4s ease-in-out infinite;
}
@keyframes carousel-fade {
    0%, 25% { opacity: 0.6; z-index: 1; }
    33%, 92% { opacity: 0; z-index: 0; }
    100% { opacity: 0.6; z-index: 1; }
}
.carousel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: overlay;
    opacity: 0;
    animation: carousel-fade 15s infinite;
}
.carousel-bg:nth-child(1) { animation-delay: 0s; }
.carousel-bg:nth-child(2) { animation-delay: 5s; }
.carousel-bg:nth-child(3) { animation-delay: 10s; }


/* 2. GLOBAL TYPOGRAPHY */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #ffffff;
    color: #1e293b;
    font-family: "Open Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6, .zegen-title {
    font-family: "Playfair Display", serif !important;
    letter-spacing: -0.01em;
}

body, p, a, span, li, td, input, button {
    font-family: "Open Sans", sans-serif;
}

/* Tailwind's .collapse utility (visibility:collapse) fights Bootstrap's
   .collapse.show accordion state, hiding content that should be open. */
.collapse.show {
    visibility: visible;
}

/* 3. HERO & SLIDER */
.zegen-hero {
    position: relative;
    background-color: #212529;
}

.zegen-hero .carousel-item {
    min-height: 640px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.zegen-hero .carousel-item:not(.active) {
    display: none;
}

.zegen-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(33, 37, 41, 0.72) 0%, rgba(33, 37, 41, 0.88) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 20px 110px;
}

.zegen-hero-title {
    font-family: "Playfair Display", serif !important;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5);
}

.zegen-subtag {
    color: #25aae1;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.zegen-hero-desc {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* 4. HEADER & NAVBAR COMPONENTS */
.mucu-header-dark {
    position: relative;
    z-index: 1050;
    background-color: #212529;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mucu-header-dark.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 37, 41, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mucu-logo-box {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 8px;
    border: 2px solid #25aae1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mucu-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.zegen-nav-list .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 14px !important;
    transition: color 0.2s ease;
}

.zegen-nav-list .nav-link:hover,
.zegen-nav-list .nav-link.active {
    color: var(--mucu-amber) !important;
}

/* 5. BUTTON STYLES (FLAT, NO GLOW) */
.mucu-btn-login {
    background: transparent;
    border: 1.5px solid #25aae1;
    color: #25aae1 !important;
    padding: 6px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: none !important;
}
.mucu-btn-login:hover {
    background: rgba(37, 170, 225, 0.12);
    color: #25aae1 !important;
}

.mucu-btn-signup {
    background: #f59e0b;
    color: #000000 !important;
    border: none;
    padding: 6px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: none !important;
}
.mucu-btn-signup:hover {
    background: #e08e0b;
    color: #000000 !important;
}

.zegen-btn-primary {
    background-color: #18ac5c;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    display: inline-block;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.zegen-btn-primary:hover {
    background-color: #14934e;
    color: #ffffff;
}

.zegen-btn-donate {
    background-color: #18ac5c;
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}
.zegen-btn-donate:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff !important;
}

/* 6. OVERLAPPING EVENT FLOATING CARDS */
.zegen-event-overlap {
    margin-top: -70px;
    position: relative;
    z-index: 30;
}

.zegen-event-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}
.zegen-event-card:hover {
    transform: translateY(-3px);
}

.zegen-date-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
}

.zegen-date-badge-top {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 12px 10px 8px;
    text-align: center;
    width: 100%;
    position: relative;
}

.zegen-date-badge-top .pin-icon {
    width: 24px;
    height: 24px;
    background: #18ac5c;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(24, 172, 92, 0.4);
}

.zegen-date-badge-top .date-text {
    font-size: 0.85rem;
    font-weight: 800;
    color: #18ac5c;
    line-height: 1.1;
}

.zegen-date-badge-bottom {
    background: #18ac5c;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    width: 100%;
    padding: 4px 6px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.zegen-event-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}
.zegen-event-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #18ac5c;
    display: inline-block;
}
.zegen-event-dots span.active {
    background: #18ac5c;
}

/* 7. SECTION UTILITIES & ACCENTS */
.zegen-dot-grid {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 140px;
    height: 140px;
    background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
    background-size: 14px 14px;
    z-index: 0;
    pointer-events: none;
}

.zegen-icon-btn {
    width: 48px;
    height: 48px;
    background-color: #18ac5c;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: none !important;
}

.zegen-section-tag {
    color: #f59e0b !important;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.zegen-accent-lines {
    display: flex;
    gap: 4px;
    margin: 8px 0 20px;
}
.zegen-accent-lines span {
    height: 3px;
    display: inline-block;
    border-radius: 2px;
}
.zegen-accent-lines span:first-child { width: 30px; background-color: #18ac5c; }
.zegen-accent-lines span:last-child { width: 12px; background-color: #f59e0b; }

.zegen-accent-lines.center {
    justify-content: center;
}

/* 8. CONTACT BOX & POST BADGES */
.zegen-contact-box {
    background-color: #18ac5c;
    color: #ffffff;
    border-radius: 8px;
    padding: 60px 36px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: none !important;
}

.zegen-post-date-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #18ac5c;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: none !important;
}

/* 9. FOOTER & DARK MAP FILTER */
.zegen-footer {
    background-color: #212529;
    color: #94a3b8;
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mucu-footer-map {
    width: 100%;
    height: 170px;
    filter: invert(90%) hue-rotate(180deg) opacity(0.88);
    transition: filter 0.3s ease;
}
.mucu-footer-map:hover {
    filter: opacity(1);
}

.zegen-footer h5 {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zegen-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.zegen-footer a:hover {
    color: #25aae1;
}

.zegen-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}

/* 10. FORM INPUT & LIST GROUP RESETS (Fix Dark Spots) */
.form-control, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea, 
select {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.form-control:focus, 
input:focus, 
textarea:focus, 
select:focus {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #25aae1 !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 170, 225, 0.2) !important;
}

.list-group-item {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-color: #f1f5f9 !important;
}

.list-group-item a {
    color: #334155 !important;
}

.list-group-item a:hover {
    color: #25aae1 !important;
}

/* 11. HERO CAROUSEL CROSS-FADE ANIMATIONS */
/* No min-height here: the hero's height is set by the min-h utilities in the
   markup, and a second value fights them, clipping the photo short of the
   header and exposing a band of bare header background below it. */
.carousel-fade .carousel-inner {
    position: relative;
    width: 100%;
}

.carousel-fade .carousel-item {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
    display: block !important;
}

.carousel-fade .carousel-item.active {
    z-index: 1;
    opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    opacity: 0;
}

/* Text entrance animation when hero slide changes */
.carousel-item.active .zegen-hero-title {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.carousel-item.active .zegen-subtag {
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.carousel-item.active .zegen-hero-desc {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.carousel-item.active .zegen-btn-primary {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================================
   Leadership cards (homepage "Meet Our Team" + /leadership)
   Palette follows the rest of this file: #25aae1 accent, #f59e0b eyebrow,
   #e2e8f0 hairline borders, white cards on the #f8fafc section wash.
   ========================================================================== */
.mucu-leader-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 26px 20px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mucu-leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.1);
}

.mucu-leader-photo {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 3px solid rgba(37, 170, 225, 0.18);
    flex-shrink: 0;
}
.mucu-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Initials placeholder, used when there is no photo or it fails to load */
.mucu-leader-initials {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #25aae1;
    background: rgba(37, 170, 225, 0.1);
}

.mucu-leader-name {
    font-size: 1.08rem !important;
    font-weight: 700;
    color: #212529;
    margin: 0 0 4px;
    line-height: 1.3;
}
.mucu-leader-role {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f59e0b;
    margin: 0 0 12px;
}
.mucu-leader-bio {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
}

.mucu-leader-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}
.mucu-leader-socials a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #25aae1;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mucu-leader-socials a:hover {
    background: #25aae1;
    border-color: #25aae1;
    color: #ffffff;
}

/* Leadership page supporting sections: advisory board, committees,
   selection process, and the "planning together" feature strip. */
.mucu-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px;
}
.mucu-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mucu-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}
.mucu-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 170, 225, 0.12);
    color: #25aae1;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

/* ─────────────────────────────────────────────────────────────
   Events page: cards + coverflow rail
   ───────────────────────────────────────────────────────────── */

.mucu-next-chip {
    display: inline-block;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mucu-event-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mucu-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: #25aae1;
    color: inherit;
}

.mucu-event-media {
    position: relative;
    background: #f1f5f9;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.mucu-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mucu-event-media.is-empty,
.mucu-event-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #25aae1;
    opacity: 0.35;
    font-size: 2.5rem;
}

/* Date chip */
.mucu-event-date {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    line-height: 1.1;
}
.mucu-event-date strong {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #18ac5c;
}
.mucu-event-date em {
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
}
.mucu-event-date.is-past {
    border-color: #e2e8f0;
}
.mucu-event-date.is-past strong {
    color: #94a3b8;
}

/* Status flag */
.mucu-event-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.mucu-event-flag.is-today  { background: #18ac5c; }
.mucu-event-flag.is-soon   { background: #f59e0b; color: #111827; }

.mucu-event-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}
.mucu-event-title {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: #212529;
    margin: 0 0 2px;
    line-height: 1.35;
}
.mucu-event-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}
.mucu-event-meta i { color: #25aae1; }
.mucu-event-excerpt {
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.65;
    color: #475569;
}

/* Poster variant: artwork dominates, text sits underneath compactly */
.mucu-event-card.is-poster .mucu-event-media { aspect-ratio: 1 / 1; }
.mucu-event-card.is-poster .mucu-event-body  { padding: 14px 16px 16px; }

/* ── Coverflow rail ── */
.mucu-coverflow {
    position: relative;
    padding: 0 8px 8px;
}
.mucu-coverflow-track {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 26px calc(50% - 150px);
    /* Hide the native scrollbar; navigation is via arrows/dots. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mucu-coverflow-track::-webkit-scrollbar { display: none; }

.mucu-coverflow-item {
    flex: 0 0 300px;
    width: 300px;
    opacity: 0.45;
    transform: scale(0.86);
    transition: transform 0.35s ease, opacity 0.35s ease;
    cursor: pointer;
}
.mucu-coverflow-item.is-active {
    opacity: 1;
    transform: scale(1);
    cursor: default;
    position: relative;
    z-index: 2;
}
.mucu-coverflow-item.is-active .mucu-event-card {
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.22);
}
/* Only the centred card should lift on hover. */
.mucu-coverflow-item:not(.is-active) .mucu-event-card:hover {
    transform: none;
    border-color: #e2e8f0;
}

.mucu-coverflow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #25aae1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    transition: background 0.2s ease, color 0.2s ease;
}
.mucu-coverflow-nav:hover {
    background: #25aae1;
    color: #ffffff;
}
.mucu-coverflow-nav.prev { left: 0; }
.mucu-coverflow-nav.next { right: 0; }

.mucu-coverflow-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.mucu-coverflow-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    transition: width 0.25s ease, background 0.25s ease;
}
.mucu-coverflow-dots button.is-active {
    width: 22px;
    border-radius: 999px;
    background: #25aae1;
}

@media (max-width: 575px) {
    .mucu-coverflow-track {
        padding-left: calc(50% - 125px);
        padding-right: calc(50% - 125px);
    }
    .mucu-coverflow-item {
        flex-basis: 250px;
        width: 250px;
    }
    .mucu-coverflow-nav { width: 36px; height: 36px; font-size: 0.95rem; }
}

/* ==========================================================================
   12. MOBILE FOUNDATION
   Tailwind's preflight is disabled (tailwind.config.js corePlugins) and
   Bootstrap's reboot does not cover these, so the base rules every other
   stylesheet assumes are simply absent. They are restored here.
   ========================================================================== */

/* Without this nothing constrains image width and any CMS-uploaded image
   wider than its column scrolls the whole page sideways. */
img,
video,
svg:not([width]) {
    max-width: 100%;
    height: auto;
}

/* User-entered emails, URLs and pasted text have no spaces to break on. */
.page-content,
.article-body,
.card-body,
.faq-minimal-answer,
.site-footer {
    overflow-wrap: anywhere;
}

/* Rich text can contain a table even though no theme template ships one. */
.page-content table,
.article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* Bare CMS iframes (a pasted YouTube embed) — overrides the blanket
   iframe{height:360px} in style.css, which squashed every embed to a square.
   Components that opt into Bootstrap's .ratio are left alone. */
.page-content iframe,
.article-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* --- Touch targets -------------------------------------------------------
   Pointer-coarse only, so desktop keeps its compact spacing. 44px is the
   WCAG 2.5.8 / iOS HIG minimum. */
@media (pointer: coarse) {
    /* Footer link lists: 17px tall targets, 8px apart. Grow the hit area
       without moving the text, so the visual rhythm is unchanged. */
    /* Full width so the whole row is tappable, not just the word. */
    .footer-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    .footer-nav.space-y-2 > li,
    .footer-nav.space-y-2\.5 > li {
        margin-top: 0;
    }

    /* Social icons are w-7 h-7 (28px). */
    .footer-social a {
        width: 44px;
        height: 44px;
    }

    .footer-meta a,
    .footer-meta button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Coverflow paging dots render at 8x8. */
    .mucu-coverflow-dots button {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-clip: content-box;
        padding: 18px 0;
    }

    .mucu-leader-socials a,
    .mucu-coverflow-nav,
    .zegen-contact-box a,
    .mucu-page-hero .btn-sm {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Breadcrumbs in the page hero render ~19px tall. */
    .mucu-page-hero nav a,
    .mucu-page-hero .breadcrumb a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* .btn-sm is 31-38px by design; the coarse-pointer minimum wins. */
    .btn-sm,
    .form-select-sm,
    .form-control-sm {
        min-height: 44px;
    }

    /* Standalone card CTAs ("Read More →") render ~19px tall. Inline links
       inside running prose are deliberately excluded — WCAG 2.5.8 exempts
       them and padding them out would wreck paragraph leading. */
    .card-body > a,
    .card-body a.small,
    .card-footer a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* Nav controls sit just under the threshold. */
    .navbar-toggler,
    .offcanvas .btn-close,
    button[data-bs-toggle="offcanvas"] {
        min-width: 44px;
        min-height: 44px;
    }
    .offcanvas-body a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* --- Forms ---------------------------------------------------------------
   iOS zooms the viewport when a focused field is under 16px. Bootstrap's
   .form-control is already 1rem; this catches the Tailwind-styled forms
   and .form-select-sm. */
@media (max-width: 575.98px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .form-control,
    .form-select,
    .form-control-sm,
    .form-select-sm {
        font-size: 16px;
    }
    input[type="checkbox"],
    input[type="radio"] {
        width: 1.15rem;
        height: 1.15rem;
    }
}

/* Inner-page hero banner. The image URLs arrive as custom properties from
   _hero_banner.blade.php so this media query can swap the full-size photo for
   the 960px variant on phones — a CSS background cannot use srcset. */
.mucu-page-hero {
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(18, 21, 25, 0.92) 60%, rgba(15, 23, 42, 0.95) 100%),
        var(--hero-banner-img);
    background-size: cover;
    background-position: center 35%;
    border-bottom: 3px solid #18ac5c;
}

@media (max-width: 767.98px) {
    .mucu-page-hero {
        background-image:
            linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(18, 21, 25, 0.92) 60%, rgba(15, 23, 42, 0.95) 100%),
            var(--hero-banner-img-sm, var(--hero-banner-img));
    }
}

/* Homepage contact banner. Same custom-property swap as .mucu-page-hero. */
.zegen-contact-banner {
    background-image:
        linear-gradient(rgba(33, 37, 41, 0.65), rgba(33, 37, 41, 0.75)),
        var(--contact-banner-img);
    background-size: cover;
    background-position: center;
    margin-top: 0;
}

@media (max-width: 767.98px) {
    .zegen-contact-banner {
        background-image:
            linear-gradient(rgba(33, 37, 41, 0.65), rgba(33, 37, 41, 0.75)),
            var(--contact-banner-img-sm, var(--contact-banner-img));
    }
}

/* Replaces home.css's `.display-4 { font-size: 2.5rem }`, which pinned the
   heading and defeated Bootstrap's fluid RFS scaling. The clamp keeps the
   2.5rem desktop size this theme was designed around while letting it fall
   to ~30px on a phone. */
.display-4 {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.5rem);
}
