/* ==========================================================
   CLENA — About Videos Section Styles
   File: assets/css/about/about-videos.css
   ========================================================== */

.about-videos-section {
    position: relative;
    background: #ffffff; /* Very subtle light grey/blue backdrop */
    padding: 100px 0;
    overflow: visible;
    z-index: 10;
}

.about-videos-container {
    width: 100%;
    box-sizing: border-box;
}

.about-videos-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 12px auto;
}

.about-videos-tagline {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary, var(--secondary));
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.about-videos-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary, var(--primary));
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.about-videos-heading span.gradient-text {
    background: linear-gradient(135deg, var(--primary, var(--primary)) 30%, var(--secondary, var(--secondary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-videos-subtitle {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary, #666666);
    margin: 0;
}

/* ── Video Blocks Stack ────────────────────────────── */
.about-video-block {
    position: relative;
    width: 100%;
}

/* Desktop Scroll-Pinning styles */
@media (min-width: 901px) {
    .about-videos-section {
        padding: 0;
    }
    
    .about-video-block {
        height: 130vh; /* The scroll track height */
        margin-bottom: 60px; /* Clear gap between the two scrolling video sections */
    }
    
    .about-video-block:last-child {
        margin-bottom: 0;
    }
    
    .about-video-sticky-wrap {
        position: -webkit-sticky;
        position: sticky;
        top: 90px; /* Offset for header height */
        height: calc(100vh - 90px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: visible; /* Prevent zoomed card clipping */
        width: 100%;
        box-sizing: border-box;
        padding: 0px 20px 140px 20px;
    }

    /* Account for WordPress admin bar height */
    .admin-bar .about-video-sticky-wrap {
        top: 122px; /* 90px header + 32px admin bar */
        height: calc(100vh - 122px);
    }
    
    .about-videos-header {
        margin: 0 auto 10px auto;
        will-change: opacity, transform;
    }
}

/* Fallback for Mobile / Portrait styles */
@media (max-width: 900px) {
    .about-video-block {
        margin-bottom: 80px;
    }
    
    .about-video-block:last-child {
        margin-bottom: 0;
    }
    
    .about-video-sticky-wrap {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.about-video-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.about-video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.about-video-scroll-zoom-wrap {
    width: 100%;
    max-width: 860px;
    transform-origin: center center;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.about-video-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    border-radius: 20px; /* Force border radius clipping */
    -webkit-backface-visibility: hidden; /* Fix Safari rounded corners bug */
    -webkit-transform: translate3d(0, 0, 0); /* Force GPU clip on iOS/macOS Safari */
}

.about-video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: none;
    border-radius: 20px; /* Force rounded corners directly on video element */
}

/* ── Responsive Styling ────────────────────────────── */
@media (max-width: 900px) {
    .about-videos-section {
        padding: 80px 0;
    }

    .about-videos-heading {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .about-videos-section {
        padding: 60px 0;
    }

    .about-videos-heading {
        font-size: 28px;
    }

    .about-videos-subtitle {
        font-size: 14px;
    }
}
