:root {
    /* ============================================
       EMPOWER CAPITAL MICROFINANCE - COLOR SYSTEM
       ============================================ */

    /* Main Brand Colors - Gold/Green (Prosperity + Growth) */
    --brand-gold: #d4a017;
    --brand-gold-light: #f0c642;
    --brand-gold-dark: #b8860b;
    --brand-green: #1e7b46;
    --brand-green-light: #28a05c;
    --brand-green-dark: #145c33;

    /* Micro-Loans Theme - Blue/Gold (Trust + Value) */
    --loans-blue: #1e5f8f;
    --loans-blue-light: #2980b9;
    --loans-blue-dark: #154360;
    --loans-gold: #d4a017;

    /* Business Coaching Theme - Orange/Navy (Energy + Expertise) */
    --coaching-orange: #e67e22;
    --coaching-orange-light: #f39c12;
    --coaching-orange-dark: #d35400;
    --coaching-navy: #1a2a4a;
    --coaching-navy-light: #2c3e50;

    /* Enterprise Innovation Theme - Purple/Teal (Innovation + Tech) */
    --innovation-purple: #8e44ad;
    --innovation-purple-light: #9b59b6;
    --innovation-purple-dark: #6c3483;
    --innovation-teal: #16a085;
    --innovation-teal-light: #1abc9c;

    /* Legacy colors for admin/dashboard compatibility */
    --primary-blue: #1e5f8f;
    --primary-dark: #1a2a4a;
    --primary-light: #2980b9;
    --accent-blue: #16a085;
    --success-green: #1e7b46;
    --warning-amber: #f39c12;
    --danger-red: #e74c3c;

    /* Neutral Palette */
    --neutral-50: #f8f9fa;
    --neutral-100: #f1f3f5;
    --neutral-200: #e9ecef;
    --neutral-300: #dee2e6;
    --neutral-400: #ced4da;
    --neutral-500: #adb5bd;
    --neutral-600: #6c757d;
    --neutral-700: #495057;
    --neutral-800: #343a40;
    --neutral-900: #212529;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   EMPOWER CAPITAL - MAIN LANDING PAGE
   ============================================ */
.empower-landing {
    background: #ffffff;
    min-height: 100vh;
    width: 100%;
    display: block;
}

/* Top Bar */
.empower-topbar {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.empower-topbar a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.empower-topbar a:hover {
    opacity: 0.85;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Main Navigation */
.empower-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.empower-nav .brand-logo {
    height: 50px;
    width: auto;
}

.empower-nav .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.empower-nav .brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-green-dark);
}

.empower-nav .brand-tagline {
    font-size: 0.75rem;
    color: var(--brand-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.empower-nav .nav-link {
    font-weight: 600;
    color: var(--neutral-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.empower-nav .nav-link:hover {
    color: var(--brand-green);
    background: rgba(30, 123, 70, 0.08);
}

.empower-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 220px;
}

.empower-nav .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.empower-nav .dropdown-item:hover {
    background: var(--neutral-100);
    color: var(--brand-green);
}

/* Navbar collapse horizontal layout for desktop */
@media (min-width: 992px) {
    .empower-nav .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .empower-nav .navbar-nav {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
    }

    .empower-nav .nav-item {
        display: inline-block;
    }
}

/* Hero Section */
.empower-hero {
    position: relative;
    min-height: 30vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 123, 70, 0.92) 0%, rgba(26, 42, 74, 0.95) 100%),
                url('../images/hero.jpg') center/cover no-repeat;
    background-color: #1a2a4a; /* Fallback color if gradient fails */
    color: #ffffff;
    overflow: hidden;
    padding: 2.5rem 0;
}

.empower-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.empower-hero .hero-content {
    position: relative;
    z-index: 1;
}

.empower-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 160, 23, 0.2);
    border: 1px solid rgba(212, 160, 23, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gold-light);
    margin-bottom: 1.5rem;
}

.empower-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.empower-hero h1 span {
    color: var(--brand-gold-light);
}

.empower-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    word-spacing: 0.05em;
}

