/* =========================================================
   Lisungi Assistance Maine — Modern theme v2
   Editorial, warm, accessible and mobile-first.
   Content/markup is shared with the Classic theme.
   ========================================================= */

body.theme-modern {
    --brand: #0b6b3a;
    --brand-deep: #06472d;
    --brand-dark: #0b2f24;
    --brand-soft: #e9f3ec;
    --sage: #dce9df;
    --gold: #d6a23d;
    --gold-soft: #f7ecd2;
    --clay: #b85d42;
    --clay-soft: #f4e7e2;
    --ocean: #245f68;
    --ocean-soft: #e3eff0;
    --sand: #f6f1e7;
    --paper: #fbfaf6;
    --white: #ffffff;
    --ink: #163129;
    --ink-strong: #0b241d;
    --muted: #63736c;
    --line: #d9e2dc;
    --line-strong: #c8d5cd;
    --shadow-sm: 0 8px 24px rgba(9, 50, 34, .07);
    --shadow-md: 0 18px 44px rgba(9, 50, 34, .10);
    --shadow-lg: 0 30px 70px rgba(9, 50, 34, .14);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --content-max: 1240px;

    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -.006em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.theme-modern h1,
body.theme-modern h2,
body.theme-modern h3,
body.theme-modern h4,
body.theme-modern h5,
body.theme-modern h6 {
    margin-top: 0;
    color: var(--ink-strong);
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.08;
}
body.theme-modern h5,
body.theme-modern h6 { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.02em; }
body.theme-modern p { color: var(--muted); line-height: 1.78; }
body.theme-modern a { text-underline-offset: 3px; }
body.theme-modern .text-primary { color: var(--brand) !important; }
body.theme-modern .bg-primary { background-color: var(--brand) !important; }
body.theme-modern .border-primary { border-color: var(--brand) !important; }
body.theme-modern .bg-dark { background: var(--brand-dark) !important; }
body.theme-modern .bg-light { background: var(--sand) !important; }
body.theme-modern .bg-secondary { background: var(--gold-soft) !important; }

/* ---------- Header / navigation ---------- */
body.theme-modern .fixed-top {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 0 !important;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(8, 47, 33, .10);
}
body.theme-modern .top-bar {
    height: 34px;
    margin: 0;
    padding: 0;
    color: rgba(255,255,255,.80) !important;
    background: var(--brand-dark);
    border: 0;
    font-size: 11.5px;
    letter-spacing: .015em;
}
body.theme-modern .top-bar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.theme-modern .navbar {
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 8px max(24px, calc((100vw - var(--content-max)) / 2)) !important;
    background: rgba(255,255,255,.98);
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.theme-modern .navbar-brand {
    display: flex;
    align-items: center;
    max-width: 230px;
    padding: 0;
    margin-right: 24px;
}
body.theme-modern .navbar-brand img {
    width: auto !important;
    max-width: 220px !important;
    max-height: 58px;
    object-fit: contain;
}
body.theme-modern .navbar .navbar-nav .nav-link {
    position: relative;
    margin: 0 2px;
    padding: 26px 11px 22px;
    color: #385148;
    background: transparent !important;
    border-radius: 0 !important;
    font-family: "Manrope", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: color .18s ease;
}
body.theme-modern .navbar .navbar-nav .nav-link:hover,
body.theme-modern .navbar .navbar-nav .nav-link.active {
    color: var(--brand) !important;
}
body.theme-modern .navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 15px;
    height: 2px;
    background: transparent;
    transform: none;
    border-radius: 0;
}
body.theme-modern .navbar .navbar-nav .nav-link.active::after { background: var(--gold); }
body.theme-modern .site-donate-cta .btn {
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm) !important;
    color: #fff;
    background: var(--brand);
    box-shadow: none;
}
body.theme-modern .site-donate-cta .btn:hover { color:#fff; background:var(--brand-deep); border-color:var(--brand-deep); }
body.theme-modern .site-donate-cta .btn .rounded-circle { border-radius: 50% !important; }
body.theme-modern .site-language-btn {
    min-height: 40px;
    padding: .45rem .68rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm) !important;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
}
body.theme-modern .site-language-btn:hover,
body.theme-modern .site-language-btn:focus,
body.theme-modern .site-language-btn[aria-expanded="true"] {
    color: var(--brand);
    background: var(--brand-soft);
    border-color: #b8d1c0;
}
body.theme-modern .site-language-menu {
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md);
}
body.theme-modern .site-language-option { border-radius: var(--radius-sm) !important; }
body.theme-modern .navbar-toggler {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm) !important;
    background-color: var(--brand-deep);
    box-shadow: none !important;
}

