/********** Template CSS **********/
:root {
    --primary: #EE6A1F;
    --secondary: #FFF1E6;
    --light: #F8F8F9;
    --dark: #02416B;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

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

/* The menu button stays visible even over white content */
.navbar-toggler {
    background: rgba(2, 65, 107, .85);
    border-color: rgba(255, 255, 255, .25);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(238, 106, 31, .5);
}

@media (max-width: 991.98px) {
    /* On phones and tablets the top bar is always solid, so the menu can never vanish over white content */
    .fixed-top,
    .fixed-top.bg-dark {
        background-color: var(--dark) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    }

    /* Long menus scroll inside the screen on small phones */
    .navbar-collapse.show {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(2, 65, 107, .85);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(2, 65, 107, .85), rgba(2, 65, 107, .85)), url(../img/photos/children-strength.jpg) center 30% no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


/*** Donate ***/
.donate {
    background: rgba(2, 65, 107, .85);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/*** The Ethan Foundation ***/
:root {
    --accent: #FF914D;
}

h1, h2, h3, h4, h5, h6,
.display-4, .display-6 {
    font-weight: 700;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    transition: .5s;
}

.fixed-top.bg-dark .navbar-brand img {
    height: 56px;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.brand-name small {
    display: block;
    font-weight: 600;
    font-size: .65rem;
    letter-spacing: .5px;
    color: var(--accent);
}

@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 22px;
        white-space: nowrap;
    }

    .navbar .btn {
        white-space: nowrap;
    }
}

/* Menus in French and Spanish are longer: tighter spacing, and the site name next to the logo only on wide screens */
@media (min-width: 992px) {
    .navbar .brand-name {
        display: none !important;
    }
}

@media (min-width: 1600px) {
    .navbar .brand-name {
        display: block !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 18px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar.px-lg-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 12px;
        font-size: 14.5px;
    }

    .lang-switch .fa-globe {
        display: none;
    }

    .navbar .btn-sm-square {
        display: none !important;
    }
}

.page-header-sm {
    padding-top: 11rem;
    padding-bottom: 5rem;
}

.about-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    padding: 10px;
    background: #FFFFFF;
    border-radius: 50%;
}

.value-item,
.program-item,
.resource-item,
.role-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: .5s;
}

.value-item:hover,
.program-item:hover,
.resource-item:hover,
.role-item:hover {
    transform: translateY(-6px);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    font-size: 28px;
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 1px;
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

.impact-item {
}

.highlight-quote {
    padding-left: 0 !important;
    font-size: 1.15rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--secondary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary);
}

.nav-pills .nav-link {
    color: var(--dark);
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background: var(--primary);
}

.form-feedback,
.form-error {
    display: none;
}

.form-feedback.show,
.form-error.show {
    display: block;
}

.event-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);

}

.event-img img {
    height: 340px;
    object-fit: cover;
    object-position: top;
    transition: .5s;
}

.event-item:hover .event-img img {
    transform: scale(1.04);
}

.event-img {
    overflow: hidden;
}

.event-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    font-size: .95rem;
}

/*** Team photos: same size for every member ***/
.team-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
}

.founder-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 5px solid #FFFFFF;
    box-shadow: 0 8px 22px rgba(2, 65, 107, .15);
}

.team-photo-placeholder {
    background: var(--secondary);
}

.team-photo-placeholder img {
    object-fit: contain;
    padding: 50px;
}

/*** Gallery albums ***/
.album-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--secondary);
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.album-item:hover img {
    transform: scale(1.06);
}

.album-item::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(to top, rgba(2, 65, 107, .92) 0%, rgba(2, 65, 107, .35) 45%, rgba(2, 65, 107, 0) 70%);
}

.album-count {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
    padding: 4px 12px;
    border-radius: 30px;
    background: rgba(0, 0, 0, .55);
    color: #FFFFFF;
    font-size: .85rem;
}

.album-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px;
    color: #FFFFFF;
}

.album-category {
    padding: 2px 12px;
    border-radius: 30px;
    background: var(--primary);
    font-size: .8rem;
    font-weight: 600;
}

.album-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.album-meta {
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
}

/*** Lightbox ***/
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    user-select: none;
}

.lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
    padding: 0 60px;
}

.lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #FFFFFF;
    font-size: 20px;
    transition: .3s;
}

.lightbox button:hover {
    background: var(--primary);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 575.98px) {
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 60px;
        transform: none;
    }
}

/*** News ***/
.news-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
}

.news-item:hover {
    transform: translateY(-6px);
}

.news-img {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--secondary);
}

.news-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: .5s;
}

.news-img img.news-img-placeholder {
    object-fit: contain;
    padding: 40px;
}

.news-item:hover .news-img img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 14px;
    border-radius: 30px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: .85rem;
    font-weight: 600;
}

.news-body {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-body h2,
.news-body h3,
.news-body h4 {
    margin-top: 2rem;
}

.news-body h2 {
    font-size: calc(1.275rem + .3vw);
}

@media (min-width: 1200px) {
    .news-body h2 {
        font-size: 1.5rem;
    }
}

.news-body a {
    text-decoration: underline;
}

.share-box .btn-square {
    color: #FFFFFF;
}

.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-twitter { background: #000000; }
.share-linkedin { background: #0A66C2; }
.share-email { background: var(--dark); }

.share-box .btn-square:hover {
    color: #FFFFFF;
    opacity: .85;
}

.pagination .page-link {
    color: var(--dark);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

/*** Photos: lighter overlays so faces show, text stays readable ***/
#header-carousel .carousel-caption {
    background: linear-gradient(180deg, rgba(2, 65, 107, .55) 0%, rgba(2, 65, 107, .72) 55%, rgba(2, 65, 107, .82) 100%);
}

#header-carousel .carousel-caption h1,
#header-carousel .carousel-caption p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

#header-carousel .carousel-caption .text-white-50 {
    color: rgba(255, 255, 255, .88) !important;
}

/* Hero height adapted to the screen instead of the photo's natural ratio */
@media (min-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        height: clamp(580px, 82vh, 760px);
    }

    #header-carousel .carousel-item img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
    }

    #header-carousel .carousel-caption {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    #header-carousel .carousel-caption .col-lg-8 {
        padding-top: 0 !important;
    }

    #header-carousel .display-4 {
        font-size: clamp(2rem, 3.4vw, 3rem);
        line-height: 1.2;
    }

    #header-carousel .fs-5 {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 991.98px) {
    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        display: none;
    }
}

