/**
 * Webinar Banner - With Visible Close Button
 */

.webinar-banner-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.webinar-banner {
    background: linear-gradient(135deg, #2c5f7c 0%, #1e3a50 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.webinar-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    padding-right: 50px; /* Space for close button */
}

.webinar-live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); 
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); 
    }
}

.live-text {
    color: white;
}

.webinar-info {
    flex: 1;
    min-width: 200px;
}

.webinar-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.125rem;
    line-height: 1.3;
    color: white;
}

.webinar-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.95;
    color: white;
}

.webinar-time i {
    font-size: 0.875rem;
}

.webinar-countdown {
    display: flex;
    gap: 0.625rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    min-width: 55px;
}

.countdown-value {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.125rem;
    color: white;
}

.countdown-label {
    font-size: 0.5625rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
    color: white;
}

.countdown-live {
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    color: white;
}

.webinar-action {
    flex-shrink: 0;
}

.btn-join-webinar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #2c5f7c;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-join-webinar:hover {
    background: #f8f9fa;
    color: #1e3a50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-join-webinar i {
    font-size: 1.125rem;
}

/* CLOSE BUTTON - FIXED & VISIBLE */
.webinar-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.webinar-close:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1) rotate(90deg);
}

.webinar-close:active {
    transform: translateY(-50%) scale(0.95);
}

.webinar-close i {
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 991.98px) {
    .webinar-banner-content {
        padding-right: 45px;
    }
    
    .webinar-close {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 767.98px) {
    .webinar-banner {
        padding: 0.625rem 0;
    }
    
    .webinar-banner-content {
        gap: 0.75rem;
        padding-right: 40px;
    }
    
    .webinar-live-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .live-dot {
        width: 8px;
        height: 8px;
    }
    
    .webinar-title {
        font-size: 0.875rem;
    }
    
    .webinar-time {
        font-size: 0.75rem;
    }
    
    .webinar-countdown {
        display: none;
    }
    
    .btn-join-webinar {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .webinar-close {
        width: 32px;
        height: 32px;
        right: 8px;
    }
    
    .webinar-close i {
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .webinar-banner-content {
        flex-direction: column;
        text-align: center;
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .webinar-live-badge {
        align-self: center;
    }
    
    .webinar-time {
        justify-content: center;
    }
    
    .webinar-action {
        width: 100%;
    }
    
    .btn-join-webinar {
        width: 100%;
        justify-content: center;
    }
    
    /* Close button in corner on mobile */
    .webinar-close {
        top: 10px;
        right: 10px;
        transform: none;
    }
    
    .webinar-close:hover {
        transform: scale(1.1) rotate(90deg);
    }
}