@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');

/* Admissions Testimonial Videos Frontend Styles */
.mvc-container {
    --mvc-ink: #1f2937;
    --mvc-muted: #6b7280;
    --mvc-accent: #e65198;
    --mvc-accent-strong: #e65198;
    --mvc-surface: #f5c7df;
    --mvc-panel: #ffffff;
    --mvc-outline: #e65198;
    --mvc-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    --mvc-carousel-height: 520px;

    display: flex;
    flex-direction: row-reverse;
    gap: 24px;
    width: 1216px;
    height: 618px;
    max-width: 100%;
    margin: 24px auto;
    padding: 24px;
    border-radius: 44px;
    border: 1px solid var(--mvc-outline);
    background: var(--mvc-surface);
    direction: rtl;
    text-align: right;
    font-family: "Vazirmatn", "Tahoma", sans-serif;
    color: var(--mvc-ink);
    align-items: stretch;
    position: relative;
    overflow: hidden;
    animation: mvc-enter 0.6s ease both;
}

.mvc-video-player-wrapper {
    flex: 3;
    min-width: 0;
    background: var(--mvc-surface);
    border-radius: 18px;
    padding: 16px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mvc-video-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mvc-main-player {
    width: 860px;
    height: 483.75px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0d10;
    border-radius: 36px;
    border: 2px solid var(--mvc-accent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    object-fit: cover;
}

.mvc-main-video-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mvc-ink);
    letter-spacing: -0.2px;
}

.mvc-main-video-description {
    margin: 0;
    font-family: "Dana", "Vazirmatn", "Tahoma", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: right;
    color: var(--mvc-ink);
}

.mvc-carousel-wrapper {
    flex: 1.15;
    min-width: 0;
    width: 284px;
    height: 570px;
    background: #e65198;
    border-radius: 24px;
    padding: 12px;
    box-shadow: none;
    backdrop-filter: none;
    max-width: 100%;
}

.mvc-carousel {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline-end: 0;
    scroll-snap-type: y proximity;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(15, 23, 42, 0.35) transparent;
}

.mvc-carousel-item {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
    height: 160px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid transparent;
    background: var(--mvc-panel);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    scroll-snap-align: start;
    animation: mvc-item 0.45s ease both;
    flex: 0 0 auto;
}

.mvc-carousel-item:nth-child(1) {
    animation-delay: 0.05s;
}

.mvc-carousel-item:nth-child(2) {
    animation-delay: 0.1s;
}

.mvc-carousel-item:nth-child(3) {
    animation-delay: 0.15s;
}

.mvc-carousel-item:nth-child(4) {
    animation-delay: 0.2s;
}

.mvc-carousel-item:nth-child(5) {
    animation-delay: 0.25s;
}

.mvc-carousel-item:nth-child(6) {
    animation-delay: 0.3s;
}

.mvc-carousel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.mvc-carousel-item.active {
    border-color: var(--mvc-accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25), 0 12px 24px rgba(15, 23, 42, 0.16);
}

.mvc-carousel-item img,
.mvc-placeholder-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mvc-carousel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: none;
    background: #0b0d10;
}

.mvc-carousel-item.mvc-playing .mvc-carousel-video {
    display: block;
}

.mvc-carousel-item.mvc-playing img,
.mvc-carousel-item.mvc-playing .mvc-placeholder-thumbnail {
    display: none;
}

.mvc-carousel-item.mvc-playing .mvc-thumbnail-overlay {
    display: none;
}

.mvc-placeholder-thumbnail {
    background: linear-gradient(135deg, rgba(255, 143, 79, 0.18), rgba(14, 165, 168, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    color: var(--mvc-muted);
    font-weight: 600;
}

.mvc-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease-in-out;
}

.mvc-carousel-item:hover .mvc-thumbnail-overlay {
    opacity: 1;
}

.mvc-play-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 0;
    position: relative;
    background-image: url("../../carousel_play_icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mvc-play-icon::before {
    content: none;
}

.mvc-main-video-shell {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mvc-main-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: transparent;
    background-image: url("../../play-circle.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
    opacity: 0.92;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mvc-main-video-shell.mvc-is-playing .mvc-main-play-icon {
    opacity: 0;
    visibility: hidden;
}

.mvc-carousel::-webkit-scrollbar {
    width: 8px;
}

.mvc-carousel::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 999px;
}

.mvc-carousel::-webkit-scrollbar-track {
    background: transparent;
}

@keyframes mvc-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mvc-item {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .mvc-container {
        margin: 16px auto;
        padding: 16px;
        gap: 16px;
        height: auto;
    }

    .mvc-main-player {
        width: 100%;
        height: auto;
    }

    .mvc-carousel-wrapper {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .mvc-container {
        flex-direction: column;
        border: none;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .mvc-video-player-wrapper {
        display: none;
    }

    .mvc-carousel-wrapper {
        height: auto;
        max-height: none;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .mvc-carousel {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        padding-inline: 16px;
        padding-bottom: 12px;
        align-items: center;
        gap: 12px;
    }

    .mvc-carousel-item {
        width: 82vw;
        max-width: 300px;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 18px;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    .mvc-carousel-item img,
    .mvc-carousel-item .mvc-placeholder-thumbnail,
    .mvc-carousel-item .mvc-carousel-video {
        height: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mvc-container,
    .mvc-carousel-item {
        animation: none;
    }

    .mvc-carousel-item {
        transition: none;
    }
}