/* ==========================================================================
   ARTIKEL & BERITA PAGE STYLES — FIGMA DESIGN SPECIFICATION
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION (WITH ASPECT RATIO 1440/387)
   -------------------------------------------------------------------------- */
.artikel-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 387;
    min-height: 240px;
    background: #1D3A72;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Background Hero Image */
.artikel-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.artikel-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1440 / 387;
    display: block;
}

/* Overlay Image on top of Hero Image */
.artikel-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.artikel-overlay-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1440 / 387;
    display: block;
}

/* Hero Content */
.artikel-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    box-sizing: border-box;
}

.artikel-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 56px;
}

.artikel-hero-subtag {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.artikel-hero-red-bar {
    width: 64px;
    height: 3px;
    background: #C62828;
    border-radius: 0px;
}

.artikel-breadcrumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 1.4px;
    text-transform: capitalize;
}

.breadcrumb-item {
    color: #E8E8E8;
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-item:hover {
    opacity: 1;
}

.breadcrumb-current {
    color: #E8E8E8;
    font-weight: 500;
}

.artikel-hero-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 130%;
    color: #F5F5F5;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0;
}

.artikel-detail-hero-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1000px;
}

/* --------------------------------------------------------------------------
   2. MAIN ARTIKEL LIST SECTION (GRID & CARDS)
   -------------------------------------------------------------------------- */
.artikel-main-section {
    padding: 80px 0;
    background: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
}

.artikel-main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    box-sizing: border-box;
}

/* Section Header (Frame 8) */
.artikel-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.artikel-subtag-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.artikel-red-bar {
    width: 64px;
    height: 3px;
    background: #E7000B;
    border-radius: 0px;
}

.artikel-subtag-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #4A5565;
}

.artikel-section-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 48px;
    text-align: center;
    text-transform: capitalize;
    color: #000000;
    margin: 0;
}

/* Articles Grid Wrapper (3 Columns Desktop) */
.artikel-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

/* Article Card Item */
.artikel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artikel-card:hover {
    transform: translateY(-6px);
}

/* Card Thumbnail Wrap */
.artikel-card-img-wrap {
    width: 100%;
    height: 262px;
    border-radius: 32px;
    overflow: hidden;
    display: block;
    background: #F1F5F9;
    flex-shrink: 0;
}

.artikel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.artikel-card:hover .artikel-card-img {
    transform: scale(1.06);
}

/* Card Body Content */
.artikel-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.artikel-card-date {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #637381;
}

/* Title: MAX 2 LINES (TRUNCATED) */
.artikel-card-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #03221B;
    margin: 0;
    width: 100%;
    /* Clamp title strictly to max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artikel-card-title a {
    color: #03221B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.artikel-card-title a:hover {
    color: #1D3A72;
}

/* Description: MAX 2 LINES (TRUNCATED) */
.artikel-card-desc {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #727272;
    margin: 0;
    width: 100%;
    /* Clamp description strictly to max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer / Read More Button Link */
.artikel-card-footer {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.artikel-read-more {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    height: 48px;
    border-radius: 100px;
    transition: gap 0.25s ease;
}

.artikel-read-more span {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    color: #1D3A72;
}

.artikel-arrow-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.artikel-read-more:hover .artikel-arrow-icon {
    transform: translateX(5px);
}

.artikel-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #64748B;
}

/* --------------------------------------------------------------------------
   3. PAGINATION CONTROLS
   -------------------------------------------------------------------------- */
.artikel-pagination-wrap,
.artikel-pagination-custom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    width: 100%;
}

.artikel-pagination-custom .page-num,
.artikel-pagination-custom .page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333333;
    text-decoration: none;
    background: #F1F5F9;
    transition: all 0.25s ease;
}

.artikel-pagination-custom .page-num.active {
    background: #1D3A72;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(29, 58, 114, 0.3);
}

