/* ============================================================================
   KLAAS PUUL - WERKEN BIJ (CAREERS OVERVIEW) PAGE
   Mobile-first approach. Desktop breakpoint: 1024px.
   Fonts: "sofia-pro" (headings), "acumin-pro" (body)
   Primary: #0D1C38, Accent: #6BABD3, Light bg: #EBF1F8
   ============================================================================ */

/* ============================================================================
   VACATURE GRID SECTION
   Contains: search/filter, vacancy cards, load more
   ============================================================================ */
.kp-vacature-grid {
    background: #ffffff;
    padding: 64px 0 0 0;
    width: 100%;
}

/* Section title */
.kp-vacature-grid__title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 24px;
    line-height: 140%;
    font-weight: 400;
    margin: 0 0 40px 0;
    text-align: center;
}

/* ============================================================================
   SEARCH & FILTER
   Mobile: stacked column, full width
   Desktop: max-width 908px centered, row for dropdowns
   ============================================================================ */
.kp-vacature-grid__search {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto 40px auto;
    width: 100%;
}

/* Search input */
.kp-vacature-grid__search-input-wrap {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(13, 28, 56, 0.25);
    background: linear-gradient(to left, rgba(235, 241, 248, 0.5), rgba(235, 241, 248, 0.5)), #ffffff;
}
.kp-vacature-grid__search-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.6);
}
.kp-vacature-grid__search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #0d1c38;
    width: 100%;
    padding: 0;
}
.kp-vacature-grid__search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* Divider between search and filters */
.kp-vacature-grid__search-divider {
    border-top: 1px solid rgba(13, 28, 56, 0.15);
}

/* Filter dropdowns */
.kp-vacature-grid__filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kp-vacature-grid__select-wrap {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.kp-vacature-grid__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px;
    padding-right: 48px;
    border: 1px solid rgba(13, 28, 56, 0.25);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #000000;
    border-radius: 0;
    cursor: pointer;
    height: 56px;
}
.kp-vacature-grid__select-arrow {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    color: #0d1c38;
}

/* Search button — inside filters container */
.kp-vacature-grid__search-btn {
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================================
   VACANCY CARDS
   ============================================================================ */
.kp-vacature-grid__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kp-vacature-grid__card--hidden {
    display: none;
}
.kp-vacature-grid__card--filtered {
    display: none !important;
}

/* ============================================================================
   LOAD MORE
   ============================================================================ */
.kp-vacature-grid__load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(13, 28, 56, 0.25);
}
.kp-vacature-grid__load-more {
    justify-content: center;
}

/* ============================================================================
   VIDEO / MEDIA SECTION
   Dark bg, rotated images, play button, social links
   ============================================================================ */
.kp-video-media {
    background: #0d1c38;
    padding: 64px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.kp-video-media__inner {
    display: flex;
    flex-direction: column;
    gap: 92px;
    align-items: center;
}
.kp-video-media__title {
    color: #ffffff;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 40px;
    line-height: 120%;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* Decorative shapes (absolute positioned behind content) */
.kp-video-media__shapes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 648px;
    height: 648px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
}
.kp-video-media__shapes-top,
.kp-video-media__shapes-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.kp-video-media__shapes-top {
    transform: scaleY(-1);
}

/* Gallery with rotated images */
.kp-video-media__gallery {
    width: 100%;
    display: flex;
    justify-content: center;
}
.kp-video-media__content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    width: 436px;
    max-width: 100%;
}
.kp-video-media__side {
    flex-shrink: 0;
}
.kp-video-media__side--left {
    z-index: 1;
}
.kp-video-media__side--left .kp-video-media__side-img {
    width: 202px;
    height: 303px;
    object-fit: cover;
    transform: rotate(-10deg);
    transform-origin: bottom center;
}
.kp-video-media__side--right {
    z-index: 1;
}
.kp-video-media__side--right .kp-video-media__side-img {
    width: 202px;
    height: 303px;
    object-fit: cover;
    transform: rotate(10deg);
    transform-origin: bottom center;
}

/* Center video/image with play button */
.kp-video-media__center {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin: 0 -40px;
}
.kp-video-media__center-img {
    width: 224px;
    height: 337px;
    object-fit: cover;
    display: block;
}
.kp-video-media__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(196, 196, 196, 0.2);
    border: 1.54px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    text-decoration: none;
}
.kp-video-media__play:hover {
    background: rgba(196, 196, 196, 0.4);
}

