/*
Theme Name: GoalKick Child
Theme URI: https://goalkick.qodeinteractive.com
Description: VVOG maatwerk op Goalkick Theme
Author: Dennis & Joost
Author URI: https://vvog.nl
Version: 1.0
Text Domain: goalkick
Template: goalkick
*/

/* =========================================================
   WordPress sidebar categorielinks
   ========================================================= */

ul.wp-block-categories span {
    color: var(--qode-main-color);
}

ul.wp-block-categories a {
    position: relative;
    display: flex;
    white-space: normal;
    margin: 0;
    overflow: hidden;
    transition: padding .33s ease-in-out;
}

ul.wp-block-categories a.active,
ul.wp-block-categories a:hover {
    padding-left: 13px;
}

ul.wp-block-categories a.active::before {
    content: "";
    position: absolute;
    top: calc(50% - 3px);
    height: 5px;
    width: 5px;
    left: 0;
    background: var(--qode-main-color);
    transition: left .33s ease-in-out, right .33s ease-in-out;
}

/* =========================================================
   Home — uitgelichte 2 nieuwsberichten naast elkaar, rest in 3 kolommen
   6-koloms basis: eerste 2 items span 3 (= 50%), overige span 2 (= 33%)
   ========================================================= */

@media screen and (min-width: 769px) {
    .qodef-blog.qodef-item-layout--simple-card.qodef-multi-span-grid > .qodef-grid-inner {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .qodef-blog.qodef-item-layout--simple-card.qodef-multi-span-grid > .qodef-grid-inner > article:nth-child(-n+2) {
        grid-column: span 3;
    }

    .qodef-blog.qodef-item-layout--simple-card.qodef-multi-span-grid > .qodef-grid-inner > article:nth-child(n+3) {
        grid-column: span 2;
    }
}

/* =========================================================
   Home — nieuwsgrid: verberg eerste 2 items (worden elders getoond)
   ========================================================= */

div#home-nieuws-lijst div.qodef-grid-inner article:nth-child(-n + 2) {
    display: none;
}

/* =========================================================
   GoalKick Sportspress — tabel padding
   ========================================================= */

body .qodef-sportspress table th {
    background-color: var(--qode-main-color) !important;
    color: #fff !important;
}

.qodef-sportspress-advanced-event-list.qodef-item-layout--type-1 .qodef-e-event-date {
    background-color: var(--qode-main-color) !important;
    color: #fff !important;
}

body .qodef-sportspress table.vvog tr td,
body .qodef-sportspress table.vvog tr th {
    word-wrap: normal !important;
    padding: 10px 10px !important;
}

body .qodef-sportspress table.vvog tr th:first-child {
    padding-left: 10px !important;
}

