/* Font chữ và reset khoảng hở mặc định cho toàn site. */
html,
body {
    margin: 0;
    overflow-x: clip;
    overflow-y: visible;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* Form gửi mail dùng chung: spinner xuất hiện trước chữ Sending... khi đang xử lý. */
[data-pql-mail-form][aria-busy="true"] button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: wait;
    opacity: .82;
}

[data-pql-mail-form][aria-busy="true"] button[type="submit"]::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pql-inquiry-spin .7s linear infinite;
}

@keyframes pql-inquiry-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    [data-pql-mail-form][aria-busy="true"] button[type="submit"]::before {
        animation: none;
    }
}

/* Turnstile form dùng chung: chiếm trọn hàng và co theo chiều rộng form. */
.pql-inquiry-turnstile {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

:root {
    --pql-shared-navy: #0d1b3e;
    --pql-shared-red: #c8102e;
    --pql-shared-red-dark: #a30d26;
    --pql-shared-ink: #1a2540;
    --pql-shared-muted: #5b6478;
    --pql-shared-line: #e5e8ef;
    --pql-shared-radius: 6px;
}

/* Header dùng chung cho toàn theme. */
.pql-shared-header,
.pql-shared-footer,
.pql-shared-header *,
.pql-shared-footer * {
    box-sizing: border-box;
}

.pql-shared-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #fff;
    border-bottom: 1px solid var(--pql-shared-line);
    transition: box-shadow .3s ease;
}

/* Header khi cuộn: thêm bóng nhẹ để tách khỏi nội dung. */
.pql-shared-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(13, 27, 62, .1);
}

.pql-shared-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--pql-section-gutter, clamp(24px, 2.85vw, 54px));
}

/* Breadcrumb dùng chung toàn site: thanh navy, nhấn đỏ, tự xuống dòng trên màn hình nhỏ. */
.pql-breadcrumb {
    width: 100%;
    background: var(--pql-shared-navy);
    color: rgba(255, 255, 255, .72);
    box-sizing: border-box;
}

.pql-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    min-height: 42px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pql-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pql-breadcrumb__item + .pql-breadcrumb__item::before {
    content: "›";
    flex: 0 0 auto;
    margin: 0 10px;
    color: var(--pql-shared-red);
    font-size: 1rem;
}

.pql-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color .2s ease;
}

.pql-breadcrumb a:hover {
    color: var(--pql-shared-red);
}

.pql-breadcrumb a:focus-visible {
    outline: 2px solid var(--pql-shared-red);
    outline-offset: 3px;
    border-radius: 2px;
}

.pql-breadcrumb__current {
    color: rgba(255, 255, 255, .74);
}

/* Wrapper full-bleed dùng chung cho mọi template trang (contact, ...): kéo tràn viewport, reset box + img. */
.pql-page {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: hidden;
    color: var(--pql-shared-ink);
    background: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

.pql-page *,
.pql-page *::before,
.pql-page *::after {
    box-sizing: border-box;
}

.pql-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.pql-shared-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.pql-shared-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    flex: 0 0 auto;
}

.pql-shared-logo img,
.pql-shared-logo .custom-logo {
    width: auto;
    max-width: 180px;
    max-height: 54px;
}

.pql-shared-logo-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pql-shared-navy);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pql-shared-logo-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid var(--pql-shared-red);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-40deg);
}

.pql-shared-logo-text b,
.pql-shared-logo-text span {
    display: block;
}

.pql-shared-logo-text b {
    color: var(--pql-shared-navy);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.1;
    text-transform: uppercase;
}

.pql-shared-logo-text span {
    color: var(--pql-shared-muted);
    font-size: .58rem;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.pql-shared-nav-links {
    flex: 1 1 auto;
}

/* Shell popup chỉ hiện trên iPad/mobile. */
.pql-shared-menu-panel-head,
.pql-shared-menu-close,
.pql-shared-menu-backdrop {
    display: none;
}

.pql-shared-menu,
.pql-shared-foot-menu,
.pql-shared-legal-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Menu desktop: khoảng cách tự giảm theo màn hình; iPad dùng layout riêng bên dưới. */
.pql-shared-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.1vw, 40px);
}

