@charset "UTF-8";

/* =============================== */
/* Page Base                       */
/* =============================== */
.news-page {
    padding: 220px 0 140px;
    background: #fff;
    min-height: 100vh;
}

/* =============================== */
/* Page Header                     */
/* =============================== */
.nw-header {
    margin-bottom: 60px;
}

.nw-title {
    font-size: 92px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1;
}

/* =============================== */
/* Sub Header (title + filter)     */
/* =============================== */
.nw-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 40px;
}

.nw-sub-title {
    font-size: 32px;
    font-weight: 600;
    color: #1f1f1f;
}

.nw-filter {
    display: flex;
    gap: 8px;
}

.nw-filter form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nw-filter-btn {
    padding: 7px 18px;
    border: 1px solid rgba(35, 35, 35, 0.25);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.6);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nw-filter-btn:hover,
.nw-filter-btn.active {
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
}

/* =============================== */
/* Grid                            */
/* =============================== */
.nw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px 24px;
    margin-bottom: 60px;
}

.nw-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.nw-card-img {
    width: 100%;
    aspect-ratio: 1.42 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.nw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nw-card:hover .nw-card-img img {
    transform: scale(1.04);
}

.nw-card-no-img {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.nw-card-info {
    padding-top: 20px;
}

.nw-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.4;
    margin-bottom: 12px;
}

.nw-card-desc {
    font-size: 16px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.6);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-size: 16px;
    color: rgba(35, 35, 35, 0.4);
}

/* =============================== */
/* Pagination                      */
/* =============================== */
.nw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.nw-page-num,
.nw-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: rgba(35, 35, 35, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.nw-page-num:hover,
.nw-page-arrow:hover {
    color: #1f1f1f;
}

.nw-page-num.active {
    background: #1f1f1f;
    color: #fff;
}

/* =============================== */
/* View Page                       */
/* =============================== */
.nw-view-header {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 48px;
}

.nw-view-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #957e62;
    margin-bottom: 16px;
}

.nw-view-title {
    font-size: 40px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.35;
    margin-bottom: 20px;
}

.nw-view-date {
    font-size: 14px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.45);
}

.nw-view-thumb {
    width: 100%;
    margin-bottom: 48px;
}

.nw-view-thumb img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.nw-view-body {
    font-size: 17px;
    font-weight: 400;
    color: #2d2d2d;
    line-height: 1.85;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    margin-bottom: 40px;
}

.nw-view-body img {
    max-width: 100%;
    height: auto;
}

.nw-view-files {
    margin-bottom: 40px;
}

.nw-view-files-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(35, 35, 35, 0.5);
    margin-bottom: 12px;
}

.nw-view-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nw-view-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1f1f1f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nw-view-file-link:hover {
    color: #957e62;
}

.nw-view-actions {
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
}

.nw-btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #1f1f1f;
    border: 1px solid rgba(35, 35, 35, 0.3);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nw-btn-list:hover {
    background: #1f1f1f;
    color: #fff;
    border-color: #1f1f1f;
}

/* =============================== */
/* Responsive                      */
/* =============================== */
@media (max-width: 1200px) {
    .news-page {
        padding-top: 130px;
    }

    .nw-title {
        font-size: 64px;
    }

    .nw-sub-title {
        font-size: 26px;
    }

    .nw-card-title {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .news-page {
        padding: 110px 0 100px;
    }

    .nw-title {
        font-size: 54px;
    }

    .nw-sub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }
}

@media (max-width: 767px) {
    .news-page {
        padding: 90px 0 80px;
    }

    .nw-title {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .nw-header {
        margin-bottom: 40px;
    }

    .nw-sub-title {
        font-size: 20px;
    }

    .nw-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    .nw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }

    .nw-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .nw-card-desc {
        font-size: 13px;
    }
}
