/* news list */
.news-list-cop {
    display: flex;
    gap: 4rem;
    margin: 40px 0px;
}

.news-list-left {
    width: 70%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-grid-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
}

.no-data-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-list-right {
    width: 30%;
}

.news-sidebar-wrap {
    position: sticky;
    top: 1.25rem;
    transition: 0.45s ease-in-out;
}

/* Sidebar*/
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.news-sidebar__search {
    margin: 0;
}

.news-sidebar__search-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 0.75rem 0 1.25rem;
    background: #f4f4f4;
    border: 1px solid #f4f4f4;
    border-radius: 1.375rem;
    box-sizing: border-box;
}

.news-sidebar__search-icon {
    display: flex;
    flex-shrink: 0;
    color: #000;
    font-size: 1.125rem;
    line-height: 1;
    opacity: 0.85;
}

.news-sidebar__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-poppins), sans-serif;
    font-size: 0.9375rem;
    line-height: 1.25;
    color: #484546;
    outline: none;
}

.news-sidebar__search-input::placeholder {
    color: #757575;
}

.news-sidebar__search-submit {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-poppins), sans-serif;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #484546;
    cursor: pointer;
}

.news-sidebar__search-submit:hover {
    color: #12a95c;
}

.news-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.news-sidebar__section-title {
    margin: 0;
    padding-bottom: 0.6875rem;
    border-bottom: 1px solid #ededed;
    font-family: var(--font-josefin), sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    color: #12a95c;
}

.news-sidebar__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.news-sidebar__cat-link {
    font-family: var(--font-josefin), sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    color: #484646;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-sidebar__cat-link:hover {
    color: #12a95c;
}

.news-sidebar__cat-link--active {
    font-weight: 600;
    color: #12a95c;
}

.news-sidebar__latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.news-sidebar__latest-item {
    margin: 0;
}

.news-sidebar__latest-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.news-sidebar__latest-link:hover {
    opacity: 0.88;
}

.news-sidebar__latest-thumb {
    flex-shrink: 0;
    width: clamp(6.5rem, 30vw, 8.875rem);
    aspect-ratio: 177.5 / 96.25;
    border-radius: 0.25rem;
    overflow: hidden;
    background: #f4f4f4;
}

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

.news-sidebar__latest-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-sidebar__latest-title {
    font-family: var(--font-poppins), sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #0c0c0c;
}

.news-sidebar__latest-meta {
    font-family: var(--font-poppins), sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #64748b;
}

/* News list cards — Figma node 862:22621 */
.news-card {
    --news-card-green: #006f45;
    --news-card-badge-bg: #a8b324;
    --news-card-excerpt: #4f4d4e;

    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white, #fff);
}

.news-card__media {
    position: relative;
    border-radius: 0.1875rem;
    overflow: hidden;
    aspect-ratio: 393 / 260;
    background: #f4f4f4;
}

.news-card__img-link {
    display: block;
    height: 100%;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.03);
}

.news-card__badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    background: var(--news-card-badge-bg);
    font-family: var(--font-poppins), sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.85;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.625rem;
    padding-top: 1rem;
    min-height: 0;
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.375rem;
    font-family: var(--font-poppins), sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--news-card-green);
}

.news-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.news-card__meta-icon {
    flex-shrink: 0;
    font-size: 0.875rem;
    opacity: 0.95;
}

.news-card__meta-sep {
    flex-shrink: 0;
    color: var(--news-card-green);
    opacity: 0.85;
}

.news-card__time,
.news-card__author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card__title {
    margin: 0;
    font-family: var(--font-josefin), sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.news-card__title a {
    color: var(--news-card-green);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.news-card__title a:hover {
    opacity: 0.85;
}

.news-card__excerpt {
    margin: 0;
    font-family: var(--font-poppins), sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.43;
    color: var(--news-card-excerpt);
}

.no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.no-data-content {
    text-align: center;
    padding: 40px;
}

.no-data-icon {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-data-title {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-data-text {
    font-size: 16px;
    color: #999;
    line-height: 1.5;
}

.news-page .title-main {
    text-align: left;
}

/* 4K and Ultra-wide Screens */
@media (min-width: 1600px) {
}

/* Ultra Large Devices (Extra Large Desktop) */
@media (max-width: 1599px) {
}

/* XXL Devices (Large Desktop) */
@media (max-width: 1399px) {
}

/* Extra Large Devices (Small Desktop) */
@media (max-width: 1199px) {
    .news-list-cop {
        gap: 2.5rem;
        margin: 2rem 0;
    }

    .news-grid-box {
        gap: 1.5rem;
    }

    .news-sidebar__section-title {
        font-size: 1.375rem;
    }
}

/* Large Devices (Tablets) */
@media (max-width: 991px) {
    .news-list-cop {
        flex-direction: column;
        gap: 1.5rem;
    }
    .news-list-left {
        width: 100%;
    }

    .news-list-right {
        width: 100%;
        padding-left: 0px;
    }

    .news-sidebar {
        gap: 2.5rem;
    }

    .news-sidebar-wrap {
        position: static;
        top: auto;
    }

    .news-page .title-main {
        text-align: center;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 767px) {
    .news-grid-box {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .news-sidebar__search-inner {
        padding: 0 0.75rem 0 1rem;
    }

    .news-sidebar__latest-link {
        gap: 0.75rem;
    }
}

/* Small Devices (Phones) */
@media (max-width: 575px) {
    .news-list-cop {
        margin: 1.5rem 0;
        gap: 1.25rem;
    }

    .news-sidebar {
        gap: 2rem;
    }

    .news-sidebar__section-title {
        font-size: 1.25rem;
    }

    .news-sidebar__cat-link {
        font-size: 1rem;
    }

    .news-card__title {
        font-size: 1.125rem;
    }
}

/* Extra Small Devices */
@media (max-width: 374px) {
    .news-grid-box {
        grid-template-columns: repeat(1, 1fr);
    }

    .news-sidebar__latest-thumb {
        width: clamp(5.75rem, 34vw, 7rem);
    }
}