.pql-shared-menu a {
    color: var(--pql-shared-ink);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.pql-shared-menu a:hover,
.pql-shared-menu .current-menu-item > a,
.pql-shared-menu .current_page_item > a {
    color: var(--pql-shared-red);
}

/* Submenu dropdown cho menu chính. */
.pql-shared-menu li {
    position: relative;
}

.pql-shared-menu .menu-item-has-children > a::after {
    content: "\f107";
    margin-left: 7px;
    color: inherit;
    font-family: "Font Awesome 6 Free";
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.pql-shared-menu .menu-item-has-children.is-submenu-open > a::after {
    content: "\f106";
}

.pql-shared-menu .sub-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    border: 1px solid var(--pql-shared-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(13, 27, 62, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.pql-shared-menu li.is-submenu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pql-shared-menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--pql-shared-ink);
    white-space: nowrap;
}

.pql-shared-menu .sub-menu a:hover,
.pql-shared-menu .sub-menu .current-menu-item > a {
    background: #f6f7fa;
    color: var(--pql-shared-red);
}

.pql-shared-nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}

.pql-shared-search {
    color: var(--pql-shared-navy);
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
}

.pql-shared-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--pql-shared-radius);
    padding: 14px 26px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: .2s;
}

.pql-shared-btn-red {
    background: var(--pql-shared-red);
    color: #fff;
}

.pql-shared-btn-red:hover,
.pql-shared-btn-red:focus {
    background: var(--pql-shared-red-dark);
    color: #fff;
}

.pql-shared-menu-toggle {
    position: relative;
    z-index: 1003;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(13, 27, 62, .2);
    border-radius: 5px;
    background: #fff;
    color: var(--pql-shared-navy);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(13, 27, 62, .08);
}

.pql-shared-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .3s ease, opacity .2s ease, background .2s ease;
}

.pql-shared-header.is-open .pql-shared-menu-toggle {
    border-color: rgba(255, 255, 255, .32);
    background: var(--pql-shared-red);
    color: #fff;
    box-shadow: 0 6px 18px rgba(189, 0, 46, .25);
}

.pql-shared-header.is-open .pql-shared-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.pql-shared-header.is-open .pql-shared-menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.pql-shared-header.is-open .pql-shared-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Footer dùng chung cho toàn theme. */
.pql-shared-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--pql-shared-navy);
    color: #c4cbdd;
}

.pql-shared-foot-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
    gap: 38px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.pql-shared-footer .pql-shared-logo-text b {
    color: #fff;
}

.pql-shared-footer .pql-shared-logo-text span {
    color: #9aa4bd;
}

.pql-shared-foot-brand p {
    margin: 14px 0 0;
    color: #c4cbdd;
    font-size: .82rem;
    line-height: 1.55;
}

.pql-shared-foot-column h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pql-shared-foot-menu {
    display: grid;
    gap: 10px;
}

.pql-shared-foot-menu a,
.pql-shared-foot-contact a,
.pql-shared-legal-menu a {
    color: #c4cbdd;
    font-size: .83rem;
    text-decoration: none;
}

.pql-shared-foot-menu a:hover,
.pql-shared-foot-contact a:hover,
.pql-shared-legal-menu a:hover {
    color: #fff;
}

.pql-shared-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.pql-shared-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    font-size: 0;
    text-decoration: none;
}

.pql-shared-socials a::before {
    font-family: "Font Awesome 6 Brands";
    font-size: .9rem;
    font-weight: 400;
    line-height: 1;
}

.pql-shared-socials a[aria-label="LinkedIn"]::before {
    content: "\f0e1";
}

.pql-shared-socials a[aria-label="Facebook"]::before {
    content: "\f39e";
}

.pql-shared-socials a[aria-label="YouTube"]::before {
    content: "\f167";
}

.pql-shared-socials a:hover {
    border-color: var(--pql-shared-red);
    background: var(--pql-shared-red);
}

.pql-shared-foot-contact {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .83rem;
}

.pql-shared-foot-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pql-shared-foot-contact svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pql-shared-foot-cta {
    margin: 18px 0 0;
}