.empower-hero .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Service Cards Section */
.empower-services {
    padding: 4rem 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--neutral-200);
    height: 100%;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .card-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.service-card.loans .card-icon {
    background: linear-gradient(135deg, var(--loans-blue) 0%, var(--loans-blue-light) 100%);
}

.service-card.coaching .card-icon {
    background: linear-gradient(135deg, var(--coaching-orange) 0%, var(--coaching-orange-light) 100%);
}

.service-card.innovation .card-icon {
    background: linear-gradient(135deg, var(--innovation-purple) 0%, var(--innovation-purple-light) 100%);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-card .feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--neutral-700);
    font-weight: 500;
}

.service-card .feature-list li i {
    color: var(--brand-green);
    font-size: 0.9rem;
}

/* Impact Stats Section */
.empower-impact {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--coaching-navy) 0%, var(--coaching-navy-light) 100%);
    color: #ffffff;
}

.impact-stat {
    text-align: center;
    padding: 2rem;
}

.impact-stat .stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--brand-gold-light);
}

.impact-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-stat .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Core Values Section */
.empower-values {
    padding: 4rem 0;
    background: var(--neutral-50);
}

.value-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card .value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.value-card.inclusivity .value-icon {
    background: rgba(30, 123, 70, 0.1);
    color: var(--brand-green);
}

.value-card.empowerment .value-icon {
    background: rgba(212, 160, 23, 0.1);
    color: var(--brand-gold-dark);
}

.value-card.integrity .value-icon {
    background: rgba(30, 95, 143, 0.1);
    color: var(--loans-blue);
}

.value-card.sustainability .value-icon {
    background: rgba(22, 160, 133, 0.1);
    color: var(--innovation-teal);
}

.value-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.empower-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--coaching-orange) 0%, var(--coaching-orange-dark) 100%);
    color: #ffffff;
    text-align: center;
}

.empower-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.empower-cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   MICRO-LOANS SECTION - Blue/Gold Theme
   ============================================ */
.loans-section {
    --section-primary: var(--loans-blue);
    --section-secondary: var(--loans-gold);
}

.loans-hero {
    background: linear-gradient(135deg, var(--loans-blue) 0%, var(--loans-blue-dark) 100%);
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
}

.loans-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/loans-pattern.svg') no-repeat right center;
    opacity: 0.1;
}

.loan-type-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.loan-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--loans-blue) 0%, var(--loans-gold) 100%);
}

.loan-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.loan-type-card .loan-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--loans-blue) 0%, var(--loans-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.loan-type-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.loan-type-card p {
    color: var(--neutral-600);
    margin-bottom: 1rem;
}

/* Application Process Steps */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--loans-blue) 0%, var(--loans-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.process-step h5 {
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--neutral-600);
    margin: 0;
}

/* ============================================
   BUSINESS COACHING SECTION - Orange/Navy Theme
   ============================================ */
.coaching-section {
    --section-primary: var(--coaching-orange);
    --section-secondary: var(--coaching-navy);
}

.coaching-hero {
    background: linear-gradient(135deg, var(--coaching-navy) 0%, var(--coaching-navy-light) 100%);
    color: #ffffff;
    padding: 6rem 0;
}

.coaching-topic-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.coaching-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--coaching-orange);
}

.coaching-topic-card .topic-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--coaching-orange) 0%, var(--coaching-orange-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.coaching-topic-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.coaching-topic-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin: 0;
}

/* Testimonial Card */
.testimonial-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--coaching-orange);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    color: var(--neutral-700);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coaching-orange) 0%, var(--coaching-orange-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.testimonial-card .author-name {
    font-weight: 700;
    color: var(--neutral-900);
}

.testimonial-card .author-title {
    font-size: 0.9rem;
    color: var(--neutral-600);
}

/* ============================================
   ENTERPRISE INNOVATION SECTION - Purple/Teal Theme
   ============================================ */
.innovation-section {
    --section-primary: var(--innovation-purple);
    --section-secondary: var(--innovation-teal);
}

.innovation-hero {
    background: linear-gradient(135deg, var(--innovation-purple-dark) 0%, var(--innovation-purple) 100%);
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.innovation-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(22, 160, 133, 0.15) 0%, transparent 60%);
}

