/* Container */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}


/* Tombol kembali */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 11, 0.75);
    color: #f5f5f5;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.back-button:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
}


/* Layout Grid */

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.detail-layout > article,
.detail-layout > .sidebar {
    background: rgba(10, 10, 11, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
}

@media (max-width: 768px) {
    .detail-layout > article,
    .detail-layout > .sidebar {
        padding: 18px;
    }
}


/* Meta (tanggal & estimasi baca) */

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.detail-meta i {
    color: #ffd700;
    margin-right: 4px;
}

.detail-meta .dot {
    opacity: 0.5;
}


/* Judul */

.detail-title {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #f5f5f5;
    margin: 0 0 24px;
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 1.4rem;
    }
}


/* Gambar hero — nempel penuh ke tepi kartu (bleed), lebih besar/menonjol
   dibanding kalau dikurung padding artikel seperti teks lainnya. */

.detail-hero {
    margin: 0 -28px 28px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .detail-hero {
        margin: 0 -18px 20px;
    }
}

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


/* Konten artikel */

.detail-content {
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.85;
}

.detail-content p {
    margin: 0 0 1.2em;
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
    font-family: "Sora", "Segoe UI", sans-serif;
    color: #f5f5f5;
    font-weight: 700;
    margin: 1.6em 0 0.7em;
}

.detail-content a {
    color: #ffd700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
}

.detail-content ul,
.detail-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.detail-content blockquote {
    margin: 1.4em 0;
    padding: 12px 20px;
    border-left: 3px solid #ffd700;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 245, 245, 0.85);
}


/* Sidebar */

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.sidebar-title .bar {
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #ffd700;
}

.sidebar-title h2 {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #f5f5f5;
    margin: 0;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.related-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.related-card .thumb {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
}

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

.related-card .info {
    min-width: 0;
}

.related-card .info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: #f5f5f5;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .info .date {
    font-size: 0.78rem;
    color: rgba(245, 245, 245, 0.5);
}


/* Responsive untuk mobile */

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
}

/* Layar HP sedang (iPhone SE, Galaxy A series) */
@media (max-width: 576px) {
    .container {
        padding: 20px 12px;
    }

    .back-button {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .detail-layout {
        gap: 20px;
    }

    .detail-layout > article,
    .detail-layout > .sidebar {
        padding: 14px;
        border-radius: 12px;
    }

    .detail-hero {
        margin: 0 -14px 16px;
    }

    .detail-meta {
        font-size: 0.78rem;
        gap: 8px;
    }

    .detail-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .detail-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .related-card .thumb {
        width: 56px;
        height: 56px;
    }

    .related-card .info h3 {
        font-size: 0.85rem;
    }
}

/* Konten artikel dari editor admin bisa berisi apa saja (tabel, blok kode,
   dst) — dijaga supaya tidak melebarkan halaman di layar sempit. */
.detail-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.detail-content pre {
    overflow-x: auto;
}