.donate {
    background: rgba(2, 65, 107, .74);
}

.page-header {
    background: linear-gradient(rgba(2, 65, 107, .78), rgba(2, 65, 107, .78)), url(../img/photos/children-strength.jpg) center 30% no-repeat;
    background-size: cover;
}

/*** WhatsApp floating button ***/
/* Bottom right, stacked under the "back to top" button */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    height: 54px;
    min-width: 54px;
    padding: 0 15px;
    border-radius: 30px;
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    animation: whatsapp-ring 3s ease-out infinite;
    transition: transform .3s, box-shadow .3s;
}

.whatsapp-float i {
    font-size: 26px;
    line-height: 1;
}

.whatsapp-float .whatsapp-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    transition: max-width .4s, margin .4s;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(37, 211, 102, .55);
}

.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus .whatsapp-label {
    max-width: 140px;
    margin-right: 10px;
}

/* "Back to top" sits right above the WhatsApp button */
.back-to-top {
    right: 33px;
    bottom: 98px;
}

@keyframes whatsapp-ring {
    0% { box-shadow: 0 6px 20px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 6px 20px rgba(37, 211, 102, .45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        height: 50px;
        min-width: 50px;
        padding: 0 13px;
    }

    .back-to-top {
        right: 17px;
        bottom: 78px;
    }
}

/*** Playful touches (gentle, and disabled for visitors who prefer reduced motion) ***/

/* Wavy edges under the hero and page headers, above the footer */
#header-carousel,
.page-header,
.footer {
    position: relative;
}

#header-carousel::after,
.page-header::after {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    z-index: 2;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,48 C180,78 360,8 600,30 C840,52 1020,78 1200,46 C1320,26 1390,30 1440,38 L1440,80 L0,80 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.footer {
    margin-top: 6rem !important;
}

.footer::before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: -59px;
    height: 60px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2302416B' d='M0,40 C220,10 420,70 720,44 C1000,20 1200,62 1440,30 L1440,80 L0,80 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

/* Section labels with a little heart, like the logo */
.d-inline-block.rounded-pill.bg-secondary.text-primary::before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .75em;
    margin-right: 7px;
    display: inline-block;
}

.d-inline-block.rounded-pill.bg-secondary.text-primary:hover::before {
    animation: heartbeat 1s ease-in-out;
}

/* Soft floating shapes in grey sections */
.container-xxl.bg-light {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.container-xxl.bg-light::before,
.container-xxl.bg-light::after {
    position: absolute;
    content: "";
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.container-xxl.bg-light::before {
    width: 320px;
    height: 320px;
    top: -110px;
    left: -110px;
    background: radial-gradient(circle, rgba(255, 145, 77, .22) 0%, rgba(255, 145, 77, 0) 70%);
    animation: float-shape 16s ease-in-out infinite alternate;
}

.container-xxl.bg-light::after {
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -60px;
    background: radial-gradient(rgba(2, 65, 107, .16) 2px, transparent 2.6px) 0 0 / 18px 18px;
    animation: float-shape 20s ease-in-out infinite alternate-reverse;
}

/* Icons that react */
.icon-circle {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s;
}

.service-item:hover .icon-circle,
.program-item:hover .icon-circle,
.value-item:hover .icon-circle,
.role-item:hover .icon-circle,
.resource-item:hover .icon-circle {
    transform: rotate(-10deg) scale(1.12);
    background: var(--primary);
    color: #FFFFFF;
}

.role-item:hover > i,
.impact-item:hover h5 i,
.impact-item:hover .h5 i {
    animation: wiggle .6s ease-in-out;
}

/* Arrows that nudge forward on buttons */
.btn .btn-sm-square i {
    transition: transform .3s;
}

.btn:hover .btn-sm-square i.fa-arrow-right {
    transform: translateX(3px);
}

.btn:hover .btn-sm-square i.fa-heart {
    animation: heartbeat .9s ease-in-out infinite;
}

/* Gentle pulse on the main donate button */
.btn-pulse {
    animation: pulse-ring 2.8s ease-out infinite;
}

/* Testimonials as speech bubbles */
.testimonial-bubble {
    position: relative;
    margin-bottom: 18px;
    transition: transform .4s;
}

.testimonial-bubble::after {
    position: absolute;
    content: "";
    left: 48px;
    bottom: -18px;
    border-width: 18px 18px 0 0;
    border-style: solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-bubble:hover {
    transform: rotate(-.6deg) translateY(-4px);
}

/* Hearts burst after a form is sent */
.heart-burst {
    position: fixed;
    z-index: 100001;
    pointer-events: none;
    color: var(--primary);
    font-size: 18px;
    animation: heart-fly 1.3s ease-out forwards;
}

@keyframes heart-fly {
    0% { transform: translate(0, 0) scale(.4); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

@keyframes float-shape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(.95); }
    75% { transform: scale(1.15); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(10deg); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(238, 106, 31, .55); }
    70% { box-shadow: 0 0 0 14px rgba(238, 106, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(238, 106, 31, 0); }
}

@media (max-width: 767.98px) {
    #header-carousel::after,
    .page-header::after,
    .footer::before {
        height: 32px;
    }

    .footer::before {
        top: -31px;
    }
}

/* Respect visitors who ask their device for less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .wow {
        visibility: visible !important;
    }
}

/*** Responsive: tablets and phones ***/
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: .15em;
}

.form-check-label {
    padding-left: .25rem;
}

/* About images: square frame so square photos are not cropped */
.about-img {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
}

@media (min-width: 992px) {
    .about-img {
        position: sticky !important;
        top: 110px;
    }
}

@media (max-width: 991.98px) {
    .about-img {
        max-width: 560px;
        margin: 0 auto;
    }

    /* Comfortable touch targets in the footer */
    .footer .btn.btn-link {
        padding: 7px 0;
        margin-bottom: 0;
    }

    .footer .copyright a {
        display: inline-block;
        padding: 6px 2px;
    }
}

@media (max-width: 767.98px) {
    /* Hero: room for the fixed menu, readable title, no arrows over the text */
    #header-carousel .carousel-item {
        min-height: 580px;
    }

    #header-carousel .carousel-caption {
        align-items: flex-end;
        padding: 110px 0 60px;
    }

    #header-carousel .carousel-caption .col-lg-8 {
        padding-top: 0 !important;
    }

    #header-carousel .display-4 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    #header-carousel .fs-5 {
        font-size: 1rem !important;
        margin-bottom: 1.75rem !important;
    }

    #header-carousel .carousel-caption .btn {
        margin: 0 4px 10px !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    /* Page headers below the fixed menu */
    .page-header {
        padding-top: 9rem;
        padding-bottom: 3.5rem;
    }

    .page-header .display-4 {
        font-size: 2rem;
    }

    /* Tighter vertical rhythm between sections */
    .container-xxl.py-5,
    .container-fluid.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container-xxl.my-5,
    .container-fluid.my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .row.g-5 {
        --bs-gutter-y: 2rem;
    }

    .display-6 {
        font-size: 1.6rem;
    }

    .about-badge {
        width: 110px;
        height: 110px;
        padding: 6px;
    }

    .event-img img {
        height: 260px;
    }

    .album-title {
        font-size: 1.05rem;
    }

    .table {
        font-size: .9rem;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    /* Cards: less inner padding so text keeps a comfortable width */
    .p-5 {
        padding: 1.5rem !important;
    }

    .p-xl-5,
    .p-4 {
        padding: 1.25rem !important;
    }

    .footer .copyright {
        font-size: 14px;
    }

    .share-box .copy-link {
        width: 100%;
    }

    .news-body {
        font-size: 1rem;
    }
}

/* Team cards on touch screens (no hover): social links always visible */
@media (hover: none) {
    .team-item .team-text {
        height: auto;
    }

    .team-item .team-text .team-social {
        opacity: 1;
    }

    .team-item:hover img {
        top: 0;
    }

    .team-item:hover .team-text {
        margin-top: 0;
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .team-item .team-text {
        height: auto;
        padding: 1rem .5rem !important;
    }

    .team-item .team-text h5,
    .team-item .team-text .h5 {
        font-size: 1rem;
        margin-bottom: .25rem;
    }

    .team-item .team-text p {
        font-size: .85rem;
        margin-bottom: .5rem;
    }

    .team-item .team-social .btn {
        width: 34px;
        height: 34px;
    }

    .team-photo-placeholder img {
        padding: 25px;
    }
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

/********** Visual refresh: warmer, softer, friendlier **********/
:root {
    --light: #FFF9F4;
    --cream: #FFF9F4;
    --ink: #1F2A37;
    --text: #566273;
    --radius: 18px;
    --shadow: 0 12px 34px rgba(2, 65, 107, .08);
    --shadow-hover: 0 20px 44px rgba(2, 65, 107, .14);
}

/* Typography: darker, airier text */
body {
    color: var(--text);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, .display-4, .display-5, .display-6 {
    letter-spacing: -.01em;
}

/* Warm cream instead of cold grey */
.bg-light {
    background-color: var(--cream) !important;
}

.d-inline-block.rounded-pill.bg-secondary.text-primary {
    background-color: rgba(238, 106, 31, .12) !important;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .2px;
}

/* Soft rounded shapes */
.rounded {
    border-radius: 14px !important;
}

.service-item,
.program-item,
.value-item,
.role-item,
.resource-item,
.news-item,
.event-item,
.team-item,
.fact-card,
.testimonial-bubble {
    border-radius: var(--radius) !important;
    overflow: hidden;
}

.service-item,
.program-item,
.value-item,
.role-item,
.resource-item,
.news-item,
.fact-card {
    background: #FFFFFF;
    border: 1px solid rgba(2, 65, 107, .06);
    box-shadow: var(--shadow);
    transition: transform .4s, box-shadow .4s;
}

.service-item:hover,
.program-item:hover,
.value-item:hover,
.role-item:hover,
.resource-item:hover,
.news-item:hover,
.fact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.event-item,
.team-item {
    box-shadow: var(--shadow);
}

/* Key figures */
.fact-card {
}

.fact-card .display-5 {
    font-weight: 800;
}

.fact-card p {
    color: var(--ink) !important;
    font-weight: 500;
}

/* Vivid icons */
.icon-circle {
    width: 74px;
    height: 74px;
    font-size: 28px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    box-shadow: 0 10px 22px rgba(238, 106, 31, .3);
}

.service-item:hover .icon-circle,
.program-item:hover .icon-circle,
.value-item:hover .icon-circle,
.role-item:hover .icon-circle,
.resource-item:hover .icon-circle {
    background: linear-gradient(135deg, var(--dark) 0%, #0B5A8F 100%);
    box-shadow: 0 10px 22px rgba(2, 65, 107, .3);
}

/* Friendly rounded buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: .2px;
}

.btn.py-2 {
    padding-top: .6rem !important;
    padding-bottom: .6rem !important;
}

.btn.px-3 {
    padding-left: 1.3rem !important;
    padding-right: 1.3rem !important;
}

/* Buttons ending with a round arrow: the circle hugs the right edge */
.btn.px-3:has(.btn-sm-square) {
    padding-right: .55rem !important;
}

.btn-primary {
    box-shadow: 0 8px 20px rgba(238, 106, 31, .28);
}

.btn-primary:hover {
    box-shadow: none;
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-lg-square,
.btn-square,
.btn-sm-square {
    border-radius: 50% !important;
}

.nav-pills .nav-link {
    border-radius: 50px;
    padding: .5rem 1.25rem;
}

/* Testimonials: white bubbles */
.testimonial-bubble {
    background: #FFFFFF !important;
    box-shadow: var(--shadow);
    overflow: visible;
    border: 1px solid rgba(2, 65, 107, .06);
}

.testimonial-bubble::after {
    border-color: #FFFFFF transparent transparent transparent;
    filter: drop-shadow(0 4px 3px rgba(2, 65, 107, .06));
}

.testimonial-bubble p {
    color: var(--ink) !important;
    font-size: 1.02rem;
}

/* Images */
.about-img > img:first-child,
.img-fluid.rounded {
    border-radius: var(--radius) !important;
}

.about-img > img:first-child {
    box-shadow: var(--shadow);
}

/* Donation box */
.donate .bg-white {
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .18);
}

/* Highlight boxes */
.highlight-box {
    border-radius: 14px !important;
    background: #FFFFFF !important;
    box-shadow: var(--shadow);
}

.impact-item {
    border-radius: 14px !important;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .22rem rgba(238, 106, 31, .15);
}

.bg-light .form-control,
.bg-light .form-select {
    background-color: #FFFFFF;
}

/* Accordions */
.accordion-item {
    border-color: rgba(2, 65, 107, .08);
}

.accordion-item:first-of-type {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.accordion-item:last-of-type {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

/* Team text area */
.team-item .team-text {
    background: #FFFFFF !important;
}

/* Footer contact lines: icon and text stay side by side */
.footer p:has(> i.fa) {
    display: flex;
    align-items: flex-start;
}

.footer p > i.fa {
    flex-shrink: 0;
    margin-top: .45em;
}

.footer p {
    overflow-wrap: anywhere;
}

/* Cards without coloured borders: shadow only */
.soft-card {
    background: #FFFFFF;
    border: 1px solid rgba(2, 65, 107, .06);
    box-shadow: var(--shadow);
}

.impact-item {
    background: #FFFFFF !important;
    border: 1px solid rgba(2, 65, 107, .06);
    box-shadow: 0 6px 18px rgba(2, 65, 107, .06);
}

/********** Banner animations (gentle; all stop with "reduce motion") **********/
#header-carousel,
.page-header {
    overflow: hidden;
}

/* 1. Slow camera movement on the photos (Ken Burns) */
#header-carousel .carousel-item.active .hero-img,
#header-carousel .carousel-item-next .hero-img,
#header-carousel .carousel-item-prev .hero-img {
    animation: hero-zoom-in 9s ease-out both;
}

#header-carousel .carousel-item:nth-child(even).active .hero-img,
#header-carousel .carousel-item:nth-child(even).carousel-item-next .hero-img,
#header-carousel .carousel-item:nth-child(even).carousel-item-prev .hero-img {
    animation-name: hero-zoom-out;
}

@keyframes hero-zoom-in {
    from { transform: scale(1); }
    to { transform: scale(1.12) translate(-1.5%, -1%); }
}

@keyframes hero-zoom-out {
    from { transform: scale(1.12) translate(1.5%, 1%); }
    to { transform: scale(1); }
}

/* Softer crossfade between slides */
#header-carousel.carousel-fade .carousel-item {
    transition-duration: 1.1s;
}

/* 2. Text appears line after line */
#header-carousel .carousel-item.active .hero-anim,
#header-carousel .carousel-item-next .hero-anim,
#header-carousel .carousel-item-prev .hero-anim,
.page-header .hero-anim {
    animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-anim-1 { animation-delay: .25s !important; }
.hero-anim-2 { animation-delay: .5s !important; }
.hero-anim-3 { animation-delay: .75s !important; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

/* 3. Little hearts rising slowly, like the heart of the logo */
.hero-hearts {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    --rise: 780px;
}

.page-header .hero-hearts {
    --rise: 460px;
}

.hero-hearts i {
    position: absolute;
    bottom: -40px;
    color: rgba(255, 255, 255, .2);
    animation-name: heart-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.hero-hearts i:nth-child(3n) {
    color: rgba(255, 145, 77, .38);
}

@keyframes heart-rise {
    0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; }
    12% { opacity: 1; }
    50% { transform: translate(18px, calc(var(--rise) * -.5)) rotate(8deg); }
    85% { opacity: 1; }
    100% { transform: translate(-6px, calc(var(--rise) * -1)) rotate(-6deg); opacity: 0; }
}

/* 4. A second wave drifting slowly behind the white one, like a gentle tide */
.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 200%;
    height: 78px;
    z-index: 2;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.4' d='M0,40 C240,72 480,72 720,40 C960,8 1200,8 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: wave-drift 18s linear infinite;
}

@keyframes wave-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Layers: photo < blue overlay + text (z 1) < hearts and waves (z 2) < indicators (z 4) */
.page-header .container {
    z-index: 3;
}

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

/* 5. Indicators that fill up until the next slide */
.hero-indicators {
    bottom: 78px;
    margin-bottom: 0;
    z-index: 4;
}

.hero-indicators [data-bs-target] {
    position: relative;
    width: 32px;
    height: 5px;
    margin: 0 5px;
    border: 0;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, .45);
    opacity: 1;
    overflow: hidden;
    transition: width .4s;
}

.hero-indicators .active {
    width: 58px;
    background-color: rgba(255, 255, 255, .35);
}

.hero-indicators .active::after {
    position: absolute;
    content: "";
    inset: 0;
    background: var(--primary);
    transform-origin: left center;
    animation: indicator-fill 7s linear forwards;
}

#header-carousel:hover .hero-indicators .active::after {
    animation-play-state: paused;
}

@keyframes indicator-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 767.98px) {
    .hero-wave {
        height: 46px;
    }

    .hero-hearts i:nth-child(n+7) {
        display: none;
    }

    .hero-indicators {
        bottom: 44px;
    }
}

/********** TikTok videos **********/
.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    justify-content: center;
}

.tiktok-grid:has(> .tiktok-card:only-child) { grid-template-columns: minmax(0, 320px); }
.tiktok-grid:has(> .tiktok-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 320px)); }
.tiktok-grid:has(> .tiktok-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 320px)); }