.innovation-service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.innovation-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--innovation-teal);
}

.innovation-service-card .service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--innovation-purple) 0%, var(--innovation-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.innovation-service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.innovation-service-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--coaching-navy) 100%);
    color: #ffffff;
    padding: 6rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--neutral-200);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item .timeline-content {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 400px;
    margin: 0 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--brand-green);
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
}

.team-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card .team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.team-card .team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-card .team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.team-card .team-role {
    color: var(--brand-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #ffffff;
    padding: 5rem 0;
}

.contact-info-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card .contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.contact-info-card h5 {
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: var(--neutral-600);
    margin: 0;
}

.contact-info-card a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
}

.contact-form-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   HOMEPAGE LAYOUT - LEGACY ATSAMERA SUPPORT
   ============================================ */
.homepage {
    background: #f7f9fc;
    color: var(--primary-dark);
}

.topbar {
    background: var(--brand-green);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0.65rem 0;
}

.topbar-social a {
    color: #ffffff;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 9;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.brand-wrap {
    min-height: 48px;
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 800;
    color: var(--primary-dark);
}

.brand-tagline {
    color: var(--neutral-600);
    font-weight: 600;
}

.main-nav .nav-link {
    font-weight: 700;
    color: var(--neutral-700);
    text-decoration: none;
    padding: 0.4rem 0.25rem;
}

.main-nav .nav-link:hover {
    color: var(--primary-blue);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-gold));
    color: #fff;
}

.hero-banner {
    position: relative;
    padding: 4.5rem 0;
    background: linear-gradient(120deg, rgba(30, 123, 70, 0.9), rgba(26, 42, 74, 0.85)), url('../images/hero.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero-banner .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 18, 44, 0.55) 0%, rgba(12, 18, 44, 0.35) 70%, rgba(12, 18, 44, 0.65) 100%);
}

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

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-banner .lead {
    font-size: 1.1rem;
    color: #e8eefc;
    margin: 1rem 0 1.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-stats .stat h3 {
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.hero-panel {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.hero-panel .panel-header {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-gold));
    color: #fff;
    padding: 1.25rem 1.5rem;
}

.hero-panel .panel-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loan-highlight {
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.loan-highlight .label {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 0.2rem;
}

.loan-highlight h6 {
    margin: 0;
    font-weight: 800;
    color: var(--primary-dark);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    color: var(--neutral-700);
}

.checklist i {
    color: var(--success-green);
    margin-right: 0.5rem;
}

.section {
    padding: 4rem 0;
}

.section.light {
    background: #f1f4fb;
}

.section-header h2 {
    font-weight: 800;
    color: var(--primary-dark);
}

.solution-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--neutral-200);
    height: 100%;
}

.icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bg-primary-light {
    background: #eef1ff;
}

.bg-success-light {
    background: #e4fbf3;
}

.pill-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.pill-list li {
    background: var(--neutral-100);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eef1ff;
    color: var(--primary-blue);
}

.assurance-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--neutral-200);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.section.highlight {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-gold));
    color: #fff;
}

.section.highlight .btn-light {
    background: #ffffff;
    color: var(--primary-dark);
}

.section.highlight .btn-primary {
    background: var(--brand-green-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================================
   STAT CARDS - DASHBOARD
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neutral-100);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.stat-content h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--neutral-900);
}

.stat-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* D-39: high-contrast labels/values on coloured stat cards.
   The Bootstrap bg-* utilities (esp. bg-info / bg-warning) are too light for
   legible text, so we darken those gradients and force white text + a shadow. */
