
:root {
    --bs-tertiary: #797E88;
}

@media (max-width: 991.98px) {
    .about-img {
        position: static;
    }

    .about-img::before,
    .about-img::after {
        display: none;
    }

    .about-img-fixed {
        width: auto !important;
        height: auto !important;
    }

    .br-desktop {
        display: none;
    }
}

.why-matters-carousel .carousel-item {
    padding: 0.5rem 0;
}

.why-matters-media {
    border: 1px solid #dee2e6;
    background: #ffffff;
    overflow: hidden;
}

.why-matters-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.why-matters-card {
    /* border: 1px solid #dee2e6; */
    border-left: 4px solid var(--bs-primary);
    background: #ffffff;
    padding: 1.75rem;
    padding-bottom: 3.75rem;
    height: 100%;
    position: relative;
}

.why-matters-card h3 {
    color: #051311;
}

.why-matters-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--bs-secondary);
}

.why-matters-carousel .carousel-control-prev-icon,
.why-matters-carousel .carousel-control-next-icon {
    filter: invert(1);
}

.why-matters-controls {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    gap: 0.5rem;
}

.why-matters-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #051311;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.why-matters-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

@media (max-width: 767.98px) {
    .header-carousel .owl-nav {
        display: none !important;
    }
}

.core-sdg-section {
    background: #ffffff;
}

.core-value-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-top: 4px solid var(--bs-primary);
    padding: 1.5rem;
}

.core-value-card h3 {
    color: #051311;
    margin-bottom: 0.85rem;
    font-size: 1.65rem;
}

.core-value-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
}

.sdg-flip-card {
    position: relative;
    min-height: 430px;
    perspective: 1000px;
}

.sdg-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 430px;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.sdg-flip-card:hover .sdg-flip-inner {
    transform: rotateY(180deg);
}

.sdg-face {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 430px;
    top: 0;
    left: 0;
    display: block;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 2px;
    padding: 2rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #ffffff;
}

.sdg-front {
    /* border-top: 4px solid var(--bs-secondary); */
    background:
        url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.sdg-front h3 {
    margin-top: 1.15rem;
    font-size: 1.95rem;
    line-height: 1.35;
    color: #000000;
}

.sdg-back {
    transform: rotateY(180deg);
    overflow-y: auto;
}

.sdg-back h4 {
    color: #051311;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.4;
}

.sdg-back p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}

.sdg-chip {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--bs-primary);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

@media (max-width: 991.98px) {
    .sdg-flip-card,
    .sdg-flip-inner,
    .sdg-face {
        min-height: 470px;
    }
}

@media (hover: none) {
    .sdg-flip-card {
        min-height: 0;
        perspective: none;
    }

    .sdg-flip-inner {
        min-height: 0;
        transform: none !important;
    }

    .sdg-face {
        position: relative;
        min-height: 0;
        height: auto;
    }

    .sdg-front {
        display: none;
    }

    .sdg-back {
        transform: none;
        overflow: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sdg-flip-inner {
        transition: none;
    }
}

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

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}


/*** 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 {
    transition: .5s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #ff8126;
    border-color: #ff8126;
    color: var(--bs-white);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #00002e;
    border-color: #00002e;
    color: var(--bs-white);
}

/*** Programs Page ***/
.program-shell {
    /* border: 1px solid #e8eaef; */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 12px 32px rgba(5, 19, 17, 0.07); */
}

.program-media {
    height: 450px;
    min-height: 280px;
}

.program-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    object-position: center center;
}

.program-body {
    padding: 2.2rem;
}

.program-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 105, 0, 0.12);
    color: var(--bs-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.program-tag i {
    font-size: 0.55rem;
    vertical-align: middle;
}

/*** Publications Page ***/
.publication-hero {
    background: radial-gradient(circle at top right, rgba(255, 105, 0, 0.14), transparent 45%),
        radial-gradient(circle at bottom left, rgba(0, 0, 60, 0.1), transparent 45%);
}

.publication-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eceef3;
    box-shadow: 0 16px 40px rgba(5, 19, 17, 0.08);
}

