// File: public/css/mobile.css
// Purpose: Compiled mobile responsive styles for public pages (mirrors resources/css/mobile.css)

/* Mobile Responsive Styles - Public Pages */

:root {
    --primary-blue: #233266;
    --dark-yellow: #f4a460;
}

/* Ultra Small Devices (250px - 300px) */
@media (max-width: 300px) {
    html, body {
        font-size: 13px;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

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

    header {
        padding: 0.75rem 0.5rem;
        width: 100%;
    }

    .navbar-brand {
        font-size: 0.75rem;
        font-weight: 700;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70%;
    }

    .navbar-brand img {
        height: 1.2rem;
        width: auto;
    }

    /* Show short name, hide full name for ≤300px */
    .brand-text-short {
        display: inline !important;
    }

    .brand-text-full {
        display: none !important;
    }

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

    .navbar-toggler:focus {
        outline: 1px solid currentColor;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem !important;
        display: block;
        line-height: 1.4;
    }

    .container {
        max-width: 100% !important;
        padding: 0.75rem !important;
        margin: 0 auto;
    }

    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    h1 {
        font-size: 1.3rem;
        line-height: 1.35;
        margin: 0.5rem 0;
        font-weight: 700;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: 1.05rem;
        line-height: 1.35;
        margin: 0.4rem 0;
        font-weight: 700;
        word-wrap: break-word;
    }

    h3 {
        font-size: 0.95rem;
        line-height: 1.35;
        margin: 0.35rem 0;
        font-weight: 600;
        word-wrap: break-word;
    }

    h4 {
        font-size: 0.85rem;
        line-height: 1.35;
        margin: 0.3rem 0;
        font-weight: 600;
    }

    h5 {
        font-size: 0.8rem;
        line-height: 1.35;
        margin: 0.25rem 0;
        font-weight: 600;
    }

    p, span, li {
        font-size: 0.8rem;
        margin: 0.35rem 0;
        line-height: 1.45;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .btn {
        font-size: 0.75rem;
        padding: 0.45rem 0.85rem !important;
        line-height: 1.3;
        min-height: 2.2rem;
        word-wrap: break-word;
        display: inline-block;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.05rem !important;
        margin: 0.6rem 0 0.4rem 0 !important;
        line-height: 1.35;
        font-weight: 700;
    }

    .section-subtitle {
        font-size: 0.8rem !important;
        margin: 0.2rem 0 0.4rem 0 !important;
        line-height: 1.4;
        font-weight: 400;
    }

    .section-description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin: 0.3rem 0;
    }

    /* Card Layouts - 1 Card per Row */
    .row {
        gap: 0.5rem !important;
        margin: 0 !important;
    }

    .row.g-3 > .col-md-6,
    .row.g-3 > .col-lg-4,
    .row.g-4 > .col-md-6,
    .row.g-4 > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0.5rem 0 !important;
    }

    .col, .col-12, .col-md-6, .col-lg-4, .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gap-1 {
        gap: 0.4rem !important;
    }
    .gap-2 {
        gap: 0.5rem !important;
    }
    .gap-3 {
        gap: 0.6rem !important;
    }
    .gap-4 {
        gap: 0.7rem !important;
    }
    .gap-5 {
        gap: 0.8rem !important;
    }

    .card {
        margin-bottom: 0.5rem;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 0.35rem;
        padding: 0.5rem;
    }

    .card-title {
        font-size: 0.9rem;
        margin: 0.25rem 0;
        font-weight: 600;
    }

    .card-text, .card-body {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .card-body {
        padding: 0.5rem !important;
    }

    /* Margins */
    .my-2, .my-3, .my-4, .my-5 {
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    .mb-2, .mb-3, .mb-4, .mb-5 {
        margin-bottom: 0.4rem !important;
    }

    .mt-2, .mt-3, .mt-4, .mt-5 {
        margin-top: 0.4rem !important;
    }

    .px-1, .px-2, .px-3, .px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .py-1, .py-2, .py-3, .py-4 {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    /* Results Cards Ultra Compact */
    .benefit-item {
        padding: 0.5rem !important;
        border-radius: 0.5rem !important;
        border: 1px solid #d8dfe8 !important;
        margin-bottom: 0.4rem !important;
        margin-top: 0 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }

    .benefit-number {
        font-size: 1.2rem !important;
        margin-bottom: 0.2rem !important;
        font-weight: 900;
    }

    .benefit-label {
        font-size: 0.65rem !important;
        line-height: 1.2;
        font-weight: 600;
    }

    .benefits-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
    }

    .row.g-4 {
        gap: 0.4rem !important;
    }
}

/* Small Devices (300px - 400px) */
@media (min-width: 301px) and (max-width: 400px) {
    html, body {
        font-size: 13px;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-text-size-adjust: 100%;
    }

    * {
        box-sizing: border-box;
    }

    header {
        padding: 0.75rem 0.5rem;
        width: 100%;
    }

    .navbar-brand {
        font-size: 0.85rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 75%;
    }

    .navbar-brand img {
        height: 1.4rem;
        width: auto;
    }

    /* Show short name, hide full name for 301-400px */
    .brand-text-short {
        display: inline !important;
    }

    .brand-text-full {
        display: none !important;
    }

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

    .nav-link {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem !important;
        display: block;
        line-height: 1.4;
    }

    .container {
        max-width: 100% !important;
        padding: 0.8rem !important;
        margin: 0 auto;
    }

    .container-fluid {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }

    h1 {
        font-size: 1.4rem;
        line-height: 1.35;
        margin: 0.5rem 0;
        font-weight: 700;
        word-wrap: break-word;
    }

    h2 {
        font-size: 1.15rem;
        line-height: 1.35;
        margin: 0.4rem 0;
        font-weight: 700;
        word-wrap: break-word;
    }

    h3 {
        font-size: 1.05rem;
        line-height: 1.35;
        margin: 0.35rem 0;
        font-weight: 600;
        word-wrap: break-word;
    }

    h4 {
        font-size: 0.95rem;
        line-height: 1.35;
        margin: 0.3rem 0;
        font-weight: 600;
    }

    h5 {
        font-size: 0.85rem;
        line-height: 1.35;
        margin: 0.25rem 0;
        font-weight: 600;
    }

    p, span, li {
        font-size: 0.85rem;
        margin: 0.35rem 0;
        line-height: 1.45;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.95rem !important;
        line-height: 1.3;
        min-height: 2.3rem;
        word-wrap: break-word;
        display: inline-block;
    }

    .btn-sm {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.15rem !important;
        margin: 0.6rem 0 0.4rem 0 !important;
        line-height: 1.35;
        font-weight: 700;
    }

    .section-subtitle {
        font-size: 0.85rem !important;
        margin: 0.2rem 0 0.4rem 0 !important;
        line-height: 1.4;
        font-weight: 400;
    }

    .section-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0.3rem 0;
    }

    /* Card Layouts - 1 Card per Row */
    .row {
        gap: 0.6rem !important;
        margin: 0 !important;
    }

    .row.g-3 > .col-md-6,
    .row.g-3 > .col-lg-4,
    .row.g-4 > .col-md-6,
    .row.g-4 > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0.5rem 0 !important;
    }

    .col, .col-12, .col-md-6, .col-lg-4, .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gap-1 {
        gap: 0.5rem !important;
    }
    .gap-2 {
        gap: 0.6rem !important;
    }
    .gap-3 {
        gap: 0.7rem !important;
    }
    .gap-4 {
        gap: 0.8rem !important;
    }
    .gap-5 {
        gap: 0.9rem !important;
    }

    .card {
        margin-bottom: 0.6rem;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 0.4rem;
        padding: 0.6rem;
    }

    .card-title {
        font-size: 0.95rem;
        margin: 0.3rem 0;
        font-weight: 600;
    }

    .card-text, .card-body {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .card-body {
        padding: 0.6rem !important;
    }

    /* Margins */
    .my-2, .my-3, .my-4, .my-5 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .mb-2, .mb-3, .mb-4, .mb-5 {
        margin-bottom: 0.5rem !important;
    }

    .mt-2, .mt-3, .mt-4, .mt-5 {
        margin-top: 0.5rem !important;
    }

    .px-1, .px-2, .px-3, .px-4 {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }

    .py-1, .py-2, .py-3, .py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Benefit Items (Results Cards) */
    .benefit-item {
        padding: 0.7rem !important;
        border-radius: 0.7rem !important;
        border: 1px solid #d8dfe8 !important;
        margin-bottom: 0.6rem;
    }

    .benefit-number {
        font-size: 1.4rem !important;
        margin-bottom: 0.3rem !important;
    }

    .benefit-label {
        font-size: 0.75rem !important;
        line-height: 1.35;
    }

    .benefits-grid {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }
}

/* Medium-Small Devices (400px - 500px) */
@media (min-width: 401px) and (max-width: 500px) {
    html, body {
        font-size: 13px;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-text-size-adjust: 100%;
    }

    header {
        padding: 0.8rem 0.6rem;
        width: 100%;
    }

    .navbar-brand {
        font-size: 0.95rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80%;
    }

    .navbar-brand img {
        height: 1.6rem;
        width: auto;
    }

    /* Show short name for 401-449px */
    .brand-text-short {
        display: inline !important;
    }

    .brand-text-full {
        display: none !important;
    }

    .navbar-toggler {
        padding: 0.45rem 0.6rem;
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem !important;
        display: block;
        line-height: 1.4;
    }

    .container {
        max-width: 100% !important;
        padding: 1rem !important;
        margin: 0 auto;
    }

    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    h1 {
        font-size: 1.6rem;
        line-height: 1.35;
        margin: 0.6rem 0;
        font-weight: 700;
        word-wrap: break-word;
    }

    h2 {
        font-size: 1.3rem;
        line-height: 1.35;
        margin: 0.5rem 0;
        font-weight: 700;
        word-wrap: break-word;
    }

    h3 {
        font-size: 1.15rem;
        line-height: 1.35;
        margin: 0.4rem 0;
        font-weight: 600;
        word-wrap: break-word;
    }

    h4 {
        font-size: 1.05rem;
        line-height: 1.35;
        margin: 0.35rem 0;
        font-weight: 600;
    }

    h5 {
        font-size: 0.95rem;
        line-height: 1.35;
        margin: 0.3rem 0;
        font-weight: 600;
    }

    p, span, li {
        font-size: 0.9rem;
        margin: 0.4rem 0;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.55rem 1rem !important;
        line-height: 1.3;
        min-height: 2.4rem;
        word-wrap: break-word;
        display: inline-block;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem !important;
        margin: 0.7rem 0 0.5rem 0 !important;
        line-height: 1.35;
        font-weight: 700;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        margin: 0.3rem 0 0.5rem 0 !important;
        line-height: 1.45;
        font-weight: 400;
    }

    .section-description {
        font-size: 0.85rem;
        line-height: 1.45;
        margin: 0.4rem 0;
    }

    /* Card Layouts - 1 Card per Row */
    .row {
        gap: 0.75rem !important;
        margin: 0 !important;
    }

    .row.g-3 > .col-md-6,
    .row.g-3 > .col-lg-4,
    .row.g-4 > .col-md-6,
    .row.g-4 > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0.6rem 0 !important;
    }

    .col, .col-12, .col-md-6, .col-lg-4, .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gap-1 {
        gap: 0.6rem !important;
    }
    .gap-2 {
        gap: 0.75rem !important;
    }
    .gap-3 {
        gap: 0.9rem !important;
    }
    .gap-4 {
        gap: 1rem !important;
    }
    .gap-5 {
        gap: 1.1rem !important;
    }

    .card {
        margin-bottom: 0.75rem;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 0.5rem;
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
        margin: 0.35rem 0;
        font-weight: 600;
    }

    .card-text, .card-body {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    /* Margins */
    .my-2, .my-3, .my-4, .my-5 {
        margin-top: 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }

    .mb-2, .mb-3, .mb-4, .mb-5 {
        margin-bottom: 0.6rem !important;
    }

    .mt-2, .mt-3, .mt-4, .mt-5 {
        margin-top: 0.6rem !important;
    }

    .px-1, .px-2, .px-3, .px-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .py-1, .py-2, .py-3, .py-4 {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    /* Benefit Items (Results Cards) */
    .benefit-item {
        padding: 0.9rem !important;
        border-radius: 0.8rem !important;
        border: 1px solid #d8dfe8 !important;
        margin-bottom: 0.75rem;
    }

    .benefit-number {
        font-size: 1.6rem !important;
        margin-bottom: 0.35rem !important;
    }

    .benefit-label {
        font-size: 0.8rem !important;
        line-height: 1.4;
    }

    .benefits-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Show Full Name from 450px+ */
@media (min-width: 450px) {
    .brand-text-short {
        display: none !important;
    }

    .brand-text-full {
        display: inline !important;
    }
}

/* Specific styling for 450-500px only */
@media (min-width: 450px) and (max-width: 500px) {
    .navbar-brand {
        font-size: 0.5rem !important;
    }

    .navbar-brand img {
        height: 2rem !important;
    }

    header {
        padding: 0.2rem 0 !important;
    }
}

/* Medium Devices (500px - 600px) */
@media (min-width: 501px) and (max-width: 600px) {
    body {
        font-size: 0.9rem;
    }

    header {
        padding: 0.9rem 0;
    }

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

    .navbar-brand img {
        height: 2rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem !important;
    }

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

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1rem;
    }

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

    .section-title {
        font-size: 1.4rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
    }

    /* Card Layouts - 2 Cards per Row */
    .row.g-3 > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .row.g-3 > .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Medium-Large Devices (600px - 700px) */
@media (min-width: 601px) and (max-width: 700px) {
    body {
        font-size: 0.95rem;
    }

    header {
        padding: 1rem 0;
    }

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

    .navbar-brand img {
        height: 2.1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.9rem !important;
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.05rem;
    }

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

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.95rem !important;
    }

    /* Card Layouts - 2 Cards per Row */
    .row.g-3 > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .row.g-3 > .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large Devices (700px - 992px Tablet) */
@media (min-width: 701px) and (max-width: 991px) {
    body {
        font-size: 1rem;
    }

    /* Card Layouts - 2 Cards per Row on Tablets */
    .row.g-3 > .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .row.g-3 > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Extra Large Devices (992px+) Desktop */
@media (min-width: 992px) {
    body {
        font-size: 0.95rem;
    }

    /* Card Layouts - 4 Cards per Row on Desktop */
    .row.g-3 > .col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .row.g-3 > .col-md-6 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Universal Mobile Styles */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    * {
        box-sizing: border-box;
    }

    html, body {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-text-size-adjust: 100%;
    }

    /* Center all content on mobile */
    body {
        text-align: center;
    }

    .container {
        width: 100%;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        margin-left: 0;
        margin-right: 0;
    }

    /* Responsive Images */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Hamburger Menu Styling */
    .navbar-toggler {
        border: none;
        padding: 0.2rem 0.35rem;
    }

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

    /* Mobile Menu Sidebar */
    .mobile-menu-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-blue);
        z-index: 1001;
        transition: right 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-menu-sidebar.active {
        right: 0;
    }

    .mobile-menu-header {
        padding: 1.5rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        text-align: center;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-menu-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .mobile-menu-brand {
        color: white;
        font-weight: 700;
        font-size: 0.9rem;
        margin: 0;
        letter-spacing: 0.5px;
    }

    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }

    .mobile-menu-close:hover {
        color: var(--dark-yellow);
    }

    .mobile-menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
        flex: 1;
        overflow-y: auto;
    }

    .mobile-menu-items li {
        margin: 0;
        padding: 0;
    }

    .mobile-menu-link {
        display: block;
        padding: 1rem 1.5rem;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
        font-weight: 500;
    }

    .mobile-menu-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .mobile-menu-link.active {
        background: rgba(255, 255, 255, 0.15);
        border-left: 4px solid var(--dark-yellow);
        padding-left: calc(1.5rem - 4px);
        color: white;
        font-weight: 600;
    }

    .mobile-menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .mobile-menu-backdrop.active {
        display: block;
    }

    /* Mobile menu visibility on mobile devices */
    @media (max-width: 991px) {
        /* Show hamburger button on mobile */
        #openMenuBtn {
            display: block !important;
        }
        
        /* Hide Bootstrap navbar on mobile */
        .navbar-collapse {
            display: none !important;
        }
        
        /* Show mobile menu sidebar on mobile */
        .mobile-menu-sidebar {
            display: flex !important;
        }
    }
    
    /* Hide mobile menu on desktop */
    @media (min-width: 992px) {
        #openMenuBtn {
            display: none !important;
        }
        
        .mobile-menu-sidebar,
        .mobile-menu-backdrop {
            display: none !important;
        }
        
        /* Show navbar on desktop */
        .navbar-collapse {
            display: flex !important;
        }
    }

    /* Centered Text & Content */
    .text-center {
        text-align: center !important;
    }

    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    p {
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Section Padding Reduction */
    .section-container,
    .trust-section,
    .cta-final-section,
    .process-value-card {
        padding: 0.8rem 0.5rem;
        margin: 0.2rem 0 !important;
    }

    .process-value-card {
        padding: 0.8rem 0.5rem;
        border-radius: 0.8rem;
    }

    /* Card Sizing */
    .service-card,
    .testimonial-card,
    .case-study-card,
    .benefit-item {
        margin-bottom: 0.6rem;
        padding: 0.5rem;
    }

    /* Button Styling */
    .btn {
        display: inline-block;
        padding: 0.4rem 0.8rem;
        margin: 0.3rem auto;
        font-size: 0.75rem;
        word-wrap: break-word;
        max-width: 90%;
        line-height: 1.2;
        white-space: normal;
    }

    .btn-lg {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    /* Testimonial Cards */
    .testimonial-card {
        min-height: 100px;
        height: auto;
    }

    .testimonial-text {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .testimonial-stars {
        font-size: 0.8rem;
    }

    /* Process Flow - Stack Vertically on Mobile */
    .process-flow-horizontal {
        flex-direction: column;
        gap: 0.8rem;
    }

    .h-flow-step {
        margin-bottom: 0.5rem;
    }

    .h-flow-arrow {
        display: none;
    }

    .h-step-num {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    /* Tooltip Positioning */
    .h-flow-step::after {
        top: auto !important;
        bottom: -120px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 95%;
        max-width: 280px;
        font-size: 0.65rem;
        padding: 0.6rem 0.8rem;
    }

    .h-flow-step::before {
        display: none;
    }

    /* Benefits Grid */
    .benefits-row {
        grid-template-columns: 1fr !important;
        gap: 0.6rem;
    }

    .benefit-item {
        padding: 0.6rem;
    }

    .benefit-number {
        font-size: 1.2rem;
    }

    .benefit-label {
        font-size: 0.65rem;
    }

    /* Footer Mobile */
    footer {
        background: var(--primary-blue);
        color: white;
        padding: 1rem 0;
        margin-top: 1rem;
        text-align: center;
    }

    footer .container {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.5rem;
    }

    .footer-brand-section {
        margin: 0;
    }

    .footer-brand {
        font-size: 1rem;
        font-weight: 700;
        display: block;
        margin-bottom: 0.2rem;
    }

    .footer-brand + p {
        margin-bottom: 0;
        font-size: 0.65rem;
    }

    /* Footer Links */
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        padding: 0.6rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-link {
        color: white;
        text-decoration: none;
        font-size: 0.75rem;
        padding: 0.2rem 0;
        transition: color 0.3s ease;
    }

    .footer-link:hover,
    .footer-link.active {
        color: var(--dark-yellow);
        font-weight: 600;
    }

    /* Social Links */
    .footer-socials {
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 0.6rem 0;
    }

    .social-icon {
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .social-icon:hover {
        color: var(--dark-yellow);
        transform: scale(1.15);
    }

    /* Copyright */
    .footer-copyright {
        font-size: 0.6rem;
        opacity: 0.8;
    }

    /* Reduce Animation Duration on Mobile */
    @keyframes marquee {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    .testimonials-wrapper {
        animation: marquee 80s linear infinite !important;
    }

    /* Flex Cards - Stack on Mobile */
    .row.flex-wrap {
        flex-direction: column;
    }

    /* Margin & Padding Reduction */
    .mb-5 {
        margin-bottom: 0.6rem !important;
    }

    .mb-4 {
        margin-bottom: 0.4rem !important;
    }

    .mb-3 {
        margin-bottom: 0.3rem !important;
    }

    .py-5 {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    /* Text overflow prevention */
    .navbar-nav {
        gap: 0;
    }

    /* Hero section adjustments */
    .hero-centered {
        padding: 0.8rem 0.5rem;
    }

    .hero-centered h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Extra Small Devices (Below 500px) Short Names */
@media (max-width: 500px) {
    .navbar-brand {
        font-size: 0.5rem;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Prevent text overflow on all elements */
    * {
        word-break: break-word;
    }

    /* Service card text truncation */
    .service-card-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .service-card-text {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    /* Process step numbers */
    .h-step-num {
        font-size: 0.75rem;
    }

    /* Benefit labels */
    .benefit-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    header {
        padding: 0.3rem 0;
    }

    .navbar-brand img {
        height: 1.2rem;
    }

    .container {
        padding: 0.25rem;
    }

    h1 {
        font-size: 1rem;
    }

    h2 {
        font-size: 0.85rem;
    }

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

    .section-container {
        padding: 0.5rem 0.25rem;
        margin: 0.1rem 0 !important;
    }

    /* Process flow horizontal on landscape */
    .process-flow-horizontal {
        flex-direction: row;
        gap: 0.3rem;
    }

    .h-flow-step {
        margin-bottom: 0;
    }

    .h-flow-arrow {
        display: inline;
    }
}

/* Utility Classes */
.mobile-center {
    text-align: center;
}

.mobile-hidden {
    display: none;
}

@media (min-width: 769px) {
    .mobile-hidden {
        display: block;
    }

    .mobile-only {
        display: none;
    }
}

.mobile-only {
    display: block;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* Ensure text wrapping on mobile */
.text-wrap-mobile {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Responsive table */
@media (max-width: 768px) {
    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.3rem !important;
    }
}

/* Prevent horizontal scroll globally */
@media (max-width: 500px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .container, .row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* Remove absolute positioned elements from causing overflow */
    .h-flow-step::after {
        position: relative;
        top: auto !important;
        bottom: auto !important;
    }
}