.tiktok-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tiktok-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow);
    transition: transform .4s, box-shadow .4s;
}

.tiktok-card:hover .tiktok-frame {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tiktok-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tiktok-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.tiktok-facade > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.tiktok-facade:hover > img {
    transform: scale(1.05);
}

.tiktok-facade::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%);
}

.tiktok-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 24px 22px 34px;
    background: linear-gradient(160deg, var(--dark) 0%, #0B5A8F 55%, var(--primary) 130%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
}

.tiktok-placeholder img {
    width: 54px;
    height: 54px;
    opacity: .95;
}

.tiktok-logo {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #FFFFFF;
    font-size: 18px;
}

.tiktok-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: -33px 0 0 -33px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--primary);
    font-size: 22px;
    padding-left: 4px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
    animation: play-pulse 2.6s ease-out infinite;
    transition: transform .3s;
}

.tiktok-facade:hover .tiktok-play,
.tiktok-facade:focus-visible .tiktok-play {
    transform: scale(1.1);
}

@keyframes play-pulse {
    0% { box-shadow: 0 10px 26px rgba(0, 0, 0, .3), 0 0 0 0 rgba(255, 255, 255, .55); }
    70% { box-shadow: 0 10px 26px rgba(0, 0, 0, .3), 0 0 0 18px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .3), 0 0 0 0 rgba(255, 255, 255, 0); }
}

