/* =========================================================
   VIDEO KEGIATAN
   PT BPR ARTHA BERSAMA
========================================================= */

.video-kegiatan-section {
    position: relative;
    width: 100%;
    padding: 90px 0 80px;
    background: #f8fafc;
    overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.video-kegiatan-section .container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.video-section-header {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.video-section-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b58a3a;
    text-transform: uppercase;
}

.video-section-header h2 {
    margin: 0 0 15px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 700;
    color: #123b68;
}

.video-section-header h2 span {
    color: #1c6aa8;
}

.video-section-header p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #687789;
}


/* =========================================================
   VIDEO SLIDER WRAPPER
========================================================= */

.video-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}


/* =========================================================
   SLIDER
========================================================= */

.video-slider {
    width: 100%;
    overflow: hidden;
}

.video-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}


/* =========================================================
   VIDEO CARD
========================================================= */

.video-card {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(18, 59, 104, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(18, 59, 104, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(18, 59, 104, 0.14);
}


/* =========================================================
   FEATURED CARD
========================================================= */

.video-card-featured {
    box-shadow: 0 14px 40px rgba(18, 59, 104, 0.13);
}


/* =========================================================
   VIDEO THUMBNAIL
========================================================= */

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe7ef;
}

.video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}


/* =========================================================
   THUMBNAIL OVERLAY
========================================================= */

.video-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.05) 45%,
            rgba(0, 0, 0, 0.35) 100%
        );
    pointer-events: none;
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.video-play-btn {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(18, 59, 104, 0.88);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.video-play-btn:hover {
    background: #1c6aa8;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   VIDEO DURATION
========================================================= */

.video-duration {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.video-card-content {
    padding: 22px 22px 24px;
}

.video-category {
    display: inline-block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b58a3a;
    text-transform: uppercase;
}

.video-card-content h3 {
    margin: 0 0 9px;
    min-height: 48px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    color: #183b5d;
}

.video-card-content time {
    display: block;
    margin-bottom: 20px;
    font-size: 13px;
    color: #8a98a8;
}


/* =========================================================
   WATCH BUTTON
========================================================= */

.video-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1c6aa8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s ease;
}

.video-watch-btn span {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.video-watch-btn:hover {
    color: #b58a3a;
}

.video-watch-btn:hover span {
    transform: translateX(4px);
}


/* =========================================================
   SLIDER NAVIGATION BUTTON
========================================================= */

.video-slider-btn {
    position: relative;
    z-index: 5;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(18, 59, 104, 0.12);
    border-radius: 50%;
    background: #ffffff;
    color: #123b68;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(18, 59, 104, 0.08);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.video-slider-btn:hover {
    background: #123b68;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(18, 59, 104, 0.18);
}

.video-slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   SLIDER DOTS
========================================================= */

.video-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
}

.video-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5df;
    cursor: pointer;
    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.video-dot.active {
    width: 26px;
    border-radius: 10px;
    background: #1c6aa8;
}


/* =========================================================
   GALLERY CTA
========================================================= */

.video-gallery-cta {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 55px;
    padding: 25px 30px;
    border: 1px solid rgba(18, 59, 104, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(18, 59, 104, 0.06);
}

.video-gallery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #edf5fb;
    color: #1c6aa8;
    font-size: 18px;
}

.video-gallery-text {
    flex: 1;
}

.video-gallery-text h3 {
    margin: 0 0 5px;
    color: #183b5d;
    font-size: 17px;
    line-height: 1.4;
}

.video-gallery-text p {
    margin: 0;
    color: #7b8998;
    font-size: 13px;
    line-height: 1.6;
}

.video-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 20px;
    border-radius: 8px;
    background: #123b68;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.video-gallery-btn span {
    transition: transform 0.25s ease;
}

.video-gallery-btn:hover {
    background: #1c6aa8;
    transform: translateY(-2px);
}

.video-gallery-btn:hover span {
    transform: translateX(4px);
}


/* =========================================================
   FOCUS STATE
========================================================= */

.video-play-btn:focus-visible,
.video-slider-btn:focus-visible,
.video-watch-btn:focus-visible,
.video-dot:focus-visible,
.video-gallery-btn:focus-visible {
    outline: 3px solid rgba(181, 138, 58, 0.45);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .video-kegiatan-section {
        padding: 75px 0 65px;
    }

    .video-slider-wrapper {
        gap: 14px;
    }

    .video-slider-track {
        gap: 18px;
    }

    .video-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }

    .video-slider-btn {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .video-gallery-cta {
        padding: 22px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .video-kegiatan-section {
        padding: 65px 0 55px;
    }

    .video-kegiatan-section .container {
        width: min(100% - 28px, 600px);
    }

    .video-section-header {
        margin-bottom: 35px;
    }

    .video-section-header h2 {
        font-size: 30px;
    }

    .video-section-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    .video-slider-wrapper {
        gap: 8px;
    }

    .video-slider-track {
        gap: 14px;
    }

    .video-card {
        flex: 0 0 100%;
    }

    .video-card-content {
        padding: 20px;
    }

    .video-card-content h3 {
        min-height: auto;
        font-size: 18px;
    }

    .video-slider-btn {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .video-play-btn {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .video-gallery-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 40px;
        padding: 22px;
    }

    .video-gallery-btn {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .video-section-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .video-section-header h2 {
        font-size: 27px;
    }

    .video-section-header p {
        font-size: 13px;
    }

    .video-slider-wrapper {
        gap: 5px;
    }

    .video-slider-btn {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .video-card {
        border-radius: 14px;
    }

    .video-card-content {
        padding: 18px;
    }

    .video-card-content h3 {
        font-size: 17px;
    }

    .video-gallery-text h3 {
        font-size: 16px;
    }
}