/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

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

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

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

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

.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;
    border-radius: 0px;
}


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

.navbar {
    position: relative;
    z-index: 9999;
}
.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

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

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

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand {
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: 0;
    transition: .5s;
}

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

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

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


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

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


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

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

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--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;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** 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,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

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

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

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

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

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/**********************************/
/*** HOMEPAGE HERO DONATION UI ***/
/**********************************/

/* Transparent navbar over image */
.navbar {
    position: absolute;
    width: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(4px);
}

/* Keep navbar fixed after scrolling */
.navbar.sticky-top {
    position: fixed;
    background: rgba(0,0,0,0.85) !important;
}

/* White nav links over hero image */
.navbar-light .navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-weight: 600;
}

/* Hero section */
.hero-donate {
    position: relative;
    width: 100%;
    min-height: 980px;
    overflow: visible;
}

/* Fullscreen background image */
.hero-donate > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* Left side text */
.hero-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    z-index: 2;
    color: #FFFFFF;
    max-width: 600px;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.7;
}

/* Floating Givebutter box */
.givebutter-floating {
    position: absolute;
    top: 120px;
    right: 5%;
    width: 430px;

    background: rgba(255,255,255,0.96);
    border-radius: 22px;
    padding: 20px;

    box-shadow: 0 15px 50px rgba(0,0,0,0.45);

    z-index: 3;
}

