 /* HOME PAGE ADX CSS ---------------------------------------------------------*/
 .adx-box {
    min-width: 250px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #514646; 
}
.adx-box p {
    font-size: 13px !important;
    color: aliceblue;
}

/* Hide adx-box on iPad Pro (width between 1000px and 1200px) */
@media only screen and (min-device-width: 1000px) and (max-device-width: 1200px) and (orientation: portrait),
       only screen and (min-device-width: 1200px) and (max-device-width: 1000px) and (orientation: landscape) {
    .adx-box-hide {
        display: none !important;
    }
}

/* .adx-box {
    min-width: 200px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; 
} */
/* fix 200*200 height width */
/* .adx-box {
    width: 200px;  
    height: 200px;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
    background-color: #f0f0f0; 
}
.adx-box img {
    width: 200px;  
    height: 200px;  
    object-fit: cover; 
} */


/* Home page mobile only*/
.header_adx {
    display: none; /* Hide by default */
}

@media (max-width: 768px) { 
    .header_adx {
        display: block; /* Show only on mobile */
    }
}


  
/* DETAILS PAGE ADX CSS ---------------------------------------------------------------------------*/
#g-detail-desktop-adx {
    display: block;
}

@media (max-width: 768px) {
    #g-detail-desktop-adx {
        display: none;
    }
}
#g-detail-desktop-adx {
    transition: all 0.3s ease;
}

/* BOTH SIDE ADX -------------------------------------------------------------------- */
/* Floating Ads */
#FloatAdx-left, #FloatAdx-right {
    /*background:#dfe4ea;*/
    position: fixed;
    top: 110px;
    height: 600px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Position Left Ad */
#FloatAdx-left {
    left: calc(50% - (var(--container-width) / 2) - 150px); 
}

/* Position Right Ad */
#FloatAdx-right {
    right: calc(50% - (var(--container-width) / 2) - 150px);
}

/* Define container width for different screen sizes */
@media (min-width: 576px) {
    :root { --container-width: 540px; }
}

@media (min-width: 768px) {
    :root { --container-width: 720px; }
}

@media (min-width: 992px) {
    :root { --container-width: 960px; }
}

@media (min-width: 1200px) {
    :root { --container-width: 1140px; }
}

@media (min-width: 1400px) {
    :root { --container-width: 1320px; }
}

/* Adjust for smaller screens */
@media only screen and (max-width: 992px) {
    #FloatAdx-left, #FloatAdx-right {
        width: 100px;
        height: 500px;
    }
    #FloatAdx-left {
        left: calc(50% - (var(--container-width) / 2) - 120px);
    }
    #FloatAdx-right {
        right: calc(50% - (var(--container-width) / 2) - 120px);
    }
}

/* Hide Ads on Mobile */
@media only screen and (max-width: 768px) {
    #FloatAdx-left, #FloatAdx-right {
        display: none;
    }
}

/* sticky bottom  -------------------------------------------------------------------*/
.sticky-btm{ 
    position: fixed; 
    bottom: 0; left: 0; 
    width: 100%; min-height: 70px; max-height: 200px; 
    padding: 5px 0; 
    box-shadow: 0 -6px 18px 0 rgba(9,32,76,.1); 
    -webkit-transition: all .1s ease-in; transition: all .1s ease-in; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-color: #fefefe; z-index: 20; } 
    
.sticky-btm-close { 
    width: 30px; height: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 12px 0 0; 
    position: absolute; right: 0; top: -30px; 
    background-color: #fefefe; 
    box-shadow: 0 -6px 18px 0 rgba(9,32,76,.08); } 
    
.sticky-btm .sticky-btm-close svg { width: 22px; height: 22px; fill: #000; } .sticky-btm .sticky-btm-content { overflow: hidden; display: block; position: relative; height: 70px; width: 100%; margin-right: 10px; margin-left: 10px; }


/* CUSTOM POPUP----------------------------------------------------------------------------------*/
/* Overlay Background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    z-index: 999;
}

/* Popup Box */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    /*width: 336px;*/
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 10px;
}

/* Header Row: Ad | Countdown | Close */
.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Ad Button */
.Ad-btn {
    background: gray;
    border: none;
    padding: 4px 12px;
    color: white;
    font-size: 14px;
    border-radius: 5px;
}

/* Countdown Text */
.countdown-text {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin: 0;
}

/* Close Button */
.adx-close-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: none; /* show after 5 sec */
}

/* Default: hide both */
.ad-mobile, .ad-desktop {
    display: none;
  }
  
  /* Show Mobile Ad */
@media (max-width: 767px) {
    .ad-mobile {
      display: block;
    }
} 

/* Show Desktop Ad */
@media (min-width: 768px) {
    .ad-desktop {
      display: block;
    }
    .popup {
      width: 740px; 
    }
}
  