/*
Theme Name: Arthshodh Finance
Author: Arthshodh Consultancy Pvt Ltd
Version: 1.1 (Optimized)
*/

/* 1. RESET & BASE STYLES */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { 
    margin: 0; 
    font-family: 'Poppins', Arial, sans-serif; 
    background: #ffffff; 
    color: #222; 
    overflow-x: hidden;
}
a { text-decoration: none; transition: all 0.3s ease; }

/* 2. HEADER & NAVIGATION */
.mobile-mantra {
    text-align: center;
    color: #f47c20;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-logo-center img {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.main-navigation { width: 100%; }

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.main-navigation ul li a {
    font-size: 15px;
    font-weight: 700;
    color: #d97706;
    padding: 8px 12px;
    border-radius: 6px;
}

.main-navigation ul li a:hover {
    background: #fef3c7;
}

/* THE DEFINITIVE PURPLE WHATSAPP-STYLE RIPPLE */
@keyframes purple-wa-ripple {
    0% { 
        box-shadow: 0 0 0 0 rgba(112, 53, 156, 0.8); 
    }
    70% { 
        /* This 20px spread matches your floating WhatsApp button exactly */
        box-shadow: 0 0 0 20px rgba(112, 53, 156, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(112, 53, 156, 0); 
    }
}

/* APPLY TO BOTH ENQUIRE NOW & PARTNER LOGIN */
.enquire-btn, 
header a[href*="enquiry"], 
.main-navigation ul li:last-child a,
.loan-grid .enquire-btn {
    background-color: #70359c !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    
    /* Using the 2s infinite timing from your footer WhatsApp button */
    animation: purple-wa-ripple 2s infinite !important;
    
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* HOVER STATE */
.enquire-btn:hover, 
header a[href*="enquiry"]:hover,
.main-navigation ul li:last-child a:hover {
    background-color: #5a2a7d !important;
    transform: scale(1.05) !important;
    box-shadow: none !important; /* Clears ripple on hover for a clean click */
}

/* 4. HERO SECTION */
.hero {
    padding: 40px 20px;
    text-align: center;
}

.hero-logo img {
    width: 300px;
    max-width: 80%;
    margin-top: -20px;
}

.company-description {
    max-width: 800px;
    margin: 10px auto;
}

.company-description p {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
}

/* ===== 8 SERVICES BUTTONS GRID FIX ===== */

/* --- THE CLEAN ALIGNED GRID (PC & MOBILE) --- */
.loan-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 in a row for PC */
    gap: 15px;
    padding: 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center; /* Aligns buttons in the center of their grid cell */
}

.cta-loan {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f47c20;
    color: #fff !important;
    font-weight: 700;
    
    /* THE UNIFORM SIZE FIX */
    width: 100% !important;   
    max-width: 240px;          /* Adjusted for better spacing */
    height: 65px !important;   /* FIXED HEIGHT so they match regardless of text */
    
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-sizing: border-box;
}

/* --- MOBILE VIEW: 2 BUTTONS PER ROW --- */
@media (max-width: 768px) {
    .loan-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Forces 2 per row */
        gap: 10px;
        padding: 15px;
    }

    .cta-loan {
        max-width: 100%;       /* Allows them to fill the 50% width */
        height: 60px !important; /* Slightly shorter for mobile */
        font-size: 13px;       /* Smaller font to prevent text overflow */
        padding: 5px;
    }
}

/* --- TABLET VIEW: 3 BUTTONS PER ROW --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .loan-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 6. ABOUT / SERVICES / TEAM SECTIONS */
.about-us-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-us-heading {
    font-size: 32px;
    font-weight: 700;
    border-bottom: 4px solid #d4af37;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* 7. ENQUIRY FORM */
#enquiry-form {
    background: #fff3e0;
    padding: 30px;
    border-radius: 15px;
    max-width: 550px;
    margin: 50px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#enquiry-form input, #enquiry-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#enquiry-form button {
    width: 100%;
    background: #f47c20;
    color: white;
    padding: 15px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 8. FLOATING BUTTONS */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px !important; /* Locked size */
    height: 60px !important;
    z-index: 9999;
}

.floating-wa img {
    width: 100%;
    height: auto;
    display: block;
}

#goTopBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0; /* Hidden initially via JS */
}

