/* =====================================================================
   CIBOR — Getuigenissen (experiences): список + окремий відгук
   ---------------------------------------------------------------------
   Розмітку дає плагін cibor-experiences (templates/archive.php,
   assets/experiences.css): вузький контейнер 1240px, центрований
   заголовок, прозора шапка поверх тексту. Тут — той самий вигляд, що
   на Referenties і Blog (css/blog-archive.css): синя шапка 60/80/50,
   контейнер 260/80/50, h1 56px з жовтим "D" зліва, вступ праворуч,
   картки в кольорах бренду. Внизу файлу — окрема сторінка відгуку.
   Підключається на архіві та single experience
   (functions.php), після experiences.css плагіна.
   ===================================================================== */

/* ── Шапка: синя, як на .page ───────────────────────────────────────── */
.post-type-archive-experience .header-top {
    background-color: var(--blue) !important;
    padding: 60px 80px 50px 80px;
}
.post-type-archive-experience .header-top.header-croll-down,
.post-type-archive-experience .header-top.header-croll-up {
    background-color: transparent !important;
}

/* ── Контейнер: на всю ширину з відступами, як article на Referenties ── */
.post-type-archive-experience .cibor-exp-wrap {
    max-width: none;
    margin: 0;
    padding: 260px 80px 50px 80px;
}

/* ── Заголовок + вступ у дві колонки ────────────────────────────────── */
.post-type-archive-experience .cibor-exp-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 80px;
    align-items: start;
    max-width: none;
    margin: 0 0 60px;
    text-align: left;
}
/* kicker дублює h1 — ховаємо */
.post-type-archive-experience .cibor-exp-kicker { display: none; }
.post-type-archive-experience .cibor-exp-head h1 {
    position: relative;
    isolation: isolate;
    margin: 0;
    font-size: 56px;
    line-height: 1.3;
    font-weight: 700;
    color: #000000;
    text-wrap: balance;
}
/* жовте "D" зліва від заголовка (той самий svg, що на Referenties) */
.post-type-archive-experience .cibor-exp-head h1::before {
    content: "";
    position: absolute;
    left: -115px;
    top: -10px;
    z-index: -1;
    width: 140px;
    height: 90px;
    background: url(/wp-content/themes/blankslate/img/icon-left-tittle.svg) center / contain no-repeat;
}
/* плагін домальовує жовту риску під h1 — не потрібна */
.post-type-archive-experience .cibor-exp-head h1::after { display: none; }
.post-type-archive-experience .cibor-exp-intro {
    margin: 0;
    padding-top: 6px;
    font-size: 16px;
    line-height: 26px;
    color: #000000;
}

/* ── Сітка карток ───────────────────────────────────────────────────── */
.post-type-archive-experience .cibor-exp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ── Картка: кольори бренду, кути 2px, як референції ───────────────── */
.post-type-archive-experience .cibor-exp-card {
    border-radius: 2px;
    border: 1px solid #d9dde3;
    padding: 28px 26px 22px 30px;
    transition: transform .3s cubic-bezier(.16, .84, .44, 1), box-shadow .3s ease, border-color .3s ease;
}
/* жовта риска зліва — завжди видима (як на картках референцій) */
.post-type-archive-experience .cibor-exp-card::before {
    width: 4px;
    background: var(--geel);
    opacity: 1;
}
.post-type-archive-experience .cibor-exp-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}
.post-type-archive-experience .cibor-exp-card__quote {
    color: var(--geel);
}
.post-type-archive-experience .cibor-exp-card__title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #000000;
    transition: color .25s ease;
}
.post-type-archive-experience .cibor-exp-card:hover .cibor-exp-card__title { color: var(--blue); }
.post-type-archive-experience .cibor-exp-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}
.post-type-archive-experience .cibor-exp-card__meta {
    border-top-color: #e6e6e6;
}
.post-type-archive-experience .cibor-exp-card__date {
    font-size: 12px;
    letter-spacing: .04em;
    color: #8a8a8a;
}
.post-type-archive-experience .cibor-exp-card__arrow {
    color: var(--blue);
    font-weight: 700;
}

