@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap");

/* Global Font Override */
body, .nav-link, .btn, p, span {
    font-family: 'Nunito Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', sans-serif;
}

/* Global Header Color Over Blue Banners (Scoped to specific pages, but only when NOT sticky) */
.header-white-text .header-menu-2:not(.navbar_fixed) .nav-link {
    color: #ffffff !important;
    font-weight: 600;
}

.header-white-text .header-menu-2:not(.navbar_fixed) .nav-link:hover, 
.header-white-text .header-menu-2:not(.navbar_fixed) .nav-link.active {
    color: #ffffff !important;
    opacity: 0.8;
}

/* Default dark color for other pages (like Apply) */
.header-menu-2 .nav-link {
    color: #333333;
    font-weight: 600;
}

/* Sticky Header Colors */
#sticky.navbar_fixed .nav-link {
    color: #333333 !important;
}

#sticky.navbar_fixed .nav-link.active {
    color: #0d6efd !important;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

section, .loan-slider-area, .loan-slider {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.avant-hero-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #003d99 100%); /* Pure Blue Gradient */
    position: relative;
    overflow: hidden;
    padding: 130px 0 180px; 
    color: #ffffff !important;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
    margin-bottom: -50px; 
}

.avant-hero-banner .hero-title, 
.avant-hero-banner .hero-desc,
.avant-hero-banner .hero-pre-title {
    color: #ffffff !important;
}

.avant-hero-btn {
    background: #ffffff !important;
    color: #0d6efd !important;
}

.avant-hero-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
}

/* The right-side geometric pattern - refined to be more "crystal" like */
.avant-hero-banner .hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03) 25%, transparent 25%), 
                linear-gradient(225deg, rgba(13, 110, 253, 0.03) 25%, transparent 25%), 
                linear-gradient(45deg, rgba(13, 110, 253, 0.03) 25%, transparent 25%), 
                linear-gradient(315deg, rgba(13, 110, 253, 0.03) 25%, transparent 25%);
    background-size: 80px 80px;
    opacity: 0.5;
    z-index: 1;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

.avant-hero-banner .container {
    position: relative;
    z-index: 2;
}

.avant-hero-banner .hero-content {
    max-width: 90%;
}

.avant-hero-banner .hero-pre-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #0d6efd;
}

.avant-hero-banner .hero-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: #111;
    text-transform: uppercase;
}

.avant-hero-banner .hero-title span {
    font-family: 'Playfair Display', serif !important;
    font-style: italic;
    font-weight: 700;
}

.avant-hero-banner .hero-desc {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
    max-width: 580px;
    margin-bottom: 40px;
}

.avant-hero-btn {
    display: inline-block;
    background-color: #0d6efd; /* bright blue */
    color: #ffffff;
    font-weight: 700;
    padding: 16px 32px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #0d6efd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.avant-hero-btn:hover {
    background-color: #0b5ed7;
    color: #ffffff;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.avant-hero-btn i {
    margin-right: 10px;
    font-weight: bold;
}

.avant-hero-banner .hero-image-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.avant-hero-banner .hero-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.avant-hero-banner .hero-image-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

/* Adjust layout for smaller screens */
@media (max-width: 991px) {
    .avant-hero-banner .hero-pattern {
        width: 100%;
        opacity: 0.3;
        clip-path: none;
    }
    
    .avant-hero-banner .hero-image-wrapper {
        position: static;
        margin-top: 50px;
        height: auto;
        justify-content: center;
    }
    
    .avant-hero-banner .hero-image-wrapper img {
        max-height: 400px;
    }
    
    .avant-hero-banner .hero-title {
        font-size: 2.2rem;
    }
}

