/* Scroll Video Section */
.scroll-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
}

#scroll-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    object-fit: cover;
    z-index: 1;
}

html[lang="ar"] #scroll-video-element,
html[dir="rtl"] #scroll-video-element {
    transform: none;
    -webkit-transform: none;
}

.scroll-video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6% 5%;
    box-sizing: border-box;
}

.scroll-video-text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

/* Title — top right */
.scroll-video-title {
    align-self: flex-end;
    max-width: 42%;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Descriptions container — bottom left */
.scroll-video-descriptions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 44%;
    align-self: flex-start;
}

.scroll-video-description {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Remove old first-of-type / last-of-type positioning */
.scroll-video-description:first-of-type,
.scroll-video-description:last-of-type {
    bottom: auto;
    position: static;
}

@media (max-width: 768px) {
    .scroll-video-content {
        padding: 2rem;
    }

    .scroll-video-text {
        gap: 1.5rem;
        justify-content: center;
    }

    .scroll-video-title {
        align-self: flex-start;
        max-width: 100%;
        font-size: 1.3rem;
        text-align: left;
        padding: 1rem 1.25rem;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(8px);
        border-radius: 8px;
    }

    .scroll-video-descriptions {
        max-width: 100%;
        gap: 1rem;
    }

    .scroll-video-description {
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(8px);
        border-radius: 8px;
    }
}