.pql-shared-foot-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
    color: #fff;
    font-size: .78rem;
}

.pql-shared-foot-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    right: var(--pql-section-gutter, clamp(24px, 2.85vw, 54px));
    left: var(--pql-section-gutter, clamp(24px, 2.85vw, 54px));
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.pql-shared-legal-menu {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.pql-shared-legal-menu li + li::before {
    content: "|";
    margin: 0 14px;
    color: rgba(255, 255, 255, .45);
}

/* Card sản phẩm WooCommerce dùng chung toàn site. */
ul.products li.product.pql-product-card {
    overflow: hidden;
    border: 1px solid var(--pql-shared-line);
    border-radius: var(--pql-shared-radius);
    background: #fff;
    box-shadow: none;
    list-style: none;
}

ul.products li.product.pql-product-card .pql-product-card__link {
    display: block;
    color: inherit;
    cursor: default;
    text-decoration: none;
}

ul.products li.product.pql-product-card .pql-product-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f6f7fa;
}

ul.products li.product.pql-product-card .pql-product-card__thumb img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

ul.products li.product.pql-product-card .pql-product-card__process {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 3px;
    padding: 5px 8px;
    background: var(--pql-shared-navy);
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

ul.products li.product.pql-product-card .pql-product-card__body {
    display: block;
    padding: 14px 16px 16px;
}

ul.products li.product.pql-product-card .pql-product-card__title {
    display: block;
    margin: 0;
    color: var(--pql-shared-navy);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.18;
}

ul.products li.product.pql-product-card .pql-product-card__desc {
    display: block;
    margin-top: 8px;
    color: var(--pql-shared-muted);
    font-size: .9rem;
    line-height: 1.38;
}

ul.products li.product.pql-product-card .pql-product-card__meta {
    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: var(--pql-shared-muted);
    font-size: .9rem;
}

ul.products li.product.pql-product-card .pql-product-card__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

ul.products li.product.pql-product-card .pql-product-card__meta i {
    color: var(--pql-shared-muted);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    /* Popup menu iPad/mobile: panel navy trượt dọc, backdrop tối và khóa cuộn trang. */
    body.pql-menu-open {
        position: fixed;
        right: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    .pql-shared-header {
        z-index: 1000;
    }

    .pql-shared-nav-right .pql-shared-btn {
        display: none;
    }

    .pql-shared-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .pql-shared-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(13, 27, 62, .84);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .35s ease, visibility .35s ease;
    }

    .pql-shared-nav-links {
        position: fixed;
        inset: 0;
        z-index: 1002;
        display: block;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        padding: 0 clamp(24px, 6vw, 64px) 48px;
        background: rgba(13, 27, 62, .84);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-100%);
        transition: transform .48s cubic-bezier(.22, 1, .36, 1), opacity .32s ease, visibility .48s ease;
    }

    .pql-shared-header.is-open .pql-shared-nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .pql-shared-header.is-open .pql-shared-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pql-shared-menu {
        display: grid;
        align-content: center;
        gap: 2px;
        width: min(100%, 560px);
        min-height: calc(100dvh - 104px);
        margin: 0 auto;
        padding: 8px 0 64px;
        text-align: center;
    }

    .pql-shared-menu > li > a {
        display: block;
        padding: 14px 4px;
        border: 0;
        color: #fff;
        font-size: clamp(1rem, 2.7vw, 1.3rem);
        font-weight: 800;
        text-transform: uppercase;
    }

    .pql-shared-menu a:hover,
    .pql-shared-menu a:focus-visible,
    .pql-shared-menu .current-menu-item > a,
    .pql-shared-menu .current_page_item > a {
        color: var(--pql-shared-red);
        outline: 0;
    }

    .pql-shared-menu .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0;
        padding: 4px 0 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .pql-shared-menu .is-submenu-open > .sub-menu {
        display: grid;
    }

    .pql-shared-menu .sub-menu a {
        display: block;
        padding: 11px 0;
        color: rgba(255, 255, 255, .78);
        white-space: normal;
    }

    .pql-shared-menu .sub-menu a:hover,
    .pql-shared-menu .sub-menu a:focus-visible,
    .pql-shared-menu .sub-menu .current-menu-item > a {
        background: transparent;
        color: var(--pql-shared-red);
    }

    .pql-shared-foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* iPad: thương hiệu một hàng riêng, các mục footer còn lại chia hai cột. */
    .pql-shared-foot-brand {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pql-shared-header,
    .pql-shared-nav-links,
    .pql-shared-menu-backdrop {
        transition: none !important;
        animation: none !important;
    }
}

/* ================= PROCESS DÙNG CHUNG HOME / SERVICES ================= */
.pql-shared-process {
    padding: 28px 0 22px;
    border-bottom: 1px solid var(--pql-shared-line);
    background: #fff;
}

.pql-shared-process__grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 5px;
    align-items: stretch;
}

