/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Container */
.top-header {
    background-color: #002147;
    /* Dark Blue */
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
}

/* Styling for the new links in the top-header */
.top-header .item a {
    color: inherit;
    /* Inherit the white color from the parent .top-header */
    text-decoration: none;
    /* Remove the underline */
    transition: color 0.3s;
}

.top-header .item a:hover {
    color: #3498db;
    /* Apply the accent color on hover for visual feedback */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Left Section Styles */
.header-left {
    display: flex;
    gap: 20px;
}

.item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item i {
    color: #ff7f0e;
    /* Accent blue for icons */
}

/* Right Section Styles */
.header-right {
    display: flex;
    gap: 15px;
}

.header-right a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.header-right a:hover {
    color: #3498db;
}

:root {
    --primary-blue: #0070bb;
    --accent-orange: #ff7f0e;
    --white: #ffffff;
    --overlay: rgba(0, 33, 71, 0.75);
    /* Deep blue overlay to match header */

    /* NEW ADDITIONS for About Us page */
    --navy-dark: #0d1b3e;
    /* Deep navy for main headings (from the design) */
    --text-muted: #666666;
    /* Standard gray for paragraph text */
    --bg-light: #f8f9fa;
    /* Light gray background for "Services" section */
}

.hero-section {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(var(--overlay), var(--overlay)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* Mobile stack */
    gap: 40px;
    align-items: center;
    width: 100%;
}


/* Text Content Styles */
.hero-content {
    color: var(--white);
    text-align: left;
}

.sub-headline {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Form Styles */
.hero-form {
    background-color: var(--primary-blue);
    padding: 40px 30px;
    border-radius: 8px;
    color: white;
    width: 100%;
}

.hero-form h3 {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.hero-form p {
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.form-group label span {
    color: #ff4d4d;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-orange);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #e67200;
}

/* Navigation Bar Styles */
.main-nav {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on your logo design */
    width: auto;
}

/* Nav Links Styling */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #002147;
    /* Match your dark blue */
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: var(--accent-orange);
}

/* Dropdown Logic */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
    top: 100%;
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    font-weight: 500;
}

/* Desktop CTA */
.nav-cta {
    background-color: var(--accent-orange);
    color: #fff !important;
    padding: 15px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-cta-li {
    display: none;
}

/* Hide in desktop */

/* Mobile Styling */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #002147;
}

/* Class to show dropdown content */
.dropdown-content.open {
    display: block;
}



/* --- General Styling and Section Container --- */
#our-services {
    padding: 60px 20px;
    background-color: var(--light-text-color);
    color: var(--text-color);
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-container h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.intro-text {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- CSS Grid Layout for Service Categories (Desktop) --- */
.services-grid {
    display: grid;
    /* 3 columns for desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Individual Service Category Box Styling --- */
.service-category {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}

.service-category>h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.service-list h3 {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* --- List and Link Styling --- */
.service-list ul {
    list-style-type: disc;
    /* Remove default list style */
    padding: 0;
    margin-bottom: 20px;
}

.service-list ul li {
    line-height: 1.5;
}

.service-list li a:hover {
    text-decoration: underline;
}

.service-list li {
    margin-bottom: 5px;
    margin-left: 20px;
    /* Space for the custom checkmark */
    position: relative;
    line-height: 1.8;
}

.service-list a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
    /* Makes the entire list item clickable */
}

.service-list a:hover {
    color: var(--accent-color);
    padding-left: 5px;
    /* Subtle movement on hover */
}


/* Main Section Container */
.why-choose-us {
    /* Dark gradient background matching the image */
    background: #2b3a55;
    /* background: radial-gradient(circle at 60% 0%, #394b6b 0%, #15192b 60%, #111320 100%); */
    padding: 80px 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Top Header Content */
.header-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.top-tag {
    color: #5b7add;
    /* Muted blue-purple */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
}

.main-heading {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.sub-text {
    /* Light grey for readability */
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

/* Cards Container */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

/* Individual Card Styles */
.card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 40px 30px;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Icon Wrapper */
.icon-box {
    background-color: #eef2ff;
    /* Very light blue bg */
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Font Awesome Icon Styling */
.icon-box i {
    font-size: 32px;
    color: #4361ee;
    /* Royal blue icon color */
}

/* Card Typography */
.card-title {
    color: #111827;
    /* Dark slate text */
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    height: 50px;
    /* Fixed height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    color: #343333;
    /* Dark grey */
    font-size: 15px;
    line-height: 1.6;
}

.loan-category {
    background-color: #f4f4f4;
}

.loan-category h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}


.services-section {
    background-color: #f8f9fa;
    padding: 80px 20px;
    position: relative;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    max-width: 600px;
    margin-bottom: 60px;
}

.services-subtitle {
    color: #4a7cff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.services-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.tailored-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}

.service-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.service-icon {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-icon.orange {
    background-color: #ffe8d6;
    color: #ff8c42;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.service-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}


.stats-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b8ce5;
}

.stat-icon i {
    font-size: 36px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.stat-label {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.blog-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.blog-subtitle {
    color: #6b8cbb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-title {
    color: #1a2b4a;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.blog-description {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-card-title {
    color: #1a2b4a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 20px 0;
    min-height: 60px;
}

.blog-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #b8c4db;
    letter-spacing: 1px;
}

.blog-date {
    text-transform: uppercase;
    font-weight: 600;
}

.footer {
    background: linear-gradient(135deg, #001f3f 0%, #002b52 100%);
    color: #ffffff;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
    gap: 50px;
}

/* Company Info Section */
.footer-about {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    background: white;
    padding: 10px;
    border-radius: 4px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: #d1d9e6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.social-icon:hover {
    background: #ffffff;
    color: #001f3f;
    transform: translateY(-3px);
}

/* Footer Headings */
.footer-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #4a90e2;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d9e6;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -5px;
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #d1d9e6;
}

.contact-item i {
    color: #4a90e2;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item a {
    color: #d1d9e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

.footer-bottom {
    background: #4a6ec9;
    padding: 20px 20px;
    margin-top: 20px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 0.8;
}


/* --- About Preview Section Styles --- */

.about-preview-section {
    padding: 80px 0;
    background-color: #fff;
    /* White background as per image */
}

/* Flex container to align text and image side-by-side */
.about-wrapper {
    display: flex;
    align-items: center;
    /* Vertically center content */
    justify-content: space-between;
    gap: 60px;
    /* Space between text and image */
}

/* Left Column: Text */
.about-text-content {
    flex: 1;
    /* Takes up 50% width */
    max-width: 600px;
}

.about-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4A69BD;
    /* Muted corporate blue */
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.about-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    color: #0a1c35;
    /* Dark Navy Color */
    margin-bottom: 20px;
}

.about-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    /* Dark Grey for readability */
    margin-bottom: 35px;
}

/* Orange Button Style */
.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Space between text and arrow */
    background-color: #ff7f0e;
    /* Matches the orange in your image */
    color: #fff;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 2px;
    /* Slight rounding, mostly sharp */
    transition: background-color 0.3s ease;
}

.btn-orange:hover {
    background-color: #e66e00;
    /* Darker orange on hover */
}

.btn-orange i {
    font-size: 12px;
}

/* Right Column: Image */
.about-image-content {
    flex: 1;
    /* Takes up 50% width */
}

.about-image-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    /* Optional: adds subtle softness to image corners */
    object-fit: cover;
}

#scrollToTopBtn {
    width: 50px;
    height: 50px;
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    outline: none;
    background-color: #333;
    /* Dark background for professional look */
    color: white;
    /* White text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px;
    /* Some padding */
    border-radius: 50%;
    /* Rounded corners */
    font-size: 18px;
    /* Increase font size */
    transition: background-color 0.3s, transform 0.3s;
    /* Smooth transition */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for depth */
}

#scrollToTopBtn:hover {
    background-color: #ff6b00;
    /* Orange background on hover (adjust to match your theme) */
    transform: translateY(-3px);
    /* Slight lift effect */
}

.alert-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Success State */
.alert-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error State */
.alert-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    padding: 0 5px;
}

.close-btn:hover {
    opacity: 0.7;
}

/* =========================================
   LARGE SCREENS / DESKTOP (min-width: 992px)
   (Overrides for Desktop specific layouts)
   ========================================= */
@media (min-width: 992px) {

    /* Layout Adjustments */
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-content {
        flex: 0 0 55%;
    }

    .hero-form-wrapper {
        flex: 0 0 35%;
    }

    /* Navigation & Dropdowns */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content {
        position: absolute;
        padding: 10px 0;
        text-align: left;
    }

    /* Force hide the 'open' class if JS added it, to prevent conflicts */
    .dropdown-content.open {
        display: none !important;
    }

    /* Remove mobile active states */
    .dropdown.active {
        background: none;
    }
}


/* =========================================
   TABLET / LAPTOP (max-width: 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}


/* =========================================
   TABLET / MOBILE MENU BREAKPOINT (max-width: 992px)
   (Consolidated all 992px blocks here)
   ========================================= */
@media (max-width: 992px) {

    /* Navigation: Mobile View */
    .menu-toggle {
        display: block;
    }

    .menu-toggle i {
        color: #002147;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    .nav-right-cta {
        display: none;
    }

    /* Mobile Menu Dropdown Wrapper */
    .nav-links {
        display: none;
        /* Controlled by JS toggle */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        gap: 20px;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-cta-li {
        display: none;
    }

    /* Dropdowns in Mobile Menu */
    .dropdown-content {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 10px;
        text-align: left;
    }

    /* Grids & Layouts */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .about-text-content {
        max-width: 100%;
        text-align: left;
    }

    .about-image-content {
        width: 100%;
    }
}


/* =========================================
   TABLET / LARGE PHONE (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* Header Adjustments */
    .top-header .item a {
        font-size: 13px;
    }

    .hide-mobile {
        display: none;
    }

    .container {
        justify-content: center;
    }

    .nav-container {
        justify-content: space-between;
    }

    .header-left {
        gap: 15px;
        font-size: 13px;
    }

    /* Sections */
    .why-choose-us {
        padding: 50px 20px;
    }

    .main-heading {
        font-size: 36px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .card-title {
        height: auto;
        margin-bottom: 15px;
    }

    /* Services */
    .services-section {
        padding: 60px 20px;
    }

    .services-title {
        font-size: 32px;
    }

    .tailored-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card {
        gap: 15px;
    }

    .service-icon {
        min-width: 50px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-text {
        font-size: 14px;
    }

    /* Blog */
    .blog-title {
        font-size: 36px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 20px 30px;
    }

    .footer-about {
        max-width: 100%;
    }

    .footer-heading {
        font-size: 18px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 20px;
    }
}


/* =========================================
   ACCORDION LOGIC SPLIT (~600px)
   ========================================= */

/* Hide accordion icon on screens LARGER than 600px */
@media (min-width: 601px) {
    .loan-category .accordion-icon {
        display: none;
    }
}

/* Enable accordion behavior on screens 600px and SMALLER */
@media (max-width: 600px) {

    /* Layout */
    #our-services {
        padding: 40px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-category {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    /* Accordion Functionality */
    .loan-category .accordion-header {
        cursor: pointer;
        position: relative;
        user-select: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .loan-category .accordion-icon {
        transition: transform 0.3s ease;
        font-size: 0.9em;
    }

    .loan-category .accordion-header.active .accordion-icon {
        transform: rotate(180deg);
    }

    .loan-category .accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .loan-category .accordion-body.active {
        max-height: 2000px;
    }
}


/* =========================================
   SMALL PHONES (max-width: 576px)
   ========================================= */
@media (max-width: 576px) {
    .stats-section {
        padding: 40px 15px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-icon {
        width: 70px;
        height: 70px;
    }

    .stat-icon i {
        font-size: 32px;
    }
}


/* =========================================
   EXTRA SMALL PHONES (max-width: 480px)
   ========================================= */
@media (max-width: 480px) {
    .services-section {
        padding: 40px 15px;
    }

    .services-title {
        font-size: 28px;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .about-preview-section {
        padding: 50px 0;
    }

    .about-title {
        font-size: 28px;
    }
}

/* =========================================
   About Us Page Styles (Revised)
   ========================================= */

/* --- Layout & Typography --- */
.about-section {
    padding: 80px 0;
    overflow: hidden;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.why-us-section .container,
.cta-strip .container {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.align-center {
    align-items: center;
}

/* Column System */
.col-text,
.col-image {
    flex: 1;
    padding: 0 15px;
    min-width: 300px;
}

/* Headings */
.sub-heading {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    display: block;
}

.about-section .main-heading {
    font-size: 2.5rem;
    color: var(--navy-dark);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.lead-text {
    font-size: 1.15rem;
    color: #222;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.content-body p,
.section-desc {
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-desc {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Images */
.featured-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.fit-height {
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

/* --- Section 2: Founder & Stats --- */
.pl-large {
    padding-left: 60px;
}

.founder-block-clean {
    border-left: 4px solid var(--accent-orange);
    padding-left: 25px;
    margin-bottom: 40px;
}

.founder-quote-large {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.founder-info .name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin: 0;
}

.founder-info .title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Section 3: Feature Cards (Grid) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 112, 187, 0.1);
    /* Light blue bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-wrapper .icon {
    font-size: 1.8rem;
    /* If using images/svgs instead of emojis, adjust width here */
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 15px;
}

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

/* --- Section 4: CTA Strip --- */
.cta-strip {
    background-color: var(--primary-blue);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-white {
    display: inline-block;
    background-color: white;
    color: var(--primary-blue);
    padding: 15px 40px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* =========================================
   MOBILE RESPONSIVE (Max-width 991px)
   ========================================= */
@media (max-width: 991px) {
    .about-section {
        padding: 40px 0;
    }

    .row {
        flex-direction: column;
        margin: 0;
    }

    .col-text,
    .col-image {
        flex: 0 0 100%;
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .main-heading {
        font-size: 1.75rem;
    }

    .pl-large {
        padding: 0;
    }

    .fit-height {
        height: 300px;
        min-height: auto;
    }

    .reverse-mobile {
        flex-direction: column-reverse;
    }

    /* Founder Stats on Mobile */
    .stats-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 45%;
        /* 2 per row */
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* --- Services Page Styles --- */

/* General Container */
.core-services-section .container {
    display: block;
}

.services-intro-section .container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SECTION 1: Intro & Detailed List */
.services-intro-section {
    padding: 60px 0;
    background-color: var(--white);
}

.intro-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.intro-image {
    flex: 0.5;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.intro-content {
    flex: 1.2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--navy-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.services-intro-section .intro-text {
    text-align: left;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #e66900;
    /* Slightly darker orange */
}

/* Detailed 8-Item List */
.detailed-services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns */
    gap: 40px;
    margin-top: 40px;
}

.service-detail-item h3 {
    color: var(--navy-dark);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-detail-item p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* SECTION 2: Core Services Cards */
.core-services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    /* Light Gray BG */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sub-heading {
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.core-services-section .main-heading {
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
}

.core-services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns on desktop */
    gap: 25px;
}

.core-services-section .service-card {
    display: block;
}

.core-services-section .service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.core-services-section .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h4 {
    color: var(--navy-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
    height: 2.4em;
    /* Enforces uniform height for titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.card-link .arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
    font-size: 1.1em;
}

.card-link:hover {
    color: var(--accent-orange);
    /* Changes color on hover */
}

.card-link:hover .arrow {
    transform: translateX(6px);
    /* Arrow slides right */
}

/* .card-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
} */

/* RESPONSIVE MEDIA QUERIES */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .intro-wrapper {
        flex-direction: column;
    }

    .intro-image,
    .intro-content {
        width: 100%;
    }

    .core-services-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards per row */
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    .section-title,
    .main-heading {
        font-size: 2rem;
    }

    .detailed-services-list {
        grid-template-columns: 1fr;
        /* 1 column stack */
        gap: 25px;
    }

    .core-services-section .services-grid {
        grid-template-columns: 1fr;
        /* 1 card per row */
    }

    .intro-content {
        order: 1;
        /* Text first on mobile? usually image first is fine, but adjust if needed */
    }
}