.academy-home-popup {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.academy-home-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.academy-home-popup[hidden] {
    display: none !important;
}

.academy-home-popup.is-open[hidden] {
    display: flex !important;
}

body.academy-home-popup-open {
    overflow: hidden;
}

.academy-home-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 25, 0.72);
    backdrop-filter: blur(3px);
}

.academy-home-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 18, 25, 0.35);
    border: 1px solid rgba(106, 13, 173, 0.12);
}

.academy-home-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(15, 18, 25, 0.72);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.academy-home-popup__close i {
    color: #fff;
    font-style: normal;
}

.academy-home-popup__close:hover {
    background: var(--color-accent-1, #6A0DAD);
    transform: scale(1.04);
}

.academy-home-popup__sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.academy-home-popup__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f1219;
    overflow: hidden;
}

.academy-home-popup__link {
    display: block;
    width: 100%;
    height: 100%;
}

.academy-home-popup__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .academy-home-popup {
        padding: 12px;
    }
    .academy-home-popup__close {
        top: 6px;
        right: 6px;
        width: 36px;
        height: 36px;
    }
}
