.news-container {
    max-width: 1200px;
    padding: 64px 0px 64px 0px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.news-container-header {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.news-all-title {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    margin: 0;
}

.outstanding-news-container {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
    align-items: flex-start;
}

.outstanding-news-item {
    flex: 1;
    display: flex;
    gap: 20px;
}

.outstanding-news-item .outstanding-news-image {
    flex: 0 0 35.7%;
}

.outstanding-news-item .outstanding-news-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

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

.outstanding-news-content-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.outstanding-news-content-header h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    max-height: 3em;  
}

.outstanding-news-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 340px;
    display: inline-block;
}

.outstanding-news-content h3 a {
    color: inherit;
    text-decoration: none;
}

.outstanding-news-content h5 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.outstanding-news-meta {
    display: flex;
    gap: 10px;
    color: #5B5B5C;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: underline;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ffffff;
}

.news-table {
    table-layout: fixed;
    width: 100%;
}

.news-title {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none; 
}

.news-title::-webkit-scrollbar {
    display: none;
}

/* First column */
.news-table tr th:nth-child(1),
.news-table tr td:nth-child(1) {
    width: 112px;
}

/* Second column */
.news-table tr th:nth-child(2),
.news-table tr td:nth-child(2) {
    width: 940px;
}

/* Third column */
.news-table tr th:nth-child(3),
.news-table tr td:nth-child(3) {
    width: 148px;
}

.news-table thead tr th {
    padding: 24px;
    border-top: 1px solid #5B5B5C;
    border-bottom: 1px solid #5B5B5C;
    border-left: none;
    border-right: none;
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0.04rem;
}

.news-table th,
.news-table td {
    text-align: center;
    border: 1px solid #CACBCC;
    border-left: none;
    border-right: none;
}

.news-table th {
    background: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.news-table .news-title a {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    padding: 24px;
    display: inline-block;
    width: 100%;
    padding: 0; 
    text-align: left;
    color: #454545;
}

.news-table .news-title a:hover {
    text-decoration: underline;
}

.news-table .news-date, 
.news-table .news-number {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    padding: 24px;
    color: #454545;
}

.ajax-pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 4px;
    padding: 0;
}

.ajax-pagination li a,
.ajax-pagination li span {
    display: inline-block;
    width: 40px;
    height: 28px;
    padding: 0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    transition: 0.2s;
    box-sizing: border-box; 
    text-align: center;
    color: #242424;
}

.ajax-pagination li a img {
    display: inline-block;
    vertical-align: middle;
    max-height: 100%;
    position: relative;
    top: -1.1px;
}

.ajax-pagination li a img[alt="Prev"],
.ajax-pagination li a img[alt="Next"] {
    max-height: 20px;
}

.ajax-pagination li a img[alt="First"],
.ajax-pagination li a img[alt="Last"] {
    max-height: 20px;
}

/* First item */
.ajax-pagination li:first-child a,
.ajax-pagination li:first-child span {
    width: 28px;
    margin-right: 4px;
}

/* Second item */
.ajax-pagination li:nth-child(2) a,
.ajax-pagination li:nth-child(2) span {
    width: 28px;
    margin-right: 20px;
}

/* Last item */
.ajax-pagination li:nth-last-child(2) a,
.ajax-pagination li:nth-last-child(2) span {
    width: 28px;
    margin-left: 4px;
}

/* Second-to-last item */
.ajax-pagination li:nth-last-child(3) a,
.ajax-pagination li:nth-last-child(3) span {
    width: 28px;
    margin-left: 20px;
}

.ajax-pagination li a:hover {
    background: #f0f0f0;
}

.ajax-pagination li .current {
    color: #46B088;
}

/* Container */
.news-search-container {
    display: flex;
    justify-content: center;
    overflow: visible !important;
}

/* Form layout */
.news-search-form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 513px;
    height: 57px;
    gap: 16px;
    font-family: Arial, sans-serif;
}

.news-search-input {
    width: 377px;
    height: 100%;
}

.news-search-input {
    display: flex;
    width: 377px;
    height: 57px;
    overflow: hidden;
}

.news-search-input input[type="text"] {
    flex: 1;
    border: none; 
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    height: 100%;
    border: 1px solid #CACBCC;
}

