/* --- 1. Root Variables & Global Styles --- */
:root {
    --primary-blue: #0A4F8A;
    --soft-blue: #E6F0F8;
    --accent-orange: #E89A3C;
    --accent-orange-darker: #D68A2E;
    --dark-gray: #1F2937;
    --medium-gray: #4B5563;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --text-dark: #111827;
    --text-light: #6B7280;
    --text-white-muted: #e0e0e0;
    --primary-blue-rgb: 10, 79, 138;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

body.popup-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    font-weight: 600;
}

h1 { font-weight: 700; }


    .btn-hero {
        display: inline-block;
        background-color: rgba(255, 255, 255, 0.15);
        border: 2px solid white;
        color: white;
        padding: 0.75rem 2.5rem; /* 12px 40px */
        font-size: 1.25rem; /* 20px */
        font-weight: 600;
        border-radius: 0.5rem; /* 8px */
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .btn-hero:hover {
        background-color: white;
        color: #0A4F8A; /* Assuming this is your primary blue color */
        transform: translateY(-3px);
    }

    .loan-type-label {
        color: #e5e7eb; /* A slightly dimmer white for the subtitle */
        font-weight: 500;
        margin-top: 0.5rem; /* 8px */
    }
    
    .loan-section{
        display: flex;
        flex-direction: row;
        width: auto;
        justify-content: center;
        column-gap: 3rem;
    }
/* --- 2. Utility & Animation Classes --- */
.section-padding { padding: 5rem 0; }
.section-title { color: var(--primary-blue); margin-bottom: 1rem; }
.section-subtitle { max-width: 600px; margin: 0 auto 3rem auto; color: var(--text-light); font-size: 1.1rem; }

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-blue-rgb), 0.2);
    border: none;
}
.btn-accent:hover {
    background-color: var(--accent-orange-darker);
    box-shadow: 0 6px 20px rgba(var(--primary-blue-rgb), 0.3);
    color: var(--white);
    transform: translateY(-3px);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* --- 3. Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; background: url('/images/hero-bg.png') no-repeat center center; background-size: cover; position: relative; color: var(--white); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(10 79 138 / 24%), rgba(10, 79, 138, 0.8)); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 2rem; }
.hero-content h1 { color: var(--white); font-size: 3.2rem; margin-bottom: 1rem; animation: fadeIn 1s ease-out; }
.hero-content .lead { font-size: 1.25rem; max-width: 650px; margin: 0 auto 2rem; }
.hero-content .loan-amount-title { font-weight: 600; font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1.5rem; }

/* --- 4. Feature Section --- */
.features { background-color: var(--light-gray); }
.feature-card { background: var(--white); border: 1px solid #e9ecef; border-radius: 12px; padding: 2.5rem 1.5rem; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.feature-card .icon-wrapper { width: 70px; height: 70px; margin: 0 auto 1.5rem auto; background-color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.75rem; }
.feature-card h3 { color: var(--dark-gray); font-size: 1.3rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-light); line-height: 1.6; }

/* --- 5. Use Cases Section --- */
.use-cases { background-color: var(--primary-blue); }
.use-cases .section-title { color: var(--white); }
.use-case-item { background: var(--white); padding: 2rem; border-radius: 12px; margin-bottom: 1rem; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07); transition: transform 0.3s ease; }
.use-case-item:hover { transform: translateY(-5px); }
.use-case-item h3 { color: var(--primary-blue); font-size: 1.25rem; }
.use-case-item p { color: var(--text-light); }

/* --- 6. Process Section --- */
.process-timeline { position: relative; padding-left: 3rem; }
.process-timeline::before { content: ''; position: absolute; left: 1.5rem; top: 10px; bottom: 10px; width: 3px; background-color: var(--soft-blue); }
.process-step { position: relative; margin-bottom: 3rem; }
.process-step:last-child { margin-bottom: 0; }
.process-step h3 { color: var(--primary-blue); font-size: 1.4rem; }
.process-step p { color: var(--text-light); }
.process-step::before { content: ''; position: absolute; left: -2.85rem; top: 10px; width: 24px; height: 24px; background-color: var(--primary-blue); border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 0 0 3px var(--primary-blue); }

