/* ===================================
   VIDEO PAGE STYLES - HOTOP
   =================================== */

/* Video Section */
.video-section {
    padding: 0 0 80px;
    background-color: #fff;
}

.video-section .container {
    padding-left: 150px;
    padding-right: 150px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #FF1493;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* Page Title */
.page-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

/* Video Carousel */
.video-carousel {
    position: relative;
    margin-bottom: 80px;
}

/* Swiper Navigation Buttons */
.video-section .swiper-button-prev,
.video-section .swiper-button-next,
.articles-carousel .swiper-button-prev,
.articles-carousel .swiper-button-next {
    width: auto;
    height: auto;
    background: none;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
}

.video-section .swiper-button-prev:after,
.video-section .swiper-button-next:after,
.articles-carousel .swiper-button-prev:after,
.articles-carousel .swiper-button-next:after {
    display: none !important;
    content: none !important;
}

.video-section .swiper-button-prev:hover,
.video-section .swiper-button-next:hover,
.articles-carousel .swiper-button-prev:hover,
.articles-carousel .swiper-button-next:hover {
    opacity: 0.8;
}

.video-section .swiper-button-prev img,
.video-section .swiper-button-next img,
.articles-carousel .swiper-button-prev img,
.articles-carousel .swiper-button-next img {
    width: 80px;
    height: auto;
    display: block;
}

.video-section .swiper-button-prev,
.articles-carousel .swiper-button-prev {
    left: -120px;
}

.video-section .swiper-button-next,
.articles-carousel .swiper-button-next {
    right: -120px;
}

/* Hide Swiper default arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.video-carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.video-carousel-track {
    display: flex;
    gap: 0;
}

/* Video Item */
.video-item {
    width: 285px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-10px);
}

.video-thumbnail {
    position: relative;
    width: 285px;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 3px solid #fff;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 35px 0 35px 60px;
    border-color: transparent transparent transparent #fff;
    margin-left: 10px;
    position: relative;
    z-index: 2;
}

.play-button:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.play-button img {
    display: none;
}

/* Video Title */
.video-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

/* Articles Carousel */
.articles-carousel {
    position: relative;
    margin-bottom: 50px;
}

.articles-carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.articles-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Article Item */
.article-item {
    min-width: calc(20% - 20px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

a.article-item:hover,
a.article-item:focus {
    text-decoration: none;
    color: inherit;
}

.article-item:hover {
    transform: translateY(-10px);
}

.article-image {
    width: 285px;
    height: 285px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

/* Article Title */
.article-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* More Button Container */
.more-button-container {
    text-align: center;
    margin-top: 50px;
}

.more-btn {
    width: 400px;
    height: 80px;
    background: #033490;
    color: white;
    font-size: 30px;
    font-weight: 700;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.more-btn:hover,
.more-btn:focus {
    background: #022870;
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(3, 52, 144, 0.3);
}

/* Top Nav Active */
.top-menu-link.active {
    color: #FFD700;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .article-item {
        min-width: calc(25% - 18.75px);
    }
}

@media (max-width: 1200px) {
    .article-item {
        min-width: calc(33.333% - 16.67px);
    }

    .page-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .article-item {
        min-width: calc(50% - 12.5px);
    }

    .video-section .swiper-button-prev,
    .articles-carousel .swiper-button-prev {
        left: 10px;
    }

    .video-section .swiper-button-next,
    .articles-carousel .swiper-button-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 20px 0 60px;
    }

    .page-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .video-thumbnail {
        width: 100%;
        height: 350px;
    }

    .article-item {
        min-width: calc(50% - 12.5px);
    }

    .play-button {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }

    .play-button::before {
        border-width: 25px 0 25px 40px;
        margin-left: 7px;
    }

    .video-title,
    .article-title {
        font-size: 14px;
    }

    .more-btn {
        padding: 15px 50px;
        font-size: 16px;
    }

    .video-section .swiper-button-prev img,
    .video-section .swiper-button-next img,
    .articles-carousel .swiper-button-prev img,
    .articles-carousel .swiper-button-next img {
        width: 50px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .video-item {
        width: 100%;
    }

    .video-thumbnail {
        width: 100%;
        height: 400px;
    }

    .article-item {
        min-width: 100%;
    }

    .video-carousel-track,
    .articles-carousel-track {
        gap: 20px;
    }

    .video-section .swiper-button-prev,
    .articles-carousel .swiper-button-prev {
        left: 5px;
    }

    .video-section .swiper-button-next,
    .articles-carousel .swiper-button-next {
        right: 5px;
    }

    .more-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-modal-close:hover {
    background: #FF1493;
    transform: scale(1.1);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Loading Animation */
.video-section .swiper-button-prev.loading,
.video-section .swiper-button-next.loading,
.articles-carousel .swiper-button-prev.loading,
.articles-carousel .swiper-button-next.loading {
    pointer-events: none;
    opacity: 0.5;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-item,
.article-item {
    animation: fadeIn 0.5s ease;
}
