.news-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.main-news-area {
    flex: 1;
    min-width: 0;
}

.sidebar-news-area {
    width: 100%;
    max-width: 350px;
}

@media (max-width: 991px) {
    .sidebar-news-area {
        max-width: 100%;
        margin-top: 40px;
    }
}

.sidebar-news-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.detail-sidebar-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.detail-sidebar-tabs .tab-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 86, 179, 0.12);
    background: #f7f9fc;
    color: #2d3436;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detail-sidebar-tabs .tab-item.active,
.detail-sidebar-tabs .tab-item:hover {
    background: #0056b3;
    color: #ffffff;
    border-color: transparent;
}

.sidebar-news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.title_all_box {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.title_all_box .title_sections.left {
    margin-bottom: 8px;
}

.title_all_box .before_title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2a44;
    line-height: 1.15;
}

.description_box {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #4f5768;
    white-space: pre-line;
}

.description_box p,
.description_box ul,
.description_box ol,
.description_box h2,
.description_box h3,
.description_box h4,
.description_box h5 {
    margin: 0 0 18px;
    line-height: 1.8;
}

.description_box img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.simple_image_boxes {
    overflow: hidden;
    border-radius: 18px;
}

.simple_image_boxes img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

.back-to-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #0056b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-news-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 86, 179, 0.22);
}

.latest-news-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-news-item:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.latest-news-item img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 991px) {
    .news-detail-container {
        flex-direction: column;
    }

    .sidebar-news-area {
        margin-top: 40px;
    }
}

.sidebar-news-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #0056b3;
    border-radius: 3px;
}

.latest-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-news-item {
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    align-items: flex-start;
}

.latest-news-item:hover {
    transform: translateX(5px);
    opacity: 0.85;
}

.latest-news-item img {
    width: 90px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
    margin: 0 0 8px 0;

    /* Multiline ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-date {
    font-size: 0.8rem;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-date i {
    font-size: 0.75rem;
    color: #0056b3;
}