/* Section Title Responsiveness */
@media (max-width: 768px) {
    .section-title h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 576px) {
    .section-title h1 {
        font-size: 28px !important;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .avant-hero-banner .hero-title {
        font-size: 2.5rem;
    }
    
    .avant-hero-banner .hero-pre-title {
        font-size: 1.1rem;
    }

    .avant-hero-banner .hero-desc {
        font-size: 1rem;
    }

    .avant-hero-banner {
        padding: 60px 0;
    }
}

/* Blue Avant-style Hero Banner (for About/Contact pages) */
.avant-hero-banner-blue {
    position: relative;
    padding: 140px 0 160px; /* Increased bottom padding for the slant */
    background-color: #0d6efd; /* bright blue */
    color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    margin-bottom: -40px;
}

.avant-hero-banner-blue .hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.2) 75%, rgba(0, 0, 0, 0.2)),
        linear-gradient(45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.2) 75%, rgba(0, 0, 0, 0.2));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.8;
    z-index: 1;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.avant-hero-banner-blue .container {
    position: relative;
    z-index: 2;
}

.avant-hero-banner-blue .hero-pre-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
}

.avant-hero-banner-blue .hero-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.avant-hero-banner-blue .hero-desc {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    color: #ffffff;
}

.avant-hero-banner-blue .hero-image-wrapper {
    position: relative; /* Changed from absolute */
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.avant-hero-banner-blue .hero-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.avant-hero-banner-blue .hero-image-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 991px) {
    .avant-hero-banner-blue .hero-pattern {
        width: 100%;
        opacity: 0.1;
        clip-path: none;
    }
    
    .avant-hero-banner-blue .hero-image-wrapper {
        position: static;
        margin-top: 50px;
        height: auto;
        justify-content: center;
    }
    
    .avant-hero-banner-blue .hero-image-wrapper img {
        max-height: 400px;
    }
    
    .avant-hero-banner-blue .hero-title {
        font-size: 3.5rem;
    }
}

/* Mobile adjustments for blue banner */
@media (max-width: 576px) {
    .avant-hero-banner-blue .hero-title {
        font-size: 2.5rem;
    }
    
    .avant-hero-banner-blue .hero-pre-title {
        font-size: 1.2rem;
    }

    .avant-hero-banner-blue .hero-desc {
        font-size: 1.1rem;
    }

    .avant-hero-banner-blue {
        padding: 80px 0 60px;
    }
}

/* Back to Top Styling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.back-to-top-icon {
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top-icon:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-5px);
}

/* Values Section & Cards */
.bg_light {
    background-color: #f8f9fa !important;
}

.section-tag-minimal {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.value-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 15px;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: #0d6efd;
    color: #ffffff;
    transform: rotateY(360deg);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* --- Multi-Step Form Styles --- */
.step-form-area {
    background-color: #f8fafc;
}

.stepper-sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 40px;
    width: 2px;
    height: 25px;
    background: #e2e8f0;
}

.step-item.active {
    opacity: 1;
}

.step-item.completed {
    opacity: 0.8;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.step-item.completed .step-number {
    background: #198754;
    color: #ffffff;
}

.step-item.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-item.completed .step-number {
    font-size: 0; /* Hide number */
}

.step-item.completed .step-number:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}

.step-title {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 2px;
}

.step-desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

/* Form Content Area */
.form-container {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 500px;
}

.form-step {
    display: none;
    animation: fadeInStep 0.5s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.amount-btn {
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #475569;
}

.amount-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #ffffff;
}

.loan-input-wrapper .input-group {
    border: 2px solid #e2e8f0 !important;
    transition: border-color 0.3s ease;
}

.loan-input-wrapper .input-group:focus-within {
    border-color: #0d6efd !important;
}

.loan-input-wrapper input {
    font-size: 2.5rem;
    height: 80px;
    color: #1e293b;
}

.loan-input-wrapper input::placeholder {
    color: #cbd5e1;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(25, 135, 84, 0.08);
    color: #198754;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-pill i {
    margin-right: 8px;
}

.review-card {
    border: 1px solid #e2e8f0;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .stepper-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 20px;
        margin-bottom: 30px;
        white-space: nowrap;
    }
    
    .step-item {
        margin-bottom: 0;
        margin-right: 30px;
        flex-shrink: 0;
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}