/* ---------- Buttons and controls ---------- */
body.theme-modern .btn {
    border-radius: var(--radius-sm) !important;
    font-family: "Manrope", sans-serif;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .005em;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
body.theme-modern .btn:hover { transform: translateY(-1px); }
body.theme-modern .btn-primary {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}
body.theme-modern .btn-primary:hover { color:#fff; background:var(--brand-deep); border-color:var(--brand-deep); }
body.theme-modern .btn-outline-primary {
    color: var(--brand);
    background: transparent;
    border: 1px solid #95b8a2;
}
body.theme-modern .btn-outline-primary:hover { color:#fff; background:var(--brand); border-color:var(--brand); }
body.theme-modern .btn-sm-square.rounded-circle,
body.theme-modern .rounded-circle { border-radius: 50% !important; }

/* ---------- Home hero / slideshow ---------- */
body.theme-modern .container-fluid.p-0.mb-5:first-of-type { margin-bottom: 0 !important; }
body.theme-modern #header-carousel {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--brand-dark);
    border-radius: 0 !important;
}
body.theme-modern #header-carousel .carousel-item,
body.theme-modern #header-carousel .carousel-item img {
    height: min(700px, calc(100svh - 110px));
    min-height: 590px;
}
body.theme-modern #header-carousel .carousel-item img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.90) contrast(1.04);
}
body.theme-modern .carousel-caption {
    inset: 0;
    display: flex;
    align-items: center;
    text-align: left;
    background: linear-gradient(90deg, rgba(7,36,27,.93) 0%, rgba(7,36,27,.74) 42%, rgba(7,36,27,.22) 72%, rgba(7,36,27,.03) 100%);
}
body.theme-modern .carousel-caption .container {
    width: min(100%, var(--content-max));
    padding: 0 24px;
}
body.theme-modern .carousel-caption .row { justify-content: flex-start !important; }
body.theme-modern .carousel-caption .col-lg-7 {
    max-width: 760px;
    padding-top: 0 !important;
}
body.theme-modern .carousel-caption h1 {
    max-width: 740px;
    margin-bottom: 22px !important;
    color: #fff;
    font-size: clamp(3rem, 5.7vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}
body.theme-modern .carousel-caption h1::before {
    content: "Community • Integration • Support";
    display: block;
    width: fit-content;
    margin-bottom: 22px;
    padding: 0 0 8px;
    color: #f0bd5b;
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--gold);
    border-radius: 0 !important;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
body.theme-modern .carousel-caption p {
    max-width: 620px;
    margin-bottom: 0 !important;
    color: rgba(255,255,255,.82) !important;
    font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
    line-height: 1.75;
}
body.theme-modern .carousel-control-prev,
body.theme-modern .carousel-control-next { width: 72px; opacity: .9; }
body.theme-modern .carousel-control-prev-icon,
body.theme-modern .carousel-control-next-icon {
    width: 44px;
    height: 44px;
    background-size: 42%;
    background-color: rgba(6,32,24,.58);
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 50%;
}

/* ---------- Interior page hero ---------- */
body.theme-modern .page-header {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px !important;
    padding-top: 7rem;
    padding-bottom: 5.5rem;
    border-radius: 0 !important;
}
body.theme-modern .page-header::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(255,255,255,.035), 0 0 0 144px rgba(255,255,255,.018);
    pointer-events: none;
}
body.theme-modern .page-header .container { position:relative; z-index:1; }
body.theme-modern .page-header h1 {
    color: #fff;
    font-size: clamp(2.8rem, 5vw, 5rem);
    letter-spacing: -.04em;
}
body.theme-modern .page-header .breadcrumb { justify-content: center; }
body.theme-modern .page-header .breadcrumb-item a { color:rgba(255,255,255,.75)!important; }

