/* ==========================================================================
   Responsive Overrides & Mobile Layout
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Authenticated Panel Layout on Tablet & Mobile */
    .sidebar {
        transform: translateX(-100%);
        width: var(--app-sidebar-width) !important;
        box-shadow: var(--app-shadow-xl);
    }

    .sidebar.sidebar-visible {
        transform: translateX(0);
        display: flex !important;
    }

    .header {
        left: 0 !important;
        width: 100% !important;
        padding: 0 1rem;
    }

    .content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .main-content {
        padding: 1.25rem 1rem;
    }

    /* Public Header on Mobile */
    .public-nav-list {
        display: none;
    }

    .public-nav-list.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--app-surface);
        border-bottom: 1px solid var(--app-border);
        box-shadow: var(--app-shadow-lg);
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .public-mobile-toggle {
        display: block;
    }

    /* Hero Headline scaling */
    .hero-title {
        font-size: 2.35rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image-wrapper {
        margin-top: 2.5rem;
    }

    .cta-banner-wrapper {
        padding: 2.25rem 1.5rem;
        text-align: center;
    }

    .cta-banner-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.95rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .btn-lg {
        padding: 0.6rem 1.15rem;
        font-size: 0.925rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
