/* Slider 01 Widget */

.hp-slider01 {
    --col-height: 420px;
    --col-gap: 20px;
    --col1-duration: 18s;
    --col2-duration: 22s;
    --col3-duration: 20s;
    --logos-duration: 28s;

    width: 100%;
    position: relative;
    overflow: hidden;
}

.hp-slider01__header {
    margin-bottom: 20px;
}

.hp-slider01__title {
    margin: 0 0 6px 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.hp-slider01__subtitle {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.hp-slider01__bg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--col-gap);
    height: var(--col-height);
    align-items: stretch;
}

.hp-slider01__col {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hp-slider01__track {
    display: flex;
    flex-direction: column;
    gap: var(--col-gap);
    animation: hp-slider01-scroll-down var(--duration) linear infinite;
    will-change: transform;
}

.hp-slider01__col[data-direction="up"] .hp-slider01__track {
    animation-name: hp-slider01-scroll-up;
}

.hp-slider01__slide {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    aspect-ratio: 16 / 9;
}

.hp-slider01__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes hp-slider01-scroll-down {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(0%);
    }
}

@keyframes hp-slider01-scroll-up {
    from {
        transform: translateY(0%);
    }
    to {
        transform: translateY(-50%);
    }
}

.hp-slider01__logos {
    margin-top: 18px;
    overflow: hidden;
}

.hp-slider01__logos-track {
    display: flex;
    gap: 40px;
    align-items: center;
    animation: hp-slider01-marquee var(--logos-duration) linear infinite;
    will-change: transform;
}

.hp-slider01__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
}

.hp-slider01__logo img {
    max-height: 42px;
    max-width: 140px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.8;
}

@keyframes hp-slider01-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .hp-slider01__bg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hp-slider01__bg {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hp-slider01__col {
        height: 320px;
    }

    .hp-slider01__track {
        animation-duration: 18s;
    }
}

/* Slider 02 */
.hp-slider02 {
    position: relative;
    width: 100%;
    height: var(--slider02-height, 620px);
    min-height: var(--slider02-height, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 18px;
}

.hp-slider02__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.hp-slider02__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hp-slider02__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hp-slider02__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hp-slider02__media {
    position: absolute;
    inset: 0;
}

.hp-slider02__image,
.hp-slider02__video,
.hp-slider02__iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hp-slider02__iframe {
    border: 0;
}

.hp-slider02__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 16, 24, 0.72) 0%, rgba(12, 16, 24, 0.35) 55%, rgba(12, 16, 24, 0.15) 100%);
}

.hp-slider02__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 80px 72px;
    color: #ffffff;
}

.hp-slider02__eyebrow {
    margin: 0 0 14px 0;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.hp-slider02__title {
    margin: 0 0 24px 0;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
}

.hp-slider02__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.hp-slider02__cta:hover {
    background: #ffffff;
    color: #0b0f1a;
}

.hp-slider02__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(11, 15, 26, 0.45);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s ease;
}

.hp-slider02__nav:hover {
    background: #ffffff;
    color: #0b0f1a;
}

.hp-slider02__nav--prev {
    left: 20px;
}

.hp-slider02__nav--next {
    right: 20px;
}

.hp-slider02__dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hp-slider02__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hp-slider02__dot.is-active {
    background: #ffffff;
}

@media (max-width: 1024px) {
    .hp-slider02__content {
        padding: 64px 48px;
    }

    .hp-slider02__title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .hp-slider02 {
        height: 420px;
        min-height: 420px;
    }

    .hp-slider02__nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .hp-slider02__content {
        padding: 48px 32px;
    }

    .hp-slider02__title {
        font-size: 28px;
    }
}