.tiktok-title {
    margin: 14px 0 4px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.4;
}

.tiktok-open {
    font-size: .88rem;
    font-weight: 500;
}

.btn-tiktok {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.btn-tiktok:hover {
    background: #FFFFFF;
    color: #000000;
}

/* Tablets: 2 per row */
@media (max-width: 991.98px) {
    .tiktok-grid,
    .tiktok-grid:has(> .tiktok-card:nth-child(3):last-child) {
        grid-template-columns: repeat(2, minmax(0, 300px));
    }
}

/* Phones: swipe sideways */
@media (max-width: 575.98px) {
    .tiktok-grid,
    .tiktok-grid:has(> .tiktok-card) {
        display: flex;
        gap: 14px;
        margin: 0 -16px;
        padding: 4px 16px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .tiktok-grid::-webkit-scrollbar {
        display: none;
    }

    .tiktok-card {
        flex: 0 0 72%;
        scroll-snap-align: center;
    }
}

/*** Language switcher (EN / FR / ES) ***/
.lang-switch {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
}

.lang-switch a {
    color: rgba(255, 255, 255, .75);
    padding: 4px 7px;
    border-radius: 50px;
    transition: background-color .2s, color .2s;
}

.lang-switch a:hover,
.lang-switch a:focus {
    color: #FFFFFF;
    background: rgba(255, 255, 255, .12);
}

.lang-switch a.active {
    color: #FFFFFF;
    background: var(--primary);
}

/*** Background video in the home banner ***/
#header-carousel .carousel-item .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    background: var(--dark);
}

/* Without the photo, the slide still needs its height */
@media (max-width: 767.98px) {
    #header-carousel .carousel-item:has(.hero-video) {
        min-height: 450px;
    }
}