/* ---------- Section rhythm / typography ---------- */
body.theme-modern .container-xxl.py-5,
body.theme-modern .container-fluid.py-5 { padding-top: 6.25rem !important; padding-bottom: 6.25rem !important; }
body.theme-modern .container-xxl > .container,
body.theme-modern .container-fluid > .container { max-width: var(--content-max); }
body.theme-modern .display-6 { font-size: clamp(2.35rem, 4.2vw, 4.1rem); line-height: 1.02; }
body.theme-modern .display-8 { font-size: clamp(2rem, 3.4vw, 3rem); }
body.theme-modern .d-inline-block.rounded-pill.bg-secondary {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    padding: 0 0 0 12px !important;
    color: var(--brand) !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 3px solid var(--gold) !important;
    border-radius: 0 !important;
    font-family: "Manrope", sans-serif;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .095em;
    text-transform: uppercase;
}

/* editorial alternation of section backgrounds */
body.theme-modern main > *:nth-child(even),
body.theme-modern .container-xxl.bg-light.my-5.py-5 { background-color: var(--sand); }
body.theme-modern .container-xxl.bg-light.my-5.py-5 {
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: linear-gradient(120deg, var(--sand) 0%, #f8f5ee 56%, #eef5f0 100%) !important;
    overflow: hidden;
}
body.theme-modern .container-xxl.bg-light.my-5.py-5::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(var(--brand), var(--gold));
}

/* ---------- Image compositions ---------- */
body.theme-modern .container-xxl.py-5 .position-relative.overflow-hidden,
body.theme-modern .container-xxl.py-5 .position-relative.h-100 {
    overflow: hidden !important;
    background: var(--sage);
    border: 1px solid var(--line);
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
}
body.theme-modern .container-xxl.py-5 img.position-absolute { border-radius: 0 !important; }
body.theme-modern #gallery img { border-radius: var(--radius-sm) !important; }
body.theme-modern #gallery img,
body.theme-modern .row.g-5 img { transition: transform .25s ease, box-shadow .25s ease; }
body.theme-modern #gallery img:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- What We Do cards ---------- */
body.theme-modern .causes-item {
    position: relative;
    overflow: hidden !important;
    background: var(--white) !important;
    border: 1px solid var(--line) !important;
    border-top: 3px solid var(--brand) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.theme-modern .causes-item:hover {
    transform: translateY(-5px);
    border-color: #bfd0c5 !important;
    border-top-color: var(--gold) !important;
    box-shadow: var(--shadow-md);
}
body.theme-modern .causes-item > .text-center { position: relative; padding: 0 1.5rem 1.65rem !important; }
body.theme-modern .causes-card-media {
    width: calc(100% + 3rem);
    margin: 0 -1.5rem 1.5rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sage);
    border-radius: 0 !important;
}
body.theme-modern .causes-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
body.theme-modern .causes-item:hover .causes-card-media img { transform: scale(1.035); }
body.theme-modern .causes-item .d-inline-block.bg-primary {
    position: relative;
    z-index: 2;
    display: block !important;
    width: calc(100% + 3rem);
    margin: 0 -1.5rem 0 !important;
    padding: .7rem 1.5rem !important;
    color: #fff;
    background: var(--brand-deep) !important;
    border-radius: 0 !important;
    box-shadow: none;
    text-align: left;
}
body.theme-modern .causes-item .d-inline-block.bg-primary small {
    font-family: "Manrope", sans-serif;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}
