/********** Template CSS **********/
:root {
    --primary: #92278F;
    --secondary: #F4E9F5;
    --light: #F8F8F9;
    --dark: #001D23;
}

.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: #92278F;
    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);
}

@media (max-width: 1199.98px) {
    .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: 1200px) {
    .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(0, 29, 35, .8);
    z-index: 1;
}

#header-carousel .carousel-caption .hero-heading {
    text-shadow: 0 4px 26px rgba(0, 0, 0, .42);
    letter-spacing: -0.04em;
}

#header-carousel .carousel-caption .btn {
    box-shadow: 0 12px 24px rgba(146, 39, 143, .25);
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: #92278F;
    border: 12px solid #92278F;
    border-radius: 3rem;
}

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

    #header-carousel .carousel-caption {
        padding: 1.5rem;
    }

    #header-carousel .carousel-caption .hero-heading {
        font-size: clamp(2.4rem, 9vw, 4rem);
        line-height: 1.05;
    }

    #header-carousel .carousel-caption p {
        font-size: 1rem;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../img/carousel-1-jpg.webp) center center 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: #6E0F6C;
    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(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: #92278F;
    border-color: #92278F;
}


/*** 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: #92278f;
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: #92278f;
}


/*** 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: 1200px) {
    .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: #92278f;
    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: #dfcce4 !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: #92278f;
    font-size: 45px;
    transition: .5s;
}

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


/*** Responsive layout refinements ***/
html {
    scroll-padding-top: 9rem;
}

.navbar {
    min-height: 88px;
    background: var(--dark);
    gap: 1rem;
}

.navbar .navbar-brand {
    min-width: 0;
    flex-shrink: 1;
    white-space: normal;
}

.navbar .navbar-brand .brand-name {
    color: #FFFFFF !important;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.navbar .navbar-brand .brand-name span {
    color: #FEEB3A !important;
    display: block;
    margin-top: .25rem;
    font-size: .58em;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 1.5rem .65rem;
    white-space: nowrap;
}

.navbar .navbar-collapse {
    min-width: 0;
}

.navbar .navbar-collapse > .d-lg-flex .btn {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, .6);
    white-space: nowrap;
    font-size: .875rem;
}

.top-bar {
    background: var(--dark);
}

.top-bar > :first-child {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
}

.top-bar > :first-child small {
    margin-left: 0 !important;
}

.top-bar > :last-child:empty {
    display: none;
}

/* Let each banner grow with its text, including enlarged browser text. */
#header-carousel .carousel-item {
    min-height: 680px;
}

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

#header-carousel .carousel-caption {
    position: relative;
    min-height: 680px;
    padding: 12rem 4.5rem 6rem;
}

#header-carousel .carousel-caption .col-lg-7 {
    width: 100%;
    max-width: 820px;
    padding-top: 0 !important;
}

#header-carousel .carousel-caption .hero-heading {
    font-family: "Inter", sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    line-height: 1.15;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
}

#header-carousel .carousel-caption p {
    max-width: 660px;
    margin: 0 auto 2rem !important;
    font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
    line-height: 1.65;
    color: rgba(255, 255, 255, .85) !important;
}

.page-header h1,
.display-6 {
    overflow-wrap: break-word;
}

.footer h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.3;
}

.footer p {
    overflow-wrap: anywhere;
}

.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

@media (max-width: 1199.98px) {
    .navbar {
        min-height: 80px;
        gap: 0;
        padding: .75rem 1rem;
    }

    .navbar .navbar-brand {
        max-width: calc(100% - 64px);
        margin: 0 !important;
    }

    .navbar .navbar-brand .brand-name {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    .navbar .navbar-toggler {
        margin: 0 !important;
        min-width: 44px;
        min-height: 44px;
    }

    .navbar .navbar-collapse {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar .navbar-nav {
        margin-top: .75rem;
        padding: .75rem 0 !important;
        border-color: rgba(255, 255, 255, .15);
    }

    .navbar .navbar-nav .nav-link {
        padding: .75rem .5rem;
    }

    #header-carousel .carousel-item,
    #header-carousel .carousel-caption {
        min-height: 620px;
    }

    #header-carousel .carousel-caption {
        padding: 9rem 1.5rem 6rem;
    }

    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        top: auto;
        bottom: 1.25rem;
        width: 44px;
        height: 44px;
    }

    #header-carousel .carousel-control-prev {
        left: calc(50% - 52px);
    }

    #header-carousel .carousel-control-next {
        right: calc(50% - 52px);
    }

    #header-carousel .carousel-control-prev-icon,
    #header-carousel .carousel-control-next-icon {
        width: 44px;
        height: 44px;
    }

    .page-header {
        padding-top: 9rem;
        padding-bottom: 3.5rem;
    }
}

