/* ... existing styles ... */

/* Header & Navigation Fixes */
nav {
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    min-height: 100px;
    background: #000000 !important;
    transition: all 0.3s ease;
}

.logo img {
    height: 90px;
    width: auto;
    transition: all 0.3s ease;
}

body {
    padding-top: 100px !important;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}


.nav-links.desktop-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links.desktop-menu a {
    color: #e0e0e0;
    font-size: 1rem;
    text-transform: capitalize;
    /* As per image "About Us" etc */
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.nav-links.desktop-menu a:hover,
.nav-links.desktop-menu a.active {
    color: #fff;
    border-bottom-color: #fff;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    /* Expands hover area downwards slightly */
    margin-bottom: -10px;
    /* Compensate for padding */
}

/* The Trigger (Login / Loans) */
/* The Trigger (Login / Loans) */
.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Specific Style for Loan Dropdown in Nav Links to match other links */
/* Specific Style for Loan Dropdown in Nav Links - Text Link Style */
.nav-links .dropbtn {
    padding: 10px 0;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    margin-left: 0;
}

.nav-links .dropbtn:hover,
.nav-links .dropdown:hover .dropbtn {
    color: var(--primary) !important;
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--primary);
    box-shadow: none;
}

/* Specific Style for Login Dropdown (keep pill shape) */
.nav-actions .dropbtn {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid transparent;
}

.nav-actions .dropbtn:hover,
.nav-actions .dropdown:hover .dropbtn {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Content - Premium Style */
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 4px;
    /* Sharper, more professional corners */
    overflow: visible;
    /* Modified for top border */
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.25s ease-out;
    margin-top: 10px;
    padding: 8px;
    border-top: 3px solid #fff;
    /* Gold Top Border */
}

/* Invisible Bridge */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Remove old Arrow (Clean Look) */
.dropdown-content::after {
    display: none;
}

/* Show State */
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Links */
.dropdown-content a {
    color: #333 !important;
    /* padding: 12px 20px; */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 15px;
    text-transform: none;
    border-bottom: 1px solid #f9f9f9;
    /* Very subtle divider */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background-color: #fff9e6;
    /* Light Gold BG */
    color: #b89b00 !important;
    /* Dark Gold Text */
    padding-left: 25px;
}

/* Clean Hover Indicator (No Chevron, just color change or subtle bar) */
.dropdown-content a:hover {
    border-left: 3px solid var(--primary);
    /* Gold Left Border on Hover */
}

/* Remove previous pseudo-element cheese */
.dropdown-content a::after {
    content: '';
}

