/* =========================================================
   VIDEO ARCHIVE
========================================================= */

.video-archive-page {
    background: #fff;
}


/* =========================================================
   HEADER
========================================================= */

.video-archive-header {
    padding: 20px 0 0px;
}

.video-archive-heading {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.video-archive-heading h1 {
    margin-bottom: 12px;
    color: #233552;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}

.video-archive-heading > p:last-child {
    max-width: 620px;
    margin: 0 auto;
    color: #6d7785;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   CONTENT
========================================================= */

.video-archive-content {
    padding: 20px 0 80px;
}


/* =========================================================
   GRID
========================================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 25px;
}


/* =========================================================
   CARD
========================================================= */

.video-card {
    min-width: 0;
    margin: 0;
}

.video-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   THUMBNAIL 16:9 - YOUTUBE STYLE
========================================================= */

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #edf0f4;
}

.video-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;

    object-fit: cover;
    object-position: center;

    transition:
        transform .45s ease,
        filter .35s ease;
}


/* =========================================================
   OVERLAY
========================================================= */

.video-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;

    background: rgba(0, 0, 0, .05);

    transition: background .3s ease;
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.video-play {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 44px;

    border-radius: 12px;

    background: #ff0033;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, .2);

    transform: translate(-50%, -50%);

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.video-play svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;

    fill: #fff;
}


/* =========================================================
   HOVER
========================================================= */

.video-card:hover .video-image {
    transform: scale(1.045);
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, .16);
}

.video-card:hover .video-play {
    background: #ff0000;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .3);

    transform:
        translate(-50%, -50%)
        scale(1.08);
}


/* =========================================================
   TITLE
========================================================= */

.video-card-content {
    padding: 13px 3px 0;
}

.video-title {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 !important;
    padding: 0;

    color: #27384f;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    transition: color .25s ease;
}

.video-card:hover .video-title {
    color: #0f1f35;
}


/* =========================================================
   NO IMAGE
========================================================= */

.video-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #233552,
            #526d93
        );
}

.video-no-image span {
    color: rgba(255,255,255,.85);

    font-size: 38px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================================================
   PAGINATION
========================================================= */

.video-pagination {
    margin-top: 55px;
}

.video-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.video-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border: 1px solid #e1e6ec;
    border-radius: 8px;

    background: #fff;

    color: #31455f;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.video-pagination .page-numbers:hover,
.video-pagination .page-numbers.current {
    border-color: #233552;
    background: #233552;
    color: #fff;
}


/* =========================================================
   EMPTY
========================================================= */

.video-empty {
    padding: 50px 20px;
    color: #7d8794;
    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 849px) {

    .video-archive-header {
        padding: 50px 0 30px;
    }

    .video-archive-heading h1 {
        font-size: 34px;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }

    .video-archive-content {
        padding-bottom: 60px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 549px) {

    .video-archive-header {
        padding: 40px 0 25px;
    }

    .video-archive-heading h1 {
        font-size: 28px;
    }

    .video-archive-heading > p:last-child {
        font-size: 14px;
    }

    .video-archive-content {
        padding-top: 10px;
        padding-bottom: 50px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-thumb {
        border-radius: 11px;
    }

    .video-play {
        width: 56px;
        height: 40px;
        border-radius: 10px;
    }

    .video-play svg {
        width: 22px;
        height: 22px;
    }

    .video-card-content {
        padding-top: 11px;
    }

    .video-title {
        font-size: 16px;
    }

}