.news-search-input button {
    background: #46B088;
    color: #FFFFFF;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-size: 14px;
    height: 100%;
}

.news-search-input button:hover {
    background: #34b484;
}

/* Custom Select */
.news-custom-select {
    position: relative;
    width: 120px;
    height: 57px;
    font-family: inherit;
    user-select: none;
    z-index: 90;
}

/* Trigger button */
.news-custom-select-trigger {
    width: 100%;
    height: 100%;
    padding: 0 24px;
    border: 1px solid #CACBCC;
    font-size: 18px;
    letter-spacing: 0.04rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Dropdown list */
.news-custom-options {
    position: absolute; 
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #CACBCC;
    margin: 10px 0 0 0;  
    padding: 0;
    display: none;
    z-index: 9999;
    max-height: 200px;  
    overflow-y: auto;
}

/* Dropdown items */
.news-custom-options li {
    padding: 10px;
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0.04rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: #fff;
}

.news-custom-options li:hover {
    background: #f2f2f2;
}

.news-custom-options li.selected {
    background: #CACBCC;
}

/* Show dropdown when active */
.news-custom-options.active {
    display: block;
}

.ajax-page-total {
    display: none !important;
}

.news-empty {
    text-align: center !important; 
    padding: 40px 20px; 
    color: #666;
}

.news-attach-file {
    border-bottom: 1px solid #CACBCC;
    padding-bottom: 24px;
    padding-top: 24px;
}

.news-attach-file a {
    color: #5B5B5C;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 0%;
}

.nav-container {
    position: relative;
    max-width: 1200px;
    margin-top: 80px;
    height: 48px;
}

/* Shared button styles */
.nav-btn {
    width: 128px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #CACBCC;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    position: absolute;
    top: 0;
}

/* Hover effect */
.nav-btn:hover {
    background: #f0f0f0;
}

/* Left and Right button positions */
.nav-btn.prev {
    left: 0;
    color: #242424;
}
.nav-btn.next {
    right: 0;
    color: #242424;
}

/* Home button stays center */
.nav-btn.home {
    left: 50%;
    transform: translateX(-50%);
    background: #3BAF8F;
    color: #fff;
    font-weight: 600;
    width: 76px;
}

.nav-btn.home:hover {
    background: #329a7c;
}

.news-article-detail-container {
    max-width: 800px;
    margin: 0 auto; 
    padding: 64px 0px;
}

.newsroom-article-detail-header {
    padding: 40px 0; 
    text-align: center; 
    border-top: 1px solid #CACBCC;
}

.newsroom-article-detail-header-title {
    max-width: 700px; 
    margin: 0 auto 24px; 
    font-weight: 700; 
    font-size: 25px; 
    line-height: 150%; 
    letter-spacing: 0.04rem;
}

.author-date {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 16px; 
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
}

.author-date .author-date-name {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 0%;
}

.author-date-dot {
    width: 4px; 
    height: 4px; 
    background: #CACBCC; 
    border-radius: 50%; 
    display: inline-block;
}

.news-article-detail-body {
    border-top: 1px solid #CACBCC; 
    border-bottom: 1px solid #CACBCC; 
    padding-top: 40px;
    color: #363636;
}

.news-pagination {
    height: 28px;
}

.news-article-detail-body p,
.news-article-detail-body h6 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 40px;
}

.news-article-detail-body h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 40px;
}

.news-article-detail-body img {
    max-width: 100%;
}

.news-article-detail-body img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.news-article-detail-body img.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.news-article-detail-body img.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.related-card a {
    text-decoration: none;
    color: inherit; /* keep text color consistent */
    display: block; /* makes the whole card clickable */
}

.related-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1250px;
    height: 506px;
    margin: 0 auto;
    gap: 20px;
}

.related-viewport {
    flex: 1;
    overflow: hidden;
}

.related-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.related-card {
    flex: 0 0 calc((100% - 59px) / 3);
    border: 1px solid #ddd;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: 412px;
}

.related-card img {
    width: 100%;
    height: auto;
    display: block;
}

.related-content {
    padding: 10px;
}

.related-content h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
}

.related-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

