/**
 * LoanAssure Website Main Stylesheet
 * Modern, responsive design for business loan consultancy
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-color: #254c9b;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    
    /* Neutral Colors */
    --dark-color: #1f2937;
    --darker-color: #111827;
    --light-color: #eaf4ff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Font Weights */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 15px;
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Utility Classes */
.fw-light { font-weight: var(--fw-light); }
.fw-normal { font-weight: var(--fw-normal); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-500 { font-weight: 500; }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-dark { color: var(--dark-color) !important; }
.text-light { color: var(--gray-400) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }
.bg-darker { background-color: var(--darker-color) !important; }
.bg-light { background-color: var(--light-color) !important; }

/* ===== HEADER STYLES ===== */
.top-bar {
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: white !important;
    transition: var(--transition-fast);
}

.top-bar a:hover {
    opacity: 0.8;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.main-header {
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: var(--fw-bold);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: var(--fw-medium);
    color: var(--gray-700) !important;
    padding: 0.75rem 1rem !important;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: var(--fw-medium);
    color: var(--gray-700);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* ===== BUTTON STYLES ===== */
.btn {
    font-weight: var(--fw-medium);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition-fast);
    /* border: none; */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== FOOTER STYLES ===== */
.footer {
    margin-top: auto;
}

.footer-main {
    background-color: var(--dark-color);
}

.footer-widget h5 {
    color: white;
    font-weight: var(--fw-semibold);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-item i {
    font-size: 1.125rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-700);
    color: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.bank-partners {
    background-color: var(--light-color) !important;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom {
    background-color: var(--darker-color);
    border-top: 1px solid var(--gray-700);
}

.footer-bottom-links a {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.stat-item h6 {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.25rem;
}

/* ===== FLOATING ACTION BUTTONS ===== */
.quick-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-float,
.call-float,
.apply-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float {
    background-color: #25d366;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

.call-float {
    background-color: var(--primary-color);
}

.call-float:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: scale(1.1);
}

.apply-float {
    background-color: var(--secondary-color);
}

.apply-float:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .quick-actions {
        right: 15px;
        bottom: 15px;
    }
    
    .whatsapp-float,
    .call-float,
    .apply-float {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .footer-main {
        text-align: center;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .back-to-top {
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* ===== COMMON SECTION STYLES ===== */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: var(--fw-semibold);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .navbar,
    .footer,
    .quick-actions,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}
.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-dark) 100%);
}

.benefit-card,
.loan-type-card,
.eligibility-card,
.document-category {
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover,
.loan-type-card:hover,
.eligibility-card:hover,
.document-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon i,
.loan-type-icon i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loan-type-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.loan-type-icon i {
    font-size: 2.5rem;
}

.loan-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.category-item {
    padding: 0.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.classification-card {
    border: none;
    box-shadow: var(--shadow-lg);
}

.document-list li,
.eligibility-list li {
    font-size: 0.9rem;
}

.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-step {
    position: relative;
    padding: 1.5rem 1rem;
}

.step-circle {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.step-number {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-icon i {
    font-size: 2rem;
}

.step-title {
    font-weight: var(--fw-semibold);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.timeline-info-card {
    border: none;
    box-shadow: var(--shadow-lg);
}

.timeline-stat h4 {
    margin-bottom: 0.5rem;
}

.rates-table {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.rates-table th {
    font-weight: var(--fw-semibold);
    border: none;
    padding: 1rem;
}

.rates-table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--gray-200);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: var(--fw-medium);
    border-radius: var(--border-radius) !important;
    border: none;
    background-color: var(--light-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--success-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.msme-cta {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-dark) 100%);
}

@media (max-width: 991.98px) {
    .loan-type-header {
        flex-direction: column;
        text-align: center;
    }

    .rates-table {
        font-size: 0.9rem;
    }

    .process-timeline .col-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .msme-cta .row {
        text-align: center;
    }

    .rates-table {
        font-size: 0.8rem;
    }

    .rates-table th,
    .rates-table td {
        padding: 0.75rem 0.5rem;
    }

    .category-item {
        margin-bottom: 0.5rem;
    }
}

.cta-content h2 {
    color: white;
    font-weight: var(--fw-bold);
    margin-bottom: 1rem;
}

.cta-content p {
    color: white;
    font-size: 0.9
}

.loan-card{
    border: 2px solid var(--primary-color);
}

.loan-card .card-title{
    color: var(--primary-color);
}

.page-header h1{
    color: #fff!important;
}

.page-header p{
    color: #fff!important;
}

.border-primary {
    border: 2px solid var(--primary-color) !important;
}

.border-secondary {
    border: 2px solid var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}
.text-secondary {
    color: var(--secondary-color) !important;
}   

.feature-item {
    background: #fff;
    padding: 5px 20px;
    box-shadow: 0px 0px 5px #d8d8e3;
    border-radius: 10px;
}

.border-top-primary {
    border-top: 4px solid var(--primary-color) !important;
}

.border-top-secondary {
    border-top: 4px solid var(--secondary-color) !important;
}

.border-bottom-primary {
    border-bottom: 4px solid var(--primary-color) !important;
}

.border-bottom-secondary {
    border-bottom: 4px solid var(--secondary-color) !important;
}