.stat-card.bg-primary,
.stat-card.bg-success,
.stat-card.bg-info,
.stat-card.bg-warning {
    border: none;
    color: #fff;
}
.stat-card.bg-primary { background: linear-gradient(135deg, #2c5fb3, #1f4685) !important; }
.stat-card.bg-success { background: linear-gradient(135deg, #1e8e4f, #166b3c) !important; }
.stat-card.bg-info    { background: linear-gradient(135deg, #1789a6, #0f6c84) !important; }
.stat-card.bg-warning { background: linear-gradient(135deg, #c77a0a, #9c6109) !important; }
.stat-card[class*="bg-"] .stat-content h3,
.stat-card[class*="bg-"] .stat-content p {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.stat-card[class*="bg-"] .stat-content p { opacity: 0.95; }
.stat-card[class*="bg-"] .stat-icon { color: rgba(255, 255, 255, 0.95); }

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-trend.positive {
    color: var(--success-green);
}

.stat-trend.negative {
    color: var(--danger-red);
}

/* ============================================
   CARDS & PANELS
   ============================================ */
.card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0;
}

/* ============================================
   TABLES - PROFESSIONAL DATA DISPLAY
   ============================================ */
.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table thead th {
    background: var(--neutral-50);
    border-bottom: 2px solid var(--neutral-200);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--neutral-700);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--neutral-100);
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: var(--neutral-50);
}

/* ============================================
   BADGES - STATUS INDICATORS
   ============================================ */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--primary-light);
    color: white;
}

.badge-success {
    background-color: var(--success-green);
    color: white;
}

.badge-warning {
    background-color: var(--warning-amber);
    color: var(--neutral-900);
}

.badge-danger {
    background-color: var(--danger-red);
    color: white;
}

.badge-info {
    background-color: var(--accent-blue);
    color: white;
}

.badge-secondary {
    background-color: var(--neutral-200);
    color: var(--neutral-700);
}

/* ============================================
   BUTTONS - MODERN DESIGN
   ============================================ */
.btn {
    border-radius: var(--radius-md);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--brand-green);
    color: var(--brand-green);
}

.btn-outline-primary:hover {
    background: var(--brand-green);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--brand-green-dark);
}

.btn-light {
    background: #ffffff;
    color: var(--brand-green-dark);
    font-weight: 700;
}

.btn-light:hover {
    background: var(--neutral-100);
    color: var(--brand-green-dark);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-green);
    color: white;
}

.btn-danger {
    background-color: var(--danger-red);
    color: white;
}

.btn-warning {
    background-color: var(--warning-amber);
    color: var(--neutral-900);
}

/* Section-specific buttons */
.loans-section .btn-primary {
    background: linear-gradient(135deg, var(--loans-blue) 0%, var(--loans-blue-light) 100%);
}

.coaching-section .btn-primary {
    background: linear-gradient(135deg, var(--coaching-orange) 0%, var(--coaching-orange-light) 100%);
}

.innovation-section .btn-primary {
    background: linear-gradient(135deg, var(--innovation-purple) 0%, var(--innovation-teal) 100%);
}

/* ============================================
   FORMS - PROFESSIONAL INPUT DESIGN
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    border: 2px solid var(--neutral-200);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(30, 123, 70, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-group-text {
    background-color: var(--neutral-50);
    border: 2px solid var(--neutral-200);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--neutral-600);
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--brand-green);
    background-color: rgba(30, 123, 70, 0.05);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* ============================================
   NAVBAR - PROFESSIONAL HEADER
   ============================================ */
.navbar {
    background: white !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-green-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--brand-gold);
}

.navbar-nav .nav-link {
    color: var(--neutral-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    border-radius: var(--radius-sm);
}

.navbar-nav .nav-link:hover {
    color: var(--brand-green) !important;
    background-color: var(--neutral-50);
}

.navbar-nav .nav-link i {
    color: var(--neutral-500);
}

.dropdown-menu {
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--neutral-50);
    color: var(--brand-green);
}

/* ============================================
   FOOTER - PROFESSIONAL
   ============================================ */
footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding: 4rem 0 2rem;
    margin-top: 0;
    border-top: 4px solid var(--brand-gold);
}

footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer .footer-brand i {
    color: var(--brand-gold);
}

footer h5 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--brand-gold);
}

footer .footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: 2rem;
    margin-top: 3rem;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neutral-800);
    color: white;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--brand-gold);
    transform: translateY(-3px);
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--neutral-900);
}