body.theme-modern .causes-item h5 {
    margin-top: 0;
    font-size: 1.12rem;
    line-height: 1.35;
}
body.theme-modern .causes-item p { min-height: 78px; font-size: .94rem; line-height:1.7; }
body.theme-modern .causes-item br { display:none; }
body.theme-modern .causes-item .btn { font-size:.82rem; padding:.62rem .85rem!important; }

/* Give card rows subtle accent diversity without changing brand */
body.theme-modern .row.g-4 > div:nth-child(2) .causes-item { border-top-color: var(--gold) !important; }
body.theme-modern .row.g-4 > div:nth-child(3) .causes-item { border-top-color: var(--ocean) !important; }
body.theme-modern .row.g-4 > div:nth-child(4) .causes-item { border-top-color: var(--clay) !important; }
body.theme-modern .row.g-4 > div:nth-child(5) .causes-item { border-top-color: #8d6b91 !important; }
body.theme-modern .row.g-4 > div:nth-child(6) .causes-item { border-top-color: #507844 !important; }

/* ---------- Forms / contact / donate ---------- */
body.theme-modern .form-control,
body.theme-modern .form-select,
body.theme-modern form textarea {
    min-height: 50px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm) !important;
    box-shadow: none;
}
body.theme-modern .form-control:focus,
body.theme-modern .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(11,107,58,.10);
}
body.theme-modern textarea.form-control { min-height: 145px; }
body.theme-modern iframe {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-sm);
}
body.theme-modern .donate {
    overflow: hidden;
    background: linear-gradient(125deg, var(--brand-dark), #154c3d 58%, #1d6260);
    border-radius: var(--radius-md) !important;
}
body.theme-modern .btn-group .btn-light { margin: 2px; border-radius: var(--radius-sm) !important; }

/* ---------- Footer ---------- */
body.theme-modern .footer {
    position: relative;
    overflow: hidden;
    margin-top: 6rem !important;
    padding-top: 5rem !important;
    background: linear-gradient(110deg, #09271e 0%, #0b3528 58%, #12493a 100%) !important;
    border-radius: 0 !important;
}
body.theme-modern .footer::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -210px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(214,162,61,.15);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(214,162,61,.035), 0 0 0 140px rgba(214,162,61,.02);
    pointer-events: none;
}
body.theme-modern .footer .row { position:relative; z-index:1; }
body.theme-modern .footer h5 {
    color: #fff !important;
    font-family: "Manrope", sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
body.theme-modern .footer p,
body.theme-modern .footer .btn.btn-link { color:rgba(255,255,255,.63); }
body.theme-modern .footer .btn.btn-link:hover { color:#fff; transform:translateX(2px); }
body.theme-modern .footer .copyright { border-top-color:rgba(255,255,255,.10); }
body.theme-modern .footer .copyright a { color:#f2c26a; }
body.theme-modern .back-to-top {
    width: 46px;
    height: 46px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 50% !important;
    box-shadow: var(--shadow-sm);
}

/* ---------- Fullscreen image viewer ---------- */
body.theme-modern .site-image-lightbox img { border-radius: var(--radius-sm) !important; }
body.theme-modern .site-image-lightbox-close { border-radius: 50% !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1199.98px) {
    body.theme-modern .navbar { padding-left: 18px !important; padding-right: 18px !important; }
    body.theme-modern .navbar-brand { max-width: 205px; margin-right: 12px; }
    body.theme-modern .navbar-brand img { max-width: 198px !important; }
    body.theme-modern .navbar .navbar-nav .nav-link { padding-left: 8px; padding-right: 8px; }
    body.theme-modern .site-donate-cta { display: none !important; }
    body.theme-modern #header-carousel .carousel-item,
    body.theme-modern #header-carousel .carousel-item img { height: 640px; min-height: 560px; }
}

/* ---------- Mobile app-like layout ---------- */
@media (max-width: 991.98px) {
    body.theme-modern { font-size: 15.5px; background: #fff; }
    body.theme-modern .top-bar { display:none !important; }
    body.theme-modern .fixed-top {
        box-shadow: 0 1px 0 rgba(8,47,33,.10), 0 5px 16px rgba(8,47,33,.05);
        background: rgba(255,255,255,.985);
    }
    body.theme-modern .navbar {
        min-height: 66px;
        padding: 7px 12px !important;
        background: #fff;
        border-radius: 0 !important;
    }
    body.theme-modern .navbar-brand {
        flex: 1 1 auto;
        max-width: 184px;
        margin-right: 6px;
    }
    body.theme-modern .navbar-brand img { max-width: 178px !important; max-height: 50px; }
    body.theme-modern .site-language-switcher { order: 2; margin-left: auto; margin-right: 8px; }
    body.theme-modern .navbar-toggler {
        order: 3;
        width: 42px;
        height: 42px;
        margin-right: 0 !important;
        padding: 7px !important;
        display:flex;
    }
    body.theme-modern .navbar-collapse {
        order: 4;
        flex-basis: 100%;
        margin: 7px -12px -7px;
        padding: 0 12px 12px;
        background: #fff;
        border-top: 1px solid var(--line);
    }
    body.theme-modern .navbar .navbar-nav {
        margin: 0 !important;
        padding: 8px 0 0 !important;
        background: #fff;
        border-radius: 0 !important;
    }
    body.theme-modern .navbar .navbar-nav .nav-link {
        min-height: 48px;
        margin: 0;
        padding: 14px 4px 12px;
        border-bottom: 1px solid #edf1ee;
        font-size: 15px;
    }
    body.theme-modern .navbar .navbar-nav .nav-link::after {
        left: 0;
        right: auto;
        bottom: 0;
        width: 34px;
    }
    body.theme-modern .site-language-btn { min-width: 48px; min-height: 42px; }
    body.theme-modern .site-language-menu { position: fixed !important; top: 60px !important; right: 10px !important; left:auto !important; transform:none !important; max-height: calc(100svh - 80px); overflow:auto; }

    /* hero behaves like a mobile app landing screen */
    body.theme-modern #header-carousel .carousel-item,
    body.theme-modern #header-carousel .carousel-item img {
        height: calc(100svh - 66px);
        min-height: 560px;
        max-height: 720px;
    }
    body.theme-modern #header-carousel .carousel-item img { object-position: center center; }
    body.theme-modern .carousel-caption {
        align-items: flex-end;
        padding: 0 0 56px;
        background: linear-gradient(180deg, rgba(6,31,23,.10) 0%, rgba(6,31,23,.34) 36%, rgba(6,31,23,.92) 78%, rgba(6,31,23,.98) 100%);
    }
    body.theme-modern .carousel-caption .container { padding: 0 20px; }
    body.theme-modern .carousel-caption h1 {
        max-width: 620px;
        margin-bottom: 14px !important;
        font-size: clamp(2.45rem, 8.6vw, 4.2rem);
        line-height: 1.01;
    }
    body.theme-modern .carousel-caption h1::before { margin-bottom: 14px; font-size: 9.5px; }
    body.theme-modern .carousel-caption p { font-size: 1rem !important; line-height: 1.62; }
    body.theme-modern .carousel-control-prev,
    body.theme-modern .carousel-control-next { display:none; }

    body.theme-modern .page-header {
        margin: 0 0 10px !important;
        padding-top: 5.8rem;
        padding-bottom: 4.4rem;
    }
    body.theme-modern .page-header h1 { font-size: clamp(2.6rem, 9vw, 4rem); }

    body.theme-modern .container-xxl.py-5,
    body.theme-modern .container-fluid.py-5 { padding-top: 4.4rem !important; padding-bottom: 4.4rem !important; }
    body.theme-modern .row.g-5 { --bs-gutter-y: 2.2rem; }
    body.theme-modern .display-6 { font-size: clamp(2.25rem, 8vw, 3.25rem); }
    body.theme-modern .footer { margin-top: 4rem !important; padding-top: 4rem !important; }
}

@media (max-width: 767.98px) {
    body.theme-modern .container,
    body.theme-modern .container-fluid,
    body.theme-modern .container-xxl { --bs-gutter-x: 1.5rem; }
    body.theme-modern .container-xxl.py-5,
    body.theme-modern .container-fluid.py-5 { padding-top: 3.9rem !important; padding-bottom: 3.9rem !important; }

    body.theme-modern .container-xxl.py-5 .row.g-5 > [class*="col-lg-6"]:first-child { margin-bottom: .4rem; }
    body.theme-modern .container-xxl.py-5 .position-relative.overflow-hidden,
    body.theme-modern .container-xxl.py-5 .position-relative.h-100 {
        min-height: 310px !important;
        border-radius: var(--radius-sm) !important;
    }
    body.theme-modern .causes-item {
        border-radius: var(--radius-sm) !important;
        box-shadow: 0 7px 22px rgba(9,50,34,.06);
    }
    body.theme-modern .causes-item > .text-center { padding: 0 1.1rem 1.35rem !important; }
    body.theme-modern .causes-card-media {
        width: calc(100% + 2.2rem);
        margin: 0 -1.1rem 1.2rem;
        aspect-ratio: 16 / 9;
    }
    body.theme-modern .causes-item .d-inline-block.bg-primary {
        width: calc(100% + 2.2rem);
        margin: 0 -1.1rem 0 !important;
        padding: .65rem 1.1rem !important;
    }
    body.theme-modern .causes-item p { min-height: 0; }
    body.theme-modern .causes-item .btn {
        min-height: 44px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    body.theme-modern .form-control,
    body.theme-modern .form-select,
    body.theme-modern .btn { min-height: 44px; }
    body.theme-modern iframe { min-height: 350px; }
    body.theme-modern .footer .col-lg-6,
    body.theme-modern .footer .col-lg-3 { text-align:left; }
    body.theme-modern .footer .btn.btn-link { text-align:left; }
}

@media (max-width: 479.98px) {
    body.theme-modern .navbar-brand { max-width: 200px; }
    body.theme-modern .navbar-brand img { max-width: 200px !important; }
    body.theme-modern .site-language-switcher { margin-right: 6px; }
    body.theme-modern .site-language-btn { min-width: 44px; padding: .4rem .5rem; }
    body.theme-modern .navbar-toggler { width:40px; height:40px; }

    body.theme-modern #header-carousel .carousel-item,
    body.theme-modern #header-carousel .carousel-item img {
        min-height: 535px;
        height: calc(100svh - 62px);
    }
    body.theme-modern .carousel-caption { padding-bottom: 42px; }
    body.theme-modern .carousel-caption .container { padding: 0 16px; }
    body.theme-modern .carousel-caption h1 { font-size: clamp(2.15rem, 10vw, 3.15rem); }
    body.theme-modern .carousel-caption p { font-size: .94rem !important; }
    body.theme-modern .page-header { padding-top: 4.9rem; padding-bottom: 3.8rem; }
    body.theme-modern .page-header h1 { font-size: 2.55rem; }

    body.theme-modern .container,
    body.theme-modern .container-fluid,
    body.theme-modern .container-xxl { --bs-gutter-x: 1.15rem; }
    body.theme-modern .container-xxl.py-5,
    body.theme-modern .container-fluid.py-5 { padding-top: 3.35rem !important; padding-bottom: 3.35rem !important; }
    body.theme-modern .display-6 { font-size: 2.35rem; }
    body.theme-modern .d-inline-block.rounded-pill.bg-secondary { font-size: .69rem; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
    body.theme-modern *,
    body.theme-modern *::before,
    body.theme-modern *::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}
