/* ============================================
   Quick Funds Prime - Professional Stylesheet
   ============================================ */

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a3d62;
    --primary-light: #1e5f8c;
    --primary-dark: #05273e;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --accent-dark: #d35400;
    --success: #27ae60;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f8f9fa;
    --white: #ffffff;
    --border: #e1e8ed;
    --shadow: rgba(10, 61, 98, 0.08);
    --shadow-md: rgba(10, 61, 98, 0.12);
    --shadow-lg: rgba(10, 61, 98, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1em;
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========== Layout ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* ========== Header fixe ========== */
.header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 30px var(--shadow-md);
}

/* Compenser la hauteur du header fixe */
body {
    padding-top: 80px;
}

@media (max-width: 767px) {
    body {
        padding-top: 65px;
    }
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.813rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Sélecteur de langue dans le nav-menu — caché sur desktop */
.nav-lang-item {
    display: none;
    border-bottom: none !important;
}

.lang-switcher--nav .lang-btn {
    background: var(--bg);
    color: var(--primary);
    border: 1px solid var(--border);
}

.lang-switcher--nav .lang-btn:hover {
    background: var(--border);
    color: var(--primary);
}

.lang-switcher--nav .lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

@media (max-width: 767px) {
    .nav-lang-item {
        display: block;
        padding: 15px 0 5px !important;
    }
}

/* ========== Navigation ========== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-icon {
    font-size: 2rem;
}

/* Sur desktop, main-nav est caché par défaut — affiché via @media min-width */
.main-nav {
    display: none;
}

/* ========== Navigation Links ========== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.938rem;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
}

.nav-menu a:not(.cta-btn):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:not(.cta-btn):hover:after {
    width: 100%;
}

/* ========== Bouton Apply Now ========== */
.cta-btn,
a.cta-btn,
.nav-menu a.cta-btn {
    background: var(--accent) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 0.938rem !important;
    border: 2px solid var(--accent) !important;
    display: inline-block !important;
    text-align: center !important;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3) !important;
    text-decoration: none !important;
}

.cta-btn:hover,
a.cta-btn:hover,
.nav-menu a.cta-btn:hover {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.45) !important;
    color: #ffffff !important;
}

/* Désactiver le soulignement sur le bouton CTA */
.nav-menu a.cta-btn:after,
.nav-menu a.cta-btn:before {
    display: none !important;
    content: none !important;
}

/* ========== Mobile Toggle ========== */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, var(--primary), transparent);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
}

.hero-text {
    max-width: 600px;
    padding-right: 40px;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--bg);
    transform: translateY(-2px);
}

/* Bouton "View Details" visible sur fond clair (cards de la homepage) */
.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-view-details:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.35);
}

/* ========== Hero Features ========== */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hero-feature {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(230, 126, 34, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-light);
}

.hero-feature h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.hero-feature p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin: 0;
}

.hero-image {
    display: none;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== Stats Bar ========== */
.stats-bar {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow-md);
    padding: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.938rem;
    font-weight: 500;
}

/* ========== Sections ========== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ========== Grid Layouts ========== */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ========== Cards ========== */
.service-card, .testimonial-card, .process-step {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    overflow: hidden;
}

.service-card:hover, .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-md);
    border-color: var(--accent-light);
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-card-content {
    padding: 30px;
}

.service-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

.service-card-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    fill: none;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-card, .process-step {
    padding: 35px;
}

/* ========== Testimonials ========== */
.testimonials-section {
    background: var(--bg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    margin-bottom: 3px;
}

.testimonial-location {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text);
    line-height: 1.8;
}

/* ========== Process Steps ========== */
.process-step {
    text-align: center;
    position: relative;
}

