/* Ads by DX - Slider CSS */
.ads-by-dx-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5em auto !important; 
    overflow: hidden;
    position: relative;
    background: transparent; 
    text-align: center !important; 
}

.ads-by-dx-slider .swiper-wrapper {
    display: flex;
}

.ads-by-dx-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.ads-by-dx-slider img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important; 
    border: none;
    transition: transform 0.3s ease;
}

.ads-by-dx-slider a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Hover effect for premium feel */
.ads-by-dx-slider .swiper-slide:hover img {
    transform: scale(1.02);
}

/* Swiper Pagination Customization */
.ads-by-dx-slider .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.6;
    height: 6px;
    width: 6px;
}

.ads-by-dx-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff5a5f !important; /* Premium branding color */
    width: 18px;
    border-radius: 4px;
}

/* Base style for responsive height */
.ads-by-dx-slider[style*="height: auto"] {
    aspect-ratio: 16 / 9; /* Default base aspect ratio */
}

/* Ensure container is relative */
.swiper {
    list-style: none;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Modals / Popups */
.ads-dx-popup-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.ads-dx-popup-wrapper.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.ads-dx-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999998 !important;
}

.ads-dx-popup-content-box {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) translateY(40px) !important;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 999999 !important;
    max-width: 90vw;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.ads-dx-popup-wrapper.is-visible .ads-dx-popup-content-box {
    transform: translate(-50%, -50%) translateY(0) !important;
}

.ads-dx-popup-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ads-dx-popup-close:hover {
    transform: scale(1.2);
}

/* Fix popup swiper to fill content box */
.ads-dx-popup-content-box .ads-by-dx-slider {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}
