/* ==========================================================================
   Over Kinderplezier — Page-specific styles
   Shared components loaded from shared.css.
   ========================================================================== */

/* ---------- Page title (centered, above the hero) --------------------- */
.kpo-page-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    color: var(--color-text);
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px var(--kp-pageheader-pad-x) 0;
}
.kpo-page-title + .kpo-hero {
    padding-top: 24px;
}
@media (max-width: 1024px) {
    .kpo-page-title { font-size: 38px; padding: 40px 32px 0; }
}

/* ---------- Hero — photo left, text right ------------------------------ */
.kpo-hero {
    display: flex;
    align-items: flex-start;   /* don't stretch the image column to the text height */
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 60px;
}

.kpo-hero__image {
    flex: 0 0 50%;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.kpo-hero__image img {
    width: 100%;
    height: auto;           /* keep the image in proportion (no stretch/crop) */
    display: block;
}

.kpo-hero__text {
    flex: 1;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text);
    line-height: 32px;
}

.kpo-hero__text p {
    margin: 0 0 20px;
}

.kpo-hero__text p:last-child {
    margin-bottom: 0;
}

.kpo-hero__text strong {
    font-weight: 700;
}

@media (max-width: 767px) {
    .kpo-hero {
        flex-direction: column;
        padding: 32px 16px;
        gap: 24px;
    }
    .kpo-hero__image {
        width: 100%;
        height: 280px;
        border-radius: 12px;
    }
    .kpo-hero__text { font-size: 16px; line-height: 28px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kpo-hero { padding: 40px 32px; gap: 32px; }
    .kpo-hero__image { flex: 0 0 55%; }
}


/* ---------- Het Pakket ------------------------------------------------- */
.kpo-pakket {
    text-align: center;
    padding: 0 60px 64px;
}

.kpo-pakket__inner {
    max-width: 900px;
    margin: 0 auto 48px;
}

.kpo-pakket h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 44px;
    color: var(--color-text);
    margin: 0 0 24px;
}

.kpo-pakket__inner p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text);
    line-height: 32px;
    margin: 0 0 32px;
}

.kpo-pakket__inner a:not(.kph-cta-btn) {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Bookshelf uses shared .kph-bookshelf__* classes from shared.css */

@media (max-width: 767px) {
    .kpo-pakket { padding: 0 16px 40px; }
    .kpo-pakket h2 { font-size: 32px; }
    .kpo-pakket__inner p { font-size: 16px; line-height: 28px; }
}


/* How it works + reviews + merken use shared classes from shared.css */


/* ==========================================================================
   Sociaal article body (kpo-article) — long-form content pages that reuse the
   over-kinderplezier shell (Leergeld / Kinderboekenweek / Sintvoorieder1 and
   the /sociaal overview). Readable text column; the reviews/merken blocks below
   stay full-width. This file loads on BOTH the desktop and mobile shells, so the
   max-width:1024px block covers mobile too.
   ========================================================================== */
.kpo-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 32px 8px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    color: var(--color-text);
}
.kpo-article > h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 46px;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 32px;
}
.kpo-article h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.2;
    margin: 40px 0 12px;
}
.kpo-article p { margin: 0 0 20px; }
.kpo-article ul { margin: 0 0 20px; padding-left: 1.4em; }
.kpo-article li { margin: 0 0 8px; }
.kpo-article .wp-block-image { margin: 24px 0 28px; }
.kpo-article .wp-block-image img {
    border-radius: var(--radius-card);
    width: 100%;
    height: auto;
    display: block;
}

/* /sociaal overview teasers */
.kpo-sociaal__teaser {
    margin: 0 0 32px;
    padding: 28px 32px;
    background: #f4efe4;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-card);
}
.kpo-sociaal__teaser h2 { margin-top: 0; }
.kpo-sociaal__teaser p:last-of-type { margin-bottom: 16px; }
/* The teaser "Lees meer" links reuse .kph-cta-btn but must NOT be the big
   call-to-action size (32px / 10px 40px). Scope down to a normal inline
   button here only — the real CTA on pakket/home pages is untouched. Higher
   specificity (0,2,0) also beats the shared 767px width:100% rule, so it
   stays inline on mobile too. */
.kpo-sociaal__teaser .kph-cta-btn {
    font-size: 17px;
    padding: 8px 22px;
    width: auto;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .kpo-article { padding: 32px 20px 8px; font-size: 17px; line-height: 28px; }
    .kpo-article > h1 { font-size: 34px; }
    .kpo-article h2 { font-size: 24px; margin: 30px 0 10px; }
    .kpo-sociaal__teaser { padding: 22px 20px; }
}