/*** Accessibility and responsive best practices (WCAG 2.2 AA) ***/
/* Everything uses the brand orange (#EE6A1F), as requested.
   Darker shades with better contrast, if ever needed: text #B34509, buttons #C04C0C, on dark blue #FFA36B. */
:root {
    --primary-ink: var(--primary);
    --primary-strong: var(--primary);
    --primary-light: var(--primary);
    --focus-ring: 0 0 0 3px #FFFFFF, 0 0 0 6px #02416B;
}

.text-primary,
.breadcrumb-item.active,
.nav-pills .nav-link:not(.active),
main :is(p, li, td, label, small, .news-body, .form-text) a:not(.btn):not(.nav-link):not(.text-white):not(.text-dark):not(.text-white-50):not(.footer-contact) {
    color: var(--primary-ink) !important;
}

/* Text links stay recognisable without relying on color alone */
main :is(p, li, td) a:not(.btn):not(.nav-link), .news-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.lang-switch a.active,
.nav-pills .nav-link.active,
.pagination .page-item.active .page-link {
    background-color: var(--primary-strong) !important;
    border-color: var(--primary-strong) !important;
    color: #FFFFFF !important;
}

.btn.btn-primary:hover {
    background-color: transparent !important;
    color: var(--primary-ink) !important;
}

