/********** Template CSS **********/

/*** Prevent Zooming and Touch Actions ***/
html, body {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent double-tap zoom */
* {
    touch-action: manipulation;
}

/* Prevent zoom on input focus (iOS Safari) */
input, select, textarea {
    font-size: 16px !important;
    touch-action: manipulation;
}

/* Re-enable text selection for content areas */
p, h1, h2, h3, h4, h5, h6, span, div, article, section {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* iOS Safari specific zoom prevention */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent iOS Safari zoom on focus */
    input, select, textarea, button {
        font-size: 16px !important;
        transform: scale(1);
        transition: transform 0.5s;
    }
    
    /* Prevent accessibility zoom */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* Additional zoom prevention for all browsers */
html {
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/*** Custom Color Scheme ***/
:root {
    --bs-primary: #0d6b68;
    --bs-primary-rgb: 13, 107, 104;
}

.text-primary {
    color: #0d6b68 !important;
}

.bg-primary {
    background-color: #0d6b68 !important;
}

.btn-primary {
    background-color: #0d6b68;
    border-color: #0d6b68;
}

.btn-primary:hover {
    background-color: #095954;
    border-color: #095954;
}

.btn-outline-primary {
    color: #0d6b68;
    border-color: #0d6b68;
}

.btn-outline-primary:hover {
    background-color: #0d6b68;
    border-color: #0d6b68;
}

.border-primary {
    border-color: #0d6b68 !important;
}

/*** Navbar Logo ***/
.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 40px;
        max-width: 150px;
    }
}

/* Mobile navbar refinements */
@media (max-width: 991.98px) {
    /* Prevent hidden navbar offset on mobile */
    .sticky-top {
        top: 0 !important;
        position: sticky !important;
        width: 100%;
        z-index: 1030;
    }

    .navbar {
        padding: 10px 0;
        position: relative;
    }

    /* Make collapsed menu readable on white bg */
    .navbar .navbar-collapse {
        background: #ffffff;
        padding: 0.5rem 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        margin-top: 0.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 0.6rem 0;
        width: 100%;
    }

    /* Better dropdown behavior inside collapsed menu */
    .navbar .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .navbar .dropdown-menu {
        position: static;
        float: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        margin: 0;
        padding: 0.25rem 1rem;
    }

    .navbar .dropdown-menu .dropdown-item {
        padding: 0.5rem 0;
    }
}

/* Phone-specific logo size */
@media (max-width: 576px) {
    .navbar-logo {
        height: 34px;
        max-width: 130px;
    }
}

/* Ensure toggler icon is visible and themed */
.navbar-light .navbar-toggler {
    border-color: rgba(13, 107, 104, 0.25);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(13,107,104,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*** Partner Carousel Styles ***/
.partner-carousel {
    padding: 20px 0;
}

.partner-item {
    padding: 15px;
}

.partner-logo-wrapper {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 107, 104, 0.2);
    border-color: #0d6b68;
}

.partner-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo-wrapper:hover .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-carousel .owl-nav {
    display: none;
}

/*** Partners Infinite Scroll ***/
.partners-scroll-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-scroll {
    display: flex;
    animation: partnersScroll 25s linear infinite;
    white-space: nowrap;
    width: calc(200%);
}

.partner-logo-item {
    flex-shrink: 0;
    margin-right: 30px;
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    min-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Mobile responsive adjustments for partner logos */
@media (max-width: 575.98px) {
    .partner-logo-item {
        min-width: 140px;
        height: 80px;
        padding: 12px;
        margin-right: 15px;
        border-radius: 10px;
    }
    
    .partner-logo-img {
        max-height: 40px !important;
    }
    
    .partners-scroll-container {
        padding: 15px 0;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .partner-logo-item {
        min-width: 160px;
        height: 90px;
        padding: 15px;
        margin-right: 20px;
    }
    
    .partner-logo-img {
        max-height: 50px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .partner-logo-item {
        min-width: 180px;
        height: 100px;
        padding: 18px;
        margin-right: 25px;
    }
    
    .partner-logo-img {
        max-height: 60px !important;
    }
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(13, 107, 104, 0.2);
    border-color: #0d6b68;
}

.partner-logo-item .partner-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo-item:hover .partner-logo-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause animation on hover for better UX */
.partners-scroll-container:hover .partners-scroll {
    animation-play-state: paused;
}

.partner-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.partner-carousel .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(13, 107, 104, 0.3);
    transition: all 0.3s ease;
}

.partner-carousel .owl-dot.active {
    background: #0d6b68;
}

/*** Hero Section Enhancements ***/
.stats-card-compact {
    /* border-radius: 8px; */
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #ffffffbf;
    backdrop-filter: blur(10px);
}

/* Mobile responsive adjustments for stats cards */
@media (max-width: 575.98px) {
    .stats-card-compact {
        height: 100px;
        padding: 8px !important;
        margin-bottom: 10px;
    }
    
    .stats-card-compact h6 {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }
    
    .stats-card-compact small {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
    }
    
    .stats-icon-compact {
        width: 25px;
        height: 25px;
        font-size: 12px;
        margin-bottom: 4px !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .stats-card-compact {
        height: 120px;
    }
}

.stats-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0d6b68, #1a8b87);
}

.stats-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 107, 104, 0.15) !important;
    border-color: #0d6b68;
}

.stats-icon-compact {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(13, 107, 104, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 14px;
}

.service-chips-container {
    overflow: hidden;
    /* height: 40px; */
    position: relative;
    background: rgba(255, 255, 255, 0);
    border-radius: 20px;
    padding: 5px;
}

.service-chips {
    display: flex;
    animation: chipScroll 15s linear infinite;
    white-space: nowrap;
    width: calc(200%);
}

.service-chip {
    background: #ffffff31;
    backdrop-filter: blur(10px);
    color: #0d6b68;
    border: 2px solid #0d6b68;
    padding: 8px 16px;
    border-radius: 15px;
    margin-right: 10px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.service-chip:hover {
    background: #0d6b68;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 107, 104, 0.3);
}

.service-chip:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 107, 104, 0.3);
}

@keyframes chipScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/*** Service Cards with Card Background ***/
.service-card-bg {
    background: url(../img/card-bg.jpg) center center/cover;
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.service-card-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 107, 104, 0.738);
    z-index: 1;
}

.service-card-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.545);
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-bg:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.service-card-bg:hover::before {
    opacity: 0.95;
}

