/* Explain: Styles for the video carousel and modal. */
.videos-swiper {
    padding-bottom: 0.5rem;
}

.videos-swiper .swiper-slide {
    height: auto;
}

.video-card {
    height: 100%;
    border-radius: 1.8rem;
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.video-card:hover {
    border-color: rgba(200, 164, 92, 0.5);
    box-shadow: 0 26px 80px rgba(34, 48, 63, 0.12);
    transform: translateY(-6px);
}

.video-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: linear-gradient(150deg, var(--secondary-color), var(--surface-color));
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.video-card:hover .video-thumb {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play i {
    display: inline-flex;
    width: 3.6rem;
    height: 3.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(36, 64, 110, 0.85);
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform 250ms ease, background 250ms ease;
}

.video-media:hover .video-play i {
    transform: scale(1.08);
    background: var(--primary-color);
}

.videos-prev,
.videos-next {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
    transition: all 250ms ease;
}

.videos-prev:hover,
.videos-next:hover {
    border-color: var(--accent-color);
    background: var(--primary-color);
    color: #ffffff;
}

.videos-swiper .swiper-pagination {
    position: static;
    display: flex;
    width: auto;
    align-items: center;
    gap: 0.45rem;
}

.videos-swiper .swiper-pagination-bullet {
    width: 0.55rem;
    height: 0.55rem;
    margin: 0 !important;
    background: var(--accent-color);
    opacity: 0.35;
}

.videos-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 26, 36, 0.86);
    backdrop-filter: blur(6px);
}

.video-modal.hidden {
    display: none;
}

.video-modal-frame {
    position: relative;
    width: 100%;
    max-width: 60rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.4rem;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.video-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.2rem;
    transition: background 250ms ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.32);
}