.pbx {
    --pbx-primary: var(--pbx-theme-primary, var(--bv-primary, #1677ff));
    --pbx-ink: #0f172a;
    --pbx-muted: #64748b;
    --pbx-soft: var(--pbx-theme-soft, #f7faff);
    color: var(--pbx-ink)
}

.pbx-wrap {
    /* width: min(1180px, calc(100% - 36px)); */
    max-width: var(--container);
    margin: auto
}

.pbx-narrow {
    max-width: 900px
}

.pbx-pad {
    padding: 72px 0
}

.pbx-soft {
    background: var(--pbx-soft)
}

.pbx-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px
}

.pbx-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 10px
}

.pbx-heading p,
.pbx-lead {
    color: var(--pbx-muted);
    line-height: 1.7
}

.pbx-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(90deg, rgba(4, 15, 35, .86), rgba(4, 15, 35, .35)), var(--pbx-bg);
    background-size: cover;
    background-position: center;
    color: white
}

.pbx-hero__content {
    max-width: 760px;
    padding: 90px 0
}

.pbx-hero.is-center .pbx-hero__content {
    text-align: center;
    margin: auto
}

.pbx-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    margin: 10px 0 18px;
    color: #fff
}

.pbx-hero p {
    font-size: 19px;
    line-height: 1.65;
    color: #e2e8f0
}

.pbx-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    color: #93c5fd
}

.pbx-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px
}

.pbx-btn {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .4);
    text-decoration: none;
    font-weight: 700;
    color: inherit
}

.pbx-btn.primary {
    background: var(--pbx-primary);
    border-color: var(--pbx-primary);
    color: #fff
}

.pbx-btn.light {
    background: #fff;
    color: #0f172a
}

.pbx-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: center
}

.pbx-split.image-right .pbx-split__media {
    order: 2
}

.pbx-split__media img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .12)
}

.pbx-split__body h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 14px
}

.pbx-rich {
    line-height: 1.8
}

.pbx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.pbx-stat {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    text-align: center
}

.pbx-stat strong {
    display: block;
    font-size: 38px;
    color: var(--pbx-primary)
}

.pbx-stat span {
    color: var(--pbx-muted)
}

.pbx-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.pbx-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05)
}

.pbx-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px
}

.pbx-card img.pbx-card__icon-img,
.pbx-card__icon img,
.pbx-card__icon-wrapper img {
    width: 100px !important;
    height: 100px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    display: inline-block !important
}

.pbx-card__icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 16px */
}

.pbx-card__icon {
    font-size: 40px;
    color: var(--pbx-primary)
}

.pbx-card h3 {
    margin: 10px 0
}

.pbx-card p {
    color: var(--pbx-muted);
    line-height: 1.65
}

.pbx-card a {
    color: var(--pbx-primary);
    font-weight: 700;
    text-decoration: none
}

.pbx-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.pbx-gallery figure {
    margin: 0
}

.pbx-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px
}

.pbx-gallery figcaption {
    text-align: center;
    color: var(--pbx-muted);
    font-style: italic;
    margin-top: 7px
}

.pbx-faq details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 18px;
    margin-bottom: 12px
}

.pbx-faq summary {
    padding: 18px 0;
    font-weight: 800;
    cursor: pointer
}

.pbx-faq details>div {
    padding: 0 0 18px;
    color: var(--pbx-muted);
    line-height: 1.7
}

.pbx-cta {
    background: linear-gradient(90deg, rgba(10, 70, 160, .95), rgba(20, 115, 230, .86)), var(--pbx-bg);
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 42px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.pbx-cta h2 {
    margin: 0 0 8px;
    color: #fff
}

.pbx-cta p {
    margin: 0;
    color: #dbeafe
}

@media(max-width:900px) {

    .pbx-split,
    .pbx-cards {
        grid-template-columns: 1fr
    }

    .pbx-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .pbx-gallery {
        grid-template-columns: repeat(2, 1fr)
    }

    .pbx-split.image-right .pbx-split__media {
        order: 0
    }

    .pbx-cta {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:560px) {
    .pbx-pad {
        padding: 48px 0
    }

    .pbx-stats,
    .pbx-gallery {
        grid-template-columns: 1fr
    }

    .pbx-hero {
        min-height: 480px
    }

    .pbx-cta {
        padding: 28px
    }
}

/* V2 variants & template themes */
.pbx-theme {
    --pbx-theme-primary: #1677ff;
    --pbx-theme-soft: #f7faff
}

.pbx-placeholder {
    min-height: 320px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--pbx-soft), #eef2f7);
    display: grid;
    place-items: center;
    color: var(--pbx-muted);
    border: 1px dashed #d7dee8
}

.pbx-placeholder:before {
    content: 'Chọn ảnh trong Page Builder';
    font-weight: 700;
    font-size: 14px
}

.pbx-hero.v-split {
    background: var(--pbx-soft);
    color: var(--pbx-ink);
    min-height: auto;
    padding: 72px 0
}

.pbx-hero.v-split .pbx-wrap {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center
}

.pbx-hero.v-split .pbx-hero__content {
    padding: 0;
    max-width: none
}

.pbx-hero.v-split h1 {
    color: var(--pbx-ink)
}

.pbx-hero.v-split p {
    color: var(--pbx-muted)
}

.pbx-hero.v-split .pbx-eyebrow {
    color: var(--pbx-primary)
}

.pbx-hero__visual {
    min-height: 390px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--pbx-primary), #0f172a);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
    overflow: hidden
}

