/********** Template CSS **********/
:root {
    --primary: #f89e39;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

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

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

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

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !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;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-primary,
.btn-outline-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.btn-outline-primary:hover {
    background-color: #e7832b;
    border-color: #e7832b;
    color: var(--light);
}

.btn-outline-primary {
    color: var(--primary);
    background-color: 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;
}


.coin-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.coin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff4b0 0%, #f9c74f 35%, #c98b00 85%);
    box-shadow: 0 0 6px rgba(255, 199, 76, 0.7);
    opacity: 0.8;
    animation: coin-fall 8s linear infinite;
}

.coin::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.65);
}

.note {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffe39a 0%, #f9c74f 45%, #c98b00 100%);
    color: #7a4f00;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(201, 139, 0, 0.25);
    opacity: 0.85;
    animation: coin-fall 9.5s linear infinite;
}

.coin-1 { left: 6%; top: -20px; animation-delay: 0s; }
.coin-2 { left: 20%; top: -30px; animation-delay: 1.6s; }
.coin-3 { left: 38%; top: -25px; animation-delay: 3.2s; }
.coin-4 { left: 62%; top: -35px; animation-delay: 4.4s; }
.coin-5 { left: 78%; top: -20px; animation-delay: 2s; }
.coin-6 { left: 92%; top: -28px; animation-delay: 5.7s; }
.note-1 { left: 14%; top: -22px; animation-delay: 2.8s; }
.note-2 { left: 52%; top: -34px; animation-delay: 4.8s; }
.note-3 { left: 86%; top: -24px; animation-delay: 6.4s; }

@keyframes coin-fall {
    0% {
        transform: translate3d(0, -40px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translate3d(6px, 180px, 0) rotate(18deg);
    }
    100% {
        transform: translate3d(-8px, 360px, 0) rotate(-22deg);
        opacity: 0;
    }
}

/*** Navbar ***/
.navbar-brand {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.navbar-brand .site-logo {
    display: block;
    width: 246px;
    min-width: 246px;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

.fixed-top {
    transition: .5s;
}

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

.top-bar small {
    display: inline-flex;
    align-items: center;
    font-size: 0.92rem;
}

.top-bar .fa {
    font-size: 1rem;
}

.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 {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar-brand .site-logo {
        width: 246px;
        min-width: 246px;
    }

    .navbar {
        min-height: 70px;
    }

    #header-carousel {
        margin-top: 70px;
    }

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

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

@media (max-width: 575.98px) {
    .navbar-brand {
        margin-left: 0 !important;
    }

    .navbar-brand .site-logo {
        width: 246px;
        min-width: 246px;
    }

    #header-carousel {
        margin-top: 64px;
    }
}

@media (min-width: 992px) {
    .top-bar .fa {
        font-size: 1.1rem;
    }

    .top-bar small {
        font-size: 0.95rem;
    }
    .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;
    }
}


/*** Philosophy Section ***/
.home-philosophy {
    background: linear-gradient(135deg, #fffaf4 0%, #f8f9fb 100%);
    border: 1px solid rgba(248, 158, 57, 0.18);
    border-radius: 20px;
    padding: 30px 32px;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
}

.home-philosophy h3 {
    color: #111827;
    line-height: 1.4;
}

.home-philosophy p {
    color: #5b5b5b;
    font-size: 1rem;
}

.home-philosophy blockquote {
    margin: 0;
    padding: 20px 22px;
    border-left: 4px solid var(--primary);
    background: rgba(248, 158, 57, 0.08);
    border-radius: 12px;
    color: #4b5563;
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.7;
}

/*** Wisdom Quotes ***/
.quote-card {
    position: relative;
    background: linear-gradient(135deg, #fffdf8 0%, #f7f8fb 100%);
    border: 1px solid rgba(248, 158, 57, 0.16);
    border-radius: 18px;
    padding: 24px 22px;
    min-height: 220px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
    transition: all 0.4s ease;
}

.quote-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(248, 158, 57, 0.16);
}

.quote-card.highlight-card {
    background: linear-gradient(135deg, #fff4e6 0%, #fffdfa 100%);
    border-color: rgba(248, 158, 57, 0.35);
}

.quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.quote-card p {
    color: #333333;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.quote-card span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/*** Loan Cards ***/
.loan-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    border: 1px solid rgba(248, 158, 57, 0.18);
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    overflow: hidden;
    transition: all 0.4s ease;
}

.loan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #ffbf74);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.loan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(248, 158, 57, 0.18);
    border-color: rgba(248, 158, 57, 0.4);
}

.loan-card:hover::before {
    transform: scaleY(1);
}

.loan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ffbf74);
    color: #fff;
    font-size: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(248, 158, 57, 0.25);
}

.loan-card h4 {
    color: #111827;
    margin-bottom: 10px;
}

.loan-card p {
    color: #5b5b5b;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
    padding: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

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

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 1.25rem;
        align-items: flex-end;
        justify-content: flex-start;
        text-align: left;
    }

    .carousel-caption .container {
        padding: 0;
    }

    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 2.2rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.2rem;
        height: 2.2rem;
        border-width: 6px;
    }
}

@media (max-width: 575.98px) {
    .carousel-caption {
        padding: 1rem;
        align-items: flex-end;
    }

    .carousel-caption h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .carousel-caption .btn {
        padding: 0.7rem 1.1rem !important;
        font-size: 0.95rem;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

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


/*** Facts ***/
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}


/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
    z-index: -1;
}


/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

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


/*** Team ***/
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

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

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

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


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

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

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

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

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


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

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

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