.btn.btn-outline-primary {
    color: var(--primary-ink);
    border-color: var(--primary-strong);
}

/* Dark sections: hero, page headers, donation banner, navbar, footer */
:is(.carousel-caption, .page-header, .donate, .navbar, .top-bar) :is(.text-primary:not(.bg-white), .breadcrumb-item.active, :is(p, li, td, label, small) a:not(.btn):not(.nav-link):not(.text-white):not(.text-white-50):not(.footer-contact)) {
    color: var(--primary-light) !important;
}

:is(.carousel-caption, .page-header, .donate, .navbar, .footer) .btn.btn-outline-primary {
    color: #FFFFFF;
    border-color: var(--primary-light);
}

:is(.carousel-caption, .page-header, .donate, .navbar, .footer) .btn.btn-primary:hover {
    color: var(--primary-light) !important;
}

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

.footer .copyright a,
.footer .footer-contact {
    color: rgba(255, 255, 255, .8) !important;
    text-decoration: none;
}

.footer .footer-contact:hover,
.footer .copyright a:hover {
    color: var(--primary-light) !important;
}

/* The round white circles inside the buttons keep the brand orange arrow */
.btn .btn-sm-square.bg-white.text-primary {
    color: var(--primary-strong) !important;
}

/* Visible keyboard focus everywhere (the template removed it on several elements) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.btn-check:focus-visible + .btn {
    outline: 3px solid var(--primary-ink);
    outline-offset: 3px;
    box-shadow: none;
}

:is(.navbar, .carousel-caption, .page-header, .donate, .footer, .top-bar) :is(a, button, input):focus-visible {
    outline-color: var(--primary-light);
}

#main:focus {
    outline: none;
}

/* "Skip to main content", first stop of the Tab key */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 12px 20px;
    border-radius: 50px;
    background: #FFFFFF;
    color: var(--dark) !important;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    transform: translateY(-160%);
    transition: transform .2s;
}

.skip-link:focus {
    transform: none;
}

/* Fixed navbar never hides the target of an anchor link (#faq, #privacy...) */
html {
    scroll-padding-top: 110px;
}

/* Touch: no 300ms delay, no blue flash, comfortable targets */
a, button, .btn, label, summary, input, select, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hero-indicators [data-bs-target] {
    box-sizing: content-box;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    background-clip: padding-box;
}

.navbar-toggler {
    min-width: 48px;
    min-height: 44px;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .lang-switch a {
        min-width: 44px;
        min-height: 44px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
    }

    .navbar-collapse.show {
        max-height: calc(100dvh - 90px);
    }

    .footer .btn.btn-link {
        padding: 8px 0;
        margin-bottom: 0;
    }

    .footer .btn.btn-square {
        width: 44px;
        height: 44px;
    }

    .footer .copyright a,
    .footer .footer-contact {
        display: inline-block;
        padding: 6px 0;
    }
}

/* Inputs at 16px or more: iOS does not zoom in when they get focus */
.form-control,
.form-select {
    font-size: max(1rem, 16px);
}

/* Long words, emails and links never push the page sideways */
p, li, td, h1, h2, h3, h4, h5, h6, .footer-contact {
    overflow-wrap: break-word;
}

h1, h2, .display-4, .display-5, .display-6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Reading width of long texts */
.news-body,
.legal-content {
    max-width: 72ch;
}

/* Images keep their ratio and never overflow */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Landscape phones: the hero must not take more than the screen */
@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 500px) {
    #header-carousel .carousel-item {
        min-height: 100dvh;
    }

    #header-carousel .display-4 {
        font-size: 1.6rem;
    }
}

/* Very small phones (320px) */
@media (max-width: 374.98px) {
    .display-4 { font-size: 1.85rem; }
    .display-5 { font-size: 1.7rem; }
    .display-6 { font-size: 1.5rem; }
    .btn.px-3 { padding-left: 1rem !important; }
    .container { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn-pulse,
    .hero-indicators .active::after { animation: none !important; }
    .skip-link { transition: none; }
}

/* Default link color and remaining contrast fixes */
a {
    color: var(--primary-ink);
}

.news-category,
.event-badge,
.album-category,
.bg-primary.text-white,
.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-strong) !important;
    color: #FFFFFF !important;
}

.accordion-button,
.form-control,
.form-select,
.text-muted,
.text-body {
    color: var(--text);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-ink);
}

/* Link cards: the text keeps the normal colors, the card itself is the link */
.resource-item {
    color: var(--text);
}

.resource-item h3 {
    color: var(--dark);
}

/* Donation amount and frequency choices: selected state readable and not shown by color alone */
.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked + label {
    color: var(--primary-ink);
    border-color: var(--primary-strong);
    font-weight: 700;
}

.btn-group input[type="radio"]:checked + label::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .8em;
    margin-right: 6px;
}

/* Soft pills on dark sections */
:is(.donate, .page-header, .carousel-caption) .d-inline-block.rounded-pill.bg-secondary.text-primary {
    background-color: rgba(255, 255, 255, .14) !important;
}

/* Phones: the floating WhatsApp and "back to top" buttons never cover the last footer line */
@media (max-width: 767.98px) {
    .footer .copyright {
        padding-bottom: 96px;
    }
}

