/* Mobile Header Redesign - V2 */

/* 1. Header Layout Force - Mobile Only */
@media only screen and (max-width: 991px) {

    /* Target the row wrapper directly to force behavior */
    .rn-header .header-wrapper.row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        height: 80px;
        /* Fixed height for consistency */
    }

    /* Reset Column Widths for Flex Layout */
    .rn-header .header-wrapper>[class*="col-"] {
        width: auto !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    /* Logo Styling */
    .rn-header .header-left {
        display: flex;
        align-items: center;
    }

    .rn-header .logo-link img {
        max-height: 50px !important;
        /* Constrain height */
        width: auto !important;
        max-width: 180px !important;
        /* Prevent taking too much width */
        object-fit: contain;
    }

    /* Header Right (Menu) */
    .rn-header .header-right {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    /* Force Hide Language in Main Header */
    .rn-header .language-dropdown {
        display: none !important;
    }

    /* Hamburger Menu Styling */
    .rn-header .hamberger-menu {
        display: block !important;
        margin-left: 0 !important;
        padding: 10px;
    }

    .rn-header .hamberger-menu i {
        font-size: 32px !important;
        /* Larger touch target */
        color: var(--color-primary) !important;
    }
}

/* 2. Hero Section Mobile Optimization */
@media only screen and (max-width: 767px) {
    .rn-slider-area {
        padding-top: 100px !important;
    }

    /* Center layout for hero */
    .rn-slider-area .row {
        flex-direction: column-reverse;
        /* Text below image or standard stacking */
    }

    /* Image Container */
    .rn-slider-area .thumbnail {
        text-align: center;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .rn-slider-area .thumbnail img {
        max-height: 400px;
        object-fit: contain;
        width: 100%;
    }

    /* Text Content */
    .rn-slider-area .content {
        text-align: center !important;
        padding: 0 15px;
    }

    .rn-slider-area .title {
        text-align: center !important;
        font-size: 32px !important;
    }

    .rn-slider-area .description {
        text-align: center !important;
    }

    .slide-btn {
        justify-content: center !important;
    }
}

/* Popup Menu Improvements */
.popup-mobile-menu .inner {
    padding-top: 20px;
}

.popup-mobile-menu .logo img {
    max-height: 40px;
}