/*
Theme Name: Hello Elementor Child - PPTQ Sunan Giri
Theme URI: https://pptqsunangiri.ponpes.id/
Description: Child theme untuk pengembangan tampilan detail berita PPTQ Sunan Giri Surabaya.
Author: PPTQ Sunan Giri Surabaya
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =========================================
   PPTQ SUNAN GIRI - DETAIL BERITA
   ========================================= */

.pq-article-page {
    background: #F6F5EF;
    color: #25352A;
    padding: 70px 20px 90px;
}

.pq-article-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.pq-article-header {
    text-align: center;
    margin-bottom: 38px;
}

.pq-article-category {
    display: inline-block;
    color: #1E5B07;
    background: rgba(81, 150, 20, 0.10);
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pq-article-title {
    color: #173F20;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
    font-weight: 400;
    margin: 0 auto 22px;
    max-width: 850px;
}

.pq-article-meta {
    color: #777D73;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
}

.pq-meta-separator {
    color: #C5A45B;
    margin: 0 10px;
}

.pq-article-featured {
    margin: 0 0 42px;
    overflow: hidden;
    border-radius: 14px;
}

.pq-article-featured img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.pq-article-content {
    max-width: 760px;
    margin: 0 auto;
    color: #414A40;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 1.9;
}

.pq-article-content p {
    margin-bottom: 22px;
}

.pq-article-content h2,
.pq-article-content h3 {
    color: #173F20;
    font-family: "Instrument Serif", Georgia, serif;
    line-height: 1.3;
    margin-top: 36px;
    margin-bottom: 16px;
}

.pq-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.pq-article-tags {
    max-width: 760px;
    margin: 38px auto 0;
    padding-top: 22px;
    border-top: 1px solid #E3E1D7;
    color: #777D73;
    font-size: 13px;
}

.pq-article-tags a {
    color: #1E5B07;
    text-decoration: none;
}

.pq-article-back {
    max-width: 760px;
    margin: 38px auto 0;
}

.pq-article-back a {
    color: #1E5B07;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.pq-article-back a:hover {
    color: #C5A45B;
}

@media (max-width: 767px) {
    .pq-article-page {
        padding: 42px 18px 60px;
    }

    .pq-article-title {
        font-size: 36px;
    }

    .pq-article-featured {
        border-radius: 10px;
        margin-bottom: 28px;
    }

    .pq-article-content {
        font-size: 15px;
        line-height: 1.85;
    }
}

/* =========================================
   HEADER & FOOTER DETAIL BERITA
   Khusus halaman artikel (single post)
========================================= */

body.single-post {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* HEADER */
body.single-post .pq-article-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: #0B3D16;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

body.single-post .pq-article-header-inner {
    max-width: 1200px;
    min-height: 92px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

body.single-post .pq-article-brand img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
}

body.single-post .pq-article-nav {
    display: flex;
    align-items: center;
}

body.single-post .pq-article-nav-toggle {
    display: none;
}

body.single-post .pq-article-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

body.single-post .pq-article-nav-links a {
    color: #F6F5EF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

body.single-post .pq-article-nav-links a:hover {
    color: #C5A45B;
}

body.single-post .pq-article-nav-links .pq-article-nav-psb {
    color: #C5A45B;
}

body.single-post .pq-article-nav-links .pq-article-nav-cta {
    padding: 11px 19px;
    border: 1px solid #C5A45B;
    border-radius: 30px;
    color: #F6F5EF;
}

/* FOOTER */
body.single-post .pq-article-site-footer {
    background: #0B3D16;
    color: #B9CBB9;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body.single-post .pq-article-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 28px 55px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.5fr .8fr;
    gap: 42px;
}

body.single-post .pq-article-footer-brand img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 22px;
}

body.single-post .pq-article-footer-brand h2 {
    color: #F6F5EF;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 12px;
}

body.single-post .pq-article-footer-brand p {
    color: #B9CBB9;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

body.single-post .pq-article-footer-column h3 {
    color: #C5A45B;
    font-size: 13px;
    font-weight: 700;
    margin: 8px 0 20px;
}

body.single-post .pq-article-footer-column a {
    display: block;
    color: #B9CBB9;
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
    margin-bottom: 11px;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

body.single-post .pq-article-footer-column a:hover {
    color: #F6F5EF;
}

body.single-post .pq-article-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 20px 24px;
    text-align: center;
}

body.single-post .pq-article-footer-bottom p {
    color: #B9CBB9;
    font-size: 11px;
    margin: 0;
}

/* TABLET & MOBILE */
@media (max-width: 1023px) {
    body.single-post .pq-article-header-inner {
        min-height: 76px;
        padding: 10px 20px;
    }

    body.single-post .pq-article-brand img {
        width: 210px;
    }

    body.single-post .pq-article-nav-burger {
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        border: 1px solid rgba(255,255,255,.25);
        border-radius: 8px;
    }

    body.single-post .pq-article-nav-burger span {
        width: 19px;
        height: 2px;
        background: #F6F5EF;
        display: block;
    }

    body.single-post .pq-article-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        background: #0B3D16;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 10px 18px rgba(0,0,0,.15);
    }

    body.single-post .pq-article-nav-toggle:checked ~ .pq-article-nav-links {
        display: flex;
    }

    body.single-post .pq-article-nav-links a {
        padding: 14px 8px;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

    body.single-post .pq-article-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}

@media (max-width: 600px) {
    body.single-post .pq-article-header-inner {
        padding: 10px 16px;
    }

    body.single-post .pq-article-brand img {
        width: 165px;
    }

    body.single-post .pq-article-footer-main {
        grid-template-columns: 1fr;
        padding: 45px 22px;
        gap: 28px;
    }

    body.single-post .pq-article-footer-brand img {
        width: 190px;
    }
}

/* Kompensasi admin bar WordPress */
body.admin-bar.single-post .pq-article-site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.single-post .pq-article-site-header {
        top: 46px;
    }
}
