.starpath-events {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
}

.starpath-events-archive {
    padding: 80px 0;
}

body.single-starpath_event,
body.post-type-archive-starpath_event {
    overflow-x: hidden;
}

.starpath-event-hero {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    min-height: 520px;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #5d5d5d;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.starpath-event-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.46);
}

.starpath-event-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 120px 30px 80px;
    color: #fff;
}

.starpath-event-hero-status {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    margin-bottom: 22px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #d2232a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.starpath-event-hero h1 {
    max-width: 1000px;
    margin: 0 0 160px;
    color: #fff;
    font-size: clamp(48px, 7vw, 112px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

.starpath-event-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.starpath-event-breadcrumb a {
    color: #fff;
}

.starpath-event-single {
    position: relative;
    z-index: 2;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-top: -34px;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 70px 15px;
    border-radius: 50px 50px 0 0;
    background: #fff;
}

.starpath-event-single-inner {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
}

.starpath-event-address {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 34px;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.starpath-event-address-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: rgba(210, 35, 42, 0.1);
    color: #d2232a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.starpath-event-address-icon svg {
    width: 22px;
    height: 22px;
}

.starpath-event-detail-content {
    width: 100%;
    color: #333;
    font-size: 18px;
    line-height: 1.75;
}

.starpath-event-detail-content > *:first-child {
    margin-top: 0;
}

.starpath-event-detail-content > *:last-child {
    margin-bottom: 0;
}

.starpath-event-media {
    margin-top: 70px;
    padding-top: 48px;
    border-top: 1px solid #e8e8e8;
}

.starpath-event-media-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.starpath-event-media-heading h2 {
    margin: 0;
    color: #111;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.starpath-event-media-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.starpath-event-media-tabs button {
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #111;
    min-height: 38px;
    padding: 8px 22px;
    font-weight: 800;
    cursor: pointer;
}

.starpath-event-media-tabs button.is-active {
    border-color: #d2232a;
    background: #d2232a;
    color: #fff;
}

.starpath-event-media-panel {
    display: none;
}

.starpath-event-media-panel.is-active {
    display: block;
}

.starpath-event-media-carousel {
    position: relative;
}

.starpath-event-media-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(360px, 1fr);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.starpath-event-media-strip::-webkit-scrollbar {
    display: none;
}

.starpath-event-media-strip img,
.starpath-event-video-card {
    width: 100%;
    height: 360px;
    border-radius: 18px;
    object-fit: cover;
    scroll-snap-align: start;
}

.starpath-event-media-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #d2232a;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: 0 12px 28px rgba(210, 35, 42, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.starpath-event-media-arrow:hover,
.starpath-event-media-arrow:focus {
    background: #b8161d;
    color: #fff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 16px 32px rgba(210, 35, 42, 0.26);
}

.starpath-event-media-prev {
    left: -23px;
}

.starpath-event-media-next {
    right: -23px;
}

.starpath-event-video-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.starpath-event-video-card img,
.starpath-event-video-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.starpath-event-video-placeholder {
    background: linear-gradient(135deg, #d2232a, #1d2758);
}

.starpath-event-video-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.52));
}

.starpath-event-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #d2232a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.starpath-event-video-card strong {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 22px;
    z-index: 2;
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
}

.starpath-event-nav {
    width: 100%;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    overflow: hidden;
}

.starpath-event-nav > div {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.starpath-event-nav > div + div {
    border-left: 1px solid #e8e8e8;
}

.starpath-event-nav a {
    color: #111;
}

.starpath-event-card {
    position: relative;
    display: block;
    min-height: 310px;
    overflow: hidden;
    border-radius: 18px;
    background: #171717;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
}

.starpath-event-card img,
.starpath-event-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.starpath-event-card img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.starpath-event-placeholder {
    background: linear-gradient(135deg, #d2232a, #1d2758);
}

.starpath-event-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.08)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
}

.starpath-event-card:hover img {
    transform: scale(1.06);
}

.starpath-event-content {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 32px;
}

.starpath-event-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #d2232a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.starpath-event-content strong {
    display: block;
    max-width: 760px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.starpath-event-excerpt {
    display: block;
    max-width: 650px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.55;
}

.starpath-event-featured {
    min-height: 430px;
    border-radius: 24px;
}

.starpath-event-featured .starpath-event-content {
    padding: 48px;
}

.starpath-event-featured .starpath-event-content strong {
    font-size: clamp(40px, 5vw, 72px);
    max-width: 900px;
}

.starpath-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.starpath-events-grid .starpath-event-card {
    min-height: 330px;
}

.starpath-events-grid .starpath-event-content strong {
    font-size: 25px;
}

@media (max-width: 991px) {
    .starpath-events {
        width: min(100% - 30px, 1320px);
    }

    .starpath-event-hero {
        min-height: 430px;
    }

    .starpath-event-hero h1 {
        margin-bottom: 100px;
    }

    .starpath-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .starpath-event-media-strip {
        grid-auto-columns: minmax(300px, 70vw);
    }

    .starpath-event-media-arrow {
        width: 44px;
        height: 44px;
        font-size: 24px;
        line-height: 44px;
    }
}

@media (max-width: 575px) {
    .starpath-events {
        width: min(100% - 24px, 1320px);
    }

    .starpath-event-hero {
        min-height: 360px;
    }

    .starpath-event-hero-content {
        padding: 100px 20px 64px;
    }

    .starpath-event-hero h1 {
        margin-bottom: 70px;
        font-size: 48px;
    }

    .starpath-event-single {
        padding: 40px 15px;
        border-radius: 30px 30px 0 0;
    }

    .starpath-event-single-inner {
        width: min(100% - 24px, 1320px);
    }

    .starpath-event-detail-content {
        font-size: 16px;
    }

    .starpath-event-address {
        align-items: flex-start;
        font-size: 16px;
        margin-bottom: 26px;
    }

    .starpath-event-media {
        margin-top: 46px;
        padding-top: 34px;
    }

    .starpath-event-media-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .starpath-event-media-heading h2 {
        font-size: 40px;
    }

    .starpath-event-media-strip {
        grid-auto-columns: 100%;
        gap: 16px;
    }

    .starpath-event-media-strip img,
    .starpath-event-video-card {
        height: 280px;
        border-radius: 14px;
    }

    .starpath-event-media-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
        line-height: 40px;
    }

    .starpath-event-media-prev {
        left: 8px;
    }

    .starpath-event-media-next {
        right: 8px;
    }

    .starpath-event-nav {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .starpath-event-nav > div + div {
        border-left: 0;
        border-top: 1px solid #e8e8e8;
    }

    .starpath-event-card,
    .starpath-event-featured,
    .starpath-events-grid .starpath-event-card {
        min-height: 300px;
        border-radius: 18px;
    }

    .starpath-event-content,
    .starpath-event-featured .starpath-event-content {
        padding: 24px;
    }

    .starpath-event-featured .starpath-event-content strong,
    .starpath-event-content strong,
    .starpath-events-grid .starpath-event-content strong {
        font-size: 28px;
    }

    .starpath-events-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
    }
}
