/* ================= Trainings & Retreats Page ================= */

.training-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #07182f;
}

.training-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
}

.training-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 16, 36, 0.92), rgba(5, 16, 36, 0.62), rgba(68, 0, 103, 0.42)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 28%);
}

.training-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 90px 0;
}

.training-hero__eyebrow,
.training-section__eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    line-height: 1;
}

.training-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.training-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    font-weight: 700;
}

.training-hero__breadcrumb a {
    color: #ffffff;
}

.training-section {
    padding: 100px 0 115px;
    background:
        radial-gradient(circle at top left, rgba(68, 0, 103, 0.06), transparent 28%),
        #f4f6fb;
}

.training-section__head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.training-section__eyebrow {
    color: #440067;
    background: rgba(68, 0, 103, 0.08);
    border-color: rgba(68, 0, 103, 0.12);
}

.training-section__head h2 {
    margin: 0 0 14px;
    color: #00306e;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.08;
}

.training-section__head p {
    margin: 0;
    color: #5f6b7a;
    font-size: 17px;
    line-height: 1.7;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.training-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.training-card:hover {
    transform: translateY(-7px);
    border-color: rgba(68, 0, 103, 0.2);
    box-shadow: 0 28px 75px rgba(15, 23, 42, 0.14);
}

.training-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e8ecf4;
}

.training-card__image.has-gallery {
    touch-action: pan-y;
}

.training-card__slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.training-card__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    filter: brightness(0.78);
    transition: opacity 0.35s ease, transform 0.4s ease, filter 0.4s ease;
}

.training-card__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.training-card:hover .training-card__slide.is-active {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.training-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: none;
}

.training-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.training-card__badge.is-upcoming {
    background: #440067;
}

.training-card__badge.is-completed {
    background: #64748b;
}

.training-card__badge.is-type {
    background: rgba(15, 23, 42, 0.82);
}

/* Desktop gallery arrows */
.training-card__arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.training-card__arrow:hover {
    background: rgba(68, 0, 103, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.training-card__arrow--prev {
    left: 14px;
}

.training-card__arrow--next {
    right: 14px;
}

.training-card__image.has-gallery:hover .training-card__arrow,
.training-card__image.has-gallery:focus-within .training-card__arrow {
    opacity: 1;
    visibility: visible;
}

.training-card__image-count {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    padding: 7px 11px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.training-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.training-card__date {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.training-card__title {
    margin: 0 0 16px;
    color: #00306e;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.24;
}

.training-card__theme {
    margin: 0 0 18px;
    padding: 13px 15px;
    color: #440067;
    background: rgba(68, 0, 103, 0.07);
    border-left: 4px solid #440067;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.training-card__client {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #00306e;
    font-size: 15px;
    font-weight: 800;
}

.training-card__client svg {
    flex-shrink: 0;
}

.training-card__description {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}

.training-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 50px 28px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.training-empty h3 {
    margin-bottom: 10px;
    color: #00306e;
    font-weight: 900;
}

.training-empty p {
    margin: 0;
    color: #64748b;
}

/* Touch/mobile: hide arrows, use swipe instead */
@media (hover: none), (pointer: coarse) {
    .training-card__arrow {
        display: none;
    }

    .training-card__image.has-gallery {
        cursor: grab;
        touch-action: pan-y;
    }
}

@media (prefers-reduced-motion: reduce) {
    .training-card,
    .training-card__slide,
    .training-card__arrow {
        transition: none;
    }
}

@media (max-width: 1199px) {
    .training-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .training-hero {
        min-height: 360px;
    }

    .training-hero__content {
        padding: 70px 0;
    }

    .training-hero p {
        font-size: 16px;
    }

    .training-section {
        padding: 70px 0 85px;
    }

    .training-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .training-card__image {
        height: 220px;
    }

    .training-card__body {
        padding: 22px;
    }

    .training-card__title {
        font-size: 20px;
    }
}