/* ================================================== */
/* Mobile Fixes - Language Selector & Review Display */
/* ================================================== */

/* PROBLEM 1: Language Selector Overlapping Hamburger Button */
@media (max-width: 767px) {
    /* Reorganize header mobile controls */
    .menu_side_area {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.75rem !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* Language switcher positioning - move to left */
    .language-switcher {
        order: 1 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
        position: relative !important;
        z-index: 1002 !important;
    }
    
    /* Main button (phone) in center */
    .menu_side_area .btn-main {
        order: 2 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    /* Hamburger button on right */
    #menu-btn {
        order: 3 !important;
        flex-shrink: 0 !important;
        margin-left: 0.5rem !important;
    }
    
    /* Extra spacing adjustments */
    .language-switcher select {
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        min-width: 50px !important;
    }
    
    .language-switcher__label {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .menu_side_area {
        gap: 0.5rem !important;
        padding: 0 8px !important;
    }
    
    .language-switcher select {
        height: 32px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        min-width: 45px !important;
    }
    
    #menu-btn {
        margin-left: 0.25rem !important;
    }
}

@media (max-width: 420px) {
    /* Hide language selector completely */
    .language-switcher {
        display: none !important;
    }
    
    /* Adjust spacing without language selector */
    .menu_side_area {
        gap: 0.5rem !important;
        padding: 0 8px !important;
    }
    
    /* Center phone button and hamburger */
    .menu_side_area .btn-main {
        margin-right: auto !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 360px) {
    .menu_side_area {
        gap: 0.25rem !important;
        padding: 0 5px !important;
    }
    
    #menu-btn {
        margin-left: 0.125rem !important;
    }
}

/* PROBLEM 2: Review Section Display Issues */
@media (max-width: 767px) {
    /* Review container positioning */
    .col-lg-6 .relative {
        position: relative !important;
        min-height: 300px !important;
    }
    
    /* Review overlay - ensure visibility */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide {
        position: absolute !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        padding: 20px !important;
        border-radius: 12px !important;
        z-index: 10 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-width: calc(100% - 40px) !important;
        width: auto !important;
        margin: 0 !important;
    }
    
    /* Review text styling */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
        color: #ffffff !important;
    }
    
    /* Review author section */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .d-flex.align-items-center {
        align-items: center !important;
        gap: 10px !important;
    }
    
    /* Author image */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .w-40px {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    /* Author name and title */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .fw-600 {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        margin-bottom: 2px !important;
    }
    
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .fs-14.op-6 {
        font-size: 0.75rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    /* Quote icon positioning */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .abs.bottom-0.end-0 {
        position: absolute !important;
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .fa-quote-right {
        font-size: 20px !important;
        color: rgba(255, 255, 255, 0.3) !important;
        padding: 5px !important;
    }
    
    /* Background image container */
    .col-lg-6 .relative .bg-light {
        position: relative !important;
        height: 300px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }
    
    .col-lg-6 .relative .bg-light img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

@media (max-width: 480px) {
    /* Tighter spacing for smaller screens */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide {
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        padding: 15px !important;
        max-width: calc(100% - 30px) !important;
    }
    
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    .col-lg-6 .relative {
        min-height: 250px !important;
    }
    
    .col-lg-6 .relative .bg-light {
        height: 250px !important;
    }
}

@media (max-width: 360px) {
    /* Ultra compact layout */
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        padding: 12px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide p {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .col-lg-6 .relative {
        min-height: 200px !important;
    }
    
    .col-lg-6 .relative .bg-light {
        height: 200px !important;
    }
    
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .w-40px {
        width: 28px !important;
        height: 28px !important;
    }
    
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .fw-600 {
        font-size: 0.8rem !important;
    }
    
    .m-5.p-40.overlay-black-6.bg-blur.abs.bottom-0.mb-5.rounded-1.text-white.z-2.xs-hide .fs-14.op-6 {
        font-size: 0.7rem !important;
    }
}

/* Ensure no horizontal overflow */
@media (max-width: 767px) {
    body, html {
        overflow-x: hidden !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
