/********** TRUE HOPE MINISTRIES UPDATED CSS **********/

:root {
    --primary: #d19f25;
    --secondary: #c49b3c;
    --light: #F8F8F9;
    --dark: #06361a;
    --green-dark: #0c2e1a;
    --green-light: #3c561e;
    --gold-dark: #b57f20;
    --gold-light: #b89542;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: var(--primary);
    color: #fff;
}

/*** 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;
    border-radius: 8px;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
    border-color: var(--primary);
}

.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;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.12);
    padding: 8px 0;
}

.top-bar {
    height: 30px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
}

.top-bar small,
.top-bar a {
    color: rgba(255,255,255,0.85) !important;
}

.top-bar a:hover {
    color: var(--primary) !important;
}

.navbar {
    background: #ffffff !important;
    min-height: 68px;
}

.navbar-brand img {
    max-height: 140px;
    width: auto;
    transition: .3s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--dark);
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 700;
    outline: none;
    transition: .3s;
    font-size: 16px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.navbar .dropdown-item {
    padding: 10px 18px;
    color: var(--dark);
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background: var(--primary);
    color: #ffffff;
}

/*** Navbar Button ***/
.navbar .btn-outline-primary {
    border: 2px solid var(--dark);
    color: var(--dark);
    background: transparent;
    font-weight: 600;
    border-radius: 50px;
    transition: .4s;
}

.navbar .btn-outline-primary:hover {
    background: var(--dark);
    color: #ffffff;
    border-color: var(--dark);
}

.navbar .btn-outline-primary .btn-sm-square {
    background: var(--dark) !important;
    color: #ffffff !important;
}

.navbar .btn-outline-primary:hover .btn-sm-square {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/*** Mobile Navbar ***/
@media (max-width: 991.98px) {

    .navbar {
        min-height: auto;
    }

    .navbar-brand img {
        max-height: 90px;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0,0,0,.08);
        background: #ffffff;
        padding: 15px;
        border-radius: 10px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        color: var(--dark);
    }

    .navbar-toggler {
        border: 2px solid var(--dark);
    }

    .navbar-toggler-icon {
        filter: brightness(0);
    }
}

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(6, 54, 26, 0.72);
    opacity: 60%;
    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(--primary);
    border: 12px solid var(--primary);
    border-radius: 50%;
}

@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 ***/
.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background:
        linear-gradient(rgba(6, 54, 26, 0.82), rgba(6, 54, 26, 0.82)),
        url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #cccccc;
}

/*** 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;
    background: var(--primary);
}

.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(6, 54, 26, 0.72);
    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);
    transition: .4s;
    border-radius: 15px;
}

.service-item:hover {
    transform: translateY(-5px);
}

/*** Donate ***/
.donate {
    background: rgba(6, 54, 26, 0.88);
}

.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: -20px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -50px;
    height: 150px;
}

.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 .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.center .testimonial-text * {
    color: #ffffff !important;
}

/*** Footer Logo ***/
.footer-logo img {
    max-width: 320px;
    height: auto;
    display: block;
}

/*** Footer ***/
.footer {
    background: var(--dark) !important;
}

.footer p {
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.7);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    text-decoration: none;
}

.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(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.5);
}

.footer .btn.btn-square:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer .copyright a {
    color: var(--primary);
    text-decoration: none;
}

.footer .copyright a:hover {
    color: #ffffff;
}

/* <---About section---> */
.cards-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.custom-card {
    display: flex;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-image {
    flex: 0 0 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    color: #06361a;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.card-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.card-btn {
    display: inline-block;
    width: fit-content;
    padding: 12px 24px;
    background: #d19f25;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 600;
}

.card-btn:hover {
    background: #06361a;
    color: #fff;
}

/* Mobile Responsive */
@media(max-width:768px){

    .custom-card{
        flex-direction: column;
    }

    .card-image{
        flex: auto;
        height: 250px;
    }

    .card-content{
        padding: 20px;
    }

    .card-content h3{
        font-size: 24px;
    }
}

.custom-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* Only cards with this class will have image on right */
.reverse-card {
    flex-direction: row-reverse;
}

.card-image {
    width: 40%;
}

.card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    width: 60%;
    padding: 30px;
}

@media (max-width: 768px) {
    .custom-card,
    .reverse-card {
        flex-direction: column;
    }

    .card-image,
    .card-content {
        width: 100%;
    }
}


.team-carousel .team-item{
    margin:10px;
}

.team-carousel .owl-stage{
    display:flex;
    align-items:stretch;
}

.team-carousel .team-item{
    height:100%;
}

.team-carousel .owl-dots{
    margin-top:20px;
    text-align:center;
}