/* Action Buttons */
.btn-login {
    background: transparent;
    color: #e0e0e0;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* Mobile Menu Specific Login Buttons */
.mobile-login-actions .btn-login {
    color: #333 !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    font-weight: 600;
}

.mobile-login-actions .btn-login:hover {
    background: #fff9e6 !important;
    border-color: var(--primary) !important;
    color: var(--text-gold) !important;
}


.btn-apply-nav {
    background: #e74c3c;
    /* Reddish/Orange color from image */
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-apply-nav:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Mobile Offcanvas */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    /* Changed from right to left as hamburger is on left */
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.mobile-header h4 {
    margin: 0;
    color: #333;
}

.close-mobile {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.mobile-links {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 6px;
    transition: 0.2s;
    font-weight: 500;
}

.mobile-links a:hover,
.mobile-links a.active {
    background: #fff9e6;
    color: #b89b00 !important;
}

.mobile-submenu a.active {
    background: #fff0c7;
    color: #b89b00 !important;
}

.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 5px;
}

.mobile-submenu a {
    font-size: 1rem;
    padding: 8px 10px;
}

/* Hide mobile elements on desktop */
.mobile-only-action {
    display: none;
}

/* Hide desktop elements on mobile */
/* Mobile Specific Layout Adjustments */
@media (max-width: 992px) {
    .nav-container {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 0 1rem !important;
    }

    .menu-toggle {
        justify-self: start;
        display: block !important;
        order: 1;
    }

    .logo {
        justify-self: center;
        order: 2;
    }

    .nav-actions {
        justify-self: end;
        order: 3;
    }

    .desktop-menu {
        display: none !important;
    }

    .mobile-only-action {
        display: block !important;
    }

    .mobile-login-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        color: #d4af37 !important;
        font-size: 1.2rem;
        text-decoration: none;
    }

    nav {
        min-height: 100px;
    }
    
    body {
        padding-top: 100px !important;
    }

    .logo img {
        height: 60px !important;
        /* Matches desktop inline style */
    }
}


/* Section Spacing & Layout */
.intro-section,
.how-works-section,
.reach-section,
.why-choose-section,
.testimonial-section,
.faq-section {
    padding: 6rem 8% !important;
}

@media (max-width: 992px) {
    .intro-section {
        flex-direction: column !important;
        text-align: center !important;
        padding: 4rem 15px !important;
        gap: 2rem !important;
    }

    .intro-content {
        order: 1;
        width: 100% !important;
    }

    .intro-section h2 {
        font-size: 2.2rem !important;
    }

    .intro-section .btn-gold {
        padding: 15px 25px !important;
    }

    /* Stack steps and other grids */
    .how-works-section,
    .reach-section,
    .why-choose-section {
        padding: 4rem 15px !important;
    }
}


/* Social Contact Section Fixes */
.social-contact-container {
    margin-top: 4rem !important;
}

@media (max-width: 992px) {
    .social-contact-container {
        flex-direction: column !important;
        padding: 2rem 15px !important;
        margin: 2rem 15px 0 !important;
    }

    .social-col,
    .form-col {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        margin-bottom: 2rem;
    }

    .form-col {
        padding: 1.5rem !important;
    }
}


@media (max-width: 768px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}


/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE FIXES (Reduced Whitespace & Full Width Use)
   ========================================================================== */

@media (max-width: 768px) {

    /* Reduce body padding for fixed navbar */
    body {
        padding-top: 100px !important;
    }

    /* Standardize Section Padding to maximize screen use */
    section:not(.carousel),
    .section-padding,
    .leadership-section,
    .values-section,
    .services-section,
    .stats-section {
        padding: 3rem 15px !important;
        /* Minimal side padding on mobile */
    }

    section.carousel {
        padding: 0 !important;
    }

    /* Containers should use full width */
    .leadership-grid,
    .mv-grid,
    .values-grid,
    .stats-grid,
    .stats-grid-bottom,
    .grid-2,
    .grid-3,
    .grid-4,
    .how-it-works-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 1.5rem !important;
        /* Tighten gaps for mobile */
    }

    /* Ensure cards and items don't have excessive internal padding */
    .card-3d,
    .glass-card,
    .mv-card,
    .leader-card,
    .growth-card,
    .stat-img-card,
    .value-img-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    /* Tighten typography for mobile */
    h1,
    .hero-title {
        font-size: 2.2rem !important;
    }

    h2,
    .section-title {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .carousel-title {
        font-size: 2rem !important;
    }

    .carousel-subtitle {
        font-size: 1rem !important;
    }

    /* Fix image crops and visibility */
    .about-hero,
    .hero-section {
        height: auto !important;
        min-height: 300px !important;
    }

    /* Hero title spacing */
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-top: 1rem !important;
    }

    /* Pull up grids that overlap heroes */
    .mv-grid {
        margin-top: -30px !important;
        padding: 0 15px !important;
    }

    /* Fix the 'Our Financial Solutions' section on mobile */
    .services-section .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 columns on mobile for better space use */
        gap: 10px !important;
    }

    /* If items are too small, revert to 1 column */
    @media (max-width: 480px) {
        .services-section .grid-3 {
            grid-template-columns: 1fr !important;
        }
    }

    /* Ensure 3D images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Remove specific unwanted margins/paddings from footer */
    footer,
    .black-footer {
        padding: 4rem 15px 2rem !important;
    }
}

/* Fix for horizontal scroll on mobile */
html,
body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}