.modal-body {
    padding: 1.5rem;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    height: 12px;
    border-radius: var(--radius-md);
    background-color: var(--neutral-100);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.75rem;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-gold));
}

/* ============================================
   CHART CONTAINER
   ============================================ */
.chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--brand-green) !important; }
.text-success { color: var(--success-green) !important; }
.text-warning { color: var(--warning-amber) !important; }
.text-danger { color: var(--danger-red) !important; }
.text-info { color: var(--accent-blue) !important; }
.text-muted { color: var(--neutral-500) !important; }
.text-gold { color: var(--brand-gold) !important; }

.bg-primary { background-color: var(--brand-green) !important; }
.bg-success { background-color: var(--success-green) !important; }
.bg-warning { background-color: var(--warning-amber) !important; }
.bg-danger { background-color: var(--danger-red) !important; }
.bg-info { background-color: var(--accent-blue) !important; }
.bg-gold { background-color: var(--brand-gold) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* ============================================
   RESPONSIVE DESIGN - MOBILE-FIRST APPROACH
   ============================================ */

/* Base Mobile Styles - Applied to all screen sizes */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch-Friendly Minimum Sizes */
.btn,
.nav-link,
.form-control,
.form-select,
a.badge,
.pagination .page-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link,
.dropdown-item {
    padding: 0.75rem 1rem;
}

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Devices (1200px and down) - Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }
}

/* Medium-Large Devices (992px and down) - Tablets landscape */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .empower-hero h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item::before {
        left: 30px;
    }

    /* Stack navigation items more gracefully */
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--neutral-200);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    /* Better spacing for cards on tablets */
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Medium Devices (768px and down) - Tablets portrait */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    .empower-hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .empower-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .empower-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .impact-stat .stat-number {
        font-size: 2.25rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .empower-topbar {
        font-size: 0.8rem;
        padding: 0.75rem 0;
    }

    .empower-topbar .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Mobile-optimized navigation */
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 30px !important;
    }

    /* Footer adjustments */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-md-4 {
        margin-bottom: 2rem;
    }

    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* Form improvements */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    /* Button sizing */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    /* Card improvements */
    .card-body {
        padding: 1.25rem;
    }

    /* Table wrapper for horizontal scroll */
    .table-responsive {
        margin-bottom: 1rem;
    }
}

/* Small Devices (576px and down) - Large phones */
@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .empower-hero {
        padding: 2.5rem 0;
    }

    .empower-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .empower-hero .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
        width: 100%; /* Full-width buttons on mobile */
        margin-bottom: 0.5rem;
    }

    /* Don't make outline buttons full width */
    .btn-outline-primary,
    .btn-outline-secondary,
    .btn-outline-light {
        width: auto;
        display: inline-flex;
    }

    .service-card .card-body {
        padding: 1.5rem;
    }

    .impact-stat {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Navbar adjustments */
    .navbar-brand {
        font-size: 0.9rem;
    }

    .navbar-brand span {
        display: none; /* Hide text, show logo only */
    }

    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    /* Improved mobile nav */
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }

    /* Footer mobile optimization */
    footer {
        text-align: center;
    }

    footer .footer-brand {
        justify-content: center;
    }

    footer .social-links {
        justify-content: center;
    }

    footer ul {
        padding-left: 0;
    }

    /* Form controls */
    .form-control,
    .form-select,
    textarea.form-control {
        font-size: 16px; /* Prevents iOS zoom */
    }

    .input-group {
        flex-direction: row;
    }

    .input-group .btn {
        width: auto;
        margin-top: 0;
    }

    /* Modal improvements */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: var(--radius-md);
    }

    /* Alert improvements */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* Extra Small Devices (480px and down) - Small phones */
