/* Definitive Responsive Layout Overrides for Mobile Portrait (max-width: 767px) */
@media only screen and (max-width: 767px) {
    /* Limit layout scope to prevent horizontal layout overflow */
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Target root containers to stack vertically and space evenly */
    .elementor-section,
    .elementor-container,
    .elementor-column,
    .elementor-widget-container,
    .elementor-element,
    .e-con,
    .e-flexbox {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force all layout rows to be exactly full width on mobile screens */
    .elementor-element-933c096,
    .elementor-element-f1286b5 {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 100% !important;
        padding: 24px 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Guarantee proper stacking on grid container parents */
    .elementor-element-db2d925,
    .elementor-element-5372186,
    .elementor-element-d1e5d53,
    .elementor-element-2de6451,
    .elementor-element-fca3330,
    .elementor-element-ba4eadd,
    .elementor-element-0afa7c6 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px !important;
    }

    /* Fix header menu dropdown and hamburger layouts */
    .elementor-element-0427878 {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure hamburger toggle element is highly visible and clickable */
    .elementor-element-0427878 .elementor-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 28px !important;
        color: #ffffff !important;
        background-color: #990000 !important;
        border-radius: 4px !important;
        padding: 8px !important;
    }

    /* Bulletproof Mobile Dropdown Navigation items */
    .elementor-element-0427878 .elementor-nav-menu--dropdown,
    .elementor-element-0427878 .elementor-nav-menu--dropdown ul {
        background-color: #0b0b0b !important;
    }

    .elementor-element-0427878 .elementor-nav-menu--dropdown a,
    .elementor-element-0427878 .elementor-nav-menu--dropdown .elementor-item {
        font-size: 16px !important;
        line-height: 1.5 !important;
        padding: 12px 20px !important;
        color: #ffffff !important;
        display: block !important;
        background-color: #0b0b0b !important;
    }

    .elementor-element-0427878 .elementor-nav-menu--dropdown a:hover,
    .elementor-element-0427878 .elementor-nav-menu--dropdown .elementor-item:hover {
        color: #cc0000 !important;
        background-color: #151515 !important;
    }

    /* Footer styling balance rules */
    .elementor-template-1771 .elementor-element {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 20px !important;
    }
}