#goTopBtn.show { opacity: 1; }

/* 9. MOBILE OPTIMIZATIONS */
/* ============================================================
   FINAL MASTER FIX (MOBILE MENU, CONTACT BAR, & CALCULATOR)
   ============================================================ */

/* 1. MOBILE MENU FIX (3 PER ROW, BIGGER TEXT) */
@media (max-width: 768px) {
    .main-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .main-navigation ul li a {
        font-size: 15px !important; /* Larger text */
        font-weight: 800 !important;
        padding: 12px 5px !important;
        text-align: center !important;
        background: #fdf2f2; /* Light background for buttons */
        border-radius: 6px;
        display: block;
    }
}

/* 2. QUICK CONTACT BAR (ORANGE RECTANGLES) */
.quick-contact-bar {
    display: flex;
    justify-content: space-around;
    background: #fff;
    padding: 20px 10px;
    gap: 10px;
}

.quick-contact-bar a {
    background: #f47c20 !important; /* Your Theme Orange */
    color: white !important;
    padding: 15px 10px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    flex: 1;
    font-size: 14px;
    border: 1px solid #d97706;
}

/* WHATSAPP BUTTON: Ripple + Periodic Wobble */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px !important;
    height: 65px !important;
    z-index: 9999;
    border-radius: 50%;
    background-color: #25d366; /* WhatsApp Green */
    display: flex;
    align-items: center;
    justify-content: center;
    /* This adds the Ripple Shadow */
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: wa-ripple 2s infinite, wa-wobble 5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-wa img {
    width: 35px !important; /* Size of the icon inside */
    height: auto !important;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* THE RIPPLE EFFECT (Matching Enquire Now) */
@keyframes wa-ripple {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* THE WOBBLE EFFECT (Grabs attention every 5 seconds) */
@keyframes wa-wobble {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(15deg); }
    94% { transform: rotate(-15deg); }
    96% { transform: rotate(10deg); }
    98% { transform: rotate(-10deg); }
}

/* ============================================================
   PREMIUM EMI CALCULATOR (CENTERED & RESPONSIVE)
   ============================================================ */

/* 1. The Overlay */
.calculator-popup, .modal {
    display: none; 
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85); /* Slightly darker for focus */
    z-index: 10002;
    padding: 20px;
    align-items: center;
    justify-content: center;
    overflow-x: hidden; /* Stops horizontal scroll */
}

.calculator-popup[style*="display: block"], 
.calculator-popup.active {
    display: flex !important;
}

/* 2. The Main Box (Professional Card Look) */
.calculator-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    max-height: 90vh; /* Keeps it within screen height */
    overflow-y: auto; /* Allow vertical scroll only if needed */
    overflow-x: hidden;
}

/* 3. Title Styling */
.calculator-popup-content h3 {
    color: #d97706;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #fff3e0;
    padding-bottom: 10px;
}

/* 4. Input Grid */
.calc-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.calc-label {
    font-weight: 700;
    font-size: 14px;
    color: #444;
    flex: 1;
}

.calc-input {
    flex: 1;
}

.calc-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #f47c20;
    text-align: center;
    transition: border-color 0.3s;
}

.calc-input input:focus {
    border-color: #f47c20;
    outline: none;
}

/* 5. Result Section (The View EMI Box) */
.loan-result {
    background: #fdf2f2;
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #fecaca;
    
    /* THE FIX: These two lines are critical */
    width: 100% !important; 
    overflow-x: auto !important; 
    
    display: block !important; /* Forces it to behave as a scrollable block */
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; /* Makes scrolling smooth on iPhones */
}

/* Styling the Breakdown Table */
.loan-result table {
    /* THE FIX: This forces the table to be wide enough to require scrolling */
    min-width: 600px !important; 
    
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 10px;
}

.loan-result th {
    background: #f47c20;
    color: white;
    padding: 10px 5px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap; /* Keeps headers on one line */
}

