/* Container chính */
.tnb-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Layout 2 cột */
.tnb-row {
    display: flex;
    flex-wrap: wrap;
}

/* Cột trái - tin chính slide */
.tnb-col-left {
    flex: 2;
    min-width: 300px;
    position: relative;
}

/* Slider container */
.tnb-slider {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.tnb-slider-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide-item.active {
    opacity: 1;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Phần caption bên dưới ảnh */
.tnb-slider-caption {
    padding: 20px;
    background: #fff;
    border-top: 3px solid #3498db;
}

.tnb-slider-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}

.tnb-slider-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tnb-slider-title a:hover {
    color: #3498db;
}

.tnb-slider-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Nút điều hướng slide */
.tnb-prev, .tnb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 4px;
}

.tnb-prev:hover, .tnb-next:hover {
    background: rgba(0,0,0,0.8);
}

.tnb-prev {
    left: 10px;
}

.tnb-next {
    right: 10px;
}

/* Dots navigation */
.tnb-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 10;
}

.tnb-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.tnb-dot.active {
    background: #fff;
}

/* Cột phải - danh sách tin phụ */
.tnb-col-right {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
}

.tnb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tnb-list li {
    border-bottom: 1px solid #eee;
    padding: 15px;
    transition: background 0.3s;
}

.tnb-list li:hover {
    background: #f0f0f0;
}

.tnb-list a {
    display: flex;
    text-decoration: none;
    gap: 12px;
}

.tnb-list-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.tnb-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnb-list-content {
    flex: 1;
}

.tnb-list-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.tnb-list-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tnb-list-title a:hover {
    color: #3498db;
}

.tnb-list-date {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* Tin nổi bật bên phải (tin đầu tiên của danh sách phụ) */
.tnb-list li:first-child {
    background: #e8f4fd;
}

/* Responsive */
@media (max-width: 768px) {
    .tnb-row {
        flex-direction: column;
    }
    
    .tnb-slider-image {
        height: 250px;
    }
    
    .tnb-slider-title {
        font-size: 18px;
    }
    
    .tnb-slider-caption {
        padding: 12px;
    }
    
    .tnb-list li {
        padding: 10px;
    }
}

/* Thông báo lỗi */
.tnb-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}