@media (max-width: 575.98px) {
    #header-carousel .carousel-caption {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .display-6 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .donate .bg-white.p-5 {
        padding: 1.5rem !important;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #header-carousel .carousel-item,
    #header-carousel .animated,
    .fixed-top,
    .navbar .dropdown-menu {
        animation: none !important;
        transition: none !important;
    }
}

/*** 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);
}

/*** Ministry identity and page layouts ***/
body {
    font-family: "Inter", sans-serif;
    color: #4D5C63;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.display-6 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.display-4 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.section-space { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: #F5F7F6; }
.section-kicker {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-heading { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-heading > p:last-child { margin-top: 1rem; margin-bottom: 0; }
.navbar .navbar-brand { display: flex; align-items: center; gap: 1rem; }
.brand-name { display: block; }
.ministry-logo { order: -1; width: 61px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: #FEEB3A; }
.navbar button.nav-link { background: none; border: 0; text-align: left; }
.navbar .dropdown-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); vertical-align: .2em; }
.navbar .dropdown-menu { padding: .6rem; border-radius: .65rem; box-shadow: 0 12px 35px #001D2326; }
.navbar .nav-item .dropdown-menu.show { visibility: visible; opacity: 1; transform: none; }
.navbar .dropdown-item { border-radius: .3rem; padding: .65rem .75rem; white-space: normal; }
.top-bar a { color: inherit; }
.top-bar a:hover { color: white; }
.top-bar { font-size: .85rem; }
.page-header .breadcrumb-item.active { color: #FEEB3A !important; }

.skip-link { position: fixed; top: -100px; left: 1rem; padding: .75rem 1rem; background: white; color: #001D23; z-index: 100000; }
.skip-link:focus { top: 1rem; }
[id] { scroll-margin-top: 7rem; }
:focus-visible { outline: 3px solid #B968B7; outline-offset: 4px; }
.btn { border-radius: .45rem; font-weight: 600; padding: .85rem 1.25rem; }
.btn span[aria-hidden] { margin-left: .5rem; }
.btn-primary:hover { background: #731C71 !important; color: white !important; border-color: #731C71; }
.text-link { color: #81207F; font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { color: #5D165C; }
.text-link span { display: inline-block; margin-left: .25rem; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .85rem 1rem; }
.hero-support { color: #FFFFFF; font-size: .95rem; text-decoration: underline; text-underline-offset: .35em; padding: .65rem; }
.hero-support:hover { color: #FEEB3A; }
#header-carousel .carousel-caption .section-kicker { font-size: .75rem !important; margin: 0 auto 1.25rem !important; color: #FEEB3A !important; }
#header-carousel .carousel-caption { background: linear-gradient(180deg, #001D23B3, #001D23C9); }
.photo-frame { padding: 0 1.5rem 1.5rem 0; position: relative; }
.photo-frame::after { content: ""; position: absolute; inset: 1.5rem 0 0 1.5rem; border: 1px solid #92278F40; border-radius: 1rem; z-index: -1; }
.feature-photo { width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; border-radius: .75rem; }
.ministry-card { background: white; height: 100%; border: 1px solid #DFE6E5; border-radius: .75rem; overflow: hidden; display: flex; flex-direction: column; }
.ministry-card > img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.card-copy { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-copy > a:last-child { margin-top: auto; }
.card-copy .section-kicker { font-size: .65rem; }
.project-feature { border-radius: 1rem; border: 1px solid #DFE6E5; }
.project-intro { background: #001D23; color: #D4E0E2; padding: clamp(1.75rem, 4vw, 3rem); }
.project-intro .section-kicker { color: #FEEB3A; }
.project-details { background: #F9F6FA; padding: clamp(1.75rem, 4vw, 3rem); }
.project-cost { margin: 1.5rem 0; padding: 1.25rem 0; border-top: 1px solid #D9DFDD; border-bottom: 1px solid #D9DFDD; }
.project-cost strong { display: block; font-size: clamp(1.8rem, 3vw, 2.25rem); color: #001D23; letter-spacing: -.04em; }
.project-cost span { display: block; font-size: .85rem; }
.visit-card, .event-card { background: white; border: 1px solid #DFE6E5; border-radius: .75rem; padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; }
.project-status { background: #F9F6FA; }
.visit-links, .contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; overflow-wrap: anywhere; }
.milestones { padding-left: 1.25rem; }
.milestones li { padding-left: .25rem; margin-bottom: .75rem; }
.milestones li::marker { color: #92278F; }
.event-date { color: #81207F; font-size: .8rem; font-weight: 700; margin-bottom: 1.25rem; }
.event-location { color: #637279; font-size: .85rem; }
.status-label { display: inline-block; font-size: .75rem; background: #F4E9F5; color: #81207F; padding: .3rem .65rem; border-radius: .25rem; }
.gallery-photo { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; border-radius: .65rem; }
figcaption { margin-top: .75rem; font-size: .85rem; color: #637279; }
.service-item { border: 1px solid #DFE6E5; border-radius: .75rem; box-shadow: none; }
.service-item > img { width: 64px; height: 64px; object-fit: contain; }
.team-item { background: #F5F7F6; display: flex; flex-direction: column; }
.team-item img { width: 100%; aspect-ratio: .9; object-fit: cover; object-position: top; }
.team-item .team-text { height: auto !important; flex: 1; }
.team-item:hover img { top: 0; }
.team-item:hover .team-text { margin-top: 0; height: auto; }
.team-item .team-text p:last-child { font-size: .9rem; }
.footer { color: #BDCBCF !important; }
.footer-brand { color: white; font-size: 1.5rem; line-height: 1.3; }
.footer-brand > span { display: block; margin-top: .4rem; font-size: .65em; letter-spacing: .1em; text-transform: uppercase; color: #FEEB3A; }
.footer-contact-link, .footer .btn.btn-link { color: #BDCBCF; }
.footer-contact-link:hover, .footer .btn.btn-link:hover { color: white; }
.footer .btn.btn-link { margin-bottom: .65rem; }
.footer .copyright a { color: white; }
.footer p { font-size: .95rem; }

@media (max-width: 1199.98px) {
    .navbar .navbar-brand { gap: .75rem; }
    .ministry-logo { width: 46px; height: 36px; }
    .navbar .navbar-collapse > .d-xl-flex { display: none !important; }
    .navbar .dropdown-menu { box-shadow: none; margin-bottom: .75rem !important; }
    .navbar .navbar-nav > .nav-link.d-xl-none { color: #FEEB3A; }
}

@media (min-width: 1200px) {
    .navbar .navbar-collapse > .d-xl-flex .btn { color: white; border-color: #FFFFFF99; white-space: nowrap; font-size: .875rem; }
}

@media (max-width: 575.98px) {
    .section-space .row.g-5 { --bs-gutter-x: 1.5rem; }
    .hero-actions > .btn { font-size: .85rem; padding: .8rem 1rem; }
    .hero-actions { gap: .75rem; }
    .hero-support { flex-basis: 100%; }
    #header-carousel .carousel-caption .hero-heading { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .section-heading { text-align: left; margin-bottom: 2rem; }
    .photo-frame { padding: 0; }
    .photo-frame::after { display: none; }
    .team-item img { aspect-ratio: 1; }
    .card-copy { padding: 1.5rem; }
}
