/* Responsive Design Overrides */

/* Tablet and smaller desktops (max-width: 1250px) */
@media screen and (max-width: 1250px) {

    .nav-box,
    .middle,
    .expo-list ul,
    .country-search,
    .fot-mid,
    .tab,
    .oeder-details,
    .search-none,
    .expo-list {
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .expo-list ul {
        width: 100% !important;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .expo-list ul li {
        width: 46%;
        /* 2 columns */
        margin: 10px 1%;
        float: none;
        display: inline-block;
        box-sizing: border-box;
        height: auto;
    }

    .expo-pic,
    .expo-pic img {
        width: 100% !important;
        height: auto !important;
    }

    .expo-text {
        width: 100% !important;
    }

    .banner,
    .banner-ny {
        background-size: cover !important;
        height: auto;
        min-height: 200px;
        padding: 20px 0;
    }

    .ban-input {
        width: 70% !important;
    }

    .ban-btn {
        position: relative;
        right: auto;
        top: auto;
        vertical-align: top;
    }

    /* Detail Page & General Content (Tablet+) */
    .con-left,
    .con-right,
    .details-mid,
    .details-left {
        width: 100% !important;
        float: none !important;
        padding-right: 0;
    }

    .context img,
    .Introduction-con img,
    .scope-con img {
        max-width: 100% !important;
        height: auto !important;
    }

    .map,
    #googleMap {
        width: 100% !important;
    }

    .yd-pic img {
        width: 100% !important;
        height: auto !important;
    }

    .yd-text {
        width: 100% !important;
        float: none !important;
        margin-top: 15px;
    }

    .right-box {
        width: 100px;
        float: left;
        margin-right: 10px;
    }

    .right-text {
        width: calc(100% - 120px);
        float: left;
    }

    .right-con {
        overflow: hidden;
        margin-bottom: 15px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Header & Nav */
    .head {
        height: auto;
        padding-bottom: 10px;
    }

    .nav-box {
        width: 100%;
        padding: 0;
    }

    .logo {
        float: none;
        margin: 10px auto;
        text-align: center;
        max-width: 150px;
    }

    .menu-toggle {
        display: block;
    }

    .login-index,
    .registered {
        position: relative;
        right: auto;
        top: auto;
        justify-content: center;
        width: 100%;
        text-align: center;
        height: auto;
        line-height: normal;
        margin-bottom: 10px;
    }

    .nav-box ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
    }

    .nav-box ul li {
        float: none;
        margin: 0 10px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }

    /* Hamburger Toggle */
    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 15px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #333;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Menu Hidden by Default */
    .nav-box {
        position: fixed;
        left: -100%;
        top: 0;
        width: 250px;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        display: block !important;
        /* Ensure it's not hidden by display:none */
        padding-top: 60px !important;
    }

    .nav-box.open {
        left: 0;
    }

    .nav-box ul {
        flex-direction: column;
    }

    .nav-box ul li {
        width: 100%;
        text-align: left;
        padding-left: 20px;
        border-bottom: 1px solid #eee;
    }

    /* Banner & Search */
    .tab {
        margin: 20px auto;
    }

    .tab-hd li {
        width: 48%;
        box-sizing: border-box;
        margin-right: 0;
    }

    .ban-input {
        width: 100% !important;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .ban-btn {
        width: 100%;
        position: static;
    }

    /* Expo List */
    .expo-list ul li {
        width: 100%;
        /* 1 column */
        margin: 10px 0;
    }

    .expo-tit .tit-text span {
        font-size: 20px;
    }

    .expo-tit .tit-text a {
        display: none;
    }

    /* Footer */
    .fot-a {
        flex-direction: column;
        padding: 20px;
    }

    .fot-a dl {
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    .fot-b {
        font-size: 14px;
        line-height: 1.5;
        padding: 10px;
    }

    /* Country Search */
    .country-search ul li.cLi,
    .country-search ul li.cLi-Addr {
        width: 100%;
        float: none;
    }

    /* Detail Page Specifics for Mobile */
    .details-left a {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .yd-pic {
        width: 100%;
        float: none;
    }

    .yd-text {
        padding-left: 0;
    }

    .share-platform-l,
    .share-platform-r {
        float: none;
        display: block;
        text-align: center;
        margin: 10px 0;
    }

    .bdsharebuttonbox {
        text-align: center;
        display: inline-block;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
}