body .qodef-sportspress table:not(#wp-calendar) td,
body .qodef-sportspress table:not(#wp-calendar) th {
    padding: 15px !important;
}

.sp-league-table td.has-logo:not(:has(a)) .team-logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

body .qodef-sportspress table:not(#wp-calendar) th:last-child,
body .qodef-sportspress table:not(#wp-calendar) td:last-child {
    padding-left: 15px !important;
    padding-right: 30px !important;
}

/* =========================================================
   GoalKick — paginasidebar
   ========================================================= */

body aside#qodef-page-sidebar {
    margin-bottom: 0px;
}

/* =========================================================
   GoalKick — wissel menu layout (sidebar boven content op mobiel)
   ========================================================= */

@media screen and (max-width: 1200px) {
    body.wissel-menu .qodef-grid-inner { display: flex !important; flex-flow: column !important; }
    body.wissel-menu .qodef-page-sidebar-section { order: 1; }
    body.wissel-menu .qodef-page-content-section { order: 2; }
}

/* =========================================================
   GoalKick — sidebar spacing
   ========================================================= */

/* Op mobiel (wissel-menu) staat de sidebar boven de content.
   De margin-bottom van de sidebar-sectie en het menu-widget
   veroorzaken dan zichtbare witruimte boven de content. */
@media screen and (max-width: 1200px) {
    .qodef-page-sidebar-section {
        margin-bottom: 0 !important;
    }

    body.wissel-menu div.side-nav {
        margin-bottom: 0 !important;
    }

    body.wissel-menu div.side-nav .side-nav-head {
        margin-bottom: 0 !important;
    }
}

/* =========================================================
   GoalKick — zoekpagina heading-marge
   ========================================================= */

.qodef-e-search-heading {
    margin-bottom: 25px !important;
}

/* =========================================================
   GoalKick — zoekresultaten afbeeldingen
   ========================================================= */

.qodef-search-item .qodef-e-inner {
    gap: 20px;
}

/* =========================================================
   Zoekresultaten — team-icoon
   ========================================================= */

.vvog-search-teams-sectie {
    margin-bottom: 20px;
}

/* Type-label (Pagina / Teampagina) in dezelfde stijl als datum/categorie bij nieuws */
.qodef-search-item .qodef-e-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.qodef-search-item .vvog-search-type-label {
    font-size: 13px;
    color: var(--qode-main-color, #005d22);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qodef-search-item .qodef-e-excerpt {
    margin-top: 0 !important;
}

.qodef-search article .qodef-e-image.vvog-search-team-icon {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    height: 100px !important;
    align-self: flex-start !important;
    padding-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--qode-main-color, #005d22);
}

.qodef-search article .qodef-e-image.vvog-search-team-icon > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none;
}

.vvog-search-team-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
    stroke: #fff;
    display: block;
    flex-shrink: 0;
}

.qodef-search article .qodef-e-image {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    flex-shrink: 0 !important;
    padding-right: 0 !important;
    align-self: flex-start !important;
}

.qodef-search article .qodef-e-image a {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.qodef-search article .qodef-e-image img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    display: block;
}

/* =========================================================
   Single post: verberg H1 in header (paginatitel), behoud breadcrumbs
   ========================================================= */

.single-post .qodef-page-title .qodef-m-title {
    display: none;
}

/* =========================================================
   Single post: titel verkleind naar h2-formaat
   ========================================================= */

.single-post .qodef-blog.qodef--single .qodef-e-title {
    font-size: 64px;
    line-height: 0.90625em;
    letter-spacing: -0.045em;
}

@media only screen and (max-width: 680px) {
    .single-post .qodef-blog.qodef--single .qodef-e-title {
        font-size: 38px;
        line-height: 1em;
    }
}

/* =========================================================
   Single post: uitgelichte afbeelding boven de titel (GoalKick standaardpositie)
   ========================================================= */

.single-post .qodef-e-media-image a {
    display: block;
    cursor: zoom-in;
}

/* =========================================================
   GoalKick — zoekformulier knop
   ========================================================= */

.qodef-search-form-button.qodef--button-inside {
    flex-shrink: 0;
    box-sizing: border-box;
    height: 48px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    background-color: var(--qode-main-color, #005d22) !important;
    color: #fff !important;
    border: 1px solid var(--qode-main-color, #005d22) !important;
    border-radius: 0 !important;
}

.qodef-search-form-button.qodef--button-inside:hover {
    background-color: #004519 !important;
    border-color: #004519 !important;
}

.qodef-search-form-button.qodef--button-inside svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* SVG search icon uses fill — keep fill white, no stroke override */
.qodef-search-form-button.qodef--button-inside svg path {
    fill: #fff !important;
}

/* Voorpagina: parallax-contentholder overlapt klikbare elementen eronder.
   De h1 blijft zichtbaar voor zoekmachines, maar muisevents gaan er doorheen. */
.home .qodef-page-title .qodef-m-content {
    pointer-events: none;
}

/* Footer-badges (NIX18, KNVB, HB): marge weghalen */
#qodef-page-footer .widget_media_image {
    margin-bottom: 0;
}