.publication-media {
    height: 100%;
    min-height: 320px;
}

.publication-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
}

.publication-body {
    padding: 2.2rem;
}

.publication-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 105, 0, 0.12);
    color: var(--bs-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .program-shell {
        border: 1px solid #e8eaef;
        box-shadow: 0 12px 32px rgba(5, 19, 17, 0.07);
    }

    .program-media,
    .program-media img {
        height: 300px;
        min-height: 210px;
        object-fit: contain;
    }

    .program-body {
        padding: 1.4rem;
    }

    .publication-media,
    .publication-media img {
        min-height: 220px;
    }

    .publication-body {
        padding: 1.4rem;
    }
}

.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;
}


/*** Top Bar ***/
.top-bar {
    height: 90px;
    padding: 0 90px;
}

.top-bar h6 {
    letter-spacing: 1px;
}


/*** Nav Bar ***/
.nav-bar {
    padding: 0 90px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    outline: none;
}

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

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.header-carousel .carousel-img {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.header-carousel .carousel-img img {
    border-radius: inherit;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
}

.page-header {
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-primary);
}

.page-header .breadcrumb-item.active {
    color: var(--bs-dark);
}


/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #000000;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: var(--bs-dark);
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 0px;
    top: 5px;
    left: -40px;
    border-top: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 0px;
    bottom: 6px;
    left: -60px;
    border-bottom: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-img {
    position: relative;
}

.about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 33%;
    height: 90px;
    background: var(--bs-white);
}

.about-img::before {
    top: 0px;
    left: 0px;
}

.about-img::after {
    right: 0px;
    bottom: 0px;
}


/*** Service ***/
.service-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.service-item {
    overflow: hidden;
}

.service-item .btn-square {
    width: 65px;
    height: 65px;
}

.service-item a {
    position: relative;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    transition: .5s;
}

.service-item a::after {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    left: 100%;
    bottom: 3px;
    margin-left: 10px;
    border-bottom: 2px solid var(--bs-primary);
}


/*** Donation ***/
.donation-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.donation-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
}


/*** Banner ***/
.banner .banner-inner {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.banner .banner-inner::before,
.banner .banner-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.banner .banner-inner::before {
    top: 0;
    left: 0;
    /* border-top: 150px solid var(--bs-primary); */
    border-right: 150px solid transparent;
}

.banner .banner-inner::after {
    right: 0;
    bottom: 0;
    /* border-bottom: 150px solid var(--bs-secondary); */
    border-left: 150px solid transparent;
}


/*** Event ***/
.event-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.event-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.donate .donate-text::before,
.donate .donate-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.donate .donate-text::before {
    top: 0;
    left: 0;
    /* border-top: 150px solid var(--bs-primary); */
    border-right: 150px solid transparent;
}

.donate .donate-text::after {
    right: 0;
    bottom: 0;
    /* border-bottom: 150px solid var(--bs-secondary); */
    border-left: 150px solid transparent;
}

.donate .donate-form .form-control {
    border: none;
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group {
    display: flex;
}

.donate .donate-form .btn-group .btn {
    margin: 0;
    padding: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-tertiary);
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group .btn-check:checked+.btn {
    border: none;
    background: var(--bs-white);
}



/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.team-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.team-item .team-detail span {
    letter-spacing: 2px;
}

.team-item .team-detail p {
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 92px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-item .team-detail .team-board-img {
    width: 400px;
    height: 360px;
    object-fit: cover;
    object-position: center top;
}



/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img .img-fluid {
    width: 400px;
    height: 460px;
    object-fit: cover;
    object-position: center top;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-white);
    background: var(--bs-secondary);
    transition: .5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--bs-secondary);
    background: var(--bs-white);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: 6.3rem;
    }
}



/*** Footer ***/
.footer {
    color: var(--bs-tertiary);
    background: linear-gradient(rgba(5, 19, 17, .95), rgba(5, 19, 17, .95)), url(../img/bg-footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-tertiary);
    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;
    margin-right: 10px;
}

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

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
}