@media (max-width: 480px) {
    .empower-hero h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Compact tables for very small screens */
    .table {
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    /* Stack badges vertically */
    .badge {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Extra Small Devices (375px and down) - iPhone SE, etc. */
@media (max-width: 375px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .empower-hero h1 {
        font-size: 1.35rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }

    /* Very compact cards */
    .service-card .card-body {
        padding: 1rem;
    }

    /* Smaller icons */
    .card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
}

/* Landscape orientation optimizations for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .empower-hero {
        padding: 2rem 0;
    }

    .empower-hero h1 {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 0.25rem 0;
    }

    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .nav-link,
    .dropdown-item,
    a {
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .btn:hover,
    .nav-link:hover,
    .card:hover {
        transform: none;
    }

    /* Better tap feedback */
    .btn:active,
    .nav-link:active {
        opacity: 0.7;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .empower-topbar {
        display: none !important;
    }

    .container {
        max-width: 100%;
    }

    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 50%, var(--neutral-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   SCROLL ANIMATIONS (triggered by JS)
   ============================================ */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* Nav btn styling */
.nav-btn {
    font-weight: 700;
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
}

/* ============================================
   MOBILE-FRIENDLY ENHANCEMENTS
   ============================================ */

/* Mobile Bottom Navigation Bar for Customer Portal */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--neutral-200);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    padding: 0.25rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-bottom-nav .nav-items a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--neutral-600);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    min-height: auto;
    gap: 0.15rem;
}

.mobile-bottom-nav .nav-items a i {
    font-size: 1.15rem;
}

.mobile-bottom-nav .nav-items a.active {
    color: var(--brand-green);
    font-weight: 700;
}

.mobile-bottom-nav .nav-items a:active {
    transform: scale(0.92);
    opacity: 0.7;
}

/* Mobile stat cards - 2x2 grid */
.mobile-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mobile-stat-grid .stat-card {
    margin-bottom: 0;
}

/* Mobile card-based data display (replaces tables on small screens) */
.mobile-data-cards {
    display: none;
}

.mobile-data-card {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.mobile-data-card .data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

.mobile-data-card .data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.mobile-data-card .data-label {
    color: var(--neutral-600);
    font-size: 0.8rem;
}

.mobile-data-card .data-value {
    font-weight: 600;
    text-align: right;
}

.mobile-data-card .data-actions {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--neutral-100);
    display: flex;
    gap: 0.5rem;
}

.mobile-data-card .data-actions .btn {
    width: auto;
    flex: 1;
}

/* Swipeable tabs for mobile */
.mobile-scroll-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.mobile-scroll-tabs::-webkit-scrollbar {
    display: none;
}

/* Pull to refresh indicator */
.pull-to-refresh {
    display: none;
    text-align: center;
    padding: 1rem;
    color: var(--neutral-500);
    font-size: 0.85rem;
}

/* Mobile-optimized step indicator */
.mobile-steps {
    display: none;
}

.mobile-steps .step-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mobile-steps .step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neutral-300);
    transition: all 0.3s ease;
}

.mobile-steps .step-dot.active {
    background: var(--primary-blue);
    width: 28px;
    border-radius: 5px;
}

.mobile-steps .step-dot.completed {
    background: var(--success-green);
}

.mobile-steps .step-text {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
}

/* Floating action button for mobile */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(30, 123, 70, 0.4);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1040;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-fab:active {
    transform: scale(0.9);
}