.pql-shared-process__intro {
    padding-right: 28px;
    border-right: 1px solid var(--pql-shared-line);
}

.pql-shared-process__intro h2 {
    margin: 0;
    color: var(--pql-shared-navy);
    font-size: 1.5rem;
    line-height: 1.15;
}

.pql-shared-process__intro p {
    max-width: 220px;
    margin: 16px 0 0;
    color: var(--pql-shared-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.pql-shared-process__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    color: var(--pql-shared-red);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.pql-shared-process__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

/* Đường nối ngang giữa 5 số bước trên desktop. */
.pql-shared-process__steps::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--pql-shared-line);
}

.pql-shared-process__step {
    position: relative;
    padding: 0 18px 10px;
    text-align: center;
}

/* Số bước: chấm đỏ đứng yên, chỉ tỏa vòng đỏ theo nhịp. */
.pql-shared-process__number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0 auto;
    padding: 1px 0 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--pql-shared-red);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(200, 16, 46, .25);
    animation: pql-shared-process-ripple 1.8s ease-out infinite;
}

.pql-shared-process__step:nth-child(2) .pql-shared-process__number { animation-delay: .18s; }
.pql-shared-process__step:nth-child(3) .pql-shared-process__number { animation-delay: .36s; }
.pql-shared-process__step:nth-child(4) .pql-shared-process__number { animation-delay: .54s; }
.pql-shared-process__step:nth-child(5) .pql-shared-process__number { animation-delay: .72s; }

@keyframes pql-shared-process-ripple {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(200, 16, 46, .28), 0 0 0 0 rgba(200, 16, 46, .42);
    }
    70% {
        box-shadow: 0 0 0 1px rgba(200, 16, 46, .22), 0 0 0 10px rgba(200, 16, 46, 0);
    }
}

.pql-shared-process__step::after {
    content: "";
    position: absolute;
    top: 48px;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--pql-shared-line);
}

.pql-shared-process__step:last-child::after {
    display: none;
}

.pql-shared-process__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 10px;
    color: var(--pql-shared-navy);
}

.pql-shared-process__icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.pql-shared-process__step h3 {
    margin: 0;
    color: var(--pql-shared-navy);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.pql-shared-process__step p {
    margin: 8px auto 0;
    color: var(--pql-shared-muted);
    font-size: .8rem;
    line-height: 1.35;
}

@media (max-width: 1024px) {
    .pql-shared-process__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pql-shared-process__intro {
        padding-right: 0;
        border-right: 0;
        text-align: center;
    }

    .pql-shared-process__intro p {
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
    }

    .pql-shared-process__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }

    /* iPad/mobile: ẩn số và đường nối ngang; chỉ giữ icon + nội dung. */
    .pql-shared-process__steps::before,
    .pql-shared-process__number {
        display: none;
    }

    .pql-shared-process__icon {
        margin-top: 0;
    }

    .pql-shared-process__step:last-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pql-shared-process__number {
        animation: none;
    }
}

