/* PVTVN Slider Plugin - Frontend Styles */

/* Container chính */
.pvtvn-slider-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.pvtvn-slider-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Left Column */
.pvtvn-left-column {
    display: flex;
    flex-direction: column;
    gap: 0; /* FIX: Xóa khoảng cách giữa slider và info-box */
}

/* Slider Styles - FIXED */
.pvtvn-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.pvtvnSwiper {
    width: 100%;
    height: 0; 
    padding-top: 44.38%; /* Tỷ lệ 775x344 */
    position: relative;
}

.pvtvnSwiper .swiper-wrapper {
    display: flex;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pvtvnSwiper .swiper-slide {
    display: block;
    width: 100%;
    height: 100%; 
    flex-shrink: 0;
    background: #f5f5f5;
}

.pvtvnSwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%; 
    max-width: 100%;
    object-fit: cover; 
}


.pvtvnSwiper .swiper-pagination {
    bottom: 15px !important;
}

.pvtvnSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.6;
}

.pvtvnSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

.pvtvnSwiper .swiper-button-prev,
.pvtvnSwiper .swiper-button-next {
    color: #fff;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.pvtvnSwiper .swiper-button-prev:hover,
.pvtvnSwiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.pvtvnSwiper .swiper-button-prev:after,
.pvtvnSwiper .swiper-button-next:after {
    font-size: 20px;
}

/* Info Boxes - Thiết kế giống hình mẫu */
.pvtvn-info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f3f3f3; /* FIX: Thêm màu nền */
    padding: 10px 8px 11px; 
    text-align: center; 
}

.pvtvn-info-box {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px; 
    padding: 10px; 
    position: relative; /* FIX: Thêm position relative cho ::after */
}

/* FIX: Thêm đường kẻ ngăn cách */
.pvtvn-info-box:not(:last-child)::after {
    content: "";
    display: block;
    width: 1px;
    height: 25px; 
    background: #ddd; 
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* FIX: Thay thế dashicons bằng img */
.pvtvn-info-box img {
    width: 25px;
    height: 25px;
    vertical-align: middle; 
    flex-shrink: 0;
}


.pvtvn-info-box .info-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    line-height: 1.4;
    text-align: left;
    flex: initial; 
}

/* Right Column */
.pvtvn-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Posters */
.pvtvn-posters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pvtvn-poster {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pvtvn-poster:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pvtvn-poster a {
    display: block;
}

.pvtvn-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* News Section - Container */
.pvtvn-news-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pvtvn_title {
    border-bottom: 1px solid #01a4ef;
    line-height: 30px;
    padding: 0 15px; 
}

.pvtvn_title span {
    background: #01a4ef;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    padding: 0 10px;
    display: inline-block;
    position: relative;
    float: left;
    margin-left: -15px; 
}
.pvtvn_title>a {
    float: right;
    color: #1062a4;
    font-size: 13px;
    text-decoration: none; 
}
.pvtvn_title>a:hover {
    text-decoration: underline; 
}
.pvtvn_title span:after {
    height: 0;
    width: 0;
    border-top: 30px solid transparent;
    border-bottom: 0;
    border-right: 0;
    border-left: 8px solid #1062a4;
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
}
.pvtvn_title:after {
    content: "";
    display: table;
    clear: both;
}


.pvtvn-news-list {
    padding: 0;
    clear: both; 
}

.pvtvn-news-item {
    display: flex;
    gap: 13px;
    padding: 4px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.pvtvn-news-item:last-child {
    border-bottom: none;
}

.pvtvn-news-item:hover {
    background-color: #f9f9f9;
}

.pvtvn-news-thumbnail {
    flex-shrink: 0;
    width: 100px; /* FIX: Giảm từ 120px */
    height: 70px; /* FIX: Giảm từ 80px */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pvtvn-news-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.pvtvn-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pvtvn-news-item:hover .pvtvn-news-thumbnail img {
    transform: scale(1.1);
}

.pvtvn-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.pvtvn-news-item-title {
    margin: 0;
    font-size: 13px; /* FIX: Giảm từ 14px */
    line-height: 1.5;
    font-weight: 600;
}

.pvtvn-news-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvtvn-news-item-title a:hover {
    color: #00bcd4;
}

.pvtvn-news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
}

.pvtvn-news-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .pvtvn-slider-container {
        grid-template-columns: 1fr;
    }
    
    .pvtvn-info-boxes {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pvtvn-posters {
        flex-direction: row;
        gap: 15px;
    }
    
    .pvtvn-poster {
        flex: 1;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .pvtvn-slider-wrapper {
        padding: 15px;
    }
    
    .pvtvn-slider-container {
        gap: 15px;
    }
    
    .pvtvn-info-box {
        padding: 15px 5px; 
        gap: 8px;
    }
    
    .pvtvn-info-box img {
        font-size: 28px; 
        width: 28px;
        height: 28px;
    }
    
    .pvtvn-info-box .info-box-title {
        font-size: 11px; 
    }
    
    .pvtvn-posters {
        flex-direction: row;
        gap: 10px;
    }
    
    .pvtvn-news-item {
        flex-direction: row;
        padding: 12px 15px;
    }
    
    .pvtvn-news-thumbnail {
        width: 90px; /* FIX: Giảm từ 100px */
        height: 65px; /* FIX: Giảm từ 70px */
    }
    
    .pvtvn-news-item-title {
        font-size: 13px;
    }
    
    .pvtvnSwiper .swiper-button-prev,
    .pvtvnSwiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }
    
    .pvtvnSwiper .swiper-button-prev:after,
    .pvtvnSwiper .swiper-button-next:after {
        font-size: 16px;
    }
    
    .pvtvn_title {
        padding: 0 10px; 
    }
    
    .pvtvn_title span {
        font-size: 14px; 
        margin-left: -10px; 
    }

    .pvtvn_title>a {
        font-size: 12px; 
    }
    
}

@media (max-width: 480px) {

    .pvtvn-info-box {
        flex-direction: column; 
        gap: 5px;
        padding: 10px 5px;
        text-align: center;
    }
    .pvtvn-info-box .info-box-title {
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
    }
     .pvtvn-info-box img {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .pvtvn-news-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .pvtvn-news-item-title {
        font-size: 12px;
    }
    
    .pvtvn-news-date {
        font-size: 11px;
    }
}