﻿/* ====== Base Styles ====== */
:root {
    --primary-color: #1677b9;
    --primary-light: #e6ecfe;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --success-light: #e6f7fd;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --warning-light: #fef3e6;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-color: #e9ecef;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fb;
    color: var(--dark-color);
}
.bg-primary-light {
    background-color: rgba(13, 110, 253, 1.1) !important; /* Very light blue */
}

.bg-success-light {
    background-color: rgba(25, 135, 84, 1.1) !important; /* Very light green */
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 1.1) !important; /* Very light yellow */
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 1.1) !important; /* Very light red */
}
/* ====== Auth Background ====== */
.auth-bg-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0179c3 0%, #00a8ff 100%);
}

.auth-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ====== Tool Cards ====== */
.tool-card {
    /*background: white;*/
   /* border-radius: 10px;*/
    padding: 25px;
    text-align: center;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);*/
    transition: all 0.3s ease;
   /* border: 1px solid var(--border-color);*/
}

    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.tool-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tool-description {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 15px;
}

/* ====== Loan Products ====== */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--primary-color);
    }



    .loan-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.loan-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.loan-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.loan-description {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 20px;
    position: relative;
    max-height: 6em; /* 4 lines * 1.5 line-height */
    overflow: hidden;
    line-height: 1.5em;
}
    .loan-description::after {
        content: "...";
        position: absolute;
        bottom: 0;
        right: 0;
        padding-left: 20px;
        background: linear-gradient(to right, transparent, white 50%);
    }
/* ====== Button Styles ====== */
.btn {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-2px);
    }

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

/* ====== Responsive Styles ====== */
@media (max-width: 992px) {
    .auth-bg-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .tool-card, .loan-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 22px;
    }

    .loan-title {
        font-size: 18px;
    }

    .loan-description {
        font-size: 13px;
    }
}
.icon {
    margin: auto;   
    height: 104px;
    width: 104px;      
    overflow: hidden;
    display: flex;
    text-align: center;
   
}
.icon img {
    display: inline-block;
}
.loan-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.loan-products-scrollable {
    max-height: 350px; /* Adjust based on your card height */
    overflow-y: auto;
    grid-template-columns: repeat(3, 1fr);
    padding-right: 10px;
    /*background-color: #1677b9;*/
}

@media (max-width: 992px) {
    .loan-products-scrollable {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .loan-products-scrollable {
        grid-template-columns: 1fr;
    }
}
#loanCheckModal {
    z-index: 1060; /* Ensure it appears above other elements */
}

    #loanCheckModal .modal-content {
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        border: none;
    }

    #loanCheckModal .modal-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 1.25rem 1.5rem;
    }

    #loanCheckModal .modal-body {
        padding: 1.5rem;
    }

    #loanCheckModal .btn {
        padding: 0.5rem 1.25rem;
        font-weight: 500;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
    }

    #loanCheckModal .btn-primary {
        background-color: #4361ee;
        border-color: #4361ee;
    }

    #loanCheckModal .btn-warning {
        background-color: #f59e0b;
        border-color: #f59e0b;
        color: #fff;
    }
/* Make modal backdrop transparent */
.modal-backdrop {
    background-color: transparent !important;
    opacity: 1 !important;
}

/* Ensure modal content is still visible */
.modal {
    background-color: rgba(0, 0, 0, 0.1); /* Slight tint to help content stand out */
}

/* Optional: Add subtle shadow to modal for better visibility */
.modal-content {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}