/* ========== SLIDER BANNER STYLES (Mobile-First) ========== */
.slider-main {
    min-height: auto;
    max-width: 900px;
    margin: 1px;
    border-radius: 16px;
    background: radial-gradient(50% 50% at 50% 50%, #3d3520 0%, #1a1408 92.19%);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6), 0 0 80px rgba(var(--accent-rgb), .25);
    padding-bottom: 50px;
    /* Fix Safari overflow:hidden with border-radius using mask instead of 3D transform to avoid color washout */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    /* Prevent FOUC: hide until CSS is loaded, then fade in */
    opacity: 0;
    animation: sliderFadeIn 0.4s ease-out 0.1s forwards;
}

@keyframes sliderFadeIn {
    to {
        opacity: 1;
    }
}

#backgrounds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -1;
    border-radius: 16px;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Mobile: Content section */
.container {
    position: relative;
    width: 100%;
    padding: 24px 20px 16px;
    text-align: center;
    z-index: 2;
}

/* Content */
.slider-content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* GRAND BADGE STYLE (Preserved) */
.badge {
    display: inline-block;
    background: linear-gradient(90deg, #d4af37, #fcf6ba, #bf953f, #fcf6ba, #d4af37);
    background-size: 200% auto;
    animation: badgeShine 4s linear infinite;
    color: #2b1d00;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid #b3882a;
    position: relative;
    overflow: hidden;
}

@keyframes badgeShine {
    to {
        background-position: 200% center;
    }
}

.heading-style {
    color: #FFF;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(var(--accent-rgb), .6);
}

.heading-style .gold {
    color: var(--gold-light);
}

.description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.prize-display {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), #fff, var(--gold-light), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: prizeShine 3s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), .6));
}

@keyframes prizeShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.cta-btn {
    display: inline-block;
    margin-top: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    color: #0a0e1a;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(var(--accent-rgb), .6);
    transition: all .3s;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(var(--accent-rgb), .8);
}

/* Mobile: Images section - CASCADE SLIDER */
.slider-images {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: visible;
}

.slider-images>img {
    position: absolute;
    filter: blur(8px);
    /* Reduced from 25px for mobile performance */
    transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.2s ease, filter 1.2s ease, top 1.2s ease, left 1.2s ease;
    object-fit: contain;
    max-width: 200px;
    max-height: 280px;
    width: auto;
    height: auto;
    will-change: transform, opacity;
    /* Hint browser to optimize */
    /* Default state - ซ่อนอยู่ขวาบน */
    opacity: 0;
    top: 0;
    left: 100%;
    transform: translate(-50%, 0) scale(0.3);
}

/* NEXT: ขวาบน - blur เบาๆ รอเข้า */
.slider-images>img.next {
    opacity: 0.6;
    filter: blur(4px);
    /* Reduced from 15px */
    top: 15%;
    left: 85%;
    transform: translate(-50%, -50%) scale(0.5);
}

/* ACTIVE: กลางจอ - แสดงชัด */
.slider-images>img.active {
    opacity: 1;
    /* Aura removed completely - No drop-shadow */
    filter: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
}

/* PREVIOUS: ขวาล่าง - blur กำลังออก */
.slider-images>img.previous {
    opacity: 0.5;
    filter: blur(5px);
    /* Reduced from 18px */
    top: 85%;
    left: 10%;
    transform: translate(-50%, -50%) scale(0.45);
    z-index: 1;
}

/* INACTIVE: หายไป */
.slider-images>img.inactive {
    opacity: 0;
    filter: blur(10px);
    /* Reduced from 35px */
    top: 100%;
    left: 100%;
    transform: translate(-50%, -50%) scale(0.2);
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    background-color: rgb(15, 15, 18);
    border-radius: inherit;
    /* Ensure background respects rounded corners */
}

.particle {
    position: absolute;
    font-size: 16px;
    opacity: 0;
    animation: floatUp 4s ease-in-out infinite;


}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100%) rotate(0deg);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-300px) rotate(360deg);
    }
}

/* Navigation dots */
.nav-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all .3s;
    border: 2px solid transparent;
}

.nav-dot.active {
    background: var(--gold);
    border-color: var(--gold-light);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), .8);
}

/* ========== Desktop (min-width: 768px) ========== */
@media screen and (min-width: 768px) {
    .slider-main {
        flex-direction: row;
        justify-content: space-between;
        min-height: 400px;
        padding-bottom: 60px;
        border-radius: 20px;
        margin: 20px auto;
    }

    #backgrounds {
        border-radius: 20px;
        background-color: rgb(0, 0, 0);
    }

    .container {
        width: 55%;
        max-width: 420px;
        padding: 30px 24px 30px 30px;
        text-align: left;
    }

    .badge {
        padding: 8px 20px;
        /* Matched Grand */
        font-size: 13px;
        /* Matched Grand */
        margin-bottom: 1px;
    }

    .heading-style {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .prize-display {
        font-size: 32px;
        /* Set to 32px as requested previously */
    }

    .cta-btn {
        margin-top: 18px;
        font-size: 15px;
        padding: 14px 32px;
    }

    .slider-images {
        width: 50%;
        height: 100%;
    }

    .slider-images>img {
        max-width: 320px;
        max-height: 420px;
    }

    .slider-images>img.next {
        top: 10%;
        left: 80%;
        transform: translate(-50%, -50%) scale(0.5);
    }

    .slider-images>img.active {
        top: 55%;
        /* Adjusted to 55% as requested */
        left: 40%;
        transform: translate(-50%, -50%) scale(1);
    }

    .slider-images>img.previous {
        top: 90%;
        left: 10%;
        transform: translate(-50%, -50%) scale(0.45);
    }

    .particle {
        font-size: 20px;
        background-color: rgb(15, 15, 18);
    }

    .nav-dots {
        bottom: 20px;
        gap: 10px;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
    }
}

/* ========== Large Desktop (min-width: 1024px) ========== */
@media screen and (min-width: 1024px) {
    .container {
        width: 50%;
        max-width: 450px;
        padding: 40px 30px;
    }

    .heading-style {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .prize-display {
        font-size: 32px;
    }

    .cta-btn {
        margin-top: 20px;
        font-size: 16px;
        padding: 14px 36px;
    }

    .slider-images {
        width: 50%;
        height: 400px;
    }

    .slider-images>img {
        max-width: 300px;
        max-height: 350px;
    }
}