
.loan-calculator-section {
    direction: rtl;
    background: #0f1a3a;
    padding: 100px 0;
    font-family: 'Vazirmatn', sans-serif;
}

.loan-calculator {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    color: #fff;
    position: relative;
    z-index: 99;
}

.calculator-results {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item span:first-child {
    font-size: 16px;
    color: #b0c4de;
}

.result-item span:last-child {
    font-size: 18px;
    font-weight: bold;
}

.request-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 20px;
}

.request-btn:hover {
    background-color: #0056b3;
}

.calculator-inputs {
    padding: 20px;
}

.calculator-inputs h2 {
    font-size: 24px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.custom-select, .amount-display {
    background: #fff;
    color: #333;
    border: none;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    font-size: 16px;
}

.amount-slider {
    margin-top: 20px;
}

.amount-slider input[type="range"] {
    padding: 0 !important;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #b0c4de;
}

.installments-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.installment-btn, .amount-display {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-grow: 1;
}

.installment-btn.active {
    background-color: #007bff;
    border-color: #007bff;
}

#loanAmount {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

#loanAmount::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid #007bff;
}

#loanAmount::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid #007bff;
}


.tv-brands-section.style-3 .brands-slider-three::before , .tv-brands-section.style-3 .brands-slider-three::after{
    display: none !important;
}

.tv-brands-section.style-3 .sponsors-outer .brand-item{
    background: rgba(0, 0, 0, 0.05); !important;
}

.heroLeftImg{
    bottom: -35%;
    left: calc(-30% + 120px);
}

.mobile-menu-area{
    background: rgba(255, 255, 255, 0.1) !important;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;
    z-index: 99 !important;
}

.blog-single-box .blog-image img{
    height: 280px;
}

@media (max-width: 1024px) {
    .heroLeftImg{
        display: none;
    }

    .loan-calculator{
        grid-template-columns: 1fr 1.3fr;
        gap: 0;
    }

    .installment-btn{
        padding: 10px;
    }

    .mx-30{
        margin: 0 !important;
    }

    .process-inner .col-lg-4:last-child{
        margin: auto;
        margin-top: var(--bs-gutter-y);
    }

    .faqImg{
        right: 265px !important;
    }

    .footer-widget{
        margin-right: 10px !important;
    }

    .footer-section .md-d-none{
        display: none;
    }

    .footer-section .footer-brand{
        padding-right: calc(var(--bs-gutter-x) * .5);
    }

    .sticky-header .row{
        --bs-gutter-x: 0;
    }

    .tv-project-wrapper{
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        position: relative;
        display: flex;
        align-items: stretch;
        gap: 20px; /* Add gap between cards */
        padding: 0 15px; /* Add padding for better spacing */
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .tv-project-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .tv-project-wrapper:hover {
        scroll-behavior: auto;
    }

    /* Visual indicator for infinite scroll */
    .tv-project-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100%;
        background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .tv-project-wrapper.scrolling::after {
        opacity: 1;
    }

    /* Unified scroll indicator for the entire wrapper */
@keyframes wrapper-scroll-indicator {
    0% {
        background: linear-gradient(to left, rgba(0,0,0,0.05), transparent);
    }
    50% {
        background: linear-gradient(to left, rgba(0,0,0,0.15), transparent);
    }
    100% {
        background: linear-gradient(to left, rgba(0,0,0,0.05), transparent);
    }
}

/* Apply animation to wrapper when not hovered */
.tv-project-wrapper:not(:hover):not(.scrolling) {
    animation: wrapper-scroll-indicator 3s ease-in-out infinite;
}

/* Remove individual card animations */
.tv-project-wrapper:not(:hover) .tv-project-card {
    animation: none;
}

    /* Ensure cloned cards work properly */
    .tv-project-wrapper .cloned-card {
        flex-shrink: 0;
        width: 85%; /* Slightly smaller for better UX */
        min-width: 85%;
    }

    /* Disable infinite scroll on larger screens */
    @media (min-width: 1025px) {
        .tv-project-wrapper::after {
            display: none;
        }

        .tv-project-wrapper:not(:hover):not(.scrolling) {
            animation: none;
        }
    }

    /* Adjust scroll speed for different screen sizes */
    @media (max-width: 768px) {
        .tv-project-wrapper {
            scroll-behavior: auto; /* Disable smooth scrolling on mobile for better performance */
        }
    }

    .tv-project-wrapper .tv-project-card{
        width: 85%; /* Slightly smaller for better UX */
        flex-direction: row !important;
        min-width: 85%;
        flex-shrink: 0;
        margin-right: 0; /* Remove margin since we're using gap */
    }

}

@media (max-width: 991px) {
    .headerLoginBtn{
        display: none;
    }

    .heroLeftImg{
        display: block;
        top: -100%;
        left: 0;
    }

    .sidebar-btn{
        margin-right: 10px;
    }

    .about-left{
        display: none;
    }

    .tv-process-section .process-inner .process-title h2{
        font-size: 80px;
    }
}

@media (max-width: 435px) {
    .sticky-header .row{
        --bs-gutter-x: 0;
    }

    .tv-header .row{
        --bs-gutter-x: 0;
    }

    .heroLeftImg{
        max-width: 200px !important;
        top: -37%;
        left: 0px;
    }

    .tv-hero-section.style-2 .hero-area .hero-left-content h2{
        font-size: 40px;
    }

    .tv-process-section .process-inner .process-title h2{
        font-size: 50px;
    }

    .loan-calculator {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /*.loginBtn{*/
    /*    display: none;*/
    /*}*/

    .faqImg{
        right: 5px !important;
    }

    .footerLinks , .footeBlog{
        display: none;
    }
    .loginBtn{
        padding: 10px 10px;
    }
    .loginBtn .arrow-all{
        display: none;
    }

    .sticky-header{
        width: calc(100% - 10px);
        right: 5px;
    }

    .tv-hero-section.style-2 .hero-area .hero-left-content .text-icon .text{
        font-size: 14px !important;
    }

    .tv-hero-section.style-2 .hero-area .hero-left-content a{
        margin-top: 70px !important;
    }

    .tv-hero-section.style-2 .hero-area .heroCal{
        margin-top: 70px !important;
    }

    .tv-project-wrapper .tv-project-card .project-content .project-text h2 a{
        font-size: 25px !important;
    }

    .menu-area .header-logo a img {
        max-width: 110px !important;
    }

    .tv-header .theme-btn , .sticky-header .theme-btn{
        font-size: 12px !important;
    }

    .calculator-inputs{
        padding: 20px 0 !important;
    }

    .tv-hero-section.style-2 .hero-area .hero-left-content .title br {
        display: none;
    }

}