/* Arrows outside */
.related-prev,
.related-next {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    flex-shrink: 0; /* keep arrows from shrinking */
}

@media (max-width: 1439px) {
    .news-container {
        padding: 56px 0px;
        max-width: 896px;
    }

    .news-article-detail-container {
        padding: 56px 0px;
    }

    .outstanding-news-container {
        flex-direction: column;
        gap: 24px;
    }

    
    .outstanding-news-item 
    .outstanding-news-image {
        flex: none;
        width: 200px;
    }

    .outstanding-news-item 
    .outstanding-news-image img {
        width: 200px;
    }

    .outstanding-news-content h3 {
        width: 676px;
        font-size: 16px;
    }

    .outstanding-news-content h5 {
        font-size: 14px;
    }

    .news-all-title {
        font-size: 21px;
        height: 29px;
    }

    .news-table th,
    .news-table td {
        text-align: left;
    }

    .th-center {
        text-align: center !important;
    }

    /* First column */
    .news-table tr th:nth-child(1),
    .news-table tr td:nth-child(1) {
        width: 168px;
    }

    /* Second column */
    .news-table tr th:nth-child(2),
    .news-table tr td:nth-child(2) {
        width: 520px;
    }

    /* Third column */
    .news-table tr th:nth-child(3),
    .news-table tr td:nth-child(3) {
        width: 208px;
    }

    .ajax-pagination li a,
    .ajax-pagination li span {
        font-size: 16px;
        height: 24px;
    }

    .news-pagination {
        height: 24px;
    }

    .ajax-pagination {
        height: 100%;
    }

    /* First item */
    .ajax-pagination li:first-child a,
    .ajax-pagination li:first-child span {
        width: 24px;
    }

    /* Second item */
    .ajax-pagination li:nth-child(2) a,
    .ajax-pagination li:nth-child(2) span {
        width: 24px;
    }

    /* Last item */
    .ajax-pagination li:nth-last-child(2) a,
    .ajax-pagination li:nth-last-child(2) span {
        width: 24px;
    }

    /* Second-to-last item */
    .ajax-pagination li:nth-last-child(3) a,
    .ajax-pagination li:nth-last-child(3) span {
        width: 24px;
    }

    .ajax-pagination li a img[alt="Prev"],
    .ajax-pagination li a img[alt="Next"] {
        max-height: 17.14px;
    }

    .ajax-pagination li a img[alt="First"],
    .ajax-pagination li a img[alt="Last"] {
        max-height: 17.14px;
    }

    .news-custom-select-trigger {
        font-size: 16px;
    }

    .news-custom-options li {
        font-size: 16px;
    }
}

@media (max-width: 1023px) {
    .news-container {
        max-width: 640px;
        margin: 0 auto; 
        padding: 56px 0px;
    }

    .outstanding-news-container {
        flex-direction: column;
        gap: 24px;
    }

    
    .outstanding-news-item 
    .outstanding-news-image {
        flex: none;
        width: 200px;
    }

    .outstanding-news-item 
    .outstanding-news-image img {
        width: 200px;
    }

    .outstanding-news-content h3 {
        width: 420px;
        font-size: 16px;
    }

    .outstanding-news-content h5 {
        font-size: 14px;
    }

    .news-all-title {
        font-size: 21px;
        height: 29px;
    }

    .news-table thead tr th {
        font-size: 16px;
    }

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

    .news-table .news-date, 
    .news-table .news-number {
        font-size: 16px;
    }

    .news-table th,
    .news-table td {
        text-align: center;
    }

    /* First column */
    .news-table tr th:nth-child(1),
    .news-table tr td:nth-child(1) {
        width: 96px;
    }

    /* Second column */
    .news-table tr th:nth-child(2),
    .news-table tr td:nth-child(2) {
        width: 396px;
    }

    /* Third column */
    .news-table tr th:nth-child(3),
    .news-table tr td:nth-child(3) {
        width: 148px;
    }

    .ajax-pagination li a,
    .ajax-pagination li span {
        font-size: 16px;
        height: 24px;
    }

    .news-pagination {
        height: 24px;
    }

    .news-search-container {
        margin-top: -24px;
    }

    .news-article-detail-container {
        max-width: 640px;
        margin: 0 auto; 
        padding: 56px 0px;
    }

    .newsroom-article-detail-header-title {
        font-size: 25px;
    }

    .news-article-detail-body h3 {
        margin: 0 0 29px;
    }
}

