/* News Page Styles */
* {
  margin: 0;
  padding: 0;
}

html,
body {
  background: #ffffff !important;
  padding-top: calc(30px + 1rem) !important;
}

/* Banner Section */
.news_banner {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.news_banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Container */
.news_page {
    width: 100%;
    padding: 60px 0;
    background-color: #ffffff;
}

.news_container {
    max-width: 1600px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    gap: 50px;
}

/* Sidebar */
.news_sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar_title {
    font-family: DM_Sans_regular;
    font-weight: 400;
    font-size: 20px;
    color: #666666;
    line-height: 26px;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 0;
}

.sidebar_menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f5f5f5;
    border-radius: 0 0 8px 8px;
}

.sidebar_item {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar_item:last-child {
    border-bottom: none;
}

.sidebar_item.active .sidebar_link {
    color: #FFFFFF;
    background-color: #06ADA9;
    font-weight: 500;
}

.sidebar_link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    font-family: DM_Sans_regular;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    text-decoration: none;
    line-height: 22px;
    transition: all 0.3s ease;
}

.sidebar_link:hover {
    color: #06ADA9;
}

.sidebar_icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.6;
}

.sidebar_item.active .sidebar_icon {
    opacity: 1;
}

/* Content Section */
.news_content {
    flex: 1;
    min-width: 0;
}

.news_page_title {
    font-family: DM_Sans_bold;
    font-weight: 700;
    font-size: 32px;
    color: #333333;
    line-height: 44px;
    margin: 0 0 30px 0;
}

/* News List */
.news_list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news_item {
    display: flex;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.news_item:last-child {
    border-bottom: none;
}

.news_item_img {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news_item_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news_item:hover .news_item_img img {
    transform: scale(1.05);
}

.news_item_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 0;
}

.news_item_date {
    font-family: DM_Sans_light;
    font-weight: 300;
    font-size: 16px;
    color: #666666;
    line-height: 26px;
    margin-bottom: 10px;
}

.news_item_title {
    font-family: DM_Sans_medium;
    font-weight: 500;
    font-size: 24px;
    color: #06ADA9;
    line-height: 34px;
    margin: 0 0 12px 0;
}

.news_item_desc {
    font-family: DM_Sans_light;
    font-weight: 300;
    font-size: 16px;
    color: #666666;
    line-height: 26px;
    margin: 0 0 20px 0;
}

.news_item_btn {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 30px;
    font-family: DM_Sans_medium;
    font-weight: 500;
    font-size: 16px;
    color: #06ADA9;
    line-height: 23px;
    text-decoration: none;
    border: 2px solid #06ADA9;
    border-radius: 26px;
    background: transparent;
    transition: all 0.3s ease;
    -webkit-text-stroke: 0px;
}

.news_item_btn:hover {
    background-color: #06ADA9;
    color: #FFFFFF;
}

/* Pagination */
.news_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.page_btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.page_btn:hover {
    border-color: #06ADA9;
    background: #06ADA9;
}

.page_btn:hover img {
    filter: brightness(0) invert(1);
}

.page_btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.page_numbers {
    display: flex;
    gap: 8px;
}

.page_number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: DM_Sans_medium;
    font-weight: 500;
    font-size: 14px;
    color: #666666;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page_number:hover {
    color: #06ADA9;
}

.page_number.active {
    background: #06ADA9;
    color: #FFFFFF;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .news_container {
        gap: 30px;
    }

    .news_sidebar {
        width: 220px;
    }

    .news_item_img {
        width: 240px;
        height: 160px;
    }

    .news_item_title {
        font-size: 20px;
        line-height: 30px;
    }
}

@media screen and (max-width: 480px) {
    .news_page {
        padding: 30px 0;
    }

    .news_container {
        width: 94%;
        gap: 20px;
    }

    .news_page_title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 20px;
    }

    .sidebar_title {
        font-size: 16px;
        padding: 15px 20px;
    }

    .sidebar_link {
        padding: 14px 20px;
        font-size: 14px;
    }

    .news_item {
        padding-bottom: 20px;
    }

    .news_item_img {
        height: 180px;
    }

    .news_item_title {
        font-size: 16px;
        line-height: 24px;
    }

    .news_item_desc {
        font-size: 13px;
        line-height: 22px;
    }

    .news_item_btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .news_pagination {
        gap: 8px;
        margin-top: 30px;
    }

    .page_btn {
        width: 32px;
        height: 32px;
    }

    .page_number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    .news_page {
        padding: 40px 0;
    }

    .news_container {
        flex-direction: column;
        gap: 30px;
    }

    .news_sidebar {
        width: 100%;
    }

    .news_page_title {
        font-size: 24px;
        line-height: 34px;
    }

    .news_item {
        flex-direction: column;
        gap: 20px;
    }

    .news_item_img {
        width: 100%;
        height: 220px;
    }

    .news_item_title {
        font-size: 20px;
        line-height: 30px;
    }
}
