* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── HERO ── */
.berita-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.berita-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A4D68 0%, #053B50 60%, #FFE600 200%);
    z-index: 0;
}

/* Diagonal stripe decoration */
.berita-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.04) 30px,
        rgba(255,255,255,0.04) 60px
    );
}

.berita-hero-content {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.berita-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFE600;
    color: #000;
    border: 2.5px solid #000;
    border-radius: 8px;
    padding: 5px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0 #000;
    width: fit-content;
}

.berita-hero-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    line-height: 1.15;
}

.berita-hero-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    max-width: 560px;
    line-height: 1.65;
}

/* ── MAIN WRAPPER ── */
.berita-main {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto 80px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── SECTION BADGE ── */
.berita-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #FFE600;
    color: #000;
    border: 2.5px solid #000;
    border-radius: 10px;
    padding: 6px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0 #000;
    margin-bottom: 20px;
}

/* ── FEATURED BERITA ── */
.berita-featured-section {
    padding: 52px 0 40px;
}

.berita-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    border: 3px solid #000;
    border-radius: 16px;
    box-shadow: 7px 7px 0 #000;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.berita-featured-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 11px 11px 0 #000;
}

.berita-featured-img {
    position: relative;
    min-height: 340px;
}

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

.berita-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.12) 100%);
}

.berita-featured-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.berita-kategori-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000;
    border: 2px solid #000;
    border-radius: 7px;
    padding: 4px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 0 #000;
    width: fit-content;
}

.berita-featured-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
}

.berita-featured-desc {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.7;
}

.berita-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 600;
}

.berita-meta i {
    color: #0A4D68;
}

.berita-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0A4D68;
    color: #FFE600;
    border: 2.5px solid #000;
    border-radius: 10px;
    padding: 11px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 4px 4px 0 #000;
    width: fit-content;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: 4px;
}

.berita-read-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 #000;
}

/* ── BERITA GRID ── */
.berita-list-section {
    padding: 20px 0 0;
    border-top: 3px dashed #CBD5E1;
    margin-top: 0;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.berita-card {
    background: #fff;
    border: 3px solid #000;
    border-radius: 14px;
    box-shadow: 5px 5px 0 #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.berita-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 #000;
}

.berita-card-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-bottom: 3px solid #000;
}

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

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

.berita-card-body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.berita-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.4;
}

.berita-card-desc {
    font-size: 0.86rem;
    color: #64748B;
    line-height: 1.65;
    flex: 1;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px dashed #E2E8F0;
}

.berita-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0A4D68;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.15s ease;
}

.berita-card-link:hover {
    gap: 9px;
    color: #053B50;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .berita-featured-card {
        grid-template-columns: 1fr;
    }

    .berita-featured-img {
        min-height: 250px;
    }

    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .berita-main {
        width: 95%;
        margin-bottom: 50px;
    }

    .berita-hero-content {
        padding: 40px 0;
    }

    .berita-hero-heading {
        font-size: 1.6rem;
    }

    .berita-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .berita-featured-body {
        padding: 20px 16px;
    }

    .berita-read-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .berita-card-img {
        height: 170px;
    }
}

/* ── DETAIL PAGE STYLES ── */
.berita-back-wrap {
    margin-bottom: 24px;
}

.berita-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0A4D68;
    color: #FFE600;
    border: 2.5px solid #000;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 3.5px 3.5px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.berita-back-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5.5px 5.5px 0 #000;
    color: #FFE600;
}

.berita-detail-card {
    background: #fff;
    border: 3.5px solid #000;
    border-radius: 16px;
    box-shadow: 7px 7px 0 #000;
    padding: 40px 36px;
    margin-bottom: 40px;
}

.berita-detail-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.berita-detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
}

.berita-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.88rem;
    color: #64748B;
    font-weight: 600;
    border-bottom: 2px dashed #E2E8F0;
    padding-bottom: 16px;
}

.berita-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.berita-detail-meta i {
    color: #0A4D68;
}

.berita-detail-img-wrap {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border: 3px solid #000;
    border-radius: 14px;
    box-shadow: 5px 5px 0 #000;
    margin-bottom: 32px;
}

.berita-detail-img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.berita-detail-content {
    font-size: 1.02rem;
    color: #334155;
    line-height: 1.85;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.berita-detail-content p {
    margin: 0;
}

.berita-detail-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 3px dashed #CBD5E1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .berita-detail-card {
        padding: 24px 20px;
    }

    .berita-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
