body {
    background: linear-gradient(to bottom, #f4fbff, #ffffff);
}

.title-content {
    margin: 50px 0;
}

.title-content p {
    font-weight: bold;
    text-align: center;
    font-size: 30px;
    color: #062b49;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 30px;
    box-sizing: border-box;
}

.Items-news-group {
    background-color: #ffffff;
    box-shadow: 0px 4px 20px 0px #1649b71a;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
}

/* .Items-news:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.15);
} */

.Items-news a {
    width: 100%;
    padding: 0 0 20px 0;
    display: flex;
    flex-direction: row;
}

.news-item-link {
    /* display: flex; */
    /* flex-direction: row; */
    gap: 24px;
    width: 100%;
    align-items: stretch;
    min-height: 200px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* .news-item-link:hover {
  transform: translateY(-3px);
  opacity: 0.95;
} */

.Items-news-img {
    width: 300px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
}

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

.news-item-link:hover .Items-news-img img {
    transform: scale(1.05);
}

.Items-news h5 {
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.Items-news-btn {
    border: 1px solid #ffffff;
    border-radius: 45px;
    transition: all 0.25s ease;
    font-size: 10px;
    padding: 6px 25px;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    letter-spacing: 0.05em;
    background-color: #0073e6;
}

.Items-news-btn:hover {
    background-color: #ffffff;
    color: #0073e6;
    border: 1px solid #0073e6;
}

.news-container .breadcrumb {
    /* margin: 20px 0 30px; */
    color: #062b49;
    font-size: 14px;
}

.news-container .breadcrumb a {
    color: #062b49;
    /* opacity: 0.7; */
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.news-container .breadcrumb ol {
    display: flex;
    align-items: start;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.news-container .breadcrumb li {
    display: flex;
    color: #062b49;
    align-items: start;
}

.news-container .breadcrumb svg {
    flex-shrink: 0;
}

.news-container .breadcrumb a:hover {
    opacity: 1;
}

.news-detail {
    margin-top: 50px;
}

.title-news-detail {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-news-detail {
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    background-color: #0073e6;
    padding: 0 9px;
    border-radius: 25px;
}

.Items-Detail-news-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 16px;
    background-color: #000;
    /* margin-bottom: 24px; */
}

.Items-Detail-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-title-description {
    color: #062b49;
    font-size: 24px;
    margin: 0 0 12px 0;
    font-weight: bold;
    width: 100%;
}

.Items-news-detail {
    color: #062b49;
    font-size: 14px;
    margin-top: 10px;
}

.Items-news-title {
    font-size: 20px;
    font-weight: bold;
    color: #062b49;
}

.news-description {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
}

.news-description p {
    margin-bottom: 18px;
    color: #062b49;
}

.news-description img {
    max-width: 100%;
    border-radius: 14px;
    margin: 24px 0;
    display: block;
}

.title-news-detail-text {
    font-size: 24px;
    font-weight: bold;
    color: #062b49;
}

.title-content-recommend p {
    font-weight: bold;
    /* text-align: center; */
    font-size: 20px;
    margin: 0;
    color: #363636;
}

@media (max-width: 768px) {
    .title-content {
        margin: 24px 0;
    }

    .title-content p {
        font-size: 20px;
    }

    .Items-news-group {
        border-radius: 18px;
        margin-bottom: 0;
    }

    /* .Items-news {
        padding: 12px 0;
        margin-top: 20px;
    } */

    .news-item-link {
        flex-direction: column;
        gap: 16px;
    }

    .Items-news a {
        flex-direction: column;
    }

    .Items-news-img {
        width: 100%;
        border-radius: 14px;
    }

    .Items-news h5 {
        font-size: 16px;
    }

    .text-body {
        font-size: 13px;
        margin: 12px 0 20px;
    }

    .Items-news-btn {
        font-size: 11px;
        padding: 8px 24px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 431px) {
    .news-container {
        padding: 0;
        margin-top: 40px;
        margin-bottom: 10px;
    }

    .Items-news-title {
        font-size: 16px;
    }

    .Items-news-group {
        padding: 20px;
        margin: 20px;
        border-radius: 18px;
        display: grid;
        gap: 18px;
    }

    .Items-news {
        padding: 0;
        margin-top: 0;
    }

    .Items-news a {
        padding: 0 0 10px 0;
    }

    .news-title-description {
        font-size: 16px;
    }

    .news-description {
        font-size: 12px;
        margin-top: 10px;
    }

    .Items-Detail-news-img img {
        width: 100%;
        height: 100%;
    }

    .news-container .breadcrumb {
        color: #ffffff;
        font-size: 12px;
        margin-bottom: 0;
    }

    .news-container .breadcrumb ol {
        margin-bottom: 20px 0;
        flex-wrap: wrap;
    }

    .news-container .breadcrumb li:last-child {
        flex-basis: 100%;
        margin-top: 4px;
    }

    .news-container .breadcrumb li.breadcrumb-separator:nth-last-child(2) {
        display: none;
    }
    .title-news-detail-text,
    .date-news-detail {
        margin-bottom: 0;
    }
}

.Items-news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 768px) {
    .Items-news-info {
        min-height: 100px;
    }
}

@media (min-width: 992px) {
    .Items-news-info {
        min-height: 150px;
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Recommend Section Styles */
.recommend-container {
    margin-top: 60px;
}

.recommend-divider {
    border: 0;
    border-top: 1px solid #505050;
    margin: 10px 0;
}

.recommend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recommend-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.recommend-item:hover {
    transform: scale(1.03);
}

.recommend-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.recommend-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recommend-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2f2f2f;
    padding: 12px;
    text-align: center;
}

.recommend-caption p {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;

    /* Line clamp for caption */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-empty {
    text-align: center;
    color: #9ca3af;
    padding: 20px 0;
}

.news-detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.news-detail-text {
    width: 100%;
}

/* AJAX Pagination */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 0;
    user-select: none;
}

.pagination-arrow,
.pagination-page {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-arrow {
    color: #5f5f5f;
}

.pagination-arrow.disabled {
    color: #dddddd;
    cursor: default;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pagination-page {
    font-size: 16px;
    color: #4b5563;
}

.pagination-page.active {
    color: #0073e6;
    font-weight: 600;
    cursor: default;
}

.pagination-dots {
    color: #9ca3af;
    font-size: 16px;
}