/* ── Пагінація: пігулки ─────────────────────────────────────────────── */
.post-type-archive-experience .cibor-exp-pagination ul { margin-top: 48px; gap: 10px; }
.post-type-archive-experience .cibor-exp-pagination a,
.post-type-archive-experience .cibor-exp-pagination span {
    min-width: 44px;
    height: 44px;
    border-radius: 40px;
    border-color: #d9dde3;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.post-type-archive-experience .cibor-exp-pagination .current,
.post-type-archive-experience .cibor-exp-pagination a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

/* ── Адаптив (ті самі точки, що в references-custom.css) ────────────── */
@media (max-width: 1100px) {
    .post-type-archive-experience .header-top {
        padding: 30px 30px 30px 30px;
    }
    .post-type-archive-experience .cibor-exp-wrap {
        padding: 180px 30px 50px 30px;
    }
    .post-type-archive-experience .cibor-exp-head {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 44px;
    }
    .post-type-archive-experience .cibor-exp-head h1 { font-size: 40px; }
    .post-type-archive-experience .cibor-exp-head h1::before {
        width: 54px;
        height: 68px;
        left: -70px;
        top: 0;
    }
    .post-type-archive-experience .cibor-exp-intro { padding-top: 0; }
}
@media (max-width: 900px) {
    .post-type-archive-experience .cibor-exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .post-type-archive-experience .cibor-exp-wrap {
        padding: 160px 30px 50px 30px;
    }
    .post-type-archive-experience .cibor-exp-head h1 { font-size: clamp(1.8rem, 0.6vw + 3.4vw, 6.3rem); }
    .post-type-archive-experience .cibor-exp-head h1::before {
        width: 64px;
        height: 58px;
        left: -50px;
    }
}
@media (max-width: 600px) {
    .post-type-archive-experience .cibor-exp-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .post-type-archive-experience .cibor-exp-card { transition: none; }
}

/* =====================================================================
   Окремий відгук (body.single-experience) — templates/single.php плагіна
   ---------------------------------------------------------------------
   Плагін малює вузьку білу картку (760px) з радіальним фоном і великими
   лапками. Тут: синя шапка, контейнер 260/80/50, дві колонки як на
   Referenties — зліва h1 з жовтим "D" і дата, справа текст відгуку з
   жовтою рискою; кнопка "Alle getuigenissen" — синя пігулка.
   ===================================================================== */

/* ── Шапка ──────────────────────────────────────────────────────────── */
.single-experience .header-top {
    background-color: var(--blue) !important;
    padding: 60px 80px 50px 80px;
}
.single-experience .header-top.header-croll-down,
.single-experience .header-top.header-croll-up {
    background-color: transparent !important;
}

/* ── Контейнер: без картки й фону, на всю ширину ───────────────────── */
.single-experience .cibor-exp-single {
    padding: 260px 80px 50px 80px;
    background: none;
}
.single-experience .cibor-exp-single__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
        "back  back"
        "title body"
        "date  body"
        "photo body"
        ".     bottom";
    gap: 0 80px;
    align-items: start;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
/* великі лапки плагіна — ховаємо, у тексті є свої */
.single-experience .cibor-exp-bigquote { display: none; }

/* ── Лінк "← Alle getuigenissen" зверху ─────────────────────────────── */
.single-experience .cibor-exp-back {
    grid-area: back;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    margin: 0 0 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue);
    text-decoration: none;
    transition: color .25s ease;
}
.single-experience .cibor-exp-back:hover { color: #000000; text-decoration: none; }

/* ── Заголовок з жовтим "D" + дата ──────────────────────────────────── */
.single-experience .cibor-exp-single__title {
    grid-area: title;
    position: relative;
    isolation: isolate;
    max-width: none;
    margin: 0 0 16px;
    font-size: clamp(30px, 1.2vw + 22px, 42px);
    line-height: 1.25;
    font-weight: 700;
    color: #000000;
    text-wrap: balance;
}
.single-experience .cibor-exp-single__title::before {
    content: "";
    position: absolute;
    left: -115px;
    top: -14px;
    z-index: -1;
    width: 140px;
    height: 90px;
    background: url(/wp-content/themes/blankslate/img/icon-left-tittle.svg) center / contain no-repeat;
}
.single-experience .cibor-exp-single__title::after { display: none; }
.single-experience .cibor-exp-single__date {
    grid-area: date;
    margin: 0 0 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.single-experience .cibor-exp-single__photo {
    grid-area: photo;
    margin: 0 0 28px;
}
.single-experience .cibor-exp-single__photo img { border-radius: 2px; }

/* ── Текст відгуку: цитата з жовтою рискою ──────────────────────────── */
.single-experience .cibor-exp-single__body {
    grid-area: body;
    padding: 6px 0 0 28px;
    border-left: 4px solid var(--geel);
    font-size: 18px;
    line-height: 1.7;
    color: #000000;
}
.single-experience .cibor-exp-single__body h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}
.single-experience .cibor-exp-single__body p { margin: 0 0 18px; }
.single-experience .cibor-exp-single__body p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #000000;
}

/* ── Кнопка "← Alle getuigenissen" знизу — синя пігулка ─────────────── */
.single-experience .cibor-exp-back--bottom {
    grid-area: bottom;
    justify-self: start;
    margin: 40px 0 0;
    padding: 15px 30px 15px 26px;
    border-radius: 40px;
    background: var(--blue);
    color: #ffffff;
    transition: background .3s ease, color .3s ease, transform .35s cubic-bezier(.16, .84, .44, 1);
}
.single-experience .cibor-exp-back--bottom:hover {
    background: var(--geel);
    color: var(--blue);
    transform: translateY(-2px);
}

/* ── Адаптив ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .single-experience .header-top { padding: 30px 30px 30px 30px; }
    .single-experience .cibor-exp-single { padding: 180px 30px 50px 30px; }
    .single-experience .cibor-exp-single__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "back"
            "title"
            "date"
            "photo"
            "body"
            "bottom";
        gap: 0;
    }
    .single-experience .cibor-exp-single__title::before {
        width: 54px;
        height: 68px;
        left: -70px;
        top: -6px;
    }
    .single-experience .cibor-exp-single__body { font-size: 17px; }
}
@media (max-width: 768px) {
    .single-experience .cibor-exp-single { padding: 160px 30px 50px 30px; }
    .single-experience .cibor-exp-single__title { font-size: clamp(1.6rem, 0.6vw + 3vw, 2.2rem); }
    .single-experience .cibor-exp-single__title::before {
        width: 64px;
        height: 58px;
        left: -50px;
    }
    .single-experience .cibor-exp-single__body { padding-left: 20px; font-size: 16px; }
    .single-experience .cibor-exp-back--bottom { width: 100%; justify-content: center; }
}