/*** Back to top button: fades in and out with CSS, keeps its colors on hover and after a tap ***/
.back-to-top {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility 0s linear .3s, background-color .2s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s, transform .3s, visibility 0s, background-color .2s;
}

.btn.btn-primary.back-to-top,
.btn.btn-primary.back-to-top:hover,
.btn.btn-primary.back-to-top:focus,
.btn.btn-primary.back-to-top:active {
    background-color: var(--primary-strong) !important;
    border-color: var(--primary-strong) !important;
    color: #FFFFFF !important;
}

@media (hover: hover) {
    .btn.btn-primary.back-to-top:hover {
        background-color: var(--dark) !important;
        border-color: var(--dark) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top.show {
        transition: none;
        transform: none;
    }
}

/*** Footer (redesign) ***/
.site-footer {
    color: rgba(255, 255, 255, .72);
    padding-top: 0 !important;
    font-size: .95rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    transition: color .2s;
}

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

/* Call to action card */
.footer-cta {
    position: relative;
    top: -2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 2rem 2.5rem;
    border-radius: 24px;
    background: linear-gradient(120deg, #0B5A8F 0%, var(--dark) 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.footer-cta-title {
    margin: 0;
    max-width: 520px;
    color: #FFFFFF;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.footer-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.footer-cta .btn-outline-light {
    border-width: 2px;
}

.footer-main {
    padding: 1.5rem 0 3rem;
}

/* Brand */
.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.25rem;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.footer-brand p {
    max-width: 380px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.25rem;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #FFFFFF;
    transition: background-color .2s, transform .2s;
}

.site-footer .footer-social a:hover {
    background: var(--primary-strong);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Column titles */
.footer-title {
    margin-bottom: 1.25rem;
    color: #FFFFFF;
    font-size: 1.1rem;
}

/* Quick links: two columns */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .15rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.footer-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* Contact lines */
.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 48px;
    overflow-wrap: anywhere;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--primary-light);
    font-size: .85rem;
}

/* Newsletter band */
.footer-newsletter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
}

.footer-newsletter-text {
    max-width: 460px;
}

.footer-newsletter form {
    flex: 1 1 360px;
    max-width: 480px;
}

.footer-newsletter-field {
    display: flex;
    gap: .5rem;
    padding: 6px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
}

.footer-newsletter-field .form-control {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    padding-left: 1.1rem;
    box-shadow: none;
}

.footer-newsletter-field .form-control::placeholder {
    color: rgba(255, 255, 255, .6);
}

.footer-newsletter-field .form-control:focus {
    background: transparent;
    color: #FFFFFF;
    box-shadow: none;
}

.footer-newsletter-field .form-control:focus-visible {
    outline: none;
}

.footer-newsletter-field:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255, 163, 107, .35);
}

.footer-newsletter-field .btn {
    flex-shrink: 0;
    padding: .7rem 1.4rem;
    box-shadow: none;
}

/* Bottom bar */
.site-footer .copyright {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .875rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-legal a {
    display: inline-block;
    padding: 6px 0;
}

.footer-credit {
    color: rgba(255, 255, 255, .55);
}

/* Phones and small tablets: everything centered */
@media (max-width: 767.98px) {
    .footer-cta {
        top: -1.5rem;
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    .footer-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .footer-cta-buttons .btn {
        width: 100%;
    }

    .footer-main {
        padding-top: .5rem;
        text-align: center;
    }

    .site-footer .footer-logo {
        flex-direction: column;
        gap: .6rem;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        position: relative;
        padding-bottom: .75rem;
    }

    .footer-title::after {
        position: absolute;
        content: "";
        left: 50%;
        bottom: 0;
        width: 36px;
        height: 3px;
        border-radius: 3px;
        background: var(--primary);
        transform: translateX(-50%);
    }

    .footer-links {
        max-width: 340px;
        margin: 0 auto;
        gap: .5rem;
    }

    .footer-links a {
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 0 .5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, .06);
    }

    .footer-links a::before {
        display: none;
    }

    .footer-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .25rem;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }

    .footer-newsletter form {
        flex: none;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* Space for the floating WhatsApp and "back to top" buttons */
    .site-footer .copyright {
        padding-bottom: 96px;
    }
}

/* Very narrow phones: newsletter button under the field */
@media (max-width: 359.98px) {
    .footer-newsletter-field {
        flex-direction: column;
        border-radius: 18px;
    }

    .footer-newsletter-field .btn {
        width: 100%;
    }
}

/*** Mobile menu (redesign) ***/
.burger {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #FFFFFF;
    transition: transform .3s, opacity .2s, top .3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }

.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 48px;
    height: 44px;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 72px;
    }

    .navbar-brand img {
        height: 52px;
    }

    .fixed-top.bg-dark .navbar-brand img {
        height: 48px;
    }

    .navbar .brand-name {
        font-size: .85rem;
        max-width: 150px;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .navbar .navbar-nav {
        margin-top: 0;
        padding: .75rem 1.25rem .5rem !important;
        border-top: 0;
        text-align: center;
    }

    .navbar .navbar-nav .nav-link {
        margin: 0;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .navbar .navbar-nav .nav-link + .nav-link {
        margin-top: 2px;
    }

    .navbar .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, .08);
        color: var(--primary-light);
    }

    .navbar .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, .05);
    }

    .menu-donate {
        padding-top: .5rem;
        padding-bottom: 1rem;
    }

    .menu-donate .btn {
        font-size: 1.05rem;
    }

    .navbar .lang-switch {
        justify-content: center;
        gap: .35rem;
        margin: 0 1.25rem 1.25rem;
        padding: .4rem !important;
        border-radius: 50px;
        background: rgba(255, 255, 255, .06);
    }

    .navbar .lang-switch .fa-globe {
        margin: 0 .25rem 0 .5rem !important;
    }

    .navbar .lang-switch a {
        flex: 1;
        max-width: 90px;
    }
}

