/* =====================================================
   Ứng dụng và khách hàng — Logo KH 1 hàng chạy từ trái sang phải (fb 4.docx item 14)
   ===================================================== */

.pc-logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 28px;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

.pc-logo-marquee:hover .pc-logo-marquee-track {
    animation-play-state: paused;
}

.pc-logo-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: pjCustomerMarqueeLTR 40s linear infinite;
    will-change: transform;
}

.pc-logo-marquee-track .pc-customer {
    flex: 0 0 180px;
    width: 180px;
    min-height: 92px !important;
    height: 92px;
    padding: 14px 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    box-shadow: 0 3px 16px rgba(0, 41, 87, 0.04);
}

.pc-logo-marquee-track .pc-client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pc-logo-marquee-track .pc-client-logo img {
    max-height: 54px !important;
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

/* Chạy từ phải sang trái đồng nhất với trang chủ */
@keyframes pjCustomerMarqueeLTR {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .pc-logo-marquee-track {
        gap: 12px;
    }
    .pc-logo-marquee-track .pc-customer {
        flex: 0 0 140px;
        width: 140px;
        min-height: 74px !important;
        height: 74px;
        padding: 10px 14px;
    }
    .pc-logo-marquee-track .pc-client-logo img {
        max-height: 44px !important;
        max-width: 110px !important;
    }
}

/* =====================================================
   Case Study thực tế (fb 4.docx items 15, 16, 17)
   ===================================================== */
.pj-case-studies-section {
    background: #f5f8fd;
    border-top: 1px solid #e4ecf7;
    padding-block: 52px !important;
}

.pj-cases-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.pj-cases-header h2 {
    margin: 0;
}
.pj-cases-header h2 em {
    color: #f50087;
    font-style: normal;
}

.pj-cases-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pj-case-tab {
    border: 1px solid #d7e2f1;
    background: #ffffff;
    color: #1c3154;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.pj-case-tab:hover {
    border-color: #f50087;
    color: #f50087;
}
.pj-case-tab.is-active {
    background: #001c3d;
    border-color: #001c3d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 28, 61, 0.2);
}

.pj-cases-stage {
    position: relative;
    overflow: hidden;
    display: grid;
}

.pj-case-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateX(32px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
    z-index: 1;
}
.pj-case-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
.pj-case-slide.is-prev {
    opacity: 0;
    transform: translateX(-32px);
}

/* ── Layout 2 cột giống mẫu ảnh khách gửi ── */
.pj-case-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 52px);
}

.pj-case-figure {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0f1d36;
    box-shadow: 0 14px 36px rgba(7, 27, 61, 0.12);
}
.pj-case-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.pj-case-figure figcaption {
    padding: 13px 20px;
    background: #0f1d36;
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.4;
}

.pj-case-content {
    min-width: 0;
}

.pj-case-company {
    display: block;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b11960;
    margin-bottom: 10px;
}

.pj-case-content h3.pj-case-title {
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 850 !important;
    color: #0f1d36;
    line-height: 1.15 !important;
    margin: 0 0 22px !important;
    letter-spacing: -0.03em !important;
}
.pj-case-title em {
    color: #b11960;
    font-style: normal;
}

.pj-case-rows {
    margin-bottom: 24px;
}
.pj-case-row {
    padding: 14px 0;
    border-bottom: 1px solid #dbe4f0;
}
.pj-case-row:first-child {
    padding-top: 0;
}
.pj-case-row h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f1d36;
    margin: 0 0 5px;
}
.pj-case-row p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #425473;
}
.pj-case-row strong {
    color: #0f1d36;
    font-weight: 700;
}

.pj-case-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.pj-case-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 8px;
    background: #a9185a;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.pj-case-cta:hover {
    background: #f50087;
    transform: translateY(-1px);
}

.pj-cases-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.pj-case-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d5e0ef;
    background: #ffffff;
    color: #001c3d;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.pj-case-arrow:hover {
    border-color: #f50087;
    background: #f50087;
    color: #ffffff;
}
.pj-cases-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}
.pj-case-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: #c7d4e6;
    cursor: pointer;
    padding: 0;
    transition: width .25s, background .25s;
}
.pj-case-dot.is-active {
    width: 24px;
    border-radius: 5px;
    background: #f50087;
}

@media (max-width: 960px) {
    .pj-case-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
@media (max-width: 640px) {
    .pj-case-studies-section {
        padding-block: 36px !important;
    }
    .pj-case-cta {
        width: 100%;
    }
}
