/* Home Case Studies + Events — Figma nodes 21069:16970 / 21069:17017 */

/* ---------- Case Studies ---------- */
.home-cs-block {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 50px;
    color: #ffffff;
}

.home-cs-block__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
}

.home-cs-block__header {
    display: flex;
    align-items: flex-start;
    gap: 55px;
    margin: 0 0 100px;
    overflow: visible;
}

.home-cs-block__eyebrow {
    margin: 0;
    flex: 0 0 auto;
    width: 130px;
    font-family: "Nohemi", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.6px;
    color: #ffffff;
    white-space: nowrap;
}

.home-cs-block__title {
    margin: 0;
    flex: 1 1 auto;
    max-width: 842px;
    font-family: "Nohemi", sans-serif;
    font-size: 50px;
    font-weight: 300;
    line-height: 65px;
    letter-spacing: 1.5px;
    color: #ffffff;
    overflow: visible;
}

.home-cs-block__title p {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.home-cs-block__title s,
.home-cs-block__title strike,
.home-cs-block__title del {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: none;
}

.home-cs-block__grid {
    display: flex;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 0 0 70px;
}

.home-cs-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 25px;
    background: #1d1d1d;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-cs-card:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 51, 255, 0.12);
}

.home-cs-card__media {
    position: relative;
    width: 100%;
    height: 192px;
    overflow: hidden;
    border-radius: 15px;
    background: #0a0a0a;
}

.home-cs-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.home-cs-card__body {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.home-cs-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.home-cs-card__eyebrow {
    margin: 0;
    font-family: "Nohemi", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.42px;
    color: #ffffff;
    opacity: 0.6;
    white-space: nowrap;
}

.home-cs-card__duration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    font-family: "Nohemi", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.42px;
    color: #ffffff;
    white-space: pre;
}

.home-cs-card__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.home-cs-card__title {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0.75px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.home-cs-card__desc {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.42px;
    color: #ffffff;
    opacity: 0.6;
}

.home-cs-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 116px;
    height: 55px;
    padding: 22px 20px;
    border-radius: 10px;
    background: #0033ff;
    font-family: "Nohemi", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.45px;
    color: #ffffff;
    text-align: center;
}

/* ---------- Events ---------- */
.home-events-block {
    box-sizing: border-box;
    width: 100%;
    margin: 150px 0 0;
    padding: 0;
    color: #ffffff;
}

.home-events-block__shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    min-height: 831px;
    margin: 0 auto;
    padding: 80px 50px 60px;
    border-radius: 30px;
    background: #000000;
    overflow: visible;
}

.home-events-block__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    max-width: 1270px;
    margin: 0 auto 120px;
    overflow: visible;
}

.home-events-block__heading {
    display: flex;
    align-items: flex-start;
    gap: 55px;
    min-width: 0;
}

.home-events-block__eyebrow {
    margin: 0;
    flex: 0 0 auto;
    width: 130px;
    font-family: "Nohemi", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.6px;
    color: #ffffff;
}

.home-events-block__title {
    margin: 0;
    max-width: 720px;
    font-family: "Nohemi", sans-serif;
    font-size: 50px;
    font-weight: 300;
    line-height: 65px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.home-events-block__title p {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.home-events-dropdown {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    width: 340px;
    max-width: 100%;
    overflow: visible;
}

.home-events-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    box-sizing: border-box;
    width: 248px;
    max-width: 100%;
    height: 55px;
    margin: 0;
    padding: 15px 20px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: #ffffff;
    cursor: pointer;
}

.home-events-dropdown__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Nohemi", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.45px;
    color: #ffffff;
    white-space: nowrap;
    text-align: left;
}

.home-events-dropdown__chevron {
    display: block;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.home-events-dropdown.is-open .home-events-dropdown__chevron {
    transform: rotate(-90deg);
}

.home-events-dropdown__panel {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    left: auto;
    z-index: 5;
    box-sizing: border-box;
    width: 340px;
    max-width: 100%;
    padding: 30px 20px 20px;
    border: 0;
    border-radius: 10px;
    background: #222222;
}

.home-events-dropdown__panel::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 25px;
    width: 28px;
    height: 10px;
    background: #222222;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.home-events-dropdown__groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    max-width: 100%;
}

