/*
 * Hero GOLDEN CARGO — chế độ BÁM SÁT.
 * Dùng dữ liệu Slideshow hiện có trong admin; không chứa ảnh hoặc nội dung hard-code.
 */

.gc-hero.wrap_slider {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #1c3655;
}

.gc-hero .slideshow,
.gc-hero__slider,
.gc-hero__slide {
    width: 100%;
    height: 400px;
}

.gc-hero__slide {
    position: relative;
    overflow: hidden;
    background: #1c3655;
}

.gc-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
}

.gc-hero__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(5, 22, 40, 0.18);
    pointer-events: none;
}

.gc-hero .gc-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gc-hero__copy-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.gc-hero__copy-container {
    padding-right: 50px;
    padding-left: 50px;
}

.gc-hero__copy {
    max-width: 760px;
    color: #ffffff;
    opacity: 0;
    transform: translate3d(120px, 0, 0);
}

.gc-hero .swiper-slide-active .gc-hero__copy {
    animation: gcHeroCopyFromRight 600ms cubic-bezier(0.22, 1, 0.36, 1) 600ms both;
}

.gc-hero__title {
    margin: 0;
    color: #ffffff;
    font-family: var(--project-font-heading);
    font-size: var(--project-font-size-hero-title);
    font-weight: var(--project-font-weight-medium);
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
}

.gc-hero__description {
    max-width: 720px;
    margin: 14px 0 0;
    color: #ffffff;
    font-family: var(--project-font-primary);
    font-size: 18px;
    font-weight: var(--project-font-weight-regular);
    line-height: 1.55;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
}

.gc-hero .control-slideshow {
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 64px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background: transparent;
    font-size: 22px;
    line-height: 64px;
    opacity: 0.68;
    transform: translateY(-50%);
    transition: opacity var(--project-transition);
}

.gc-hero:hover .control-slideshow {
    opacity: 0.68;
}

.gc-hero .control-slideshow:hover,
.gc-hero .control-slideshow:focus-visible {
    opacity: 1;
}

.gc-hero .control-slideshow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

.gc-hero .control-slideshow i {
    color: currentColor;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.gc-hero .prev-slideshow {
    left: 24px;
}

.gc-hero .next-slideshow {
    right: 24px;
}

@keyframes gcHeroCopyFromRight {
    from {
        opacity: 0;
        transform: translate3d(120px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1024px) {
    .gc-hero .slideshow,
    .gc-hero__slider,
    .gc-hero__slide {
        height: 360px;
    }

    .gc-hero__copy-container {
        padding-right: 42px;
        padding-left: 42px;
    }

    .gc-hero__copy {
        max-width: 660px;
    }

    .gc-hero__title {
        font-size: 28px;
    }

    .gc-hero__description {
        max-width: 620px;
        font-size: 16px;
    }

    .gc-hero .prev-slideshow {
        left: 10px;
    }

    .gc-hero .next-slideshow {
        right: 10px;
    }
}

@media (max-width: 575px) {
    .gc-hero .slideshow,
    .gc-hero__slider,
    .gc-hero__slide {
        height: 260px;
    }

    .gc-hero__media::after {
        background: rgba(5, 22, 40, 0.28);
    }

    .gc-hero__copy-container {
        padding-right: 48px;
        padding-left: 48px;
    }

    .gc-hero__copy {
        max-width: 100%;
    }

    .gc-hero__title {
        font-size: 22px;
        line-height: 1.3;
    }

    .gc-hero__description {
        display: -webkit-box;
        margin-top: 8px;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .gc-hero .control-slideshow {
        width: 36px;
        height: 52px;
        font-size: 18px;
        line-height: 52px;
    }

    .gc-hero .prev-slideshow {
        left: 4px;
    }

    .gc-hero .next-slideshow {
        right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-hero .swiper-slide-active .gc-hero__copy {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
