/* ================================================================
   NEWS-CENTER.CSS — News Center Page Styles
   ================================================================ */

/* ---- Page Wrapper ---- */
.news-page {
    position: relative;
    width: 100%;
    background: var(--color-white);
    padding-bottom: 80px;
}

/* ---- Breadcrumb & Title ---- */
.news-breadcrumb-wrap {
    padding-top: 24px;
}

/* ---- Featured Article ---- */
.news-featured {
    display: flex;
    gap: 44px;
    align-items: flex-start;
    padding: 24px 0;
}

.news-featured__image {
    flex: 0 0 825px;
    max-width: 100%;
    aspect-ratio: 545 / 385;
    overflow: hidden;
    border-radius: 4px;
}

.news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.news-featured__date {
    font-size: 24px;
    font-weight: 200;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.news-featured__title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.01px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.news-featured__title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-featured__title a:hover {
    color: var(--color-primary);
}

.news-featured__excerpt {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.7;
    margin-bottom: 50px;
}

.news-featured__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 231px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    justify-content: center;
    margin-top: auto;
}

.news-featured__btn:hover {
    background: #28d67a;
    transform: translateY(-1px);
}

.news-featured__btn img {
    width: 20px;
    height: 20px;
}

/* ---- News Card Grid ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px 21px;
    padding: 80px 0 60px;
}

/* ---- News Card ---- */
.news-card {
    display: flex;
    flex-direction: column;
}

.news-card__image {
    width: 100%;
    aspect-ratio: 545 / 385;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

.news-card__date {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.news-card__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.news-card__title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card__title a:hover {
    color: var(--color-primary);
}

.news-card__excerpt {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.5;
}

/* ---- Pagination ---- */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 60px;
}

.news-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.news-pagination__arrow:hover:not(:disabled) {
    opacity: 0.7;
}

.news-pagination__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.news-pagination__arrow img {
    width: 14px;
    height: 14px;
}

.news-pagination__numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 18px;
    font-weight: 400;
    font-family: var(--font-primary);
    color: var(--color-dark);
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-pagination__page:hover {
    background: rgba(6, 12, 186, 0.06);
}

.news-pagination__page--active {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.news-pagination__page--active:hover {
    background: var(--color-primary-dark);
}

.news-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-dark);
    user-select: none;
}

/* ================================================================
   RESPONSIVE — Tablet (≤1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .news-featured {
        flex-direction: column;
        gap: 24px;
    }

    .news-featured__image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 825 / 450;
    }

    .news-featured__date {
        font-size: 20px;
    }

    .news-featured__title {
        font-size: 20px;
    }

    .news-featured__excerpt {
        font-size: 15px;
    }

    .news-featured__btn {
        width: 200px;
        height: 44px;
        font-size: 16px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 20px;
        padding: 50px 0 40px;
    }

    .news-card__date {
        font-size: 16px;
    }

    .news-card__title {
        font-size: 18px;
    }

    .news-card__excerpt {
        font-size: 15px;
    }
}

/* ================================================================
   RESPONSIVE — Mobile (≤768px)
   ================================================================ */
@media (max-width: 768px) {
    .news-page {
        padding-bottom: 40px;
    }

    .news-featured {
        gap: 16px;
    }

    .news-featured__date {
        font-size: 16px;
    }

    .news-featured__title {
        font-size: 18px;
    }

    .news-featured__excerpt {
        font-size: 14px;
    }

    .news-featured__btn {
        width: 100%;
        max-width: 231px;
        height: 42px;
        font-size: 16px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 16px;
        padding: 30px 0 30px;
    }

    .news-card__image {
        margin-bottom: 12px;
    }

    .news-card__date {
        font-size: 14px;
    }

    .news-card__title {
        font-size: 16px;
    }

    .news-card__excerpt {
        font-size: 14px;
    }

    .news-pagination {
        gap: 4px;
        padding: 24px 0 40px;
    }

    .news-pagination__page {
        min-width: 28px;
        height: 28px;
        font-size: 15px;
    }
}

/* ================================================================
   RESPONSIVE — Small Mobile (≤480px)
   ================================================================ */
@media (max-width: 480px) {
    .news-featured__date {
        font-size: 14px;
    }

    .news-featured__title {
        font-size: 16px;
    }

    .news-featured__excerpt {
        font-size: 13px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-card__title {
        font-size: 16px;
    }

    .news-card__excerpt {
        font-size: 14px;
    }

    .news-pagination__page {
        min-width: 26px;
        height: 26px;
        font-size: 14px;
    }
}


/* ========================================
   News Detail Page
======================================== */

.news-detail-page {
    padding: 80px 0;
}

.news-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.news-detail__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.news-detail__meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

.news-detail__image {
    margin-bottom: 40px;
}

.news-detail__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-detail__content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail__content p {
    margin-bottom: 20px;
}

.news-detail__content h2,
.news-detail__content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.news-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    padding:0 12px;
    margin:0 4px;
    border:1px solid #ddd;
    border-radius:4px;
    text-decoration:none;
    color:#333;
}

.news-pagination .current{
    background:#005BAC;
    border-color:#005BAC;
    color:#fff;
}

.news-pagination .prev,
.news-pagination .next{
    font-weight:600;
}