/* ============================================================
   ARTIKEL / BLOG PAGE CSS - VINED (REVAMP)
   ============================================================ */

.artikel-page-wrapper {
    position: relative;
    background-color: #000000;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

/* Typography */
.text-gold {
    color: #AC7D24;
}

.text-white {
    color: #FFFFFF;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sub-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #AC7D24;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    color: #FFFFFF;
}

/* Animations (Fade In and Fade Out) */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Latest News / Hero Section */
.latest-news-section,
.detail-hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 60px;
    background-image: url('../../img/background/bg_about.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.latest-card {
    display: flex;
    flex-direction: row;
    background: #000000;
    border: 1px solid #AC7D24;
    border-radius: 42px;
    padding: 24px;
    gap: 32px;
    min-height: 342px;
}

.lc-img-wrapper {
    flex: 1;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    background-color: #111111;
}

.lc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.lc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
    gap: 14px;
}

.lc-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #E2E8F0;
}

.ac-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #E2E8F0;
}

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

.lc-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #D2D2D2;
}

.ac-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #D2D2D2;
}

.lc-link,
.ac-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    color: #AC7D24;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.lc-link:hover,
.ac-link:hover {
    gap: 12px;
}

/* Swiper Navigation & Container */
.headline-swiper-container {
    position: relative;
    width: 100%;
    padding: 0 64px;
    box-sizing: border-box;
}

.headline-slider-inner {
    position: relative;
    width: 100%;
}

.headline-swiper {
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.headline-swiper .swiper-wrapper {
    box-sizing: border-box;
}

.swiper-button-next.headline-next,
.swiper-button-prev.headline-prev {
    background: #AC7D24;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    margin-top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, transform 0.3s ease;
}

.swiper-button-next.headline-next:hover,
.swiper-button-prev.headline-prev:hover {
    background: #c28d29;
    transform: translateY(-50%) scale(1.08);
}

.headline-prev {
    left: 0;
}

.headline-next {
    right: 0;
}

.headline-prev img {
    width: 16px;
    height: 16px;
}

.headline-next img {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none;
}

.swiper-pagination.headline-pagination {
    bottom: 0;
}

.swiper-pagination-bullet {
    background: #D2D2D2;
    opacity: 0.32;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #FFFFFF;
    width: 18px;
    border-radius: 4px;
}

/* Outer Wrapper with Gradient Background & Global Side Padding */
.artikel-outer-wrapper {
    width: 100%;
    background: linear-gradient(180deg, #302003 0%, #000000 99.84%);
    padding: 48px 24px 0 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Inner Black Container with Rounded Top Corners */
.artikel-main-container {
    background: #000000;
    border-radius: 100px 100px 0 0;
    border-top: 1px solid rgba(172, 125, 36, 0.4);
    box-shadow: 0px -10px 40px rgba(172, 125, 36, 0.15);
    padding: 80px 0 60px 0;
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    color: #FFFFFF;
}

.artikel-main-container .main-title {
    color: #FFFFFF;
}

.artikel-main-container .sub-title {
    color: #AC7D24;
}

/* Other Articles Grid */
.others-section {
    margin-bottom: 80px;
}

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

.article-card {
    display: flex;
    flex-direction: column;
    background: #000000;
    border: 1px solid #AC7D24;
    border-radius: 42px;
    padding: 20px;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(172, 125, 36, 0.15);
}

.ac-img-wrapper {
    width: 100%;
    padding-top: 65%;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background-color: #111111;
}

.ac-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.ac-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #E2E8F0;
}

.ac-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #FFFFFF;
}

.ac-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #D2D2D2;
}

/* CTA inside main container */
.artikel-main-container .home-cta {
    background: transparent;
    padding-top: 40px;
    padding-bottom: 20px;
}

.artikel-main-container .cta-title {
    color: #FFFFFF;
}

.artikel-main-container .cta-desc {
    color: #FFFFFF;
}

/* Pagination Styling */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    width: 100%;
}

.custom-pagination nav,
.custom-pagination .pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.custom-pagination nav ul,
.custom-pagination nav > div,
.custom-pagination ul.pagination,
.custom-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
}

.custom-pagination li,
.custom-pagination .page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-pagination a,
.custom-pagination span.relative,
.custom-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    color: #AC7D24;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(172, 125, 36, 0.3);
    transition: all 0.3s ease;
    background: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.custom-pagination .page-item.active .page-link,
.custom-pagination li.active .page-link,
.custom-pagination .active span,
.custom-pagination .active a,
.custom-pagination span.relative[aria-current="page"] span,
.custom-pagination [aria-current="page"] {
    background: #AC7D24 !important;
    color: #000000 !important;
    border-color: #AC7D24 !important;
    border-radius: 50% !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(172, 125, 36, 0.3);
}

.custom-pagination a.page-link:hover,
.custom-pagination a:hover,
.custom-pagination .page-link:hover {
    border-color: #AC7D24;
    background: rgba(172, 125, 36, 0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.custom-pagination .page-item.disabled .page-link,
.custom-pagination li.disabled .page-link {
    color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    background: transparent;
    opacity: 0.6;
}

.custom-pagination svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    stroke: currentColor;
}

.custom-pagination p.text-sm {
    display: none;
}

/* Article Detail Page */
.detail-section {
    padding-bottom: 60px;
}

.detail-inner {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.detail-date {
    display: block;
    color: #AC7D24;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.detail-title {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.detail-img-wrap {
    width: 100%;
    max-height: 500px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #AC7D24;
    margin-bottom: 40px;
}

.detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    font-size: 18px;
    line-height: 1.8;
    color: #D2D2D2;
}

.detail-content h1,
.detail-content h2,
.detail-content h3 {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2em;
    margin-bottom: 1em;
}

.detail-content p {
    margin-bottom: 1.5em;
}

.detail-content a {
    color: #AC7D24;
    text-decoration: underline;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

/* Responsive */
@media (max-width: 1200px) {
    .headline-swiper-container {
        padding: 0 48px;
    }

    .headline-prev {
        left: 0;
    }

    .headline-next {
        right: 0;
    }
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .artikel-page-wrapper {
        padding-top: 0;
    }

    .latest-news-section,
    .detail-hero-section {
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 50px;
    }

    .artikel-outer-wrapper {
        padding: 0;
        background: #000000;
        width: 100%;
    }

    .artikel-main-container {
        border-radius: 0;
        border-top: none;
        box-shadow: none;
        padding: 40px 0 30px 0;
    }
}

@media (max-width: 768px) {
    .headline-swiper-container {
        padding: 0;
    }

    .latest-news-section,
    .detail-hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .artikel-page-wrapper {
        padding-top: 0;
    }

    .latest-card {
        flex-direction: column;
    }

    .lc-img-wrapper {
        min-height: 220px;
    }

    .main-title {
        font-size: 28px;
        line-height: 36px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .lc-title {
        font-size: 22px;
        line-height: 30px;
    }

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

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

@media (max-width: 640px) {
    .artikel-outer-wrapper {
        padding: 0;
        background: #000000;
        width: 100%;
    }

    .artikel-main-container {
        border-radius: 0;
        border-top: none;
        box-shadow: none;
        padding: 40px 0 30px 0;
    }

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

    .article-card {
        padding: 20px;
    }

    .detail-title {
        font-size: 28px;
    }
}