.home-videos-section {
    padding: 56px 0 64px;
    background: #fff;
    color: #18222d;
}

.home-videos-section .section-title {
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.4;
}

.home-video-feature-media,
.home-video-dialog-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #17232a;
}

.home-video-feature-media {
    border-radius: 8px;
    box-shadow: 0 5px 20px #18222d16;
}

.home-video-play,
.home-video-card-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.home-video-feature-play {
    height: 100%;
}

.home-video-play[hidden] {
    display: none;
}

.home-videos-section img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    color: #e8952e;
    box-shadow: 0 2px 10px #0002;
    pointer-events: none;
}

.home-video-play-icon::after {
    content: "";
    margin-left: 5px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid currentColor;
}

.home-video-feature .home-video-play-icon {
    width: 92px;
    height: 92px;
    border: 2px solid #fffc;
    background: #17232a22;
    color: #fff;
}

.home-video-feature .home-video-play-icon::after {
    border-top-width: 19px;
    border-bottom-width: 19px;
    border-left-width: 29px;
}

.home-video-feature-copy {
    margin-top: 18px;
}

.home-video-feature-copy h3,
.home-video-dialog-copy h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.home-video-feature-copy p,
.home-video-dialog-copy p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #687480;
    line-height: 1.7;
}

.home-videos-more-title {
    margin: 40px 0 24px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
}

.home-videos-carousel {
    position: relative;
}

.home-videos-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 2px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-videos-track::-webkit-scrollbar {
    display: none;
}

.home-video-card {
    flex: 0 0 calc((100% - 60px) / 4);
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 12px #18222d12;
    scroll-snap-align: start;
}

.home-video-card-button {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-video-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-video-card-copy {
    display: block;
    width: 100%;
    padding: 16px 18px 18px;
}

.home-video-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.home-video-card-description {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #83909d;
    font-size: .9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.home-videos-navigation {
    position: absolute;
    inset: 6px -24px 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.home-videos-navigation[hidden] {
    display: none;
}

.home-videos-arrow {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid #18222d0d;
    border-radius: 50%;
    background: #fff;
    color: #b8690f;
    box-shadow: 0 4px 18px #18222d1a, 0 1px 4px #18222d0a;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.home-videos-arrow svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

@media (hover: hover) {
    .home-videos-arrow:hover {
        border-color: #e8952e;
        background: #e8952e;
        color: #fff;
        box-shadow: 0 6px 22px #e8952e40;
    }
}

.home-video-play:focus-visible,
.home-video-card-button:focus-visible,
.home-videos-arrow:focus-visible {
    outline: 3px solid #e8952e;
    outline-offset: -3px;
}

.home-videos-arrow:focus-visible {
    outline-offset: 4px;
}

.home-video-dialog {
    position: fixed;
    width: min(1000px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #18222d;
}

.home-video-dialog::backdrop {
    background: #101820dd;
}

.home-video-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #17232acc;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.home-video-dialog-copy {
    padding: 20px 24px;
}

.home-videos-section iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

html:has(.home-video-dialog[open]) {
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .home-videos-navigation { left: -12px; right: -12px; }
}

@media (max-width: 991.98px) {
    .home-video-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 575.98px) {
    .home-videos-section { padding: 40px 0; }
    .home-videos-section .section-title { font-size: 1.4rem; }
    .home-videos-more-title { font-size: 1.4rem; margin-top: 28px; }
    .home-videos-navigation { left: -4px; right: -4px; }
    .home-videos-arrow { flex-basis: 40px; width: 40px; height: 40px; }
    .home-videos-arrow svg { width: 22px; height: 22px; }
    .home-video-card { flex-basis: 82%; }
    .home-video-feature .home-video-play-icon { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-videos-arrow { transition: none; }
}