.process-step-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-light);
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Footer ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    
    .hero {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-bg {
        width: 100%;
        opacity: 0.3;
    }
    
    .hero::before {
        background: linear-gradient(to bottom, rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.9));
    }
    
    .hero-text {
        padding-right: 0;
        text-align: left;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-menu {
        display: flex; /* Indispensable — sinon le menu reste invisible même avec .active */
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 8px 30px var(--shadow-md);
        transition: var(--transition);
        align-items: flex-start;
        gap: 20px;
        z-index: 9999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 12px 0;
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .stats-bar {
        padding: 30px 20px;
    }
    
    .service-image {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========== Utility Classes ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========== Print Styles ========== */
@media print {
    .header, .footer, .cta-section {
        display: none;
    }
}

/* ========== Hero Full Background (index.html only) ========== */
.hero-full {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.85) 0%, rgba(10, 61, 98, 0.6) 50%, rgba(10, 61, 98, 0.4) 100%);
    z-index: 1;
}

.hero-full .hero-content {
    position: relative;
    z-index: 2;
}

/* ========== About Section ========== */
.about-section {
    background: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(10, 61, 98, 0.15);
}

/* ========== Mobile Fixes ========== */
@media (max-width: 767px) {
    .hero-full {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-full::before {
        background: rgba(10, 61, 98, 0.88);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .stats-bar {
        margin-top: -30px;
        padding: 25px 15px;
    }
}

/* ========== Fix Menu Mobile ========== */
@media (max-width: 767px) {
    /* CRITIQUE: rendre main-nav visible sur mobile pour que le menu burger fonctionne */
    .main-nav {
        display: block;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex; /* Nécessaire pour que le menu s'affiche quand .active */
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 8px 30px var(--shadow-md);
        transition: left 0.3s ease;
        align-items: flex-start;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 15px 0;
        font-size: 1.125rem;
        display: block;
    }
    
    .nav-menu .cta-btn {
        margin-top: 20px;
        text-align: center;
        border-radius: 8px;
    }
}

/* ========== Page Headers Styling ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Why Choose Us Section ========== */
.why-choose-section {
    padding: 80px 0;
    background: var(--bg);
}

.why-choose-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

.why-choose-section > .container > p {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-md);
    border-color: var(--accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ========== Mobile Optimization for Pages ========== */
@media (max-width: 767px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .why-choose-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
}
/* Import pages fix */
/* ========== Page Headers (About, Services, How It Works, Apply) ========== */
.page-header {
    background: linear-gradient(135deg, #0a3d62 0%, #1e5f8c 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== About Page Styles ========== */
.mission-section {
    padding: 80px 0;
    background: var(--white);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 2rem;
}

.mission-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.mission-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10, 61, 98, 0.12);
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--bg);
}

.why-choose-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.why-choose-section > .container > p {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.938rem;
    margin: 0;
}

/* ========== Services Page Styles ========== */
.services-content {
    padding: 80px 0;
    background: var(--white);
}

.loan-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.loan-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.loan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.loan-card-content {
    padding: 25px;
}

.loan-card-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.loan-card-content > p {
    color: var(--text-light);
    font-size: 0.938rem;
    margin-bottom: 20px;
}

.loan-details {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.loan-details p {
    margin: 8px 0;
    color: var(--text);
    font-size: 0.875rem;
}

.loan-details strong {
    color: var(--primary);
}

/* Why Loans Stand Out Section */
.stand-out-section {
    padding: 80px 0;
    background: var(--bg);
}

.stand-out-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.stand-out-section > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.stand-out-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stand-out-image {
    width: 100%;
    border-radius: 12px;
}

.stand-out-list h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.benefit-check {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-text h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.125rem;
}

.benefit-text p {
    color: var(--text-light);
    font-size: 0.938rem;
    margin: 0;
}

/* ========== How It Works Page ========== */
.process-steps {
    padding: 80px 0;
    background: var(--white);
}

.process-steps h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.process-steps > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.938rem;
}

/* What You'll Need Section */
.requirements-section {
    padding: 80px 0;
    background: var(--bg);
}

.requirements-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.requirements-section > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.requirement-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.requirement-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
}

.requirement-card li {
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.938rem;
}

.requirement-card li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.faq-section > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.faq-item {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.125rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 0.938rem;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 991px) {
    .mission-content,
    .stand-out-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-grid,
    .loan-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 60px 20px;
    }
    
    .why-grid,
    .loan-cards-grid,
    .steps-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-section,
    .why-choose-section,
    .services-content,
    .process-steps,
    .requirements-section,
    .faq-section,
    .stand-out-section {
        padding: 60px 0;
    }
}