@media (max-width: 720px) {
    .pql-shared-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .pql-shared-nav {
        min-height: 64px;
    }

    /* Breadcrumb mobile: giảm cỡ chữ và khoảng ngăn, vẫn cho phép wrap. */
    .pql-breadcrumb__list {
        min-height: 38px;
        padding: 7px 0;
        font-size: .66rem;
        letter-spacing: .07em;
    }

    .pql-breadcrumb__item + .pql-breadcrumb__item::before {
        margin: 0 7px;
    }

    .pql-shared-nav-links {
        padding-right: 18px;
        padding-left: 18px;
    }

    .pql-shared-foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pql-shared-foot-brand {
        grid-column: 1 / -1;
    }

    /* Footer mobile: khóa hai hàng full ngang để nội dung căn giữa đồng nhất. */
    .pql-shared-foot-bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        justify-items: stretch;
        text-align: center;
    }

    .pql-shared-foot-bottom > span,
    .pql-shared-legal-menu {
        width: 100%;
    }

    .pql-shared-legal-menu {
        justify-content: center;
    }
}

/* Khả năng sản xuất: card quy trình và card nổi bật dùng chung một repeater ACF. */
.pql-shared-home-sections .caps {
    position: relative;
    padding: 54px 0 0;
    background: #fff;
}

.pql-shared-home-sections .caps-head {
    margin: 0 auto 28px;
    text-align: center;
}

.pql-shared-home-sections .caps .section-title {
    margin: 0;
    color: var(--pql-shared-navy);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.18;
}

.pql-shared-home-sections .caps .section-title::after {
    display: block;
    width: 42px;
    height: 3px;
    margin: 11px auto 0;
    background: var(--pql-shared-navy);
    content: "";
}

.pql-shared-home-sections .caps .section-sub {
    max-width: 640px;
    margin: 12px auto 0;
    color: var(--pql-shared-muted);
    font-size: .94rem;
    line-height: 1.5;
}

.pql-shared-home-sections .cap-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pql-shared-home-sections .cap-process-card {
    overflow: hidden;
    border: 1px solid #dde3ec;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(13, 42, 78, .06);
    transition: box-shadow .2s, transform .2s;
}

.pql-shared-home-sections .cap-process-card:hover {
    box-shadow: 0 12px 28px rgba(13, 42, 78, .12);
    transform: translateY(-3px);
}

.pql-shared-home-sections .cap-process-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.pql-shared-home-sections .cap-process-card__body {
    position: relative;
    min-height: 190px;
    padding: 22px 20px 18px;
}

.pql-shared-home-sections .cap-process-card--no-media .cap-process-card__body {
    padding-top: 50px;
}

.pql-shared-home-sections .cap-process-card--no-media .cap-process-card__number {
    top: 12px;
}

.pql-shared-home-sections .cap-process-card__number {
    position: absolute;
    top: -17px;
    left: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--pql-shared-navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.pql-shared-home-sections .cap-process-card h3,
.pql-shared-home-sections .cap-featured-card h3 {
    margin: 0;
    color: var(--pql-shared-navy);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
}

.pql-shared-home-sections .cap-process-card ul,
.pql-shared-home-sections .cap-featured-card ul {
    display: grid;
    gap: 5px;
    margin: 10px 0 16px;
    padding: 0;
    list-style: none;
}

.pql-shared-home-sections .cap-process-card li,
.pql-shared-home-sections .cap-featured-card li {
    position: relative;
    padding-left: 13px;
    color: #485468;
    font-size: .9rem;
    line-height: 1.35;
}

.pql-shared-home-sections .cap-process-card li::before {
    position: absolute;
    top: .52em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pql-shared-navy);
    content: "";
}

.pql-shared-home-sections .cap-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--pql-shared-navy);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-decoration: none;
}

.pql-shared-home-sections .cap-card-link:hover {
    color: #122452;
}

.pql-shared-home-sections .cap-card-link:focus-visible {
    outline: 2px solid var(--pql-shared-navy);
    outline-offset: 4px;
}

.pql-shared-home-sections .cap-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.pql-shared-home-sections .cap-featured-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 260px;
    background: #f3f7fa;
}

.pql-shared-home-sections .cap-featured-card:nth-child(even) {
    background: #f3f7fa;
}

.pql-shared-home-sections .cap-featured-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    width: 70%;
    min-width: 0;
    min-height: 260px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 16px 16px;
}

.pql-shared-home-sections .cap-featured-card--no-media .cap-featured-card__body {
    width: 100%;
}