.artikel-pagination-custom .page-num:hover:not(.active),
.artikel-pagination-custom .page-nav:hover:not(.disabled) {
    background: #E2E8F0;
    color: #1D3A72;
}

.artikel-pagination-custom .page-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. DETAIL PAGE STYLES
   -------------------------------------------------------------------------- */
.artikel-detail-section {
    padding: 60px 0 80px;
    background: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
}

.artikel-detail-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
}

.artikel-back-row {
    margin-bottom: 8px;
}

.artikel-back-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1D3A72;
    text-decoration: none;
    transition: color 0.2s ease;
}

.artikel-back-btn:hover {
    color: #C62828;
    text-decoration: underline;
}

.artikel-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #64748B;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.detail-meta-date {
    font-weight: 500;
    color: #1D3A72;
}

.artikel-detail-featured-img {
    width: 100%;
    max-height: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.artikel-detail-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    line-height: 32px;
    color: #334155;
}

.artikel-detail-body p {
    margin-bottom: 24px;
}

.artikel-detail-body h2,
.artikel-detail-body h3 {
    font-weight: 700;
    color: #0F172A;
    margin: 36px 0 16px;
}

.artikel-detail-body ul,
.artikel-detail-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.artikel-detail-body li {
    margin-bottom: 8px;
}

.artikel-related-section {
    padding: 60px 0 80px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.artikel-related-section .artikel-main-container {
    align-items: flex-start;
}

.artikel-related-section .artikel-section-header {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.artikel-related-section .artikel-subtag-header {
    align-items: flex-start;
    justify-content: flex-start;
}

.artikel-related-section .artikel-section-title {
    text-align: left;
}

/* --------------------------------------------------------------------------
   5. ENTRANCE & EXIT ANIMATIONS (SCROLL INTERSECTION)
   -------------------------------------------------------------------------- */
.anim-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade-out-active {
    opacity: 0;
    transform: translateY(-20px);
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS (Desktop, Macbook, Tablet, Mobile)
   -------------------------------------------------------------------------- */

/* MACBOOK & LAPTOP (1025px - 1440px) */
@media (max-width: 1440px) {
    .artikel-hero {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: auto;
    }

    .artikel-hero-img,
    .artikel-overlay-img {
        aspect-ratio: 4 / 3;
        height: auto;
        object-fit: cover;
    }

    .artikel-hero-container,
    .artikel-main-container,
    .artikel-detail-container {
        padding-left: 60px;
        padding-right: 60px;
    }

    .artikel-grid-wrapper {
        gap: 24px;
    }
}

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .artikel-hero {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: auto;
    }

    .artikel-hero-container,
    .artikel-main-container,
    .artikel-detail-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .artikel-hero-title {
        font-size: 38px;
    }

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

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

    .artikel-card-img-wrap {
        height: 230px;
    }

    .artikel-section-title {
        font-size: 28px;
        line-height: 38px;
    }

    .artikel-card-title {
        font-size: 19px;
        line-height: 26px;
    }

    .artikel-card-desc {
        font-size: 16px;
        line-height: 24px;
    }
}

/* MOBILE (< 767px) */
@media (max-width: 767px) {
    .artikel-hero {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: auto;
        padding-bottom: 0;
    }

    .artikel-hero-img,
    .artikel-overlay-img {
        aspect-ratio: 4 / 3;
        height: auto;
        object-fit: cover;
    }

    .artikel-hero-container,
    .artikel-main-container,
    .artikel-detail-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .artikel-hero-title {
        font-size: 30px;
    }

    .artikel-breadcrumb {
        font-size: 15px;
    }

    .artikel-main-section {
        padding: 40px 0;
    }

    .artikel-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .artikel-card-img-wrap {
        height: 220px;
        border-radius: 24px;
    }

    .artikel-section-title {
        font-size: 24px;
        line-height: 32px;
    }

    .artikel-card-title {
        font-size: 18px;
        line-height: 25px;
    }

    .artikel-card-desc {
        font-size: 15px;
        line-height: 23px;
    }
}
