/* ── Over ons page (page-over-ons.php) ─────────────────────────────────────
   The page body is made of blocks. Each block gets one of these classes via
   Block settings → Geavanceerd → "Extra CSS-klasse(n)":
     gk-about-intro   group  – "Over Game Kast" intro (first paragraph: gk-lead)
     gk-hosts         group  – wraps the host cards
     gk-host          group  – one host card, containing:
       gk-host__side  group  – dark panel: portrait (Image block) + gk-host__name + gk-host__role
       gk-host__bio   group  – the host's paragraphs
     gk-about-cta     group  – "Luister mee" block (links paragraph: gk-about-cta__links)
   ───────────────────────────────────────────────────────────────────────── */

/* Classic themes wrap group contents in an extra div; let grid/flex see the real children. */
.gk-about .wp-block-group > .wp-block-group__inner-container {
    display: contents;
}

/* Homepage section (front-page.php): keep the heading clear of the fixed menu bar
   when jumping to /#over-ons from the menu. */
#over-ons {
    scroll-margin-top: 5rem;
}
/* WordPress marks a "/#over-ons" menu link as current on the homepage; don't underline it as active. */
header.main-header > .inner-header .navigation .menu-main-menu-container ul li.current-menu-item > a[href*="#"]:not(:hover) {
    border-bottom-color: transparent;
}

/* Section headings — same treatment as the theme's section titles */
.gk-about h2.wp-block-heading {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 2rem;
    padding: 0 0 1.1rem;
    color: #0f0e1a;
    position: relative;
}
.gk-about h2.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    height: 3px;
    background: rgb(181, 23, 239);
    border-radius: 2px;
}

/* ── Intro ── */
.gk-about-intro {
    margin: 1.5rem 0 4rem;
}
.gk-about .gk-about-intro p {
    max-width: 760px;
    margin: 0 0 1.1rem;
    color: rgba(15, 14, 26, 0.75);
    line-height: 1.8;
}
.gk-about .gk-about-intro p.gk-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #0f0e1a;
}

/* ── Host cards ── */
.gk-hosts {
    margin: 0 0 4rem;
}
.gk-host {
    display: grid;
    grid-template-columns: 1fr;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.07);
    margin: 0 0 1.5rem;
    transition: box-shadow 0.25s ease;
}
.gk-host:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

/* Dark panel with the host's portrait (cut-out PNG/WebP with transparent background works best)
   standing on its bottom edge; name and role sit on top of the photo. */
.gk-host__side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.3rem;
    min-height: 440px;
    padding: 1.5rem;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(181, 23, 239, 0.2) 0%, transparent 60%),
        linear-gradient(to bottom, rgb(12, 8, 24) 0%, rgb(20, 14, 38) 100%);
    border-bottom: 3px solid rgb(181, 23, 239);
}
.gk-host__side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(181, 23, 239, 0.05) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(181, 23, 239, 0.05) 40px);
    pointer-events: none;
}
/* The portrait: the Image block in gk-host__side, filling the panel below a little headroom.
   Phones: whole portrait visible; desktop (see media query): fills the panel. */
.gk-host__side .wp-block-image {
    position: absolute;
    inset: 1.25rem 0 0;
    z-index: 1;
    margin: 0;
}
.gk-host__side .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
/* darken the bottom so the name stays readable over the photo */
.gk-host__side::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    z-index: 1;
    background: linear-gradient(to top, rgba(12, 8, 24, 0.95) 0%, rgba(12, 8, 24, 0.6) 40%, transparent 100%);
    pointer-events: none;
}
.gk-about .gk-host__name,
.gk-about .gk-host__role {
    position: relative;
    z-index: 2;
}
.gk-about .gk-host__name {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: white;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.gk-about .gk-host__role {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(181, 23, 239);
}

.gk-host__bio {
    padding: 1.5rem;
}
.gk-about .gk-host__bio p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(15, 14, 26, 0.75);
}
.gk-about .gk-host__bio p:last-child {
    margin-bottom: 0;
}

/* ── "Luister mee" call to action ── */
.gk-about-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0 0 2rem;
    padding: 3rem 1.5rem;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(181, 23, 239, 0.14) 0%, transparent 55%),
        linear-gradient(to bottom, rgb(12, 8, 24) 0%, rgb(20, 14, 38) 100%);
}
.gk-about-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(181, 23, 239, 0.05) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(181, 23, 239, 0.05) 40px);
    pointer-events: none;
}
.gk-about-cta .wp-block-heading,
.gk-about-cta p {
    position: relative;
}
.gk-about .gk-about-cta h2.wp-block-heading {
    color: white;
}
.gk-about .gk-about-cta h2.wp-block-heading::after {
    left: 50%;
    transform: translateX(-50%);
}
.gk-about .gk-about-cta p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    max-width: 560px;
}
.gk-about .gk-about-cta p.gk-about-cta__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: none;
    margin-top: 1.75rem;
}
.gk-about .gk-about-cta__links a {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.25s ease;
}
.gk-about .gk-about-cta__links a:hover {
    background: rgba(181, 23, 239, 0.25);
    border-color: rgba(181, 23, 239, 0.7);
    color: white;
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    /* same size as the theme's section titles ("Laatste afleveringen") on desktop */
    .gk-about h2.wp-block-heading {
        font-size: 46px;
    }
}

@media (min-width: 768px) {
    .gk-host {
        grid-template-columns: 240px 1fr;
    }
    .gk-host__side {
        min-height: 400px;
        padding: 1.75rem;
        border-bottom: 0;
        border-right: 3px solid rgb(181, 23, 239);
    }
    .gk-host__side .wp-block-image img {
        object-fit: cover;
        object-position: center top;
    }
    .gk-host__bio {
        padding: 2rem 2.25rem;
    }
}