/* Mobile responsiveness */
@media (max-width: 991px) {

    .hero-donate {
        height: auto;
    }

    .hero-donate img {
        position: relative;
        height: 500px;
    }

    .hero-content {
        position: absolute;
        top: 42%;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .givebutter-floating {
        position: relative;
        top: auto;
        right: auto;
        transform: none;

        width: 92%;
        margin: -40px auto 40px auto;
    }

    .navbar {
        background: rgba(0,0,0,0.85) !important;
    }
}

/* Force hero text to stay white during animations */
.hero-content,
.hero-content h1,
.hero-content p,
.hero-content * {
    color: #FFFFFF !important;
}

/* Hero headline color */
.hero-content h2 {
    color: #ff9f1c !important;
}

/* Hero headline fonts */
.hero-content h1,
.hero-content h2 {
    font-family: "Times New Roman", Times, serif !important;
}

.hero-logo {
    position: absolute;
    top: 110px;
    left: 60px;
    z-index: 2;
}

.hero-logo img {
    width: 300px;
    height: auto;
}

/* Donate image above Givebutter form */
.donate-header {
    text-align: center;
    margin-bottom: 15px;
}

.donate-header img {
    width: auto;
    max-width: 100%;
    height: auto;
}

/**********************************/
/*** JOSHUA STORY SECTION ***/
/**********************************/

.story-section {
    background: #f8f6f2;
    padding: 100px 0;
}

.story-wrapper {
    display: flex;
    align-items: center;
    gap: 70px;
}

/* Left image */
.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 6px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Right content */
.story-content {
    flex: 1;
}

.story-content h5 {
    color: #c58a18;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}

.story-content h2 {
    font-family: "Times New Roman", Times, serif;
    font-size: 3rem;
    color: #1c1c1c;
    margin-bottom: 25px;
}

.story-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

/* Quote */
.story-quote {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 2rem;
    color: #c58a18;
    margin-top: 40px;
    line-height: 1.3;
}

/* Divider */
.story-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.story-divider span {
    height: 2px;
    width: 80px;
    background: #c58a18;
}

.story-divider i {
    color: #c58a18;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {

    .story-wrapper {
        flex-direction: column;
    }

    .story-content {
        text-align: center;
    }

    .story-divider {
        justify-content: center;
    }

    .story-content h2 {
        font-size: 2.3rem;
    }

    .story-quote {
        font-size: 1.6rem;
    }
}
/**********************************/
/*** LEGACY + GIFT SECTIONS ***/
/**********************************/

.legacy-section,
.gift-section {
    background: #f8f6f2;
    padding: 55px 0;
}

.legacy-wrapper,
.gift-wrapper {
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    gap: 45px;
}

/* Images */
.legacy-image img,
.gift-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Content */
.legacy-content h5,
.gift-content h5 {
    color: #c58a18;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.legacy-content h2,
.gift-content h2 {
    font-family: "Times New Roman", Times, serif;
    font-size: 3.2rem;
    line-height: 1.05;
    color: #1b1b1b;
    margin-bottom: 18px;
}

.legacy-content p,
.gift-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 18px;
}

/**********************************/
/*** ICON ROW ***/
/**********************************/

.legacy-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.legacy-icon-item {
    text-align: center;
    padding: 0 6px;
}

.legacy-icon-item i {
    font-size: 2.2rem;
    color: #c58a18;
    margin-bottom: 12px;
}

.legacy-icon-item h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.legacy-icon-item p {
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0;
}

/**********************************/
/*** QUOTE BOX ***/
/**********************************/

.gift-quote-box {
    background: #f5f2ee;
    border-radius: 10px;
    padding: 28px;
    margin-top: 25px;

    border: 1px solid rgba(0,0,0,0.08);
}

.gift-quote-box i {
    color: #c58a18;
    font-size: 2rem;
    margin-bottom: 10px;
}

.gift-quote-box p {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.gift-quote-box span {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 1.8rem;
    color: #c58a18;
}

/**********************************/
/*** MOBILE ***/
/**********************************/

@media (max-width: 991px) {

    .legacy-wrapper,
    .gift-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .legacy-content,
    .gift-content {
        text-align: center;
    }

    .legacy-content h2,
    .gift-content h2 {
        font-size: 2.3rem;
    }

    .legacy-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {

    .legacy-icons {
        grid-template-columns: 1fr;
    }

    .gift-quote-box span {
        font-size: 1.4rem;
    }
}

/**********************************/
/*** FULL GRAPHIC SECTIONS ***/
/**********************************/

.graphic-section {
    background: #f8f6f2;
    padding: 25px 0;
}

.graphic-section img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 10px;
}

/**********************************/
/*** BOTTOM GRAPHIC LINES ***/
/**********************************/

.graphic-row {
    display: flex;
    width: 100%;
    gap: 0;
    background: #f8f6f2;
}

.graphic-half {
    width: 50%;
}

.graphic-half img {
    width: 100%;
    height: auto;
    display: block;
}

.graphic-full {
    width: 100%;
    background: #f8f6f2;
}

.graphic-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {

    .graphic-row {
        flex-direction: column;
    }

    .graphic-half {
        width: 100%;
    }
}

/**********************************/
/*** NAVBAR LOGO ***/
/**********************************/

.navbar-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {

    .navbar-logo {
        height: 45px;
    }

}

.navbar .navbar-nav {
    align-items: center;
}

.navbar .nav-link {
    position: relative;
    z-index: 1001;
}
/**********************************/
/*** BOOKMARK OFFSET FIX ***/
/**********************************/

#contact {
    scroll-margin-top: 90px;
}

/**********************************/
/*** HOTSPOTS FOR LINE-004 IMAGE **/
/**********************************/
.hotspot-wrapper {
    position: relative;
}

.hotspot {
    position: absolute;
    z-index: 9999;
    display: block;
}

.hotspot-001 {
    left: 2%;
    bottom: 18%;
    width: 38%;
    height: 30%;
}

.hotspot-002 {
    right: 27%;
    bottom: 16%;
    width: 24%;
    height: 11%;
/* LEFT LOGO/TEXT AREA */
.hotspot-001 {
    left: 1.5%;
    bottom: 18%;
    width: 37%;
    height: 33%;
}

/* WEBSITE ADDRESS AREA */
.hotspot-002 {
    right: 28%;
    bottom: 17%;
    width: 22%;
    height: 12%;
}

/* Optional hover testing */
.hotspot:hover {
    background: rgba(255,255,255,0.08);
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .hotspot-001 {
        left: 2%;
        bottom: 16%;
        width: 55%;
        height: 30%;
    }

    .hotspot-002 {
        right: 18%;
        bottom: 14%;
        width: 45%;
        height: 10%;
    }

}

/**********************************/
/*** HOTSPOT CLICK FIX ************/
/**********************************/

.hotspot-wrapper {
    position: relative;
}

.hotspot-wrapper img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hotspot {
    position: absolute;
    z-index: 9999;
    display: block;
    cursor: pointer;
}

/* LEFT LOGO AREA */
.hotspot-001 {
    left: 2%;
    bottom: 18%;
    width: 38%;
    height: 30%;
}

/* WEBSITE TEXT AREA */
.hotspot-002 {
    right: 27%;
    bottom: 16%;
    width: 24%;
    height: 11%;
}