/* =========================================================
   DETAIL BERITA - MEDNUS
========================================================= */

.detail-berita-section {
    padding: 130px 0 90px;
    background: #f8fafc;
}

.detail-berita-container {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 0 20px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
    color: #94a3b8;
    font-size: 12px;
}

.detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    color: #0d6efd;
}

.detail-breadcrumb > i {
    font-size: 10px;
    color: #cbd5e1;
}


/* =========================================================
   LAYOUT
========================================================= */

.detail-berita-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 35px;
    align-items: start;
}


/* =========================================================
   MAIN ARTICLE
========================================================= */

.detail-berita-main {
    min-width: 0;
    padding: 38px;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(15,23,42,.05);
}

.detail-berita-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.detail-berita-title {
    margin: 0;
    color: #102a43;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.8px;
}

.detail-berita-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0 28px;
    color: #94a3b8;
    font-size: 12px;
}

.detail-berita-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.detail-berita-meta i {
    color: #0d6efd;
}


/* =========================================================
   IMAGE
========================================================= */

.detail-berita-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 17px;
    background: #e9eef5;
    margin-bottom: 28px;
}

.detail-berita-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   SUMMARY
========================================================= */

.detail-berita-summary {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #0d6efd;
    border-radius: 0 14px 14px 0;
    background: #f3f8ff;
}

.detail-summary-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e0edff;
    color: #0d6efd;
    font-size: 18px;
}

.detail-berita-summary strong {
    display: block;
    margin-bottom: 5px;
    color: #102a43;
    font-size: 13px;
}

.detail-berita-summary p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.detail-berita-content {
    color: #334155;
    font-size: 15px;
    line-height: 1.95;
}

.detail-berita-content p {
    margin-bottom: 20px;
}

.detail-berita-content h1,
.detail-berita-content h2,
.detail-berita-content h3,
.detail-berita-content h4,
.detail-berita-content h5,
.detail-berita-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #102a43;
    font-weight: 700;
    line-height: 1.4;
}

.detail-berita-content ul,
.detail-berita-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.detail-berita-content li {
    margin-bottom: 8px;
}

.detail-berita-content a {
    color: #0d6efd;
}

.detail-berita-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 12px;
}

.detail-berita-content blockquote {
    margin: 25px 0;
    padding: 18px 22px;
    border-left: 4px solid #0d6efd;
    background: #f8fafc;
    color: #64748b;
}


/* =========================================================
   SHARE
========================================================= */

.detail-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 25px;
    margin-top: 35px;
    border-top: 1px solid #e8eef5;
}

.detail-share > span {
    margin-right: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.detail-share a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf3ff;
    color: #0d6efd;
    text-decoration: none;
    transition: all .25s ease;
}

.detail-share a:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}


/* =========================================================
   BACK
========================================================= */

.detail-back {
    margin-top: 25px;
}

.detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.detail-back a:hover {
    color: #084298;
}


/* =========================================================
   SIDEBAR
========================================================= */

.detail-berita-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-sidebar-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
}

.detail-sidebar-label {
    display: block;
    margin-bottom: 9px;
    color: #0d6efd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.detail-sidebar-card h3 {
    margin: 0;
    color: #102a43;
    font-size: 21px;
    font-weight: 700;
}

.detail-sidebar-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.75;
}

.detail-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s ease;
}

.detail-sidebar-link:first-of-type {
    margin-top: 5px;
}

.detail-sidebar-link:last-child {
    border-bottom: 0;
}

.detail-sidebar-link span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.detail-sidebar-link span i {
    width: 20px;
    color: #0d6efd;
}

.detail-sidebar-link > i {
    color: #94a3b8;
    font-size: 11px;
}

.detail-sidebar-link:hover {
    color: #0d6efd;
}


/* =========================================================
   SIDEBAR CTA
========================================================= */

.detail-sidebar-cta {
    padding: 28px;
    border-radius: 19px;
    background:
        linear-gradient(
            135deg,
            #0b3d91,
            #0d6efd
        );
    color: #fff;
    overflow: hidden;
}

.detail-sidebar-cta-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 13px;
    background: rgba(255,255,255,.13);
    font-size: 20px;
}

.detail-sidebar-cta h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.detail-sidebar-cta p {
    margin: 10px 0 20px;
    color: rgba(255,255,255,.80);
    font-size: 13px;
    line-height: 1.7;
}

.detail-sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 9px;
    background: #fff;
    color: #0d6efd;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .detail-berita-layout {
        grid-template-columns: 1fr;
    }

    .detail-berita-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-sidebar-cta {
        grid-column: span 2;
    }

}


@media (max-width: 768px) {

    .detail-berita-section {
        padding: 110px 0 65px;
    }

    .detail-berita-main {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .detail-berita-title {
        font-size: 30px;
    }

    .detail-berita-image {
        height: 320px;
        border-radius: 14px;
    }

    .detail-berita-content {
        font-size: 14px;
    }

    .detail-berita-sidebar {
        display: flex;
    }

    .detail-sidebar-cta {
        grid-column: auto;
    }

}


@media (max-width: 480px) {

    .detail-berita-container {
        padding: 0 15px;
    }

    .detail-berita-section {
        padding-top: 100px;
    }

    .detail-berita-title {
        font-size: 27px;
    }

    .detail-berita-image {
        height: 240px;
    }

    .detail-berita-meta {
        gap: 10px;
    }

    .detail-berita-summary {
        padding: 15px;
    }

}