/* Social media buttons */
.kp-video-media__socials {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.kp-video-media__social-btn {
    background: #6babd3;
    padding: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}
.kp-video-media__social-btn:hover {
    background: #5a9ac2;
}
.kp-video-media__social-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ============================================================================
   TEXT + IMAGE COMPONENT (Cultuur en waarden)
   Mobile: column, text above image
   Desktop: row, left text 640px, right image flex:1, gap 150px
   ============================================================================ */
.kp-text-image {
    background: #ffffff;
    padding: 64px 0;
    width: 100%;
}
.kp-text-image__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.kp-text-image__left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.kp-text-image__intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.kp-text-image__title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 40px;
    line-height: 120%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__text {
    color: #0d1c38;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 20px;
    line-height: 150%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.kp-text-image__item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kp-text-image__item-title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 24px;
    line-height: 140%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__item-text {
    color: #0d1c38;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    margin: 0;
}
.kp-text-image__divider {
    border-top: 1px solid rgba(13, 28, 56, 0.25);
}
.kp-text-image__right {
    width: 100%;
}
.kp-text-image__img {
    width: 100%;
    height: 214px;
    object-fit: cover;
    display: block;
}
.kp-text-image__placeholder {
    background: #c4c4c4;
    width: 100%;
    height: 214px;
}

/* ============================================================================
   IMAGE CAROUSEL (center-mode slider)
   Figma: bg #fff, padding 0 100px, gap 64px, height 683px slides
   ============================================================================ */
.kp-image-carousel {
    background: #ffffff;
    padding: 0;
    width: 100%;
}
.kp-image-carousel__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}
/* Owl overrides for center-mode */
.kp-image-carousel__slider.owl-carousel .owl-stage-outer {
    overflow: hidden;
}
.kp-image-carousel__slider.owl-carousel .owl-item {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.kp-image-carousel__slider.owl-carousel .owl-item.center {
    opacity: 1;
}
.kp-image-carousel__slide-image {
    width: 100%;
    background-color: #c4c4c4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.kp-image-carousel__slide-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    padding: 32px 32px 0 40px;
    height: 124px;
    display: flex;
    align-items: flex-start;
}
.kp-image-carousel__slide-title {
    color: #ffffff;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 24px;
    line-height: 140%;
    font-weight: 400;
    margin: 0;
}

/* Navigation arrows */
.kp-image-carousel__nav {
    display: flex;
    justify-content: center;
    height: 48px;
}
.kp-image-carousel__arrows {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.kp-image-carousel .kp-slider-arrow {
    background: #ffffff;
    border: 1px solid #0d1c38;
    border-radius: 50px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #0d1c38;
}
.kp-image-carousel .kp-slider-arrow:hover {
    background: #ebf1f8;
}
.kp-image-carousel .kp-slider-arrow__icon {
    width: 24px;
    height: 24px;
}

/* ============================================================================
   WERKEN BIJ — OVERRIDES FOR REUSED COMPONENTS
   Font sizes from Figma that differ from default component values
   ============================================================================ */

/* "Waarom werken bij" — mobile: title 48px, text 18px, item title 24px, grid gap 64px */
.page-template-page-werken-bij .kp-text-usp__grid {
    gap: 64px;
}
.page-template-page-werken-bij .kp-text-usp__title {
    font-size: 48px;
    line-height: 120%;
}
.page-template-page-werken-bij .kp-text-usp__text {
    font-size: 18px;
    line-height: 150%;
}
.page-template-page-werken-bij .kp-text-usp__item-title {
    font-size: 24px;
    line-height: 140%;
}

/* FAQ — mobile: title 48px, intro 18px, item title 24px */
.page-template-page-werken-bij .kp-accordion-rows__title {
    font-size: 48px;
    line-height: 120%;
}
.page-template-page-werken-bij .kp-accordion-rows__intro {
    font-size: 18px;
    line-height: 150%;
}
.page-template-page-werken-bij .kp-accordion-rows__item-title {
    font-size: 24px;
    line-height: 140%;
}

/* Contact CTA — mobile: title 40px, text 16px */
.page-template-page-werken-bij .kp-contact-cta__title {
    font-size: 40px;
    line-height: 120%;
}
.page-template-page-werken-bij .kp-contact-cta__text {
    font-size: 16px;
    line-height: 150%;
}

/* Vacancy cards on Werken Bij: show tags on mobile (stacked column) */
.page-template-page-werken-bij .kp-vacature-card__tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Social buttons mobile: Figma 34x33px */
.kp-video-media__social-btn {
    width: 34px;
    height: 33px;
}

/* Image carousel mobile: height 560px, border-radius 12px, padding */
.kp-image-carousel {
    padding: 40px 0 0 0;
}
.kp-image-carousel__slide-image {
    height: 560px;
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================================================
   DESKTOP STYLES (min-width: 1024px)
   ============================================================================ */
@media (min-width: 1024px) {

    /* Vacature grid */
    .kp-vacature-grid {
        padding: 80px 0 0 0;
    }
    .kp-vacature-grid__title {
        font-size: 48px;
        line-height: 120%;
    }

    /* Search area */
    .kp-vacature-grid__search {
        max-width: 908px;
    }
    .kp-vacature-grid__filters {
        flex-direction: row;
        gap: 8px;
    }
    .kp-vacature-grid__select-wrap {
        flex: 1;
    }
    .kp-vacature-grid__search-btn {
        width: auto;
    }

    /* Cards */
    .kp-vacature-grid__cards {
        gap: 24px;
        align-items: center;
    }

    /* Load more */
    .kp-vacature-grid__load-more-wrap {
        padding: 48px 0;
    }

    /* Text + Image component desktop */
    .kp-text-image {
        padding: 160px 0;
    }
    .kp-text-image__grid {
        flex-direction: row;
        gap: 150px;
    }
    .kp-text-image__left {
        width: 640px;
        flex-shrink: 0;
    }
    .kp-text-image__text {
        font-size: 20px;
    }
    .kp-text-image__right {
        flex: 1;
        align-self: stretch;
    }
    .kp-text-image__img {
        height: 100%;
        object-fit: cover;
    }
    .kp-text-image__placeholder {
        height: 100%;
    }

    /* Social buttons desktop: back to 40x40 */
    .kp-video-media__social-btn {
        width: 40px;
        height: 40px;
    }

    /* Vacancy card tags: row on desktop */
    .page-template-page-werken-bij .kp-vacature-card__tags {
        flex-direction: row;
    }

    /* Image carousel desktop */
    .kp-image-carousel {
        padding: 0;
    }
    .kp-image-carousel__inner {
        gap: 64px;
    }
    .kp-image-carousel__slide-image {
        height: 683px;
        border-radius: 0;
    }
    .kp-image-carousel__slide-title {
        font-size: 40px;
        line-height: 120%;
    }

    /* Reused component overrides — Figma desktop values */
    .page-template-page-werken-bij .kp-text-usp__title {
        font-size: 64px;
        line-height: 120%;
    }
    .page-template-page-werken-bij .kp-text-usp__text {
        font-size: 24px;
    }
    .page-template-page-werken-bij .kp-accordion-rows__title {
        font-size: 64px;
        line-height: 100%;
    }
    .page-template-page-werken-bij .kp-accordion-rows__intro {
        font-size: 24px;
    }
    .page-template-page-werken-bij .kp-accordion-rows__item-title {
        font-size: 32px;
        line-height: 130%;
    }
    .page-template-page-werken-bij .kp-contact-cta__title {
        font-size: 48px;
        line-height: 120%;
    }
    .page-template-page-werken-bij .kp-contact-cta__text {
        font-size: 20px;
    }

    /* Video/media section */
    .kp-video-media {
        padding: 160px 0;
    }
    .kp-video-media__title {
        font-size: 48px;
    }
    .kp-video-media__content {
        width: 739px;
    }
    .kp-video-media__side--left .kp-video-media__side-img {
        width: 308px;
        height: 462px;
        transform: rotate(-13.755deg);
    }
    .kp-video-media__side--right .kp-video-media__side-img {
        width: 342px;
        height: 513px;
        transform: rotate(10deg);
    }
    .kp-video-media__center {
        margin: 0 -60px;
    }
    .kp-video-media__center-img {
        width: 380px;
        height: 570px;
    }
}

/* ============================================================================
   MEDIUM DESKTOP (1025px - 1439px)
   ============================================================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
    .kp-video-media {
        padding: 80px 0;
    }
    .kp-video-media__content {
        width: 600px;
    }
    .kp-video-media__side--left .kp-video-media__side-img {
        width: 240px;
        height: 360px;
    }
    .kp-video-media__side--right .kp-video-media__side-img {
        width: 260px;
        height: 390px;
    }
    .kp-video-media__center-img {
        width: 280px;
        height: 420px;
    }
}