.home-events-dropdown__group {
    display: flex;
    flex-direction: column;
    gap: 27px;
    width: 100%;
}

.home-events-dropdown__group-label {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 10px;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.5;
}

.home-events-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.home-events-dropdown__divider {
    width: 100%;
    height: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-events-dropdown__option {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: "Nohemi", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.6px;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
}

.home-events-dropdown__option.is-active,
.home-events-dropdown__option:hover {
    background: #0033ff;
}

.home-events-block__panels {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.home-events-panel {
    display: none;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
}

.home-events-panel.is-active {
    display: flex;
}

.home-events-panel__copy {
    display: flex;
    flex: 0 0 440px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 60px;
    width: 440px;
    max-width: 100%;
    color: #ffffff;
}

.home-events-panel__name {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 50px;
    letter-spacing: 1.2px;
    color: #ffffff;
}

.home-events-panel__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
}

.home-events-panel__subtitle {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.66px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.home-events-panel__desc {
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 15px;
    font-weight: 200;
    line-height: 25px;
    letter-spacing: 0.45px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.home-events-panel__desc p {
    margin: 0 0 25px;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.home-events-panel__desc p:last-child {
    margin-bottom: 0;
}

.home-events-panel__media {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 710px;
    width: 710px;
    max-width: 100%;
    height: 470px;
    overflow: hidden;
    border-radius: 40px;
    background: #101010;
}

.home-events-panel__slides {
    position: absolute;
    inset: 0;
}

.home-events-panel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-events-panel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.home-events-panel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

.home-events-panel__fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 40px;
    background: linear-gradient(to bottom, rgba(16, 16, 16, 0) 35%, #101010 100%);
    pointer-events: none;
}

.home-events-panel__nav {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(-50%);
}

.home-events-panel__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 1px solid #0033ff;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.home-events-panel__nav-btn img {
    display: block;
    width: 24px;
    height: 24px;
}

.home-events-panel__nav-btn:not(.home-events-panel__nav-btn--next) img {
    transform: scaleX(-1);
}

.home-events-panel__counter {
    font-family: "Nohemi", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 0.45px;
    color: #ffffff;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
    .home-cs-block__grid {
        margin-left: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .home-cs-card {
        flex: 1 1 320px;
    }

    .home-events-block__shell {
        padding: 70px 40px 50px;
    }

    .home-events-panel {
        flex-wrap: wrap;
    }

    .home-events-panel__copy,
    .home-events-panel__media {
        flex: 1 1 100%;
        width: 100%;
    }

    .home-events-panel__media {
        height: auto;
        aspect-ratio: 710 / 470;
    }
}

@media (max-width: 991px) {
    .home-cs-block {
        padding: 0 20px;
    }

    .home-cs-block__header,
    .home-events-block__heading,
    .home-events-block__header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .home-cs-block__eyebrow,
    .home-events-block__eyebrow {
        width: auto;
    }

    .home-cs-block__title,
    .home-events-block__title {
        font-size: 32px;
        line-height: 42px;
        letter-spacing: 0.96px;
    }

    .home-cs-block__grid {
        flex-direction: column;
        gap: 20px;
    }

    .home-cs-card {
        width: 100%;
    }

    .home-events-block {
        margin-top: 80px;
    }

    .home-events-block__shell {
        min-height: 0;
        padding: 40px 20px;
        border-radius: 20px;
    }

    .home-events-dropdown,
    .home-events-dropdown__panel {
        width: 100%;
    }

    .home-events-dropdown__trigger {
        width: 100%;
        margin-left: 0;
    }

    .home-events-panel {
        gap: 30px;
    }

    .home-events-panel__copy {
        gap: 30px;
    }

    .home-events-panel__name {
        font-size: 28px;
        line-height: 36px;
    }

    .home-events-panel__media {
        border-radius: 24px;
    }

    .home-events-panel__slide img,
    .home-events-panel__fade {
        border-radius: 24px;
    }
}
