/* =====================================================
   Hero Heading Slider & Running Logos (fb 4.docx items 2 & 3)
   Hiển thị ảnh banner sang bên phải và fade/blur liền mạch vào nền #001c3d
   giống các trang sản phẩm (.pp-hero-art::after).
   Click trực tiếp vào ảnh để chuyển sang trang sản phẩm chi tiết.
   ===================================================== */

/* ── Hero Container ── */
.pj-home-refresh .pj-vi-hero,
.pj-home-vi .pj-vi-hero {
    position: relative;
    background: #001c3d !important;
    background-image: none !important;
    overflow: hidden;
    padding-bottom: 0 !important;
}

/* Grid 2 cột giống .pp-hero-layout của các trang sản phẩm */
.pj-home-refresh .pj-vi-hero-grid,
.pj-home-vi .pj-vi-hero-grid {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: 32px !important;
    min-height: 520px !important;
    padding-block: 36px !important;
}

.pj-home-refresh .pj-vi-hero-copy,
.pj-home-vi .pj-vi-hero-copy {
    position: relative;
    z-index: 3;
    padding-top: 0 !important;
    min-width: 0;
}

/* Ẩn form tư vấn và art cũ nếu còn sót */
.pj-home-refresh .pj-hero-form,
.pj-home-vi .pj-hero-form,
.pj-home-refresh .pj-vi-hero-art,
.pj-home-vi .pj-vi-hero-art {
    display: none !important;
}

/* ── Right Side Product Banner Slider (Giống .pp-hero-art) ── */
.pj-hero-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -32px;
    width: 62%;
    z-index: 1;
    display: flex;
    align-items: stretch;
}

.pj-hero-slides-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #001c3d;
}

/* Lớp fade/blur ở mép trái và mép phải hòa vào nền #001c3d giống trang sản phẩm */
.pj-hero-slides-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #001c3d 0%, transparent 28%, transparent 94%, #001c3d 100%);
    pointer-events: none;
    z-index: 3;
}

.pj-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s ease;
    display: block;
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
}
.pj-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.pj-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .45s ease;
}
.pj-hero-slide:hover img {
    transform: scale(1.015);
}

/* ── Controls (Arrows & Dots) gọn ở góc dưới phải ── */
.pj-hero-slider-footer {
    position: absolute;
    bottom: 16px;
    right: 48px;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}

.pj-hero-slider-controls {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 18, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 999px;
}

.pj-hero-arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 0;
    transition: background .2s, color .2s;
}
.pj-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.pj-hero-dots-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}
.pj-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: width .25s, background .25s;
}
.pj-hero-dot.is-active {
    width: 18px;
    border-radius: 4px;
    background: #f50087;
}

/* ── Running Logos Marquee Section (Section riêng nền trắng, nhỏ gọn, chỉ hiện logo) ── */
.pj-logos-marquee-section {
    background: #ffffff;
    border-bottom: 1px solid #e6edf5;
    padding: 12px 0 !important;
    overflow: hidden;
    width: 100%;
}
.pj-hero-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.pj-hero-marquee:hover .pj-hero-marquee-track {
    animation-play-state: paused;
}
.pj-hero-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: pjMarqueeLoop 32s linear infinite;
    will-change: transform;
}
.pj-marquee-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    white-space: nowrap;
    padding: 0 4px;
    flex-shrink: 0;
}
.pj-marquee-logo-img {
    height: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    max-width: 110px !important;
    object-fit: contain !important;
    display: block;
}

@keyframes pjMarqueeLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Tablet & Mobile ── */
@media (max-width: 1199px) {
    .pj-home-refresh .pj-vi-hero-grid,
    .pj-home-vi .pj-vi-hero-grid {
        min-height: 460px !important;
    }
    .pj-hero-slider {
        right: 0;
        width: 58%;
    }
    .pj-hero-slider-footer {
        right: 20px;
    }
}

@media (max-width: 920px) {
    .pj-home-refresh .pj-vi-hero-grid,
    .pj-home-vi .pj-vi-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-block: 28px 0 !important;
        min-height: auto !important;
    }
    .pj-hero-slider {
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        width: calc(100% + 32px);
        margin-inline: -16px;
        display: block;
    }
    .pj-hero-slides-stage {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .pj-hero-slides-stage::after {
        background: linear-gradient(180deg, #001c3d 0%, transparent 24%);
    }
    .pj-hero-slider-footer {
        right: 16px;
        bottom: 12px;
    }
    .pj-hero-marquee-track {
        gap: 32px;
    }
    .pj-marquee-logo-img {
        height: 26px !important;
        max-height: 26px !important;
        max-width: 90px !important;
    }
}

/* ── Nút "Xem giải pháp" trong HỆ SINH THÁI GIẢI PHÁP PRINTJET (giống trang Solutions) ── */
.pj-home-refresh .pj-ecosystem-card {
    display: flex !important;
    flex-direction: column;
    overflow: visible !important;
}
.pj-home-refresh .pj-ecosystem-card:has(.sv-product-dropdown[open]) {
    z-index: 20;
}
.pj-home-refresh .pj-ecosystem-card .pj-card-copy {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
}
.pj-eco-actions {
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
}
.pj-eco-actions .button,
.pj-eco-actions .sv-product-dropdown > summary {
    padding: 8px 14px;
    font-size: 13.5px;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pj-eco-actions .sv-product-dropdown {
    position: relative;
    width: 100%;
}
.pj-eco-actions .sv-product-dropdown > summary {
    list-style: none;
    cursor: pointer;
}
.pj-eco-actions .sv-product-dropdown > summary::-webkit-details-marker {
    display: none;
}
.pj-eco-actions .sv-product-dropdown[open] > summary span {
    transform: rotate(180deg);
}
.pj-eco-actions .sv-product-options {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    width: min(300px, calc(100vw - 48px));
    margin: 8px 0 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e2e8f1;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(8, 36, 84, 0.16);
    max-height: 300px;
    overflow-y: auto;
}
.pj-eco-actions .sv-product-options li + li {
    border-top: 1px solid #dce5f0;
}
.pj-eco-actions .sv-product-options a {
    display: block;
    padding: 10px 12px;
    color: #082454;
    font-size: 13.5px;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 4px;
}
.pj-eco-actions .sv-product-options a:hover {
    background: #fff0f8;
    color: #bd0068;
}