.loan-result td {
    padding: 10px 5px;
    border-bottom: 1px solid #fee2e2;
    text-align: center;
    color: #333;
    white-space: nowrap; /* Prevents numbers from wrapping to next line */
}

/* Scrollbar visual styling for PC users */
.loan-result::-webkit-scrollbar {
    height: 8px;
}
.loan-result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.loan-result::-webkit-scrollbar-thumb {
    background: #f47c20;
    border-radius: 10px;
}

/* 6. Action Buttons & Final Cleanups */
.calculator-popup button {
    width: 100%;
    background: linear-gradient(135deg, #f47c20, #d97706);
    color: white;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(244,124,32,0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

/* Hide horizontal scrollbar track for a cleaner look but keep functionality */
.loan-result::-webkit-scrollbar {
    height: 6px;
}
.loan-result::-webkit-scrollbar-thumb {
    background: #fecaca;
    border-radius: 10px;
}

/* Mobile Fixes */
@media (max-width: 480px) {
    .calculator-popup-content {
        padding: 15px;
        width: 95%;
    }
    /* Instructions for mobile users */
    .loan-result::after {
        content: "← Scroll table to see full breakdown →";
        display: block;
        font-size: 10px;
        color: #d97706;
        text-align: center;
        margin-top: 5px;
    }
}
/* ============================================================
   SURGICAL TABLE FIX (STOPS OVERFLOW WITHOUT CHANGING BUTTONS)
   ============================================================ */

/* Force the result container to stay within screen width */
.loan-result {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important; /* Prevents side-scrolling the whole popup */
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* Shrink the table just enough to fit Month, Prin, Int, and Bal */
.loan-result table {
    width: 100% !important;
    table-layout: fixed !important; /* Forces columns to stay inside 100% */
    border-collapse: collapse !important;
}

/* Make the text smaller so it fits horizontally on mobile */
.loan-result th, 
.loan-result td {
    font-size: 11px !important; 
    padding: 5px 2px !important;
    text-align: center !important;
    word-wrap: break-word !important; /* Stops long numbers from pushing walls out */
}

/* Optional: Make the headers bold but tight */
.loan-result th {
    font-weight: 700 !important;
    text-transform: uppercase;
}
/* FORCE TABLE TO STAY INSIDE SCREEN */
.loan-result {
    width: 100% !important;
    overflow-x: auto !important; /* This creates the horizontal scroll for the table only */
    display: block !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch; /* Makes scrolling smooth on mobile */
}

.loan-result table {
    width: 100% !important;
    min-width: 450px !important; /* Prevents columns from squishing too much */
    border-collapse: collapse !important;
    font-size: 11px !important; /* Smaller text to fit more data */
}

.loan-result th, .loan-result td {
    padding: 8px 4px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
}
.loan-result {
    max-height: 400px; /* Limits the height of the chart */
    overflow-y: auto !important; /* Adds a vertical scrollbar for long tables */
}
.loan-result table {
    table-layout: auto !important; /* Let the columns shrink to fit the new short text */
    width: 100% !important;
}

/* ===== SECTION HEADINGS (VISION & TEAMS) ===== */

/* Targets the main section titles like Our Vision */
h2, .section-title {
    font-size: 32px !important; /* Larger for desktop */
    font-weight: 800 !important; /* Extra bold */
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Targets the team headings (Sourcing, Credit, Legal, Technical) */
h3, .team-heading {
    font-size: 24px !important; 
    font-weight: 700 !important; 
    color: #f47c20; /* Theme Orange to make them pop */
    margin-top: 25px;
    margin-bottom: 15px;
}

/* MOBILE ADJUSTMENT: Ensure they stay readable on phones */
@media (max-width: 768px) {
    h2, .section-title {
        font-size: 26px !important;
    }
    
    h3, .team-heading {
        font-size: 20px !important;
    }
}

/* Target only headings inside the Team/Services section */
/* Assuming your team section has a class like .services-section or .team-row */

.team-container h3, 
.sourcing-section h3, 
.about-details h3:not(:first-of-type) { 
    display: inline-block !important;
    color: #f47c20 !important;
    border-bottom: 3px solid #000000 !important;
    padding-bottom: 5px !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
}

/* Specifically find 'Our Vision' and make sure it has NO line */
h3:contains("Vision"), 
.vision-title, 
h2.vision-text {
    border-bottom: none !important;
    display: block !important;
    color: #333 !important;
    font-size: 30px !important;
}

/* ORANGE GO-UP BUTTON WITH BLACK BORDER */
.go-up-btn {
    position: fixed;
    bottom: 100px; 
    left: 25px;      
    right: auto;     
    
    width: 65px !important;
    height: 65px !important;
    
    /* Changed from Orange to Purple */
    background-color: #70359c !important; 
    
    /* THE BORDER FIX: Changed from Black to White */
    border: 3px solid #ffffff !important; 
    
    color: #ffffff !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none;   
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box; 
    
    /* Ripple Effect: Updated color to match Purple */
    box-shadow: 0 0 0 0 rgba(112, 53, 156, 0.7);
    animation: goup-ripple 2s infinite;
    transition: all 0.3s ease;
}

/* Updated Hover State */
.go-up-btn:hover {
    background-color: #5a2a7d !important; /* Slightly darker purple on hover */
    border-color: #ffffff !important;
    transform: translateY(-5px);
}

.up-arrow {
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.up-text {
    font-size: 9px;
    font-weight: 800;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* Updated Ripple Animation Color to Purple */
@keyframes goup-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(112, 53, 156, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(112, 53, 156, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(112, 53, 156, 0);
    }
}

/* Updated Orange Ripple Animation */
@keyframes goup-ripple {
    0% { box-shadow: 0 0 0 0 rgba(244, 124, 32, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(244, 124, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 124, 32, 0); }
}
/* FORCE FONT INCREASE FOR ABOUT & TEAM SECTIONS */

/* 1. Target by Section (About Us) */
#about-us p, 
#about-us span, 
.about-details p,
.about-content p {
    font-size: 22px !important; 
    line-height: 1.7 !important;
    font-weight: 500 !important;
    color: #333 !important;
    display: block !important;
}

/* 2. Target by Section (Our Team) */
#our-team p, 
.team-section p, 
.team-description, 
.team-content p {
    font-size: 22px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    color: #333 !important;
}

/* 3. If they are inside a list (li) */
#about-us li, #our-team li {
    font-size: 20px !important;
    margin-bottom: 10px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    #about-us p, #our-team p {
        font-size: 18px !important;
    }
}
/* PC VIEW: NAVIGATION BUTTON GRID (SILVER + ORANGE) */
@media (min-width: 992px) {
    /* 1. Reset the menu list */
    .nav-menu ul, .main-navigation ul, #primary-menu, .menu {
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px !important; 
        list-style: none;
        padding: 20px 0;
        margin: 0;
        justify-content: center;
    }

    /* 2. Style the Standard Buttons (Home, About, etc.) */
    .nav-menu ul li a, .main-navigation ul li a, #primary-menu li a {
        background-color: #d1d1d1 !important; /* Silver/Grey */
        color: #f47c20 !important;           /* Theme Orange Text */
        padding: 12px 22px !important;
        border-radius: 8px !important;
        font-weight: 800 !important;
        font-size: 15px !important;
        text-transform: uppercase;
        text-decoration: none !important;
        display: inline-block;
        border: 1px solid #b0b0b0;
        transition: all 0.3s ease;
    }

   /* 3. TARGET THE VERY LAST MENU ITEM (ENQUIRE NOW) */
/* This assumes Enquire Now is the last button in your row */
.nav-menu ul li:last-child a, 
.main-navigation ul li:last-child a, 
#primary-menu li:last-child a {
    background-color: #28a745 !important; /* Success Green */
    color: #ffffff !important;           /* White text */
    border-color: #1e7e34 !important;
}

/* Hover effect for that last Green button */
.nav-menu ul li:last-child a:hover, 
.main-navigation ul li:last-child a:hover, 
#primary-menu li:last-child a:hover {
    background-color: #218838 !important; 
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

    /* 4. HOVER EFFECTS */
    /* Standard buttons turn Orange with White text */
    .nav-menu ul li a:hover, .main-navigation ul li a:hover {
        background-color: #f47c20 !important; 
        color: #ffffff !important;           
        transform: translateY(-3px);
    }

    /* Enquire Now hover turns Darker Green */
    .nav-menu ul li a[href*="enquire"]:hover {
        background-color: #218838 !important; 
        transform: scale(1.05);
    }
}
/* VISION / MISSION TEXT STYLING */
.vision-text-container p, 
#about-us .vision-content, 
.about-details p:first-of-type {
    font-size: 26px !important;       /* Bold, large size */
    line-height: 1.6 !important;       /* Balanced spacing */
    font-weight: 600 !important;       /* Medium-bold */
    color: #333 !important;            /* Strong contrast */
    text-align: center !important;     /* Centered for impact */
    max-width: 1000px !important;      /* Prevents text from stretching too far on PC */
    margin: 40px auto !important;      /* Centers the block on the page */
    padding: 0 20px !important;        /* Keeps text away from screen edges */
}

/* Mobile specific adjustment */
@media (max-width: 768px) {
    .vision-text-container p, 
    #about-us .vision-content, 
    .about-details p:first-of-type {
        font-size: 20px !important;    /* Slightly smaller for mobile screens */
        line-height: 1.5 !important;
        text-align: justify !important; /* Often looks cleaner on small phones */
    }
}

/* --- PC & LAPTOP OPTIMIZATION --- */
@media (min-width: 1024px) {
    
    /* 1. Services Grid: Make them 3 or 4 in a row instead of 1 */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columns on PC */
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 2. Stats Bar: Ensure all 4 stats stay in one clean horizontal line */
    .stats-bar {
        display: flex;
        justify-content: space-around;
        padding: 60px 0;
        flex-wrap: nowrap; /* Prevents stacking on PC */
    }

    .stat-box {
        flex: 1;
        border-right: 1px solid rgba(0,0,0,0.1); /* Adds a nice divider between stats */
    }

    .stat-box:last-child {
        border-right: none;
    }

    /* 3. Hero Section: Make text bigger and centered for big monitors */
    .hero-section h1 {
        font-size: 56px;
        line-height: 1.2;
    }

    /* 4. About Us: Side-by-side layout (Text left, Image right) */
    .about-us-container {
        display: flex;
        align-items: center;
        gap: 50px;
    }
    
    .about-text { flex: 1; text-align: left; }
    .about-image { flex: 1; }
}

/* Force Header Button to Purple on all screens */
.header-enquire-btn, 
header a[href*="enquiry"], 
.nav-button,
.main-navigation ul li:last-child a { /* Added this to target the PC menu item */
    background-color: #70359c !important; 
    color: #ffffff !important;
    border: 2px solid #ffffff !important; /* Added white border */
    border-radius: 8px !important;
    padding: 12px 25px !important;
    animation: enquirePulse 1.5s infinite !important; /* Added the pulse */
    transition: 0.3s;
    display: inline-block;
}

.header-enquire-btn:hover, 
header a[href*="enquiry"]:hover {
    background-color: #5a2a7d !important;
    transform: scale(1.05);
}

/* --- THE HEADER BUTTON "PURPLE" OVERRIDE --- */

/* 1. Target by common class names and the word 'enquire' */
header a[href*="enquiry"], 
header .btn, 
header .button, 
header .nav-button, 
header .menu-button,
#site-header .enquire-btn,
.header-button-class { 
    background-color: #70359c !important; 
    color: #ffffff !important;
    border: 2px solid #ffffff !important; /* Adding the white border to match your 'Go Up' style */
    border-radius: 8px !important;
    padding: 12px 22px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

/* 2. Target the Hover state specifically */
header a[href*="enquiry"]:hover, 
header .btn:hover, 
header .button:hover,
header .menu-button:hover {
    background-color: #5a2a7d !important; 
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(112, 53, 156, 0.4) !important;
}

/* 3. Disable any old Green borders or shadows */
header a[href*="enquiry"] {
    box-shadow: none !important;
    outline: none !important;
}

/* Centering the Register Now / CTA Box */
.cta-box-container, 
.register-now-section {
    display: flex;
    justify-content: center;  /* Centers horizontally */
    align-items: center;      /* Centers vertically */
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
}

.cta-box, 
.register-box {
    margin: 0 auto !important; /* Forces the box to the center */
    max-width: 500px;          /* Prevents it from becoming too wide on PC */
    text-align: center;        /* Centers the text and buttons inside */
    float: none !important;    /* Disables any old 'left' or 'right' floats */
}

/* FORCE PURPLE ON DESKTOP */
/* We target the header ID and the button class together to make the rule 'heavier' */
#masthead .enquire-btn, 
#masthead a.enquire-btn, 
header .enquire-btn,
.nav-menu-container .enquire-btn {
    background-color: #70359c !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the hover doesn't turn back to green */
#masthead .enquire-btn:hover, 
header .enquire-btn:hover {
    background-color: #5a2a7d !important;
    transform: scale(1.05);
}

.counter {
    display: inline-block;
    min-width: 10px;
    font-weight: 800;
}

/* 1. APPLY TO ALL BUTTONS IN THE GRID TO ENSURE THEY MATCH */
.loan-grid .cta-loan {
    height: 75px !important;      /* Increased vertical size */
    min-height: 75px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* FINAL HORIZONTAL ALIGNMENT FOR PC */
.loan-grid a.cta-loan.enquire-btn {
    /* 1. MATCH THE SHAPE EXACTLY */
    /* Adjust 200px if your orange buttons look slightly smaller/larger */
    width: 100% !important;
    max-width: 200px !important; 
    
    /* 2. MATCH THE TALLNESS (Vertical) */
    height: 75px !important;
    min-height: 75px !important;
    
    /* 3. CENTER IT IN THE GRID CELL */
    display: flex !important;
    margin: 0 auto !important; 
    align-items: center !important;
    justify-content: center !important;

    /* 4. KEEP THE RIPPLE & STYLE */
    background-color: #70359c !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 10px !important;
    animation: purple-wa-ripple 2s infinite !important;
    
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* MOBILE VIEW - KEEP 2 PER ROW STRETCH */
@media (max-width: 768px) {
    .loan-grid a.cta-loan.enquire-btn {
        max-width: 100% !important; /* On mobile, let it take full half-width */
        height: 70px !important;
    }
}

/* HEADER NAVIGATION LAYOUT */
.main-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;      /* Allows buttons to drop to next line if needed */
    justify-content: center !important; /* Centers the buttons horizontally */
    align-items: center !important;
    padding: 10px !important;
    margin: 0 auto !important;
    list-style: none !important;
    max-width: 100% !important;      /* Prevents container from overflowing screen */
}

/* INDIVIDUAL HEADER BUTTONS */
.main-navigation ul li a, 
header a.enquire-btn,
.main-navigation ul li:last-child a {
    width: 130px !important;        /* Balanced width */
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 5px !important;         /* Creates the 'gap' between buttons and screen edge */
    text-align: center !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

/* MOBILE SPECIFIC PADDING */
@media (max-width: 768px) {
    .main-navigation {
        padding: 0 15px !important; /* Forces space from the mobile screen edges */
    }
    
    .main-navigation ul li a, 
    header a.enquire-btn {
        width: 110px !important;    /* Slightly narrower for small phones */
        height: 38px !important;
        font-size: 12px !important;
        margin: 4px !important;     /* Tighter spacing for mobile */
    }
}

/* --- PREMIUM BUTTON REDESIGN --- */

/* 1. Reset Mantra to Orange as requested */
.mobile-mantra {
    text-align: center;
    font-size: 14px;
    color: #f47c20; /* Keep original Orange */
    font-weight: 700;
    padding: 10px 0;
}

/* 2. Navigation Container - Perfectly Centered */
.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 15px 10px;
    margin: 0 auto;
    gap: 12px;
}

/* 3. The New Creative Button Style */
.main-navigation ul li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    /* Modern Look: White body with a thick bottom border for a 3D effect */
    background: #ffffff;
    color: #444 !important;
    border: 1px solid #e0e0e0;
    border-bottom: 3px solid #70359c; /* Purple "depth" bar */
    border-radius: 8px;
    
    width: 140px; 
    height: 48px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 4. The Enquire Button - High Contrast */
.main-navigation ul li a.enquire-btn {
    background: #70359c !important;
    color: #ffffff !important;
    border: 1px solid #70359c !important;
    border-bottom: 3px solid #4a2366 !important; /* Darker purple bottom */
    animation: purple-wa-ripple 2s infinite !important;
}

/* Active/Tap Effect: Button "presses" down */
.main-navigation ul li a:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
}

/* --- MOBILE VIEW: 3 PER ROW ALIGNED --- */
@media (max-width: 768px) {
    /* --- UNIFIED 3x3 GRID DESIGN --- */

/* 1. Reset & Alignment for PC */
.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 15px 10px;
    margin: 0 auto;
    gap: 12px;
}

/* 2. PC Button Style */
.main-navigation ul li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #444 !important;
    border: 1px solid #e0e0e0;
    border-bottom: 3px solid #70359c;
    border-radius: 8px;
    width: 140px; 
    height: 48px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box !important;
}

/* 3. Purple Enquire Button */
.main-navigation ul li a.enquire-btn {
    background: #70359c !important;
    color: #ffffff !important;
    border-bottom: 3px solid #4a2366 !important;
    animation: purple-wa-ripple 2s infinite !important;
}

/* --- THE MOBILE FIX: SYNCED GRID --- */
/* ============================================================
   ULTIMATE SYMMETRY FIX: 3x3 UNIFIED GRID
   ============================================================ */

/* ============================================================
   THE SYMMETRY MASTER: FIXED ASPECT-RATIO GRID
   ============================================================ */

/* MOBILE VIEW: 100% SYMMETRICAL GRID */
@media (max-width: 768px) {

    /* 1. Force 3 Perfectly Equal Columns */
    .main-navigation ul {
        display: grid !important;
        /* repeat(3, 1fr) is the key to identical horizontal width */
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important; 
        padding: 10px 15px !important; 
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 2. Remove all list-item margins that break alignment */
    .main-navigation ul li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* 3. The Button: Force Identical Height & Width */
    .main-navigation ul li a {
        display: flex !important;
        width: 100% !important;   /* Fills the 1/3 grid cell exactly */
        height: 60px !important;  /* All 9 buttons are 60px tall */
        
        /* Centering */
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        
        /* Professional Theme Styling */
        background: #ffffff !important;
        color: #444 !important;
        border: 1px solid #e0e0e0 !important;
        border-bottom: 3px solid #70359c !important; 
        border-radius: 8px !important;
        
        /* Text Scaling to prevent box stretching */
        font-size: 10px !important; 
        font-weight: 800 !important;
        line-height: 1.1 !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        text-transform: uppercase;
        
        /* Keep everything inside the box */
        overflow: hidden !important;
        word-wrap: break-word !important;
    }

    /* 4. Enquire Now Button Styling */
    .main-navigation ul li a.enquire-btn,
    .main-navigation ul li:last-child a {
        background: #70359c !important;
        color: #ffffff !important;
        border-bottom: 3px solid #4a2366 !important;
    }
}
/* 4. The Purple Enquire Button in Header */
.main-navigation ul li a.enquire-btn {
    background: #70359c !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    animation: purple-wa-ripple 2s infinite !important;
}

/* --- MOBILE VIEW: THE 3-BUTTON GRID --- */
@media (max-width: 768px) {
    .main-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Forces 3 per row */
        gap: 8px !important;
        padding: 10px !important;
    }

    .main-navigation ul li a {
        width: 100% !important; /* Fills the grid cell */
        font-size: 11px !important; /* Smaller text to fit 3 in a row */
        height: 45px !important;    /* Uniform height */
        padding: 2px !important;
        text-align: center;
    }

    /* Make Enquire Now fit better if text is long */
    .enquire-btn {
        font-size: 10px !important;
    }
}