/* Two columns of menu links on landscape phones and tablets */
@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        max-width: 560px;
        margin: 0 auto;
    }

    .navbar .navbar-nav .nav-link + .nav-link {
        margin-top: 0;
    }

    .menu-donate,
    .navbar .lang-switch {
        max-width: 520px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .burger span { transition: none; }
}

/*** Phones: section intros, titles and call-to-action buttons centered ***/
@media (max-width: 767.98px) {
    /* Badge + title of every section */
    .d-inline-block.rounded-pill.bg-secondary.text-primary {
        display: table !important;
        margin-left: auto;
        margin-right: auto;
    }

    .rounded-pill.bg-secondary.text-primary + h2,
    .rounded-pill.bg-secondary.text-primary + .display-6 {
        text-align: center;
        margin-bottom: 1.5rem !important;
    }

    /* Intro blocks marked for centering (home "About" and "Donate") */
    .mobile-center {
        text-align: center;
    }

    .mobile-center .highlight-box {
        text-align: left;
    }

    .mobile-center p.mb-5 {
        margin-bottom: 2rem !important;
    }

    /* Two buttons side by side: centered, wrap cleanly with a gap */
    .mobile-center > .btn,
    .h-100.mobile-center > .btn {
        margin: 0 .35rem .75rem !important;
    }

    /* Section titles a little smaller so they do not break into 4 lines */
    .display-6 {
        font-size: clamp(1.6rem, 6.4vw, 2rem);
    }

    /* About image: the round logo badge stays inside the frame */
    .about-img {
        min-height: 320px !important;
    }

    /* Donation box: less padding on small screens */
    .donate .bg-white.p-5 {
        padding: 1.5rem !important;
        border-radius: 20px;
    }

    .donate .btn-group .btn {
        padding-left: .5rem;
        padding-right: .5rem;
    }

    /* Key figures: compact cards */
    .fact-card {
        padding: 1.25rem !important;
    }

    .fact-card .display-5 {
        font-size: 2.25rem;
    }

    /* Team cards: same height, name block filling the card */
    .team-item .team-text {
        padding: 1rem .75rem !important;
    }
}

/* Tablet menu: language switcher centered */
@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar .lang-switch a {
        flex: 0 0 90px;
    }
}

/*** Donation choices: pill-shaped segmented control ***/
.btn-group:has(> .btn-check) {
    gap: 4px;
    padding: 5px;
    border-radius: 50px;
    background: #F1F3F6;
}

.btn-group:has(> .btn-check) > .btn {
    flex: 1 1 0;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50px !important;
    background: transparent;
    color: var(--dark);
    font-weight: 600;
    box-shadow: none;
    transition: background-color .2s, color .2s;
}

.btn-group:has(> .btn-check) > .btn:hover {
    background: rgba(2, 65, 107, .06);
    color: var(--dark);
}

.btn-group:has(> .btn-check) > .btn-check:checked + .btn {
    background: var(--primary-strong);
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(192, 76, 12, .25);
}

.btn-group:has(> .btn-check) > .btn-check:focus-visible + .btn {
    outline: 3px solid var(--dark);
    outline-offset: 2px;
}

/* Phones: form submit buttons full width, easy to reach with the thumb */
@media (max-width: 575.98px) {
    main form button[type="submit"].btn,
    main form [type="submit"].btn {
        width: 100%;
        margin-right: 0 !important;
    }
}

/* Home "About": the two buttons always on one line */
.about-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: .75rem;
    align-items: center;
}

.about-actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .about-actions {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .about-actions {
        gap: .5rem;
    }

    .about-actions > .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: .6rem !important;
        padding-right: .6rem !important;
        font-size: .9rem;
    }

    .about-actions .btn-sm-square {
        width: 26px;
        height: 26px;
        margin-left: .4rem !important;
        flex-shrink: 0;
    }
}

@media (max-width: 399.98px) {
    .about-actions .btn-sm-square {
        display: none !important;
    }

    .about-actions > .btn {
        white-space: normal;
        line-height: 1.25;
        text-align: center;
        min-height: 48px;
    }
}

@media (max-width: 399.98px) {
    .about-actions {
        align-items: stretch;
    }
}

/* Amount / frequency pickers: the chosen choice stays readable (the white background of
   .bg-white / .btn-light must never win over the selected color) */
.btn-group:has(> .btn-check) > .btn-check:checked + .btn,
.btn-group:has(> .btn-check) > .btn-check:checked + .btn:hover {
    background: var(--primary-strong) !important;
    border-color: var(--primary-strong) !important;
    color: #FFFFFF !important;
}

.btn-group:has(> .btn-check) > .btn-check:not(:checked) + .btn {
    background: #FFFFFF;
    color: var(--dark);
}

/* Donation form: note about the payment page and the FCFA amount */
.pay-note {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: #FFFFFF;
    border-left: 4px solid var(--primary);
    color: var(--dark);
    font-size: .95rem;
    line-height: 1.45;
}

.pay-note[hidden] {
    display: none;
}

.pay-note .fa {
    color: var(--primary);
    margin-top: .2rem;
}

/* Result page after an online payment */
.pay-result {
    max-width: 640px;
    padding: 3rem 1.5rem;
    border-radius: 24px;
    background: var(--cream, #FFF9F4);
}

.pay-result-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.2rem;
    color: #FFFFFF;
    background: var(--primary);
}

.pay-pending .pay-result-icon {
    background: var(--dark);
}

.pay-failed .pay-result-icon {
    background: #8A95A3;
}