/* --- 7. Testimonials Section --- */
.testimonials { background-color: var(--soft-blue); }
.testimonial-card { background: var(--white); border-radius: 12px; padding: 2.5rem; box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08); position: relative; height: 100%; }
.testimonial-card i.fa-quote-left { color: var(--primary-blue); font-size: 2.5rem; position: absolute; top: 20px; left: 25px; opacity: 0.1; }
.testimonial-card p { font-style: italic; color: var(--text-dark); font-size: 1.05rem; margin-top: 1rem; }
.testimonial-card h5 { color: var(--primary-blue); font-weight: 600; }

/* --- 8. Responsible Lending Section --- */
.responsible-lending { background-color: var(--white); }
.ola-seal { max-width: 150px; height: auto; margin-top: 1rem; transition: transform 0.3s ease; }
.ola-seal:hover { transform: scale(1.05); }

/* --- 9. FAQ Section (Accordion) --- */
.faqs { background-color: var(--light-gray); }
.accordion-item { border-radius: 8px !important; margin-bottom: 1rem; border: 1px solid #DEE2E6; overflow: hidden; }
.accordion-button { font-size: 1.1rem; color: var(--text-dark); background-color: var(--white); font-weight: 500; }
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(var(--primary-blue-rgb), 0.25); }
.accordion-button:not(.collapsed) { color: var(--white); background-color: var(--primary-blue); }
.accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.accordion-body { background-color: var(--white); padding: 1.5rem; color: var(--text-light); }

/* --- 10. CTA Section --- */
.cta { background-color: var(--primary-blue); }
.cta h2 { color: var(--white); font-size: 2.2rem; }
.cta p { color: var(--text-white-muted); font-size: 1.15rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- 11. Footer --- */
.footer { background-color: var(--dark-gray); color: var(--light-gray); padding: 4rem 0; text-align: center; }
.footer a { color: var(--light-gray); text-decoration: none; margin: 0 0.75rem; transition: color 0.3s ease; font-size: 0.9rem; }
.footer a:hover { color: var(--accent-orange); }
.footer .copyright { color: #A0AEC0; font-size: 0.9rem; }
.footer .disclaimer { color: #718096; font-size: 0.8rem; max-width: 800px; margin: 0 auto; }

/* --- 12. Popups (Modals) --- */
.popup-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 1050; overflow-y: auto; padding: 1rem; opacity: 0; transition: opacity 0.3s ease; }
.popup-content { background-color: var(--white); padding: 2rem; border-radius: 8px; max-width: 700px; width: 95%; position: relative; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25); max-height: 90vh; overflow-y: auto; }
.popup-content h2 { font-size: 1.75rem; margin-bottom: 1.5rem; color: var(--primary-blue); }
.popup-content h3 { font-size: 1.25rem; margin-top: 1.5rem; color: var(--dark-gray); }
.popup-content p, .popup-content li { font-size: 1rem; color: var(--text-light); }
.popup-content ul { list-style-position: inside; padding-left: 0.5rem; }
.close-btn { background-color: var(--medium-gray); color: var(--white); border: none; padding: 0.6rem 1.8rem; border-radius: 6px; font-weight: 500; transition: background-color 0.3s ease; margin-top: 1.5rem; float: right; }
.close-btn:hover { background-color: var(--dark-gray); }

/* --- 13. Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .lead { font-size: 1.15rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    .hero { min-height: auto; padding: 6rem 0 4rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .lead { font-size: 1rem; }
    .hero-content .loan-amount-title { font-size: 1.3rem; }
    .btn-hero { padding: 0.7rem 1.5rem; font-size: 1rem; display: block; margin: 10px auto; max-width: 250px; }
    .footer { padding: 2.5rem 0; }
    .footer a { margin: 0 0.5rem; display: inline-block; margin-bottom: 0.5rem; }
    .popup-content { padding: 1.5rem; }
    .cta h2 { font-size: 1.8rem; }
}

    .loan-option-card {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    .loan-option-card:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-8px);
        border-color: rgba(255, 255, 255, 0.4);
    }