/* =========================================================
   NEWS DETAIL PAGE
========================================================= */
.news-hero-wrapper {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.news-hero-image {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.news-detail-title {
    font-size: 42px;
    font-family: 'LibertinusDisplay', serif;
    font-weight: 500;
    line-height: 1.4;
    color: #222;
    letter-spacing: 1px;
}

.news-detail-meta {
    font-size: 14px;
    color: #888;
    font-family: 'Montserrat', sans-serif;
}

.news-detail-date {
    color: #555;
}

.news-detail-separator {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.news-detail-body {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.9;
    color: #333;
}

.news-detail-body p {
    margin-bottom: 1.2em;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    font-family: 'LibertinusDisplay', serif;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #222;
}

.news-detail-body blockquote {
    border-left: 4px solid #a59c83;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f9f8f5;
    font-style: italic;
    color: #555;
}

.news-detail-body ul,
.news-detail-body ol {
    padding-left: 25px;
    margin-bottom: 1em;
}

.news-detail-body li {
    margin-bottom: 0.4em;
}

/* Add Custom Pagination Style based on screenshot if needed */
nav>div:not(.d-none)>p {
    display: none !important;
    /* Hide "Showing x to y" text in some laravel versions */
}

nav>.d-flex.justify-content-between.flex-fill.d-sm-none {
    display: none !important;
    /* Hide mobile simple pagination text */
}

nav>div.d-none.flex-sm-fill.d-sm-flex {
    display: block !important;
    width: 100%;
}

nav>div>div>p.small.text-muted {
    display: none !important;
    /* Hide "Showing 1 to 2 of 3 results" */
}

.pagination {
    gap: 10px;
    flex-wrap: wrap;
    /* Fix berantakan di mobile */
    justify-content: center;
    margin-bottom: 0;
}

.page-item .page-link {
    border: none;
    color: #333;
    font-weight: 600;
    background-color: transparent;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.page-item.active .page-link {
    background-color: #eee9e0;
    /* Match the active circle color in screenshot */
    color: #333;
}

.page-item .page-link:hover {
    background-color: #f5f2eb;
}

/* Memperbesar icon panah */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-size: 22px;
    line-height: 1;
    padding-bottom: 4px;
    /* Adjust visual alignment for arrows */
}

.detail-title-news-discover {
    font-family: 'LibertinusDisplay' !important;
    font-weight: 500 !important;
    font-size: 36px;
}

.section-detail-news-discover {
    padding-top: 50px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .news-hero-wrapper {
        max-height: 300px;
    }

    .news-hero-image {
        max-height: 300px;
    }

    .news-detail-title {
        font-size: 22px;
    }

    .news-detail-body {
        font-size: 15px;
    }

    .detail-title-news-discover {
        font-size: 20px;
    }

    .section-detail-news-discover {
        padding-top: 10px !important;
    }
}
