/* Giao diện riêng của trang chủ xe tiện chuyến Ninh Bình. */
.pql-xeghep-home {
    color: #1d2732;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

.pql-xeghep-home a {
    color: inherit;
}

.pql-xeghep-home__article {
    margin: 0;
}

.pql-xeghep-home__hero {
    overflow: hidden;
    width: 100%;
    background: #e8f6fb;
}

.pql-xeghep-home__hero-image {
    display: block;
    width: 100%;
    height: 100%;

}

.pql-xeghep-home__main {
    padding-top: 28px;
    padding-bottom: 0;
}

.pql-xeghep-home__title {
    margin: 0 0 22px;
    color: var(--pql-xeghep-navy);
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.12;
    text-align: center;
}

.pql-xeghep-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.pql-xeghep-service-card {
    display: grid;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    grid-template-rows: auto 82px;
    border: 1px solid var(--pql-xeghep-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--pql-xeghep-shadow);
}

.pql-xeghep-service-card__media {
    display: grid;
    aspect-ratio: 3 / 2;
    place-items: center;
    overflow: hidden;
    background: #eefaff;
}

.pql-xeghep-service-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pql-xeghep-service-card__body {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.pql-xeghep-service-card h2 {
    min-width: 0;
    margin: 0;
    color: var(--pql-xeghep-navy);
    font-size: 1.25rem;
    line-height: 1.2;
}

.pql-xeghep-service-card a {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 17px;
    background: var(--pql-xeghep-red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.pql-xeghep-service-card a:hover {
    background: #087ea4;
}

.pql-xeghep-service-card a:focus-visible,
.pql-xeghep-post-card__link:focus-visible,
.pql-xeghep-hotline-panel a:focus-visible {
    outline: 3px solid var(--pql-xeghep-yellow);
    outline-offset: 3px;
}

.pql-xeghep-section-card {
    margin: 24px 0;
    border: 1px solid var(--pql-xeghep-line);
    border-radius: 16px;
    padding: clamp(22px, 4vw, 38px);
    background: #fff;
    box-shadow: var(--pql-xeghep-shadow);
}

.pql-xeghep-section-card h2 {
    margin: 0 0 14px;
    color: var(--pql-xeghep-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.25;
}

.pql-xeghep-section-card h3 {
    margin: 25px 0 12px;
    color: #087ea4;
    font-size: 1.18rem;
    line-height: 1.35;
}

.pql-xeghep-section-card h3 small {
    font-size: .85em;
}

.pql-xeghep-section-card h4 {
    margin: 20px 0 10px;
    color: #202a34;
    font-size: 1.05rem;
}

.pql-xeghep-section-card p {
    margin: 10px 0;
}

.pql-xeghep-lead {
    margin: -2px 0 22px !important;
    color: #30363b;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

/* Ảnh ACF mở đầu bảng giá hiển thị đầy đủ, không crop trên mọi kích thước màn hình. */
.pql-xeghep-pricing__media {
    margin: calc(clamp(22px, 4vw, 38px) * -1) calc(clamp(22px, 4vw, 38px) * -1) 28px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.pql-xeghep-pricing__media picture,
.pql-xeghep-pricing__media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tiêu đề bảng giá căn giữa đồng nhất trên desktop và mobile. */
.pql-xeghep-pricing > h2 {
    text-align: center;
}

/* Thông điệp và kết luận nội dung dịch vụ lấy từ ACF Home. */
.pql-xeghep-services__tagline,
.pql-xeghep-services__closing {
    font-weight: 700;
    text-align: center;
}

.pql-xeghep-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.pql-xeghep-price-table {
    width: 100%;
    min-width: 540px;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: .94rem;
}

.pql-xeghep-price-table th,
.pql-xeghep-price-table td {
    border: 1px solid #c9dfea;
    padding: 11px 13px;
    text-align: left;
}

.pql-xeghep-price-table th {
    background: var(--pql-xeghep-navy);
    color: #fff;
}

.pql-xeghep-price-table tbody tr:nth-child(even) {
    background: #f4fbfe;
}

.pql-xeghep-price-table td:last-child {
    color: #00a849;
    font-weight: 800;
    white-space: nowrap;
}

.pql-xeghep-notice {
    margin: 14px 0 !important;
    border-left: 4px solid #00b14f;
    border-radius: 6px;
    padding: 12px 14px;
    background: #e7f8ff;
    font-size: .9rem;
}

.pql-xeghep-divider {
    height: 1px;
    margin: 28px 0;
    background: #d5e9f1;
}

.pql-xeghep-feature-list {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    padding-left: 22px;
    list-style: disc;
}

.pql-xeghep-hotline-panel {
    margin: 24px 0;
    border-radius: 14px;
    padding: 23px;
    background: linear-gradient(135deg, var(--pql-xeghep-blue), var(--pql-xeghep-navy));
    color: #fff;
    box-shadow: var(--pql-xeghep-shadow);
    text-align: center;
}

.pql-xeghep-hotline-panel strong,
.pql-xeghep-hotline-panel a {
    color: var(--pql-xeghep-yellow);
}

.pql-xeghep-posts {
    margin-top: 34px;
}

.pql-xeghep-posts > h2 {
    margin: 0 0 10px;
    color: var(--pql-xeghep-navy);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    text-align: center;
}

/* Mô tả và kết luận trước slider bài viết lấy từ ACF Home. */
.pql-xeghep-posts__subtitle,
.pql-xeghep-posts__closing {
    margin: 8px auto;
    color: var(--pql-xeghep-navy);
    font-weight: 700;
    text-align: center;
}

.pql-xeghep-posts__closing {
    margin-bottom: 26px;
}

.pql-xeghep-posts__closing a {
    color: var(--pql-xeghep-red);
}

.pql-xeghep-posts__slider {
    position: relative;
}

.pql-xeghep-posts__controls button {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    transform: translateY(-50%);
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--pql-xeghep-navy);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(8, 126, 164, .3);
    transition: transform .18s ease, background .18s ease;
}

.pql-xeghep-posts__controls button:hover {
    transform: translateY(-50%) scale(1.08);
    background: var(--pql-xeghep-red);
}

.pql-xeghep-posts__controls button:first-child {
    left: -24px;
}

.pql-xeghep-posts__controls button:last-child {
    right: -24px;
}

.pql-xeghep-posts__controls button:focus-visible,
.pql-xeghep-posts__grid:focus-visible {
    outline: 3px solid var(--pql-xeghep-yellow);
    outline-offset: 3px;
}

.pql-xeghep-posts__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.pql-xeghep-posts__grid::-webkit-scrollbar {
    display: none;
}

.pql-xeghep-posts__grid .pql-xeghep-post-card {
    scroll-snap-align: start;
}

.pql-xeghep-post-card {
    overflow: hidden;
    border: 1px solid var(--pql-xeghep-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(8, 126, 164, .12);
}

.pql-xeghep-post-card__link {
    display: block;
    height: 100%;
    text-decoration: none;
}

/* Khung ảnh card luôn cùng tỷ lệ 3/2; ảnh nằm trọn bên trong, không crop. */
.pql-xeghep-post-card__media {
    display: flex;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #e8f6fb;
}

.pql-xeghep-post-card__media picture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.pql-xeghep-post-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.pql-xeghep-post-card__body {
    display: block;
    padding: 16px;
}

.pql-xeghep-post-card__body h3 {
    margin: 0 0 9px;
    color: var(--pql-xeghep-navy);
    font-size: 1rem;
    line-height: 1.35;
}

.pql-xeghep-post-card__body > span {
    display: -webkit-box;
    overflow: hidden;
    color: #56616e;
    font-size: .88rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Google Maps full-bleed nối liền footer, không khung hoặc khoảng trắng. */
.pql-xeghep-home + .pql-xeghep-footer {
    margin-top: 0;
}

.pql-xeghep-map {
    width: 100vw;
    margin: 40px 0 0 calc(50% - 50vw);
}

.pql-xeghep-map iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 6;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .pql-xeghep-posts__grid {
        scroll-behavior: auto;
    }
}

@media (max-width: 780px) {
    /* Nội dung section card căn giữa trên mobile. */
    .pql-xeghep-section-card {
        text-align: center;
    }

    .pql-xeghep-home__hero-image {
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .pql-xeghep-home__main {
        padding-top: 20px;
    }

    .pql-xeghep-home__title {
        margin-bottom: 18px;
        font-size: 1.88rem;
    }

    .pql-xeghep-services {
        grid-template-columns: 1fr;
    }

    .pql-xeghep-posts__controls button {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .pql-xeghep-posts__controls button:first-child {
        left: -8px;
    }

    .pql-xeghep-posts__controls button:last-child {
        right: -8px;
    }

    /* Slider bài viết trên mobile chỉ hiển thị một bài trong mỗi khung nhìn. */
    .pql-xeghep-posts__grid {
        grid-auto-columns: 100%;
        gap: 10px;
    }

    .pql-xeghep-service-card__body {
        padding: 14px;
    }

    .pql-xeghep-service-card h2 {
        font-size: 1.18rem;
    }

    .pql-xeghep-service-card a {
        padding-inline: 14px;
        font-size: .88rem;
    }

    .pql-xeghep-section-card {
        border-radius: 12px;
        padding: 18px 15px;
        text-align: center;
    }

    .pql-xeghep-section-card h2 {
        font-size: 1.35rem;
    }

    .pql-xeghep-section-card h3 {
        font-size: 1.06rem;
    }

    /* Bảng giá mobile thu gọn riêng, hiển thị đủ hai cột mà không kéo ngang. */
    .pql-xeghep-pricing {
        padding: 14px 8px;
    }

    .pql-xeghep-pricing > h2 {
        margin-bottom: 6px;
        font-size: 1.08rem;
        text-align: center;
    }

    .pql-xeghep-pricing > h3 {
        margin: 16px 2px 7px;
        font-size: .9rem;
    }

    .pql-xeghep-pricing > .pql-xeghep-lead {
        margin-bottom: 12px !important;
        font-size: .72rem;
    }

    .pql-xeghep-table-wrap {
        overflow: hidden;
        border: 1px solid #bdd9e5;
        border-radius: 8px;
    }

    .pql-xeghep-price-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: .7rem;
        line-height: 1.2;
    }

    .pql-xeghep-price-table th,
    .pql-xeghep-price-table td {
        padding: 6px 5px;
        overflow-wrap: anywhere;
    }

    .pql-xeghep-price-table th:first-child,
    .pql-xeghep-price-table td:first-child {
        width: 54%;
    }

    .pql-xeghep-price-table th:last-child,
    .pql-xeghep-price-table td:last-child {
        width: 46%;
        text-align: right;
        white-space: normal;
    }

    .pql-xeghep-price-table td:last-child {
        font-size: .68rem;
        line-height: 1.15;
    }

    .pql-xeghep-hotline-panel {
        border-radius: 10px;
        padding: 18px 15px;
    }

    .pql-xeghep-post-card__body {
        padding: 12px;
    }

    .pql-xeghep-post-card__body h3 {
        font-size: .9rem;
    }

    /* Mô tả card mobile hiển thị tối đa hai dòng và tự thêm dấu ba chấm. */
    .pql-xeghep-post-card__body > span {
        font-size: .8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .pql-xeghep-map {
        margin-top: 28px;
    }

    .pql-xeghep-map iframe {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 390px) {
    .pql-xeghep-home__title {
        font-size: 1.7rem;
    }

    .pql-xeghep-service-card__body {
        gap: 10px;
        padding: 12px;
    }

    .pql-xeghep-service-card a {
        padding-inline: 11px;
        font-size: .8rem;
    }
}

/* Icon Font Awesome đồng bộ kích thước và màu trong nội dung Home. */
.pql-xeghep-section-card :where(h2, h3) > i {
    width: 1.35em;
    color: var(--pql-xeghep-red);
    text-align: center;
}

.pql-xeghep-notice > i,
.pql-xeghep-hotline-panel > i {
    margin-right: 6px;
}