@media (max-width: 767px) {
    .news-container {
        max-width: 343px;
        margin: 0 auto; 
        padding: 48px 0px;
    }

    .news-all-title {
        font-size: 19px;
        height: 27px;
    }

    .outstanding-news-container {
        flex-direction: column;
        gap: 24px;
    }

    .outstanding-news-item 
    .outstanding-news-image {
        flex: none;
        width: 120px;
        height: 84px;
    }

    .outstanding-news-item {
        gap: 12px;
    }

    .outstanding-news-item 
    .outstanding-news-image img {
        width: 120px;
        height: 84px;
    }

    .outstanding-news-content h3 {
        width: 211px;
        font-size: 16px;
    }

    .outstanding-news-content-header {
        gap: 0;
    }

    .outstanding-news-content h5 {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 211px;
        display: inline-block;
    }

    .news-table thead tr th {
        font-size: 14px;
        padding: 19.5px 11px;
    }

    .news-table .news-title a {
        font-size: 14px;
    }

    .news-table .news-date, 
    .news-table .news-number {
        font-size: 14px;
        padding: 19.5px 12px;
    }

    /* First column */
    .news-table tr th:nth-child(1),
    .news-table tr td:nth-child(1) {
        width: 52px;
        text-align: left;
    }

    /* Second column */
    .news-table tr th:nth-child(2),
    .news-table tr td:nth-child(2) {
        width: 187px;
    }

    /* Third column */
    .news-table tr th:nth-child(3),
    .news-table tr td:nth-child(3) {
        width: 104px;
    }

    .ajax-pagination li a,
    .ajax-pagination li span {
        font-size: 16px;
        height: 28px;
        width: 36px;
    }

    .news-pagination {
        height: 28px;
    }

    /* First item */
    .ajax-pagination li:first-child a,
    .ajax-pagination li:first-child span {
        width: 28px;
    }

    /* Last item */
    .ajax-pagination li:nth-last-child(2) a,
    .ajax-pagination li:nth-last-child(2) span {
        width: 28px;
    }

    /* Second item */
    .ajax-pagination li:nth-child(2) a,
    .ajax-pagination li:nth-child(2) span {
        width: 28px;
        margin-right: 4px;
    }

    /* Second-to-last item */
    .ajax-pagination li:nth-last-child(3) a,
    .ajax-pagination li:nth-last-child(3) span {
        width: 28px;
        margin-left: 4px;
    }

    .ajax-pagination li a img[alt="Prev"],
    .ajax-pagination li a img[alt="Next"] {
        max-height: 20px;
    }

    .ajax-pagination li a img[alt="First"],
    .ajax-pagination li a img[alt="Last"] {
        max-height: 20px;
    }

    .news-search-container {
        margin-top: 0px;
    }

    .news-custom-select {
        width: 77px;
        height: 48px;
    }

    .news-search-form {
        width: 343px;
        height: 48px;
        gap: 8px;
    }

    .news-search-input {
        width: 258px;
        height: 48px;
    }

    .news-custom-select-trigger {
        font-size: 14px;
        padding: 0 12px;
    }

    .news-custom-options li {
        font-size: 14px;
    }

    .news-article-detail-container {
        max-width: 343px;
        margin: 0 auto; 
        padding: 48px 0px;
    }

    .newsroom-article-detail-header {
        padding: 0 0 40px 0;
        text-align: center;
        border-top: none;
    }

    .newsroom-article-detail-header-title {
        font-size: 18px;
    }

    .news-article-detail-body p,
    .news-article-detail-body h6 {
        margin: 0 0 24px;
    }

    .news-article-detail-body h3 {
        margin: 0 0 29px;
    }

    .news-attach-file {
        padding-bottom: 20px;
        padding-top: 20px;
    }

    .nav-container {
        margin-top: 32px;
        height: 41px;
    }

    .nav-btn {
        width: 100px;
        height: 41px;
    }

    .nav-btn.home {
        width: 57px;
    }
}