/* ============================================================
   TAKHRIJ HADITH LAB — Gaya halaman dalaman
   (projects.html, blog.html, post.html)
   Dimuat BERSAMA home.css — hanya komponen khusus halaman
   dalaman ditakrif di sini; token, navbar, footer, kad dan
   butang semuanya diwarisi daripada home.css.
   ============================================================ */

/* ── Hero ringkas halaman dalaman ── */
.page-hero {
    position: relative;
    padding: 11rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    margin-bottom: 1.2rem;
}

.page-hero .page-sub {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ── Jalur section berlatar lembut ── */
.section-band {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-band .container { position: relative; }

.section-plain {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}

.section-plain .container { position: relative; }

/* ── PROJECTS: hasil projek ── */
.result-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.result-content h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1.2rem; }

.result-content > p { color: var(--muted); }

.result-image img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 70px -35px var(--shadow-deep);
    filter: saturate(0.9);
}

.result-content .checklist { border-top: none; padding-top: 0; margin-top: 1.6rem; }
.result-content .checklist li { font-size: 0.95rem; padding: 0.5rem 0 0.5rem 1.9rem; }

/* ── POST: artikel penuh ── */
.post-header {
    position: relative;
    padding: 10rem 0 3rem;
    text-align: center;
    overflow: hidden;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 2.5rem;
    transition: transform 0.3s var(--ease);
}

.back-btn:hover { transform: translateX(-4px); }

.post-meta {
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.post-title {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    max-width: 840px;
    margin: 0 auto;
    line-height: 1.3;
}

.post-cover {
    width: 100%;
    max-width: 900px;
    margin: 2.5rem auto 3.5rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 70px -35px var(--shadow-deep);
}

.post-cover:empty { display: none; }

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

.post-content {
    max-width: 760px;
    margin: 0 auto 7rem;
    padding: 0 2rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dim);
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: none;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }

.post-content p { margin-bottom: 1.4rem; }

.post-content a { color: var(--accent-text); }

.post-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 2rem 0;
}

.post-content blockquote {
    border-right: 3px solid var(--accent);
    border-left: none;
    background: rgba(var(--accent-rgb), 0.06);
    padding: 1.4rem 1.8rem;
    border-radius: 14px;
    margin: 2rem 0;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text);
}

/* ── Responsif ── */
@media (max-width: 1024px) {
    .result-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .page-hero { padding: 8rem 0 3.5rem; }
    .section-band, .section-plain { padding: 4.5rem 0; }
    .post-header { padding: 8rem 0 2rem; }
    .post-content { padding: 0 1.5rem; }
}
