/* Swiper wrapper position context */
.swiper.swiper-scale-effect,
.swiper-container {
    position: relative !important;
}

/* Hero Section Overlay Card for WHAT'S NEW */
.hero-whats-new-card {
    position: absolute !important;
    top: 200px !important;
    bottom: 20px !important;
    right: 40px !important;
    transform: none !important;
    z-index: 100 !important;
    width: 360px;
    max-width: calc(100vw - 60px);
    height: calc(85% - 100px) !important;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.hero-whats-new-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Header */
.hero-wn-header {
    background: linear-gradient(135deg, #4a255b 0%, #32163e 100%);
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #d5a52b;
}

.hero-wn-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.hero-wn-title .wn-icon {
    color: #ffd700;
    font-size: 16px;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Controls */
.whats-new-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wn-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.2s ease;
}

.wn-btn:hover {
    background: #ffd700;
    color: #4a255b;
    border-color: #ffd700;
    transform: translateY(-1px);
}

/* Body */
.hero-wn-body {
    flex: 1;
    padding: 12px 16px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
}

.hero-wn-body marquee {
    height: 100% !important;
    width: 100%;
}

/* Vertical Notice Card Item */
.hero-wn-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4a255b;
    transition: all 0.25s ease;
}

.hero-wn-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(74, 37, 91, 0.15);
    border-left-color: #d5a52b;
    background: #fdfbf7;
}

.wn-item-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4a255b;
    margin-top: 6px;
    flex-shrink: 0;
}

.hero-wn-item:hover .wn-item-bullet {
    background-color: #d5a52b;
}

.wn-item-content {
    flex: 1;
}

.wn-item-content .notice-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.wn-item-content .notice-link:hover {
    color: #4a255b;
}

.wn-title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.wn-new-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.35);
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(231, 76, 60, 0.35);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 10px rgba(231, 76, 60, 0.55);
    }
}

.notice-desc {
    color: #596275;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.hero-wn-footer {
    background: #f8f9fa;
    padding: 10px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wn-footer-tag {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whats-new-viewall {
    color: #4a255b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.whats-new-viewall:hover {
    color: #d5a52b;
    transform: translateX(2px);
}

/* Minimized Card State */
.hero-whats-new-card.minimized {
    height: auto !important;
    min-height: 0 !important;
    bottom: auto !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border-bottom: 2px solid #d5a52b;
}

.hero-whats-new-card.minimized .hero-wn-body,
.hero-whats-new-card.minimized .hero-wn-footer {
    display: none !important;
}

.hero-whats-new-card.minimized .hero-wn-header {
    border-bottom: none;
    border-radius: 13px;
    cursor: pointer;
}

.hero-whats-new-card.minimized #wnPrevBtn,
.hero-whats-new-card.minimized #wnPlayPauseBtn,
.hero-whats-new-card.minimized #wnNextBtn,
.hero-whats-new-card.minimized #wnPrevBtnHi,
.hero-whats-new-card.minimized #wnPlayPauseBtnHi,
.hero-whats-new-card.minimized #wnNextBtnHi {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-whats-new-card {
        right: 20px;
        width: 320px;
        top: 80px !important;
        bottom: 20px !important;
        height: calc(100% - 100px) !important;
    }
}

@media (max-width: 991px) {
    .hero-whats-new-card {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        height: 350px;
        margin: 20px 0;
        border-radius: 12px;
    }
}