/* ============================
   ARTIKEL PAGE (INDEX & SHOW)
   ============================ */

/* PAGE HEADER */
.page-header {
    width: 100%;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #252525 0%, #111111 100%);
    text-align: center;
}

.page-header-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: #FFFFFF;
    margin: 0;
}

.page-header-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #E2E8F0;
    margin: 16px auto 0;
    max-width: 600px;
}

/* HEADLINE SECTION (Swiper Carousel) */
.headline-section {
    padding: 80px 0;
    background: #F8FAFC;
}

.headline-inner {
    max-width: var(--max-container);
    margin: 0 auto;
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
}

.headline-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #333333;
    margin-bottom: 40px;
    text-align: center;
}

.headline-swiper {
    width: 100%;
    padding-bottom: 40px;
}

.headline-slide {
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.9);
}

.swiper-slide-active.headline-slide {
    opacity: 1;
    transform: scale(1);
}

.headline-card {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16 / 9;
}

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

.headline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.headline-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #E2E8F0;
    margin-bottom: 8px;
}

.headline-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #FFFFFF;
    margin: 0;
}

/* Swiper navigation custom colors */
.swiper-button-next,
.swiper-button-prev {
    color: #A4271E !important;
}

/* ARTIKEL GRID SECTION */
.artikel-list-section {
    padding: 80px 0;
    background: #F8FAFC;
}

.artikel-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}

.artikel-list-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    color: #333333;
    margin: 0;
    flex-shrink: 0;
}

.artikel-list-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #777777;
    text-align: right;
    margin: 0;
    flex: 1;
}

.artikel-list-inner {
    max-width: var(--max-container);
    margin: 0 auto;
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
}

.artikel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Card Berita */
.berita-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    transition: box-shadow 0.25s ease;
}

.berita-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.berita-card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.berita-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.berita-card:hover .berita-card-img-wrap img {
    transform: scale(1.03);
}

.berita-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.berita-card-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #999;
}

.berita-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #666666;
    margin: 8px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Custom Laravel */
nav>ul.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav>ul.pagination li {
    display: inline-block;
}

nav>ul.pagination a,
nav>ul.pagination span.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #F1F5F9;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

nav>ul.pagination a:hover {
    background: #E2E8F0;
}

nav>ul.pagination li.active span.page-link {
    background: #A4271E;
    color: #FFFFFF;
}

nav>ul.pagination li.disabled span.page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* DETAIL ARTIKEL */
.detail-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.detail-inner {
    max-width: var(--max-container);
    margin: 0 auto;
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
    width: 100%;
    box-sizing: border-box;
}

.detail-header {
    margin-bottom: 36px;
}

.detail-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #A4271E;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.5px;
}

.detail-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 52px;
    color: #0F172A;
    margin: 0;
}

.detail-img-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.detail-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.detail-content {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    color: #334155;
}

.detail-content p {
    margin-bottom: 28px;
}

.detail-content h2,
.detail-content h3 {
    font-weight: 700;
    color: #0F172A;
    margin: 40px 0 16px;
    font-size: 26px;
    line-height: 34px;
}

.detail-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 32px 0;
}

/* RELATED ARTIKEL SECTION */
.related-artikel-section {
    padding: 80px 0;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.related-artikel-inner {
    max-width: var(--max-container);
    margin: 0 auto;
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
}

.related-artikel-heading {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 40px;
    text-align: center;
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 1023px) {
    .detail-section {
        padding: 70px 0;
    }

    .related-artikel-section {
        padding: 70px 0;
    }

    .headline-inner,
    .artikel-list-inner,
    .detail-inner,
    .related-artikel-inner {
        padding-left: var(--gutter-tablet);
        padding-right: var(--gutter-tablet);
    }

    .artikel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-title {
        font-size: 32px;
        line-height: 42px;
    }

    .related-artikel-heading {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

@media (max-width: 767px) {
    .detail-section {
        padding: 60px 0;
    }

    .related-artikel-section {
        padding: 60px 0;
    }

    .headline-inner,
    .artikel-list-inner,
    .detail-inner,
    .related-artikel-inner {
        padding-left: var(--gutter-tablet);
        padding-right: var(--gutter-tablet);
    }

    .artikel-grid {
        grid-template-columns: 1fr;
    }

    .headline-title {
        font-size: 18px;
        line-height: 26px;
    }

    .headline-overlay {
        padding: 24px;
    }

    .detail-title {
        font-size: 26px;
        line-height: 36px;
    }

    .related-artikel-heading {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .detail-content {
        font-size: 16px;
        line-height: 28px;
    }

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

    .artikel-list-desc {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .detail-section {
        padding: 50px 0;
    }

    .related-artikel-section {
        padding: 50px 0;
    }

    .headline-inner,
    .artikel-list-inner,
    .detail-inner,
    .related-artikel-inner {
        padding-left: var(--gutter-mobile);
        padding-right: var(--gutter-mobile);
    }
}