/* *************************** NEWS SECTION *************************** */

.news-section {
    max-width: 1000px;
    margin: 0 auto;
}

.news-section h2,
.news-detail h2,
.news-section_list h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-text-black);
    border-left: 5px solid var(--color-yellow-page);
    padding-left: 15px;
}

.news-section_list {
    padding: 5rem 0;
    margin: 0 auto;
    max-width: 800px;
}

.news-list {
    display: flex;
    gap: 20px;
}

/* *************************** LINKS *************************** */

.slide-text a, 
.slide-text a.link, 
.news-section_list a,
.news-list a,
.news-item_list .link,
.news-item .link {
    text-decoration: none;
    color: var(--color-text-black);
    transition: background-color 0.3s ease;
}

.news-item_list .link:hover,
.news-item-content .link:hover{
    background-color: var(--color-yellow-page);
}

/* *************************** NEWS MAIN *************************** */

.news-main {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* height: 625px; */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: 50% 40%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-main-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 1rem;
}
.news-detail h1,
.news-main-content h3 {
    font-size: clamp(20px, 3vw, 26px);
    text-align: start;
    padding: 1rem 0;
}
.news-detail p,
.news-main-content p{
    font-size: clamp(15px, 3vw, 16px);
    padding: 12px 0;
    font-weight: 200;
    line-height: 1.6rem;
    /* height: 80px; */
}
.news-main-content p{
    height: 100px;
}
.news-main-content .link {
    width: 94px;
    text-align: center;
    padding: 8px 12px;
    margin: 0.5rem 0;
    border-radius: 6px;
    /* background: #eaeaea; */
    background-color: var(--color-yellow-page);
}
/* *************************** NEWS ITEMS *************************** */

.news-item,
.news-item_list {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item {
    display: flex;
    /* height: 230px; */
    max-height: 250px;
}

.news-item_list {
    display: flex;
    flex-direction: column;
    /* gap: 15px; */
    /* height: 300px; */
}
.news-item-content_list{
    padding: 0 8px;
}

.news-item .link,
.news-item_list .link {
    display: block;
    color: var(--color-text-black);
    text-align: center;
    padding: 6px;
    margin: 0 -8px;
    box-shadow: 22px 25px 25px 20px rgba(0, 0, 0, 0.415);
    text-decoration: none;
    background: var(--color-text-white);
    transition: background-color 0.3s ease;
}
.news-item-content {
    width: 100%;
    margin: 0;
}
.news-item:hover,
.news-item_list:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 150px;
    /* height: 250px; */
    padding-right: 8px;
    object-fit: cover;
}

.news-item_list img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: 50% 40%;
}

.news-item h3,
.news-item_list h3 {
    font-size: clamp(14px, 3vw, 15px);
    font-weight: 600;
    text-align: start;
    padding: 10px 0;
    margin: 0;
}

.news-item p {
    font-size: 14px;
    height: 110px;
    font-weight: 100;
    padding: 14px 0 0;
}
.news-item_list p{
    font-size: 14px;
    height: 80px;
    font-weight: 100;
    padding: 14px 0;
}
.news-sidebar_list .date,
.news-item .date{
    color: #888;
    font-size: 0.8rem;
}

.news-main-content .date,
.news-detail .date {
    font-size: 0.9rem;
    color: #888;
}
/* *************************** NEWS SIDEBAR *************************** */

.news-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
}

.news-sidebar_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 2rem 0;
}
/* *************************** NEWS DETAIL *************************** */

.news-detail-content {
    padding: 5rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.news-detail {
    padding: 0 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* .news-detail p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
} */

.news-detail .back-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.news-detail .back-link:hover {
    text-decoration: underline;
}

.news-detail-image {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: 50% 40%;
}
.all_news_detail{
    max-width: 1000px;
}
/* *************************** PAGINATION *************************** */

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #002b5c;
}

.pagination span {
    padding: 10px;
    color: #333;
}
/* *************************** SLIDER *************************** */

.news-main {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    transition: opacity 0.5s ease;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    padding: 10px;
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* *************************** MISC *************************** */

.all_news {
    display: inline-block; 
    margin: 1.5rem 0 6rem;
    padding: 10px 15px;
    background-color: var(--color-yellow-page); 
    color: var(--color-text-black);
    text-decoration: none !important; 
    font-weight: bold; 
    border-radius: 5px; 
    transition: background-color 0.3s ease;
    text-align: center;
}

.all_news:hover {
    background-color: #dcdcdc; 
    color: #333; 
    text-decoration: underline; 
}

/* *************************** RESPONSIVENESS *************************** */

@media (max-width: 950px) {

    .news-section {
        max-width: 850px;
        margin: 0 auto;
        padding: 0 10px;
    }
    .news-section_list{
        padding: 5rem 1rem;
    }
    .all_news-detail{
        margin: 0 10px;
    }
    .news-list {
        flex-direction: column;
    }
    .news-sidebar{
        flex-direction: row;
        max-width: 100%;
    }
    .news-item img {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .news-sidebar_list {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-sidebar{
        flex-direction: column;
    }
    /* .news-item img {
        max-height: 190px;
    } */
}

@media (max-width: 480px) {

    .news-main img {
        height: 200px;
    }
    .news-sidebar_list {
        grid-template-columns: 1fr;
    }
    .news-main-content h3,
    .news-item_list h3 {
        font-size: 1.2rem;
    }
    .news-main-content p,
    .news-item_list p {
        font-size: 0.9rem;
    }
    .news-item_list .link,
    .news-main-content .link {
        padding: 6px;
        font-size: 0.9rem;
    }
}