﻿/*public video*/
.top-video-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.r-video-link-h a:hover {
    color: #333;
}

.video {
    background: #FFFBE8;
}
/* ================================================
   NÚT "XEM TẤT CẢ" - Hover đẹp mắt & chuyên nghiệp
   (Giữ nguyên cấu trúc HTML bạn cung cấp)
   ================================================ */

.r-video-link-h {
    display: inline-block;
    margin-top: 25px; /* bạn có thể điều chỉnh khoảng cách này */
}

    .r-video-link-h a {
        gap: 2px;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 50px;
        text-decoration: none;
        letter-spacing: 0.6px;
        transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
    }

        /* Hover chính - hiệu ứng chuyên nghiệp */
        .r-video-link-h a:hover {
            background: #035B8F;
            color: #ffffff;
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(3, 91, 143, 0.35);
        }

        /* Hiệu ứng cho icon SVG */
        .r-video-link-h a svg {
            transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
        }

        .r-video-link-h a:hover svg {
            transform: translateX(10px); /* icon bay sang phải mượt */
        }

        /* Hiệu ứng ripple (ánh sáng lan tỏa) khi hover */
        .r-video-link-h a::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            z-index: 1;
        }

        .r-video-link-h a:hover::before {
            width: 280px;
            height: 280px;
            opacity: 1;
        }

        /* Làm cho text hơi dịch khi hover để tạo cảm giác cao cấp */
        .r-video-link-h a:hover {
            padding-right: 38px; /* tạo thêm không gian cho icon bay */
        }

/* Responsive trên mobile */
@media (max-width: 576px) {
    .r-video-link-h a {
        padding: 12px 28px;
        font-size: 15px;
        gap: 10px;
    }

        .r-video-link-h a:hover {
            transform: translateY(-3px);
        }

            .r-video-link-h a:hover svg {
                transform: translateX(7px);
            }
}

.r-video-link-h a {
    display: flex;
    align-items: center;
    color: #035B8F;
    font-family: 'Inter_24pt-Regular';
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    pointer-events: all;
    padding: 15px 29px;
    padding-right: 0;
}

    .r-video-link-h a svg {
        margin-right: 10px;
    }

.home-video-w.home-capacity-w .top-cef-home {
    margin-bottom: 0;
}

.p-video-list {
    position: relative;
}

.p-video-item {
    height: 390px;
    position: relative;
    overflow: hidden;
}

.video-wrap .p-video-item {
    display: block !important;
}

.p-video-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-wrap .p-video-item:hover .img img {
    transform: scale(1.1);
}

.video-wrap .p-video-item:hover h3 span {
    color: #F44336;
}

.p-video-item:hover .icon img {
    transform: rotate( 90deg);
}

.p-video-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0px;
    width: 100%;
    height: 398px;
    transform: rotate(90deg);
    background: linear-gradient(180deg, rgba(39, 6, 11, 0.00) 0%, #27060B 100%);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.p-video-item .img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

    .p-video-item .img img {
        transition: all .3s;
    }

.p-video-item .icon {
    position: absolute;
    z-index: 2;
    transition: all linear .2s;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 16px;
    bottom: 19px;
}

.p-video-item:hover .icon {
    /* opacity: .7; */
}

.p-video-item .icon img {
    width: 56px;
    transform: translateX(1px);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-video-item .overlay {
    position: absolute;
    z-index: 1;
    width: 100%;
    bottom: 0;
    display: none;
}

.p-video-item .overlay-video {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    opacity: 0;
    transition: all linear .2s;
    width: 100%;
    pointer-events: none;
}

    .p-video-item .overlay-video iframe {
        width: 100%;
        height: 100%;
        display: block;
    }

.p-video-item.show .overlay-video {
    opacity: 1;
}

.p-video-item .overlay img {
    width: 100%;
}

.p-video-item h3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    margin: 0;
    color: #fff;
    line-height: 153%;
    padding: 14px 20px;
    background: transparent;
    margin-bottom: 0;
    font-weight: 100;
}

    .p-video-item h3 span {
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        color: #FFF;
        font-family: 'K2D-Bold';
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
    }

.video-container {
    padding: 45px 0;
}

.video-wrap {
    margin-top: 40px;
    overflow: hidden;
}

@media(max-width:1023px) {
    .no-display-mobile-tablet {
        display: none !important
    }

    .p-video-item {
        height: 250px;
    }

    .r-video-link-h {
        display: none;
    }
}

@media(min-width:740px) and (max-width:1023px) {
    .no-display-tablet {
        display: none !important
    }

    .video-list {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:739px) {
    .no-display-mobile {
        display: none !important
    }

    .p-video-item .icon {
        width: 32px;
        height: 32px;
    }

        .p-video-item .icon img {
            width: 32px;
        }

    .p-video-item h3 span {
        font-size: 15px;
    }

    .p-video-item {
        height: 175px;
    }

        .p-video-item a::before {
            height: 175px;
            transform: none;
            background: linear-gradient(149deg, #035B8F 0%, rgba(3, 91, 143, 0.00) 100%);
        }

    .video-list {
        grid-template-columns: repeat(1,minmax(0,1fr));
    }

    .video-container {
        padding-top: 17px;
        padding-bottom: 35px;
    }
}