/* Custom CSS for RateDriven Auto Refinance */

/* Hero Section Styles */
.hero-section {
    min-height: 60vh;
}

.hero-content {
    min-height: 60vh;
}

.hero-image-container {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero-image {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.hero-badge {
    color: #6c757d;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Hero Text Size Overrides */
.hero-content .display-4 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-content .hero-form .form-select-lg {
    font-size: 1rem;
}

.hero-content .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.hero-content .small {
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .hero-image-container {
        height: 40vh;
    }

    .hero-content {
        min-height: auto;
    }

    .hero-section {
        min-height: auto;
    }
}

/* Theme Variables */
:root {
    /* Default Theme (Proxima Nova - LendingClub) */
    --primary-color: #113b5e;
    --primary-light: #557b92;
    --primary-dark: #0f1f2c;
    --secondary-color: #0277b3;
    --accent-color: #ea4224;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --body-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #d13512 100%);

    /* Hero Background */
    --hero-bg-image: url('../../assets/images/hero-1.jpg');

    /* Logo */
    --logo-image: url('../../assets/images/ratedriven-logo.svg');
}

/* Theme 1: Proxima Nova - LendingClub (Default) */
[data-theme="theme-1"] {
    --primary-color: #113b5e;
    --primary-light: #557b92;
    --primary-dark: #0f1f2c;
    --secondary-color: #0277b3;
    --accent-color: #ea4224;
    --hero-bg-image: url('../../assets/images/hero-1.jpg');
    --logo-image: url('../../assets/images/logo-1.jpg');
}

/* Theme 2: Same as Theme 1 (appears to be duplicate) */
[data-theme="theme-2"] {
    --primary-color: #113b5e;
    --primary-light: #557b92;
    --primary-dark: #0f1f2c;
    --secondary-color: #0277b3;
    --accent-color: #ea4224;
    --hero-bg-image: url('../../assets/images/hero-2.jpg');
    --logo-image: url('../../assets/images/logo-2.jpg');
}

/* Theme 3: Futura - Ally (Purple Theme) */
[data-theme="theme-3"] {
    --primary-color: #630360;
    --primary-light: #954293;
    --primary-dark: #421f40;
    --secondary-color: #df9dde;
    --accent-color: #467720;
    --text-color: #2a2a2a;
    --hero-bg-image: url('../../assets/images/hero-3.jpg');
    --logo-image: url('../../assets/images/logo-3.jpg');
}

/* Theme 4: Lending Tree (Green Theme) */
[data-theme="theme-4"] {
    --primary-color: #0f1f30;
    --primary-light: #00b29f;
    --primary-dark: #07141f;
    --secondary-color: #07ba79;
    --accent-color: #ff704c;
    --text-color: #333333;
    --hero-bg-image: url('../../assets/images/hero-4.jpg');
    --logo-image: url('../../assets/images/logo-4.jpg');
}

/* Theme-specific accent highlights */
[data-theme="theme-1"] .benefit-icon i,
[data-theme="theme-2"] .benefit-icon i {
    color: var(--accent-color);
}

[data-theme="theme-3"] .benefit-icon i {
    color: var(--accent-color);
}

[data-theme="theme-4"] .benefit-icon i {
    color: var(--secondary-color);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
    transition: all 0.3s ease;
}

/* Custom Bootstrap Utilities */
.min-vh-75 {
    min-height: 75vh;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar-brand-logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar-brand-logo img {
        height: 35px;
        max-width: 160px;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* FORCE MOBILE NAV LINK COLORS - HIGHEST PRIORITY */
@media (max-width: 991px) {
    .navbar-light .navbar-nav .nav-link,
    .navbar-expand-lg .navbar-nav .nav-link,
    #navbarNav .navbar-nav .nav-link,
    #navbarNav .nav-link,
    .collapse .navbar-nav .nav-link,
    .navbar-collapse .navbar-nav .nav-link {
        color: #000000 !important;
        background-color: #f0f0f0 !important;
        border: 1px solid #cccccc !important;
        margin: 0.25rem 0 !important;
        padding: 0.75rem 1rem !important;
        border-radius: 6px !important;
        font-weight: bold !important;
        text-shadow: none !important;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-expand-lg .navbar-nav .nav-link:hover,
    #navbarNav .navbar-nav .nav-link:hover,
    #navbarNav .nav-link:hover,
    .collapse .navbar-nav .nav-link:hover,
    .navbar-collapse .navbar-nav .nav-link:hover {
        color: #ffffff !important;
        background-color: #0066cc !important;
        border-color: #0066cc !important;
    }
}

/* Hero Section - Updated for new layout */

/* Enhanced CTA Button */
.cta-button-container {
    text-align: center;
    margin-top: 1rem;
}

.cta-primary {
    background: var(--gradient-secondary) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: var(--gradient-primary) !important;
}

.cta-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.cta-primary i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

.cta-subtext {
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


/* Benefits Section */
.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.benefit-icon {
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* Form Section */
.form-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control-lg {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    background: var(--gradient-secondary);
}

/* How It Works Section */
.step-card {
    transition: all 0.3s ease;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.step-card:hover {
    transform: translateY(-3px);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    background: var(--gradient-secondary) !important;
}

/* FAQ Section */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background-color: #fff;
    border: none;
    box-shadow: none;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px !important;
    margin-bottom: 1rem;
}

.accordion-item:last-of-type {
    margin-bottom: 0;
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

.trust-badges {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* FORCE TRUST BADGE TEXT VISIBILITY - HIGHEST SPECIFICITY */
footer .trust-badges small,
footer .trust-badges .text-muted,
.trust-badges small.text-muted,
.trust-badges small,
.trust-badges .text-muted,
footer small.text-muted,
.bg-dark .trust-badges small,
.bg-dark .trust-badges .text-muted {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    opacity: 1 !important;
}

/* Force background for trust badges */
footer .trust-badges,
.bg-dark .trust-badges {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

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

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

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .navbar-nav {
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(0, 102, 204, 0.1);
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    /* Navigation improvements */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }

    /* Reset theme-specific layouts for mobile */
    @media (max-width: 576px) {
        /* Extra small screen optimizations */
        .container {
            padding: 0 0.75rem;
        }

        .navbar-brand {
            font-size: 1.4rem;
        }

        /* Enhanced mobile navbar button */
        .navbar-toggler {
            border: 2px solid var(--primary-color) !important;
            background-color: var(--primary-color) !important;
            padding: 0.4rem !important;
            border-radius: 6px !important;
        }

        .navbar-toggler-icon {
            width: 1.2rem !important;
            height: 1.2rem !important;
        }

        /* Hero section for very small screens */
        .hero-section {
            padding: 2rem 0 3rem;
        }

        .display-4 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .lead {
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }

        .hero-stats .row {
            display: flex;
            flex-direction: row;
            gap: 0.5rem;
            justify-content: center;
        }

        .hero-stats .col-4 {
            flex: 1;
            margin-bottom: 0.5rem;
            min-width: 0;
        }

        .hero-stats .stat-item {
            padding: 0.75rem 0.5rem;
            margin-bottom: 0.5rem;
        }

        .hero-stats h3 {
            font-size: 1rem;
            margin-bottom: 0.1rem;
        }

        .hero-stats small {
            font-size: 0.65rem;
            line-height: 1.2;
        }

        .hero-stats .stat-item {
            padding: 0.5rem 0.25rem;
            margin-bottom: 0.5rem;
        }

        /* Typography for small screens */
        .display-5 {
            font-size: 1.3rem;
        }

        h4 {
            font-size: 1rem;
        }

        /* Card adjustments */
        .benefit-card, .value-card {
            padding: 1.5rem !important;
            margin-bottom: 1rem;
        }

        .benefit-icon, .step-number {
            margin-bottom: 0.75rem;
        }

        .benefit-icon i {
            font-size: 2rem !important;
        }

        /* How It Works - Ultra mobile optimization */
        .step-card {
            padding: 1.25rem !important;
            margin-bottom: 1rem !important;
            background: white !important;
            border: 1px solid #dee2e6 !important;
            border-radius: 10px !important;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
        }

        .step-card h5 {
            color: #333 !important;
            font-size: 1rem !important;
            margin-bottom: 0.5rem !important;
            font-weight: 700 !important;
        }

        .step-card p {
            color: #666 !important;
            font-size: 0.85rem !important;
            line-height: 1.4 !important;
            margin-bottom: 0 !important;
        }

        .step-number {
            width: 40px !important;
            height: 40px !important;
            font-size: 1.1rem !important;
            margin: 0 auto 0.75rem auto !important;
        }

        /* Single column layout for very small screens */
        #how-it-works .row.g-4 {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 1rem !important;
            max-width: 400px !important;
            margin: 0 auto !important;
        }

        #how-it-works .col-lg-3 {
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        /* Section spacing */
        .py-5 {
            padding: 2rem 0 !important;
        }

        .mb-5 {
            margin-bottom: 2rem !important;
        }

        /* Button adjustments */
        .btn-lg {
            font-size: 0.95rem;
            padding: 0.625rem 1.5rem;
            width: 100%;
        }

        /* CTA Button for very small screens */
        .cta-primary {
            min-width: 240px !important;
            font-size: 0.9rem !important;
            padding: 0.75rem 1.5rem !important;
        }

        .cta-subtext {
            font-size: 0.8rem !important;
        }

        .cta-button-container {
            margin-top: 2rem;
            margin-bottom: 1rem;
        }

        /* Footer optimizations */
        footer .row {
            text-align: center;
        }

        footer .col-lg-4,
        footer .col-lg-2 {
            margin-bottom: 2rem;
        }

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

        /* Trust badges mobile optimization */
        .trust-badges {
            background: rgba(255, 255, 255, 0.2) !important;
            padding: 1rem !important;
            border-radius: 10px !important;
            border: 2px solid rgba(255, 255, 255, 0.3) !important;
            display: block !important;
            text-align: center !important;
            margin: 1rem auto !important;
            max-width: 280px !important;
        }

        .trust-badges small,
        .trust-badges .text-muted {
            color: #ffffff !important;
            font-weight: 600 !important;
            font-size: 0.9rem !important;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
        }

        .trust-badges i {
            color: #28a745 !important;
            margin-right: 0.5rem !important;
        }

        /* ULTRA-SPECIFIC MOBILE TRUST BADGE FIX */
        footer .trust-badges small,
        footer .trust-badges .text-muted,
        .trust-badges small.text-muted,
        .trust-badges small,
        .trust-badges .text-muted,
        .bg-dark .trust-badges small,
        .bg-dark .trust-badges .text-muted,
        footer .col-lg-4 .trust-badges small {
            color: #ffffff !important;
            background: none !important;
            font-weight: 700 !important;
            font-size: 1rem !important;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
            opacity: 1 !important;
            display: inline !important;
        }

        footer .trust-badges,
        .bg-dark .trust-badges {
            background: rgba(255, 255, 255, 0.3) !important;
            border: 3px solid rgba(255, 255, 255, 0.5) !important;
            padding: 1.25rem !important;
        }

        /* Form specific mobile improvements */
        .form-card {
            margin: 0.5rem;
            padding: 1.5rem !important;
        }
    }

    /* Touch-friendly improvements */
    @media (hover: none) and (pointer: coarse) {
        .btn, .nav-link, .accordion-button {
            min-height: 44px;
            min-width: 44px;
        }

        .navbar-toggler {
            min-height: 44px;
            min-width: 44px;
        }

        .form-control, .form-select {
            min-height: 44px;
            font-size: 16px; /* Prevents zoom on iOS */
        }
    }

    /* Accessibility */
    .btn:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

    /* About Us Page Specific Styles */
    .min-vh-50 {
        min-height: 50vh;
    }

    .mission-card {
        border: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .mission-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: var(--gradient-primary);
        border-radius: inherit;
        z-index: -1;
        opacity: 0.1;
    }

    .mission-icon {
        animation: float 6s ease-in-out infinite;
    }

    .value-card {
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .value-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    }

    .value-icon {
        transition: all 0.3s ease;
    }

    .value-card:hover .value-icon {
        transform: scale(1.1);
    }

    .service-icon {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .service-item:hover .service-icon {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .commitment-item {
        margin-bottom: 1rem;
        font-weight: 500;
    }

    .commitment-graphic {
        animation: pulse 4s ease-in-out infinite;
    }

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

    .stat-card {
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-3px);
    }

    .stat-number {
        background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
        background-clip: text;
        -webkit-background-clip: text;
        display: inline-block;
    }

    .cta-buttons .btn {
        transition: all 0.3s ease;
    }

    .cta-buttons .btn:hover {
        transform: translateY(-2px);
    }

    /* Enhanced gradients for About page */
    .bg-gradient-secondary {
        background: linear-gradient(135deg, var(--secondary-color) 0%, #20c997 100%);
    }

    /* Responsive enhancements for About page */
    @media (max-width: 768px) {
        .mission-card {
            padding: 2rem !important;
        }

        .display-5 {
            font-size: 1.75rem;
        }

        .service-item {
            text-align: center;
            flex-direction: column;
        }

        .service-icon {
            margin-bottom: 1rem !important;
            margin-right: 0 !important;
        }

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

        .cta-buttons {
            flex-direction: column;
            gap: 1rem;
        }

        .cta-buttons .btn {
            width: 100%;
            margin-right: 0 !important;
        }
    }

    /* Mobile-First Typography Enhancements */
    @media (max-width: 768px) {
        /* Global typography improvements */
        body {
            font-size: 14px;
            line-height: 1.5;
        }

        h1, .h1 {
            font-size: 1.75rem;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        h2, .h2 {
            font-size: 1.5rem;
            line-height: 1.3;
            margin-bottom: 0.875rem;
        }

        h3, .h3 {
            font-size: 1.25rem;
            line-height: 1.3;
            margin-bottom: 0.75rem;
        }

        h4, .h4 {
            font-size: 1.1rem;
            line-height: 1.4;
            margin-bottom: 0.625rem;
        }

        h5, .h5 {
            font-size: 1rem;
            line-height: 1.4;
            margin-bottom: 0.5rem;
        }

        h6, .h6 {
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 0.5rem;
        }

        p {
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 1rem;
        }

        .lead {
            font-size: 1rem;
            font-weight: 400;
            line-height: 1.4;
        }

        /* List improvements */
        ul, ol {
            padding-left: 1.25rem;
        }

        li {
            margin-bottom: 0.25rem;
            line-height: 1.4;
        }

        /* Table responsiveness */
        .table-responsive {
            border: none;
            margin-bottom: 1rem;
        }

        table {
            font-size: 0.85rem;
        }

        th, td {
            padding: 0.5rem !important;
            vertical-align: middle;
        }
    }

    @media (max-width: 576px) {
        /* Ultra-small screen typography */
        body {
            font-size: 13px;
        }

        h1, .h1 {
            font-size: 1.5rem;
        }

        h2, .h2 {
            font-size: 1.3rem;
        }

        h3, .h3 {
            font-size: 1.15rem;
        }

        h4, .h4 {
            font-size: 1rem;
        }

        .lead {
            font-size: 0.95rem;
        }

        p {
            font-size: 0.85rem;
        }

        small, .small {
            font-size: 0.75rem;
        }
    }

    /* Mobile Content Layout Optimizations */
    @media (max-width: 768px) {
        /* Container adjustments */
        .container-fluid {
            padding: 0 0.75rem;
        }

        /* Modal improvements for mobile */
        .modal-dialog {
            margin: 0.5rem;
            max-width: calc(100vw - 1rem);
        }

        .modal-content {
            border-radius: 12px;
        }

        .modal-header {
            padding: 1rem;
            border-bottom: 1px solid #dee2e6;
        }

        .modal-body {
            padding: 1rem;
            max-height: 70vh;
            overflow-y: auto;
        }

        .modal-footer {
            padding: 1rem;
            border-top: 1px solid #dee2e6;
        }

        /* Alert improvements */
        .alert {
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
        }

        /* Badge adjustments */
        .badge {
            font-size: 0.7rem;
            padding: 0.35rem 0.65rem;
        }

        /* Breadcrumb mobile optimization */
        .breadcrumb {
            background: none;
            padding: 0.5rem 0;
            margin-bottom: 1rem;
            font-size: 0.85rem;
        }

        .breadcrumb-item + .breadcrumb-item::before {
            content: "›";
            color: #6c757d;
        }
    }

    /* Desktop Navigation - Ensure proper horizontal layout */
    @media (min-width: 992px) {
        .navbar-collapse {
            background: none !important;
            backdrop-filter: none !important;
            border-radius: 0 !important;
            margin-top: 0 !important;
            padding: 0 !important;
            box-shadow: none !important;
            border: none !important;
            display: flex !important;
        }

        .navbar-nav {
            flex-direction: row !important;
            align-items: center !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .navbar-nav .nav-item {
            margin: 0 0.5rem !important;
        }

        .navbar-nav .nav-link {
            color: #333 !important;
            background: none !important;
            padding: 0.5rem 1rem !important;
            border-radius: 6px !important;
            margin-bottom: 0 !important;
            font-weight: 500 !important;
            font-size: 1rem !important;
            border: none !important;
            text-decoration: none !important;
            display: inline-block !important;
            transition: all 0.3s ease !important;
        }

        .navbar-nav .nav-link:hover {
            color: var(--primary-color) !important;
            background: rgba(0, 102, 204, 0.1) !important;
            transform: none !important;
        }

        .navbar-nav .nav-link.active {
            color: var(--primary-color) !important;
            background: rgba(0, 102, 204, 0.15) !important;
            font-weight: 600 !important;
        }

        .navbar-toggler {
            display: none !important;
        }
    }

    /* Enhanced Mobile Navigation */
    @media (max-width: 991px) {
        /* Mobile hamburger button styling */
        .navbar-toggler {
            border: 2px solid var(--primary-color) !important;
            background-color: var(--primary-color) !important;
            padding: 0.5rem !important;
            border-radius: 8px !important;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
            width: 1.5rem !important;
            height: 1.5rem !important;
        }

        .navbar-collapse {
            background: #ffffff !important;
            backdrop-filter: blur(10px);
            border-radius: 12px;
            margin-top: 1rem;
            padding: 1.5rem;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            border: 2px solid #e0e0e0;
        }

        .navbar-nav {
            flex-direction: column !important;
        }

        .navbar-nav .nav-item {
            margin: 0.5rem 0;
        }

        /* Force dark text color with high specificity - MOBILE ONLY */
        .navbar-collapse.show .navbar-nav .nav-link,
        .navbar-collapse.collapsing .navbar-nav .nav-link {
            color: #212529 !important;
            background: #f8f9fa !important;
            padding: 1rem 1.25rem !important;
            border-radius: 8px !important;
            margin-bottom: 0.5rem !important;
            font-weight: 600 !important;
            font-size: 1.1rem !important;
            border: 2px solid transparent !important;
            text-decoration: none !important;
            display: block !important;
        }

        /* Hover and active states - MOBILE ONLY */
        .navbar-collapse.show .navbar-nav .nav-link:hover,
        .navbar-collapse.show .navbar-nav .nav-link:focus,
        .navbar-collapse.collapsing .navbar-nav .nav-link:hover {
            color: #ffffff !important;
            background: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            transform: translateX(5px);
        }

        .navbar-collapse.show .navbar-nav .nav-link.active,
        .navbar-collapse.collapsing .navbar-nav .nav-link.active {
            color: #ffffff !important;
            background: #28a745 !important;
            border-color: #28a745 !important;
        }
    }

    /* Mobile-Specific Utility Classes */
    .mobile-hidden {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    @media (max-width: 768px) {
        .mobile-hidden {
            display: none !important;
        }

        .mobile-only {
            display: block !important;
        }

        .mobile-center {
            text-align: center !important;
        }

        .mobile-left {
            text-align: left !important;
        }

        .mobile-full-width {
            width: 100% !important;
        }

        .mobile-no-padding {
            padding: 0 !important;
        }

        .mobile-small-padding {
            padding: 0.5rem !important;
        }

        .mobile-stack {
            flex-direction: column !important;
        }

        .mobile-stack > * {
            width: 100% !important;
            margin-bottom: 1rem;
        }

        .mobile-stack > *:last-child {
            margin-bottom: 0;
        }
    }

    /* Enhanced Card Layouts for Mobile */
    @media (max-width: 768px) {
        .card {
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .card-header {
            padding: 1rem;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-bottom: 1px solid #dee2e6;
            border-radius: 12px 12px 0 0 !important;
        }

        .card-body {
            padding: 1rem;
        }

        .card-footer {
            padding: 1rem;
            background: #f8f9fa;
            border-top: 1px solid #dee2e6;
            border-radius: 0 0 12px 12px !important;
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .card-subtitle {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .card-text {
            font-size: 0.9rem;
            line-height: 1.4;
        }
    }

    /* Mobile Performance Optimizations */
    @media (max-width: 768px) {
        /* Reduce animations for performance */
        .reduced-motion {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        /* Optimize image loading */
        img {
            height: auto;
            max-width: 100%;
        }

        .img-fluid {
            border-radius: 8px;
        }

        /* Optimize video for mobile */
        video {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

        /* Improve iframe responsiveness */
        iframe {
            max-width: 100%;
            border-radius: 8px;
        }
    }

    /* Dark Mode Support for Mobile */
    @media (prefers-color-scheme: dark) and (max-width: 768px) {
        body {
            background-color: #1a1a1a;
            color: #ffffff;
        }

        .card,
        .form-card,
        .benefit-card,
        .step-card {
            background-color: #2d2d2d;
            border-color: #404040;
            color: #ffffff;
        }

        .navbar {
            background-color: #2d2d2d !important;
        }

        .navbar-light .navbar-nav .nav-link {
            color: #ffffff !important;
        }

        .form-control,
        .form-select {
            background-color: #404040;
            border-color: #606060;
            color: #ffffff;
        }

        .form-control:focus,
        .form-select:focus {
            background-color: #404040;
            border-color: var(--primary-color);
            color: #ffffff;
        }
    }

    /* Theme Dropdown Styles */
    .theme-preview {
        display: flex;
        gap: 3px;
    }

    .color-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }

    .theme-option {
        padding: 0.75rem 1rem;
        transition: all 0.3s ease;
    }

    .theme-option:hover {
        background: var(--primary-color);
        color: white;
    }

    .theme-option.active {
        background: var(--primary-color);
        color: white;
        font-weight: 600;
    }

    .theme-option.active::after {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free', serif;
        font-weight: 900;
        margin-left: auto;
    }

    /* Dynamic Listicle Placement Styles */
    .listicle-offer {
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .listicle-offer:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .listicle-offer-header {
        padding: 1.5rem;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        position: relative;
        overflow: hidden;
    }

    .listicle-offer-header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: translate(30px, -30px);
    }

    .listicle-offer-image {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.3);
        margin-bottom: 1rem;
        transition: transform 0.3s ease;
    }

    .listicle-offer:hover .listicle-offer-image {
        transform: scale(1.05);
    }

    .listicle-offer-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0 0 0.5rem 0;
        line-height: 1.2;
    }

    .listicle-offer-subtitle {
        font-size: 0.95rem;
        opacity: 0.9;
        margin: 0;
        font-weight: 400;
    }

    .listicle-offer-body {
        padding: 1.5rem;
    }

    .listicle-offer-description {
        font-size: 1rem;
        color: #666;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .listicle-offer-features {
        list-style: none;
        padding: 0;
        margin: 0 0 1.5rem 0;
    }

    .listicle-offer-features li {
        padding: 0.5rem 0;
        font-size: 0.95rem;
        color: #555;
        position: relative;
        padding-left: 1.5rem;
    }

    .listicle-offer-features li::before {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #28a745;
        position: absolute;
        left: 0;
        top: 0.5rem;
        font-size: 0.8rem;
    }

    .listicle-offer-price {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        text-align: center;
        border: 2px solid #e9ecef;
    }

    .listicle-offer-price-amount {
        font-size: 1.75rem;
        font-weight: 700;
        color: #007bff;
        margin: 0;
    }

    .listicle-offer-price-period {
        font-size: 0.9rem;
        color: #666;
        margin: 0;
    }

    .listicle-offer-cta {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        border: none;
        padding: 1rem 2rem;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .listicle-offer-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
        color: white;
        text-decoration: none;
    }

    /* Variation for different colored headers */
    .listicle-offer.variant-success .listicle-offer-header {
        background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    }

    .listicle-offer.variant-success .listicle-offer-price-amount {
        color: #28a745;
    }

    .listicle-offer.variant-success .listicle-offer-cta {
        background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    }

    .listicle-offer.variant-success .listicle-offer-cta:hover {
        background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

    .listicle-offer.variant-warning .listicle-offer-header {
        background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
        color: #212529;
    }

    .listicle-offer.variant-warning .listicle-offer-price-amount {
        color: #ffc107;
    }

    .listicle-offer.variant-warning .listicle-offer-cta {
        background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
        color: #212529;
    }

    .listicle-offer.variant-warning .listicle-offer-cta:hover {
        background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    }

    .listicle-offer.variant-info .listicle-offer-header {
        background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    }

    .listicle-offer.variant-info .listicle-offer-price-amount {
        color: #17a2b8;
    }

    .listicle-offer.variant-info .listicle-offer-cta {
        background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    }

    .listicle-offer.variant-info .listicle-offer-cta:hover {
        background: linear-gradient(135deg, #117a8b 0%, #0c5460 100%);
        box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    }

    /* Responsive adjustments for listicle offers */
    @media (max-width: 768px) {
        .listicle-offer {
            margin-bottom: 1.5rem;
        }

        .listicle-offer-header {
            padding: 1.25rem;
            text-align: center;
        }

        .listicle-offer-body {
            padding: 1.25rem;
        }

        .listicle-offer-image {
            width: 60px;
            height: 60px;
            margin: 0 auto 0.75rem auto;
            display: block;
        }

        .listicle-offer-title {
            font-size: 1.15rem;
            text-align: center;
        }

        .listicle-offer-subtitle {
            font-size: 0.9rem;
            text-align: center;
        }

        .listicle-offer-description {
            font-size: 0.95rem;
            text-align: center;
        }

        .listicle-offer-features li {
            font-size: 0.9rem;
            padding: 0.4rem 0;
        }

        .listicle-offer-price {
            padding: 0.75rem;
        }

        .listicle-offer-price-amount {
            font-size: 1.5rem;
        }

        .listicle-offer-cta {
            padding: 0.875rem 1.5rem;
            font-size: 0.95rem;
        }
    }

    /* Grid layout for listicle offers */
    .listicle-offers-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        margin: 2rem 0;
    }

    @media (max-width: 768px) {
        .listicle-offers-container {
            grid-template-columns: 1fr;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
    }

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

        body {
            font-size: 12pt;
            line-height: 1.4;
            color: #000;
        }

        .container {
            max-width: 100%;
            padding: 0;
        }
    }
}