/* Improved mobile alert/notification styles */
.mobile-alert {
    border-radius: var(--radius-md);
    padding: 0.875rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.mobile-alert .alert-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE - 768px: Show mobile bottom nav,
   improve customer dashboard
   ============================================ */
@media (max-width: 768px) {
    /* Show mobile bottom nav for customer portal */
    body.customer-portal .mobile-bottom-nav {
        display: block;
    }

    body.customer-portal {
        padding-bottom: 70px;
    }

    /* Hide top navbar links on customer portal (replaced by bottom nav) */
    body.customer-portal .navbar-collapse {
        display: none !important;
    }

    body.customer-portal .navbar-toggler {
        display: none;
    }

    /* Make stat cards use 2x2 grid */
    .row.g-4 > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0.375rem;
    }

    /* Compact stat card content */
    .stat-card .stat-content h3 {
        font-size: 1.1rem;
    }

    .stat-card .stat-content p {
        font-size: 0.75rem;
    }

    .stat-card .stat-icon {
        display: none;
    }

    .stat-card {
        padding: 0.75rem;
        border-radius: var(--radius-md);
    }

    /* Card header improvements */
    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-header h5 {
        font-size: 0.95rem;
    }

    .card-header .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        width: auto;
    }

    /* Pending applications alert - stack layout */
    .alert.d-flex {
        flex-direction: column;
        text-align: center;
    }

    .alert.d-flex .fa-2x {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .alert.d-flex .btn {
        width: 100%;
        margin-top: 0.75rem;
    }

    /* Better login form mobile sizing */
    .col-xl-4.col-lg-5.col-md-6 {
        flex: 0 0 calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
    }

    /* Landing page hero CTA buttons - stack them */
    .empower-hero .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .empower-hero .d-flex.gap-3 .btn {
        width: 100%;
    }

    /* Hide footer on customer portal pages (bottom nav takes priority) */
    body.customer-portal footer {
        padding-bottom: 70px;
    }
}

/* ============================================
   RESPONSIVE - 576px: Mobile data cards,
   enhanced touch UX
   ============================================ */
@media (max-width: 576px) {
    /* Show mobile data cards, hide desktop tables */
    .mobile-data-cards {
        display: block;
    }

    .desktop-table {
        display: none;
    }

    /* Show mobile step dots instead of desktop step bars */
    .mobile-steps {
        display: block;
    }

    .desktop-steps {
        display: none;
    }

    /* Floating action button */
    body.customer-portal .mobile-fab {
        display: flex;
    }

    /* Better spacing for mobile content areas */
    .container-fluid.py-4 {
        padding: 1rem 0.75rem !important;
    }

    /* Page titles */
    .h2, h2 {
        font-size: 1.35rem;
    }

    h1.h2 {
        font-size: 1.25rem;
    }

    /* Fix full-width button issues - be more specific */
    .d-grid .btn,
    form .btn[type="submit"] {
        width: 100%;
    }

    .btn-sm {
        width: auto;
        display: inline-flex;
    }

    .table .btn-sm {
        width: auto;
    }

    /* Card-based layout for account info */
    .table-borderless td {
        display: block;
        padding: 0.25rem 0;
    }

    .table-borderless tr {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--neutral-100);
    }

    .table-borderless tr:last-child {
        border-bottom: none;
    }

    /* Login page adjustments */
    .min-vh-100 > .col-xl-4 {
        padding: 0 0.75rem;
    }

    .card-body.p-4.p-md-5 {
        padding: 1.25rem !important;
    }

    /* Improved spacing for mobile contact section */
    .d-grid.gap-2 .btn {
        font-size: 0.85rem;
        padding: 0.625rem 0.75rem;
    }

    /* Landing nav improvements */
    .empower-nav .nav-link {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--neutral-100);
    }

    .empower-nav .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Improve input-group for mobile - don't stack */
    .input-group {
        flex-direction: row;
    }

    .input-group .btn {
        width: auto;
        margin-top: 0;
    }

    /* Topbar - hide on mobile, content moves to nav */
    .empower-topbar {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - 480px: Extra compact mobile
   ============================================ */
@media (max-width: 480px) {
    /* Even more compact stat cards */
    .row.g-4 > .col-md-3 {
        padding: 0.25rem;
    }

    .stat-card .stat-content h3 {
        font-size: 0.95rem;
    }

    /* Compact mobile data cards */
    .mobile-data-card {
        padding: 0.75rem;
    }

    .mobile-data-card .data-row {
        font-size: 0.85rem;
    }

    /* Bottom nav adjustments */
    .mobile-bottom-nav .nav-items a {
        font-size: 0.6rem;
        padding: 0.35rem 0.5rem;
    }

    .mobile-bottom-nav .nav-items a i {
        font-size: 1rem;
    }

    /* Even more compact forms */
    .form-label {
        font-size: 0.85rem;
    }

    /* Landing page adjustments */
    .empower-hero {
        padding: 1.5rem 0;
    }

    .service-card {
        margin-bottom: 0.75rem;
    }
}
