/* ===== FEATURED NEWS SECTION ===== */
.featured-news-section {
    padding: 60px 0;
    background: #ffffff;
}

.section-title-with-icon {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-with-icon i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.featured-news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.featured-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 137, 208, 0.2);
}

.featured-large {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-card:hover .featured-image {
    transform: scale(1.1);
}

.featured-badge {
    display: none;
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.featured-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.featured-category i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.featured-date i {
    color: var(--primary-color);
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 16px;
}

.featured-news-card:hover .featured-title {
    color: var(--primary-color);
}

.featured-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Small Cards */
.featured-small-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: space-between;
}

.featured-small {
    display: flex;
    flex-direction: row;
    height: auto;
    align-items: flex-start;
}

.featured-small a {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.featured-small-image {
    width: 160px;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.featured-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-small:hover .featured-small-image img {
    transform: scale(1.1);
}

.featured-small-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.featured-meta-small {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.featured-category-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.featured-category-small i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.featured-title-small {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.2em;
}

.featured-small:hover .featured-title-small {
    color: var(--primary-color);
}

.featured-date-small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.featured-date-small i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ===== NEWS TABS SECTION ===== */
.news-tabs-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

.news-tabs-wrapper {
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.news-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    min-width: max-content;
}

.news-tab-item {
    flex-shrink: 0;
}

.news-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 99px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.news-tab-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.news-tab-btn:hover {
    background: rgba(0, 137, 208, 0.1);
    color: var(--primary-color);
}

.news-tab-btn:hover i {
    transform: scale(1.1);
}

.news-tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 137, 208, 0.3);
}

.news-tab-btn.active i {
    color: white;
}

.news-tabs-content {
    position: relative;
}

.news-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.news-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NEWS LISTING PAGE ===== */
.news-listing-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.news-pagination {
    margin-top: 60px;
}

.news-pagination .pagination {
    margin: 0;
}

.news-pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.news-pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.news-pagination .page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== NEWS DETAIL PAGE ===== */
.news-detail-section {
    padding: 40px 0 80px;
    background: #ffffff;
    margin-top: 0;
}

/* Original style for breadcrumb-detail (when outside news-detail-header) */
.breadcrumb-detail {
    padding-top: 120px !important;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Override: Remove padding-top when breadcrumb is inside news-detail-header */
.news-detail-header .breadcrumb-detail {
    padding-top: 0 !important;
    margin-bottom: 15px;
    margin-top: 0;
    background: transparent;
    text-align: center;
}

.news-detail-article {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.news-detail-date i {
    color: var(--primary-color);
}

.news-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-top: 30px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content p:last-child {
    margin-bottom: 0;
}

/* News Detail Images */
.news-detail-images {
    margin: 40px 0;
}

.news-detail-image-wrapper {
    margin-bottom: 20px;
}

.news-detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.news-image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 0 10px;
}

/* News Detail Footer */
.news-detail-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.news-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-label {
    font-weight: 600;
    color: #333;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: var(--primary-color);
    color: white;
}

.news-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-weight: 600;
    color: #333;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Related News */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.related-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.related-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.related-news-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-card:hover .related-news-image {
    transform: scale(1.1);
}

.related-news-content {
    padding: 20px;
}

.related-news-title-small {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.related-news-card:hover .related-news-title-small {
    color: var(--primary-color);
}

.related-news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
}

.related-news-date i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* ===== NEWS SIDEBAR ===== */
.news-sidebar {
    padding-left: 30px;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Sidebar News List */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-news-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-news-link:hover {
    transform: translateX(4px);
}

.sidebar-news-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-news-content {
    flex: 1;
}

.sidebar-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-link:hover .sidebar-news-title {
    color: var(--primary-color);
}

.sidebar-news-date {
    font-size: 0.85rem;
    color: #666;
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 12px;
}

.sidebar-categories li:last-child {
    margin-bottom: 0;
}

.sidebar-categories a {
    display: block;
    padding: 10px 14px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-categories a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .news-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .news-detail-article {
        padding: 30px 20px;
    }
    
    .news-detail-title {
        font-size: 1.75rem;
    }
    
    .news-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-content {
        padding: 24px;
    }
    
    .featured-small-image {
        width: 120px;
    }
    
    .news-tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .news-listing-section {
        padding: 40px 0 60px;
    }
    
    .news-detail-section {
        padding: 20px 0 60px;
    }
    
    .news-detail-article {
        padding: 20px 15px;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .news-detail-content {
        font-size: 1rem;
    }
    
    .news-detail-images .row {
        margin: 0;
    }
    
    .news-detail-images .col-12 {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .featured-news-section {
        padding: 40px 0;
    }
    
    .section-title-with-icon {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .featured-small {
        flex-direction: column;
    }
    
    .featured-small-image {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 12px 12px 0 0;
    }
    
    .featured-small-content {
        padding: 16px;
    }
    
    .featured-title-small {
        font-size: 0.95rem;
        min-height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .news-tabs-section {
        padding: 30px 0 60px;
    }
    
    .news-tabs-wrapper {
        margin-bottom: 30px;
        padding: 6px;
    }
    
    .news-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .news-tab-btn span {
        display: none;
    }
    
    .news-tab-btn i {
        font-size: 1.1rem;
    }
    
    .news-tabs-nav {
        gap: 4px;
    }
}

