@charset "UTF-8";

/* Mobile Responsiveness for IPThunder */

/* Default state for mobile menu components - hidden on desktop */
.mobile-menu-btn,
.mobile-menu-overlay {
    display: none;
    /* Mobile Menu Styles */
    .mobile-menu-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }

    .mobile-submenu {
        flex-direction: column;
        gap: 10px;
        padding-left: 20px;
        margin-top: 10px;
        border-left: 2px solid #f0f0f0;
    }

    .mobile-submenu-item {
        font-size: 14px;
        color: #666;
        text-decoration: none;
        padding: 5px 0;
        display: block;
    }
    
    .mobile-submenu-label {
        font-size: 12px;
        color: #999;
        padding: 10px 0 5px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .arrow-icon {
        transition: transform 0.3s ease;
    }
}

@media screen and (max-width: 1024px) {
    /* Global Container Adjustments */
    .page, body {
        width: 100%;
        overflow-x: hidden;
    }

    .page .top {
        margin: 80px auto 40px;
    }

    /* Navigation Bar */
    .nav .navmain {
        padding: 0 20px;
        justify-content: space-between;
    }
    
    .nav .left, 
    .nav .right {
        display: none !important; /* Hide desktop menu items */
    }
    
    /* We will need to add a hamburger menu trigger and mobile menu container */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        font-size: 24px;
        cursor: pointer;
    }

    /* Top Banner */
    .top .banner {
        flex-direction: column;
        height: auto;
        padding: 0 20px;
        margin-top: 40px; /* Reduced margin */
    }
    
    .top .banner .left, 
    .top .banner .right {
        width: 100%;
        text-align: center;
    }
    
    .top .banner .left {
        order: 0;
    }
    
    .top .banner .right img {
        display: none;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .top .banner .bigtitle {
        font-size: 32px;
        line-height: 1.3;
        text-align: center;
    }
    
    .top .banner .intro {
        font-size: 16px;
        text-align: center;
        padding-bottom: 30px;
    }
    
    .top .oper_button {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .top .oper_button button {
        margin-bottom: 10px;
    }

    /* Common Panel Layouts (Two Columns -> One Column) */
    .paneltwo, 
    .panelthree .text, 
    .codemain, 
    .modelmain, 
    .meetmain, 
    .configuration,
    .integra_main {
        flex-direction: column;
        padding: 0 20px;
        max-width: 100%;
        height: auto !important;
    }
    
    .paneltwo .left, 
    .paneltwo .right,
    .panelthree .text .texttitle,
    .codemain .codeleft,
    .modelmain .left,
    .modelmain .right,
    .meetmain .left,
    .meetmain .right,
    .configuration .left,
    .configuration .config_right,
    .integra_main .text,
    .integra_main .integra_right {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .paneltwo .left .bigtitle,
    .panelthree .text .bigtitle,
    .modelmain .left .bigtitle,
    .meetmain .left .bigtitle,
    .configuration .texttitle .bigtitle {
        font-size: 28px;
        text-align: center;
    }
    
    .paneltwo .left .intro,
    .panelthree .text .intro,
    .modelmain .left .intro,
    .meetmain .left .intro,
    .configuration .texttitle .intro {
        text-align: center;
    }
    
    .paneltwo .left .oper_button,
    .meetmain .left .over_button,
    .meetmain .left .jump_button {
        justify-content: center;
        display: flex;
        text-align: center;
    }
    
    /* Hide Use Cases image on mobile */
    .meetmain .right {
        display: none !important;
    }
    
    /* Images in panels */
    .paneltwo .right img,
    .modelmain .right img,
    .meetmain .right img,
    .configuration .left img {
        max-width: 100%;
        height: auto;
    }

    /* Code Section */
    .panelthree {
        padding: 40px 0;
        margin: 60px auto;
    }
    
    .panelthree .language img {
        margin: 0;
        position: static;
    }

    /* Pricing Cards */
    .price .residential_card {
        flex-direction: column;
        align-items: center;
    }
    
    .price .residential_card .one {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Config Icons Grid */
    .configuration .config_right .first,
    .configuration .config_right .second {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .configuration .config_one {
        margin: 10px;
    }

    /* Footer */
    .footer {
        padding: 40px 20px;
        height: auto !important;
    }
    
    .footer .footermain {
        flex-direction: column;
        padding: 0;
        width: 100%;
    }
    
    .footer .footermain .logo {
        padding: 30px 0;
        text-align: center;
    }
    
    /* Catalogue Grid - 2 Columns on Mobile */
    .footer .catalogue {
        width: 100%;
    }

    .footer .catalogue > ul {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .footer .catalogue > ul > li {
        width: 48%; 
        margin-right: 0;
        margin-bottom: 30px;
        display: block;
        vertical-align: top;
    }
    
    /* Partners Line */
    .footer .line {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }
    
    .footer .line div {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer .line img {
        padding: 0;
        margin-right: 10px;
        height: 24px;
        width: auto;
    }
    
    /* Website Bottom Links */
    .footer .footermain .website {
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding-bottom: 40px;
        height: auto;
        gap: 10px;
    }
    
    .footer .footermain .website .title {
        margin-bottom: 5px;
        text-align: center;
    }
    
    .footer .footermain .website .title a {
        padding: 0;
        display: block;
    }

    /* Browser Integrations Grid */
    .integrating .browser {
        grid-template-columns: repeat(2, 1fr); /* If grid is used */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .browser_item {
        width: 45%;
        margin: 5px;
    }
    
    /* General Text Adjustments */
    .bigtitle {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .intro {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Guide Page */
    .main {
        flex-direction: column;
        padding: 10px;
    }
    .main .main-left {
        width: 100%;
        position: relative; /* Remove sticky on mobile or adjust */
        height: auto;
        overflow-x: auto; /* Scroll horizontally if needed */
        margin-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #e6e6e6;
    }
    .main .main-right {
        width: 100%;
        padding: 0;
    }
    
    /* Guide Nav Mobile */
    .top .header .header_c .logo .btn-toggle-menu {
        display: block !important;
        padding: 10px;
    }
    /* Hide desktop horizontal menu on mobile if it overflows */
    .top .header .header_c .logo .el-menu-demo {
        display: none; 
    }

    /* EL-TABS MOBILE ADAPTATION */
    
    /* Common Mobile Styles for All EL-TABS in Index Page */
    .public_tab .el-tabs__nav-scroll,
    .price .el-tabs__nav-scroll,
    .codemain .el-tabs__nav-scroll {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        width: 100% !important;
        padding-bottom: 5px; /* Space for scrollbar if visible */
    }

    .public_tab .el-tabs__nav,
    .price .el-tabs__nav,
    .codemain .el-tabs__nav {
        display: flex !important;
        float: none !important;
        width: auto !important;
        min-width: 100%;
        transform: none !important; /* Disable JS transform to rely on native scrolling */
    }

    .public_tab .el-tabs__item,
    .price .el-tabs__item,
    .codemain .el-tabs__item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        width: auto !important;
        padding: 0 15px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Specific Fix for .public_tab (Use Cases section) */
    .public_tab .tab {
        width: 100% !important;
        height: auto !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: block !important;
        margin-bottom: 20px !important;
    }

    .public_tab .el-tabs__header {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .public_tab .el-tabs__nav-wrap {
        padding: 0 !important;
    }
    
    .public_tab .el-tabs__item.is-active {
        background-color: #0562F7;
        color: #fff;
        border-radius: 20px;
    }

    /* Specific Fix for .price tabs (Pricing section) */
    .price .el-tabs__header {
        width: 100% !important;
        height: auto !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        margin-bottom: 10px !important;
    }
    
    .price .el-tabs__nav-wrap {
        width: 100% !important;
    }

    .price .el-tabs__item.is-active {
        border-radius: 20px;
    }

    /* STATIC PRICING CARD MOBILE ADAPTATION */
    .price .static_card {
        flex-direction: column !important;
        height: auto !important;
        gap: 20px;
    }

    .price .static_card .left {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }
    
    .price .static_card .left .main {
        height: 400px !important;
        min-height: 300px;
    }

    .price .static_card .country .one {
        width: 48% !important;
        margin-bottom: 10px !important;
    }


    .price .static_card .one .countrytitle .title,
    .price .static_card .static_right .main .one .mainleft .countrytitle .title {
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
    }

    .price .static_card .static_right {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .price .static_card .static_right .main {
        height: auto !important;
        max-height: 300px !important;
        min-height: 150px;
        overflow-y: auto !important;
    }

    .price .static_card .static_right .static_pricedown {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        margin-top: 10px;
        padding-bottom: 20px;
    }
    
    .price .static_card .static_right .static_pricedown .static_total {
        padding: 10px 20px !important;
    }

    .price .static_card .static_right .total_button {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Specific Fix for .codemain (Code section) */
    .codemain .tab {
        width: 100% !important;
        overflow: hidden;
    }
    
    .codemain .el-tabs__header {
        margin: 0 0 15px 0 !important;
    }

    .codemain .code-content {
        padding: 10px !important;
    }

    .codemain .code-content pre {
        font-size: 12px !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }

    .codemain .el-tabs__content {
        height: auto !important;
        min-height: 200px;
    }
}

.hotcountry .hotmain {
        /*flex-direction: column !important;*/
        gap: 15px;
    }
    
    .hotcountry .hotmain .hotone {
        width: 100% !important;
        margin-bottom: 0 !important;
        box-sizing: border-box;
    }

    /* Helper for mobile menu (to be added in HTML) */
.mobile-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    z-index: 1999;
    padding: 20px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 500;
    color: #212121;
}

.mobile-menu-btn {
    display: none;
}