.pbx-hero__visual img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover
}

.pbx-hero.v-minimal {
    min-height: auto;
    padding: 82px 0;
    background: linear-gradient(135deg, var(--pbx-soft), #fff);
    color: var(--pbx-ink);
    text-align: center
}

.pbx-hero.v-minimal .pbx-hero__content {
    padding: 0;
    margin: auto
}

.pbx-hero.v-minimal h1 {
    color: var(--pbx-ink)
}

.pbx-hero.v-minimal p {
    color: var(--pbx-muted)
}

.pbx-hero.v-minimal .pbx-eyebrow {
    color: var(--pbx-primary)
}

.pbx-image-card .pbx-split__media,
.pbx-image-card .pbx-split__body {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px
}

.pbx-image-card .pbx-split__media {
    overflow: hidden
}

.pbx-image-card .pbx-split__media img {
    border-radius: 0;
    box-shadow: none
}

.pbx-image-card .pbx-split__body {
    padding: 34px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .05)
}

.pbx-image-wide .pbx-split {
    gap: 70px
}

.pbx-cards.cols-2 {
    grid-template-columns: repeat(2, 1fr)
}

.pbx-cards.cols-4 {
    grid-template-columns: repeat(4, 1fr)
}

.pbx-cards.v-clean .pbx-card {
    box-shadow: none;
    border: 0;
    border-top: 3px solid var(--pbx-primary);
    border-radius: 10px
}

.pbx-gallery.cols-2 {
    grid-template-columns: repeat(2, 1fr)
}

.pbx-gallery.cols-4 {
    grid-template-columns: repeat(4, 1fr)
}

.pbx-cta.v-outline {
    background: #fff !important;
    color: var(--pbx-ink);
    border: 1px solid #dbe3ef
}

.pbx-cta.v-outline h2 {
    color: var(--pbx-ink)
}

.pbx-cta.v-outline p {
    color: var(--pbx-muted)
}

.pbx-cta.v-outline .pbx-btn.light {
    background: var(--pbx-primary);
    color: #fff;
    border-color: var(--pbx-primary)
}

@media(max-width:900px) {
    .pbx-hero {
        min-height: 420px;
    }

    .pbx-hero__content {
        padding: 54px 0;
    }

    .pbx-hero.is-center .pbx-actions {
        justify-content: center;
    }

    .pbx-hero.v-split {
        padding: 48px 0;
    }

    .pbx-hero.v-split .pbx-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pbx-hero__visual {
        min-height: 260px;
        border-radius: 18px;
    }

    .pbx-hero__visual img {
        min-height: 260px;
    }

    .pbx-hero.v-minimal {
        padding: 54px 0;
    }

    .pbx-cards.cols-4,
    .pbx-cards.cols-2 {
        grid-template-columns: 1fr 1fr;
    }

    .pbx-gallery.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:560px) {
    .pbx-pad {
        padding: 48px 0;
    }

    .pbx-hero {
        min-height: 340px;
    }

    .pbx-hero__content {
        padding: 32px 0;
    }

    .pbx-hero h1 {
        font-size: clamp(24px, 7vw, 34px);
        margin: 8px 0 14px;
    }

    .pbx-hero p {
        font-size: 15px;
        line-height: 1.55;
    }

    .pbx-eyebrow {
        font-size: 11px;
        letter-spacing: .1em;
    }

    .pbx-actions {
        margin-top: 18px;
        gap: 10px;
    }

    .pbx-hero.v-split {
        padding: 32px 0;
    }

    .pbx-hero.v-split .pbx-wrap {
        gap: 20px;
    }

    .pbx-hero__visual {
        min-height: 200px;
        border-radius: 14px;
    }

    .pbx-hero__visual img {
        min-height: 200px;
    }

    .pbx-hero.v-minimal {
        padding: 36px 0;
    }

    .pbx-stats,
    .pbx-gallery,
    .pbx-cards.cols-4,
    .pbx-cards.cols-2,
    .pbx-gallery.cols-2,
    .pbx-gallery.cols-4 {
        grid-template-columns: 1fr;
    }

    .pbx-cta {
        padding: 28px;
    }
}

@media(max-width:480px) {
    .pbx-actions {
        flex-direction: column;
        width: 100%;
    }

    .pbx-actions .pbx-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