.counter {
    transition: all 0.3s ease;
}

/* Remove old large card styles */
.stats-card,
.service-buttons-wrapper,
.service-buttons,
.service-btn {
    display: none !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Prevent scrolling and zooming when spinner is active */
body.spinner-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

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

/*** Button ***/
.btn {
    transition: .5s;
}

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

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

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

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

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

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

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


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background-size: cover;
}
.hero-header-index {
    padding-top: 100px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}
.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

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

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


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

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


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

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

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

    /*** Hero Parallax Background (Secured Business Loan) ***/
    .hero-header.hero-parallax {
        position: relative;
        background: url(../img/busy-woman-doing-many-things-same-time.jpg) center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

    /* Light overlay for readability */
    .hero-header.hero-parallax::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.75);
        pointer-events: none;
    }

    /* Ensure content sits above overlay */
    .hero-header.hero-parallax > * {
        position: relative;
        z-index: 1;
    }

    /* Mobile/tablet fallback: disable fixed attachment for performance */
    @media (max-width: 991.98px) {
        .hero-header.hero-parallax {
            background-attachment: scroll;
            background-position: center top;
        }
    }

/* Generic Parallax Utility */
.paralyx {
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.paralyx::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.paralyx > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .paralyx {
        background-attachment: scroll;
        background-position: center top;
    }
}

/* Parallax right-anchor utility: keep subject on the right, crop left on small screens */
.paralyx-right {
    background-position: right center !important;
}

@media (max-width: 991.98px) {
    .paralyx-right {
    /* Keep subject inside by 200px from the right edge on small screens */
    background-position: right -250px center !important;
    }
    .paralyx-right-custom {
    /* Keep subject inside by 200px from the right edge on small screens */
    background-position: right -450px center !important;
    }
}

/* Force fixed parallax even on mobile when explicitly requested */
.paralyx-fixed-mobile {
    background-attachment: fixed !important;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

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

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

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

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

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

.bg-modern-white{
    background-color: #e9ecef9f;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #1a8b87;
}

.bg-light-modern{
    background-color: #71bcb9 !important;
    border: 1px solid #095954;
}