/* ==========================================================================
   Royal Festival Event Announcement Banner Modal (6th Nov Akhand Kirtan)
   Auto-pops on site load, shows 5s countdown, smooth 5s auto-dismiss.
   ========================================================================== */

.event-banner-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 7, 4, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.event-banner-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.event-banner-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.92);
    width: 92%;
    max-width: 880px;
    min-height: 450px;
    background: linear-gradient(145deg, #240a04 0%, #3e1206 50%, #1a0602 100%);
    border: 2px solid #E5A93C;
    border-radius: 24px;
    box-shadow: 
        0 28px 80px rgba(0, 0, 0, 0.9),
        0 0 55px rgba(229, 169, 60, 0.45),
        inset 0 1px 0 rgba(255, 235, 175, 0.35);
    z-index: 99991;
    color: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
    display: flex;
}

.event-banner-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.event-banner-modal.closing {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.94);
    transition: transform 0.35s ease-in, opacity 0.35s ease-in;
}

/* Close Button */
.event-banner-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(229, 169, 60, 0.6);
    color: #FFD54F;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.25s ease;
    z-index: 10;
}

.event-banner-close-btn:hover {
    background: #E5A93C;
    color: #1a0602;
    transform: rotate(90deg);
}

/* Event Image Container */
.event-banner-img-wrapper {
    position: relative;
    width: 380px;
    min-height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.event-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.6s ease;
}

.event-banner-modal:hover .event-banner-img {
    transform: scale(1.04);
}

.event-banner-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0) 30%, rgba(36, 10, 4, 0.95) 100%);
    pointer-events: none;
}

.event-banner-img-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, #FFB300 0%, #D84315 100%);
    color: #1A0502;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #FFE082;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    z-index: 2;
}

/* Event Banner Content Body */
.event-banner-body {
    flex: 1;
    padding: 42px 34px 34px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 2;
}

/* Badge */
.event-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 169, 60, 0.16);
    border: 1px solid rgba(229, 169, 60, 0.45);
    color: #FFE082;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    align-self: flex-start;
}

/* Title */
.event-banner-title {
    font-family: var(--font-heading-main);
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFF6DF;
    line-height: 1.3;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.event-banner-title span {
    color: #FFD54F;
    display: inline-block;
}

/* Description */
.event-banner-desc {
    font-family: var(--font-body-content);
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 24px;
}

/* Actions */
.event-banner-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.event-banner-cta-btn {
    background: linear-gradient(135deg, #FFB300 0%, #E8590C 100%);
    color: #1A0502 !important;
    font-family: var(--font-body-content);
    font-weight: 700;
    font-size: 0.96rem;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1.5px solid #FFD54F;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(232, 89, 12, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.event-banner-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 179, 0, 0.7);
    color: #1A0502 !important;
}

/* Timer note */
.event-banner-timer-note {
    font-size: 0.82rem;
    color: rgba(255, 224, 130, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.event-banner-timer-count {
    display: inline-block;
    min-width: 14px;
    font-weight: 700;
    color: #FFD54F;
}

/* Progress bar along bottom */
.event-banner-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.event-banner-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #FFB300, #FF6D00, #FFE082);
    transform-origin: left center;
    transition: transform 5s linear;
}

.event-banner-progress-bar.running {
    transform: scaleX(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .event-banner-modal {
        flex-direction: column;
        width: 92%;
        max-width: 480px;
        min-height: unset;
        border-radius: 20px;
    }
    .event-banner-img-wrapper {
        width: 100%;
        height: 200px;
        min-height: unset;
    }
    .event-banner-img-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(36, 10, 4, 0.95) 100%);
    }
    .event-banner-body {
        padding: 24px 20px 22px;
        text-align: center;
    }
    .event-banner-badge {
        align-self: center;
    }
    .event-banner-title {
        font-size: 1.35rem;
    }
    .event-banner-desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    .event-banner-actions {
        justify-content: center;
    }
    .event-banner-timer-note {
        justify-content: center;
    }
}