/* Icon và nội dung card nổi bật luôn thẳng hàng; card không icon chỉ dùng một cột. */
.pql-shared-home-sections .cap-featured-card__head {
    display: grid;
    gap: 12px;
    align-items: center;
}

.pql-shared-home-sections .cap-featured-card__head:has(.cap-featured-card__icon-wrap) {
    grid-template-columns: 70px minmax(0, 1fr);
}

.pql-shared-home-sections .cap-featured-card__icon-wrap {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    flex: 0 0 70px;
    border-radius: 3px;
    background: var(--pql-shared-navy);
}

.pql-shared-home-sections .cap-featured-card__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Chữ nội dung card nổi bật tăng nhẹ để dễ đọc. */
.pql-shared-home-sections .cap-featured-card p {
    margin: 8px 0 0;
    color: #566174;
    font-size: .9rem;
    line-height: 1.45;
}

.pql-shared-home-sections .cap-featured-card li {
    padding-left: 18px;
}

.pql-shared-home-sections .cap-featured-card li::before {
    position: absolute;
    top: .05em;
    left: 0;
    color: var(--pql-shared-navy);
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.pql-shared-home-sections .cap-featured-card__media {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 50%;
}

.pql-shared-home-sections .cap-featured-card__media::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 60%;
    min-width: 88px;
    background: linear-gradient(90deg, #f3f7fa 0, rgba(243, 247, 250, .98) 12%, rgba(243, 247, 250, .9) 30%, rgba(243, 247, 250, .62) 58%, rgba(243, 247, 250, .22) 82%, transparent 100%);
    content: "";
    pointer-events: none;
}

.pql-shared-home-sections .cap-featured-card__image {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    object-position: center;
}

/* Ngành phục vụ. */
.pql-shared-home-sections .industries {
    padding: 3rem 0;
    border-top: 1px solid var(--pql-shared-line);
    border-bottom: 1px solid var(--pql-shared-line);
    background: #fff;
}

.pql-shared-home-sections .industries h2 {
    margin: 0;
    padding-bottom: 1rem;
    color: var(--pql-shared-navy);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

.pql-shared-home-sections .ind-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 14px;
}

.pql-shared-home-sections .ind-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 10px;
    border-right: 1px solid var(--pql-shared-line);
    color: var(--pql-shared-ink);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
}

.pql-shared-home-sections .ind-item:last-child {
    border-right: none;
}

.pql-shared-home-sections .ind-item svg,
.pql-shared-home-sections .ind-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    stroke: var(--pql-shared-navy);
}

/* Capabilities và Industries dùng chung: responsive cho tablet/mobile. */
@media (max-width: 1024px) {
    .pql-shared-home-sections .cap-featured-card__icon { width: 40px; height: 40px; }
    .pql-shared-home-sections .cap-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pql-shared-home-sections .cap-featured-grid { grid-template-columns: 1fr; gap: 20px; }
    .pql-shared-home-sections .cap-featured-card__body { width: 50%; }
    .pql-shared-home-sections .cap-featured-card__media { left: 48%; }
    .pql-shared-home-sections .cap-featured-card__media::before { display: block; inset: 0 -2px; width: 200px; min-width: 0; }
    .pql-shared-home-sections .ind-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .pql-shared-home-sections .ind-item { justify-content: flex-start; border-right: none; }
}

@media (max-width: 720px) {
    .pql-shared-home-sections .cap-process-grid { grid-template-columns: 1fr; }
    .pql-shared-home-sections .cap-featured-card { display: flex; min-height: 0; flex-direction: column; }
    .pql-shared-home-sections .cap-featured-card__body,
    .pql-shared-home-sections .cap-featured-card--no-media .cap-featured-card__body { width: 100%; min-height: 0; order: 1; }
    .pql-shared-home-sections .cap-featured-card__media { position: relative; inset: auto; width: 100%; min-height: 220px; order: 2; }
    .pql-shared-home-sections .cap-featured-card__media::before { display: none; }
    .pql-shared-home-sections .cap-featured-card__image { width: 100%; min-height: 220px; }
    .pql-shared-home-sections .ind-grid { grid-template-columns: repeat(2, 1fr); }
}
