/* =====================================================
   HALAMAN BERITA
   ===================================================== */

.news-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* HEADER DAFTAR BERITA */

.news-page-header,
.news-detail-header {
    padding: 75px 20px;
    background: linear-gradient(135deg, #0047ab, #003b8f);
    border-bottom: 4px solid #f5eb26;
    color: #ffffff;
}

.news-page-header .news-container,
.news-detail-header .news-container {
    text-align: center;
}

.news-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #f5eb26;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.news-page-header h1,
.news-detail-header h1 {
    margin: 0 auto 15px;
    max-width: 900px;
    font-size: 42px;
    line-height: 1.25;
}

.news-page-header p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.8;
}


/* DAFTAR BERITA */

.news-list-section {
    padding: 65px 20px 80px;
    background: #f6f8fb;
}

.news-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.news-section-label {
    display: block;
    margin-bottom: 8px;
    color: #0047ab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.news-list-heading h2,
.related-news-heading h2 {
    margin: 0;
    color: #202735;
    font-size: 30px;
}

.news-total {
    color: #647084;
    font-size: 13px;
}


/* PENCARIAN */

.news-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.news-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #dce2ea;
    border-radius: 7px;
    color: #222222;
    font: inherit;
    outline: none;
}

.news-search input:focus {
    border-color: #0047ab;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.10);
}

.news-search button {
    height: 48px;
    padding: 0 20px;
    background: #0047ab;
    border: none;
    border-radius: 7px;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease;
}

.news-search button:hover {
    background: #00357f;
}

.news-search > a {
    color: #0047ab;
    font-size: 13px;
    text-decoration: none;
}


/* GRID KARTU */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.news-card-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #e9eef5;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0047ab, #003b8f);
    color: #f5eb26;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
}

.news-card-body {
    padding: 22px;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 14px;
    color: #7a8493;
    font-size: 11px;
}

.news-category {
    padding: 5px 9px;
    background: #edf3fc;
    border-radius: 4px;
    color: #0047ab;
    font-weight: 700;
}

.news-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
}

.news-card h3 a {
    color: #202735;
    text-decoration: none;
    transition: color 0.25s ease;
}

.news-card h3 a:hover {
    color: #0047ab;
}

.news-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0 0 20px;
    color: #687386;
    font-size: 13px;
    line-height: 1.8;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0047ab;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.news-read-more span {
    transition: transform 0.25s ease;
}

.news-read-more:hover span {
    transform: translateX(4px);
}


/* PAGINATION */

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.news-pagination nav p {
    color: #647084;
    font-size: 13px;
}


/* KOSONG */

.news-empty {
    padding: 65px 20px;
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    text-align: center;
}

.news-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #edf3fc;
    color: #0047ab;
    font-weight: 700;
}

.news-empty h3 {
    margin: 0 0 10px;
    color: #202735;
}

.news-empty p {
    margin: 0;
    color: #687386;
    font-size: 14px;
}


/* =====================================================
   DETAIL BERITA
   ===================================================== */

.news-detail-header {
    padding-top: 35px;
    padding-bottom: 55px;
}

.news-breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.news-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.news-breadcrumb a:hover {
    color: #f5eb26;
}

.news-detail-header h1 {
    margin-bottom: 22px;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.news-detail-meta span:first-child {
    color: #f5eb26;
    font-weight: 700;
}

.news-detail-section {
    padding: 60px 20px 80px;
    background: #f6f8fb;
}

.news-detail-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-article {
    min-width: 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.news-detail-image {
    overflow: hidden;
    margin-bottom: 30px;
    background: #e9eef5;
    border-radius: 8px;
}

.news-detail-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.news-article-excerpt {
    margin: 0 0 25px;
    padding-left: 18px;
    border-left: 4px solid #0047ab;
    color: #3d4a5e;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.9;
}

.news-article-body {
    color: #505b6b;
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.news-article-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e5e9ef;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0047ab;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.news-back-link:hover {
    color: #00357f;
}


/* BERITA TERKAIT */

.related-news {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
}

.related-news-heading {
    margin-bottom: 22px;
}

.related-news-heading h2 {
    font-size: 22px;
}

.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.related-news-item img {
    flex-shrink: 0;
    width: 82px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    background: #e9eef5;
}

.related-news-item > div {
    min-width: 0;
}

.related-news-item span {
    display: block;
    margin-bottom: 6px;
    color: #7a8493;
    font-size: 10px;
}

.related-news-item h3 {
    margin: 0;
    color: #263144;
    font-size: 13px;
    line-height: 1.6;
    transition: color 0.25s ease;
}

.related-news-item:hover h3 {
    color: #0047ab;
}


/* RESPONSIVE */

@media (max-width: 950px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-detail-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .related-news {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .news-page-header,
    .news-detail-header {
        padding: 55px 20px;
    }

    .news-page-header h1,
    .news-detail-header h1 {
        font-size: 30px;
    }

    .news-list-section,
    .news-detail-section {
        padding: 45px 16px 60px;
    }

    .news-list-heading {
        align-items: flex-start;
    }

    .news-list-heading h2 {
        font-size: 25px;
    }

    .news-search {
        flex-wrap: wrap;
    }

    .news-search input {
        flex-basis: 100%;
    }

    .news-search button {
        flex: 1;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .news-card-image {
        height: 220px;
    }

    .news-article {
        padding: 20px;
    }

    .news-article-excerpt {
        font-size: 14px;
    }

    .news-article-body {
        font-size: 14px;
    }

    .news-detail-image img {
        max-height: 350px;
    }
}