/* ============================================================
   ASENRA v3 — trang con (Nhà trọn gói, Blog, Bài viết, Liên hệ)
   Cùng ngôn ngữ với trang chủ (kiểu Faren): nền be + ảnh bo vòm ở đầu
   trang, nhãn ⌜ ⌟, tiêu đề trái / câu dẫn phải, số lớn nét mảnh,
   đường kẻ mảnh thay cho thẻ đổ bóng, nút bo tròn, dải tối, chữ chạy.
   Nạp sau style2.css và v3.css. Khối dùng chung: includes/style2_footer.php.
   ============================================================ */
body.home-v3 {
    --v3-gutter: clamp(14px, 1.8vw, 32px);
}

.sp-page {
    overflow: hidden;
    background: #fff;
    color: var(--h-ink);
}

/* Tiêu đề phần khi không nằm trong .home-head */
body.home-v3 .sp-title {
    max-width: 820px;
    margin: 0;
    color: var(--h-ink);
    font-family: var(--s2-sans);
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-wrap: balance;
}

body.home-v3 .sp-page .home-head h2 {
    font-family: var(--s2-sans);
    font-weight: 600;
}

/* Biểu tượng nét mảnh trong vòng tròn */
.sp-page i svg,
.sp-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===================== Đầu trang con ===================== */
.v3-hero {
    position: relative;
    padding: clamp(118px, 11vw, 150px) var(--v3-gutter) 0;
    background: var(--h-bg);
}

.v3-hero > * {
    max-width: 1620px;
    margin-right: auto;
    margin-left: auto;
}

.v3-hero__crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--h-text);
    font-size: 13px;
    letter-spacing: .04em;
}

.v3-hero__crumb a {
    color: inherit;
    text-decoration: none;
}

.v3-hero__crumb a:hover {
    color: var(--h-ink);
}

.v3-hero__crumb span:last-child {
    color: var(--h-ink);
    font-weight: 600;
}

.v3-hero > .home-eyebrow {
    display: table;
    margin-bottom: 18px;
    margin-left: max(0px, calc((100% - 1620px) / 2));
}

body.asenra-style--2 .v3-hero h1 {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--h-ink);
    font-family: var(--s2-sans);
    font-size: clamp(42px, 6.2vw, 104px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.v3-hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 48px;
    align-items: end;
    margin-top: clamp(24px, 3vw, 40px);
}

.v3-hero__row p {
    max-width: 580px;
    margin: 0;
    color: var(--h-text);
    font-size: 17px;
    line-height: 1.75;
}

.v3-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.v3-hero__media {
    margin-top: clamp(40px, 5vw, 72px);
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 50% 50% 0 0 / clamp(60px, 9vw, 160px) clamp(60px, 9vw, 160px) 0 0;
    aspect-ratio: 21 / 8;
}

.v3-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
}

/* Trang 404 bài viết: đầu trang không ảnh */
.sp-spacer {
    height: clamp(64px, 8vw, 120px);
    background: var(--h-bg);
}

/* Menu trong suốt trên nền be: trang Liên hệ trước đây dùng chữ trắng cho nền tối. */
body.home-v3[data-page="contact"] .hdr:not(.is-scrolled) .hdr__brand .logo {
    filter: none;
}

body.home-v3[data-page="contact"] .hdr:not(.is-scrolled) .hdr__nav a:not(.hdr__cta) {
    color: var(--s2-ink) !important;
}

body.home-v3[data-page="contact"] .hdr:not(.is-scrolled) .hdr__burger span {
    background: var(--s2-ink);
}

/* ===================== Nhà trọn gói ===================== */
/* Số liệu: một hàng, ngăn bằng đường kẻ mảnh */
.sp-stats {
    padding: clamp(48px, 5vw, 80px) var(--h-pad) 0;
}

.sp-stats ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--h-line);
    border-bottom: 1px solid var(--h-line);
    list-style: none;
}

.sp-stats li {
    display: grid;
    gap: 12px;
    padding: clamp(24px, 3vw, 44px) clamp(16px, 2.4vw, 40px);
    border-left: 1px solid var(--h-line);
}

.sp-stats li:first-child {
    padding-left: 0;
    border-left: 0;
}

.sp-stats small {
    color: var(--h-gold);
    font: 500 13px/1 var(--s2-sans);
    letter-spacing: .14em;
}

.sp-stats strong {
    color: var(--h-ink);
    font: 600 clamp(40px, 4.4vw, 68px)/1 var(--s2-sans);
    letter-spacing: -.03em;
}

.sp-stats span {
    color: var(--h-text);
    font-size: 15px;
}

/* Giải pháp: chữ trái, 4 lợi ích dạng lưới kẻ phải */
.sp-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 110px);
    align-items: start;
    padding: var(--h-section) var(--h-pad);
}

.sp-intro__copy {
    display: grid;
    justify-items: start;
    gap: 24px;
}

.sp-intro__copy p {
    max-width: 520px;
    margin: 0;
    color: var(--h-text);
    font-size: 16px;
    line-height: 1.8;
}

.sp-intro__copy .home-asterisk {
    margin-top: clamp(8px, 3vw, 48px);
}

.sp-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--h-line);
    list-style: none;
}

.sp-features li {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: clamp(28px, 3vw, 48px) clamp(20px, 2.6vw, 44px) clamp(28px, 3vw, 48px) 0;
    border-bottom: 1px solid var(--h-line);
}

.sp-features li:nth-child(even) {
    padding-right: 0;
    padding-left: clamp(20px, 2.6vw, 44px);
    border-left: 1px solid var(--h-line);
}

.sp-features b,
.sp-steps__list b {
    color: #D9D8D2;
    font: 300 clamp(56px, 5.6vw, 88px)/.9 var(--s2-sans);
    letter-spacing: -.04em;
    transition: color var(--mo-base);
}

.sp-features li:hover b,
.sp-steps__list li:hover b {
    color: var(--h-gold-soft);
}

body.home-v3 .sp-page :is(.sp-features, .sp-steps__list, .sp-plan) h3 {
    margin: 0;
    color: inherit;
    font-family: var(--s2-sans);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 600;
    line-height: 1.2;
}

.sp-features p,
.sp-steps__list p {
    max-width: 360px;
    margin: 0;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.75;
}

/* Các gói */
.sp-plans {
    padding: var(--h-section) var(--h-pad);
    background: var(--h-bg-soft);
}

.sp-plans__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 36px);
    align-items: start;
}

.sp-plan {
    display: grid;
    background: #fff;
}

/* Gói giữa: nền ô liu, lệch xuống như bố cục so le của trang chủ */
.sp-plan--featured {
    margin-top: clamp(0px, 4vw, 64px);
    background: var(--h-olive);
    color: #fff;
}

.sp-plan__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3.2;
}

.sp-plan__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.sp-plan:hover .sp-plan__media img {
    transform: scale(1.05);
}

.sp-plan__media em {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    background: #fff;
    color: var(--h-ink);
    font: 600 11px/1 var(--s2-sans);
    font-style: normal;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sp-plan--featured .sp-plan__media em {
    background: var(--h-gold);
    color: #fff;
}

.sp-plan__body {
    display: grid;
    justify-items: start;
    gap: 22px;
    padding: clamp(24px, 2.6vw, 40px);
}

.sp-plan__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    width: 100%;
    margin: 0;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--h-line);
}

.sp-plan__price small {
    color: var(--h-muted);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sp-plan__price strong {
    font: 600 clamp(32px, 3vw, 46px)/1 var(--s2-sans);
    letter-spacing: -.02em;
}

.sp-plan__price span {
    color: var(--h-text);
    font-size: 15px;
}

.sp-plan ul {
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

.sp-plan li {
    position: relative;
    padding-left: 28px;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.6;
}

.sp-plan li::before {
    content: "";
    position: absolute;
    top: .42em;
    left: 2px;
    width: 12px;
    height: 6px;
    border-bottom: 1.5px solid var(--h-gold);
    border-left: 1.5px solid var(--h-gold);
    transform: rotate(-45deg);
}

.sp-plan--featured .sp-plan__price {
    border-color: rgba(255, 255, 255, .18);
}

.sp-plan--featured :is(.sp-plan__price small, .sp-plan__price span, li) {
    color: rgba(255, 255, 255, .74);
}

.sp-plan--featured li::before {
    border-color: var(--h-gold-soft);
}

/* Quy trình 6 bước: lưới kẻ 3 × 2, số lớn nét mảnh */
.sp-steps {
    padding: var(--h-section) var(--h-pad);
    background:
        radial-gradient(rgba(22, 23, 15, .1) 1px, transparent 1.2px) 0 0 / 18px 18px,
        #fff;
}

.sp-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--h-line);
    counter-reset: none;
    list-style: none;
}

.sp-steps__list li {
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: clamp(28px, 3vw, 48px) clamp(20px, 2.6vw, 44px);
    border-bottom: 1px solid var(--h-line);
    border-left: 1px solid var(--h-line);
    background: rgba(255, 255, 255, .7);
}

.sp-steps__list li:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
    background: none;
}

/* Chấm vàng trên đường kẻ đầu mỗi bước */
.sp-steps__list li::before {
    content: "";
    position: absolute;
    top: -5px;
    left: clamp(20px, 2.6vw, 44px);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--h-gold);
}

.sp-steps__list li:nth-child(3n + 1)::before {
    left: 0;
}

/* Dải tối "Bạn đang dự định xây nhà?" */
.sp-band .home-band__inner {
    max-width: 860px;
}

.sp-band p {
    max-width: 560px;
    margin: -8px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 17px;
    line-height: 1.7;
}

.sp-band__checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-band__checks li {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.sp-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ===================== Blog ===================== */
.sp-blog__list {
    padding: var(--h-section) var(--h-pad);
}

.sp-blog__tools {
    margin-bottom: clamp(36px, 4vw, 56px);
}

.sp-blog__tools .home-head {
    margin-bottom: 28px;
}

/* Ô tìm kiếm: chỉ một đường kẻ dưới */
.sp-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 420px);
    padding: 0 0 14px;
    border-bottom: 1px solid var(--h-ink);
    color: var(--h-ink);
}

.sp-search input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--h-ink);
    font: 400 16px var(--s2-sans);
}

.sp-search input::placeholder {
    color: var(--h-muted);
}

.sp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-chips button {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--h-line);
    border-radius: 999px;
    background: #fff;
    color: var(--h-text);
    font: 500 14px var(--s2-sans);
    cursor: pointer;
    transition: background var(--mo-base), color var(--mo-base), border-color var(--mo-base);
}

.sp-chips button:hover {
    border-color: var(--h-ink);
    color: var(--h-ink);
}

.sp-chips button.is-active {
    border-color: var(--h-olive);
    background: var(--h-olive);
    color: #fff;
}

.sp-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(36px, 4vw, 64px) clamp(20px, 2.4vw, 36px);
}

.sp-posts--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Thẻ bài viết: ảnh vuông góc, ô ngày trắng, chữ nằm trên nền trắng, kẻ mảnh */
.sp-post {
    display: grid;
    align-content: start;
}

.sp-post[hidden] {
    display: none;
}

.sp-post__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--h-bg);
}

.sp-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.sp-post:hover .sp-post__media img {
    transform: scale(1.05);
}

.sp-post__media time {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 12px 16px;
    background: #fff;
    color: var(--h-text);
    font-size: 12px;
    letter-spacing: .04em;
}

.sp-post__media time strong {
    display: block;
    margin-bottom: 4px;
    color: var(--h-ink);
    font: 600 30px/1 var(--s2-sans);
}

.sp-post__body {
    display: grid;
    justify-items: start;
    gap: 14px;
    padding-top: 24px;
}

.sp-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    color: var(--h-muted);
    font-size: 13px;
}

.sp-post__meta span:first-child {
    color: var(--h-gold);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.home-v3 .sp-post h3 {
    margin: 0;
    font-family: var(--s2-sans);
    font-size: clamp(19px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.38;
}

.sp-post h3 a {
    color: var(--h-ink);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .5s var(--ease-out, ease);
}

.sp-post h3 a:hover {
    background-size: 100% 1px;
}

.sp-post__body > p:not(.sp-post__meta) {
    margin: 0;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.75;
}

.sp-post__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--h-line);
    color: var(--h-ink);
    font: 500 14px var(--s2-sans);
    text-decoration: none;
}

.sp-post__more .ui-arrow {
    margin-left: auto;
    transition: transform .35s ease;
}

.sp-post:hover .sp-post__more .ui-arrow {
    transform: translateX(4px);
}

/* Bài mới nhất: ảnh lớn bên trái, chữ bên phải */
.sp-post--featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: center;
    padding-bottom: clamp(36px, 4vw, 64px);
    border-bottom: 1px solid var(--h-line);
}

.sp-post--featured .sp-post__media {
    aspect-ratio: 16 / 10;
}

.sp-post--featured .sp-post__body {
    gap: 20px;
    padding-top: 0;
}

body.home-v3 .sp-post--featured h3 {
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.sp-post--featured .sp-post__body > p:not(.sp-post__meta) {
    font-size: 16px;
}

.sp-blog__empty {
    margin: 0;
    padding: 48px 0;
    color: var(--h-text);
    text-align: center;
}

/* Bản tin: khối ô liu, chữ trái, ô nhập phải */
.sp-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 96px);
    align-items: end;
    padding: clamp(56px, 6vw, 96px) var(--h-pad);
    background: var(--h-olive);
    color: #fff;
}

.sp-newsletter > div {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.sp-newsletter .home-eyebrow {
    color: var(--h-gold-soft);
}

.sp-newsletter .home-eyebrow::before,
.sp-newsletter .home-eyebrow::after {
    border-color: var(--h-gold-soft);
}

body.home-v3 .sp-newsletter .sp-title {
    color: #fff;
}

.sp-newsletter p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 16px;
    line-height: 1.75;
}

.sp-newsletter__form {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.sp-newsletter__form input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: 400 17px var(--s2-sans);
}

.sp-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, .55);
}

/* ===================== Liên hệ ===================== */
.sp-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(48px, 5vw, 80px) var(--h-pad) 0;
    border-top: 1px solid var(--h-line);
    border-bottom: 1px solid var(--h-line);
}

.sp-channels a {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 20px;
    padding: clamp(24px, 3vw, 44px) clamp(16px, 2.4vw, 40px);
    border-left: 1px solid var(--h-line);
    color: var(--h-ink);
    text-decoration: none;
}

.sp-channels a:first-child {
    padding-left: 0;
    border-left: 0;
}

.sp-channels i,
.sp-contact__list i {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--h-line);
    border-radius: 50%;
    color: var(--h-olive);
    transition: background var(--mo-base), color var(--mo-base), border-color var(--mo-base);
}

.sp-channels i {
    grid-row: 1 / span 3;
}

.sp-channels a:hover i {
    border-color: var(--h-olive);
    background: var(--h-olive);
    color: #fff;
}

.sp-channels small,
.sp-contact__list small {
    color: var(--h-gold);
    font: 600 12px/1 var(--s2-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
}

.sp-channels strong {
    overflow-wrap: anywhere;
    font: 600 clamp(20px, 2vw, 30px)/1.2 var(--s2-sans);
    letter-spacing: -.01em;
}

.sp-channels span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--h-text);
    font-size: 14px;
}

.sp-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 110px);
    align-items: start;
    padding: var(--h-section) var(--h-pad);
}

.sp-contact__info {
    display: grid;
    justify-items: start;
    gap: 24px;
}

.sp-contact__info > p {
    max-width: 500px;
    margin: 0;
    color: var(--h-text);
    font-size: 16px;
    line-height: 1.8;
}

.sp-contact__list {
    display: grid;
    gap: 22px;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.sp-contact__list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: center;
}

.sp-contact__list div {
    display: grid;
    gap: 8px;
}

.sp-contact__list address,
.sp-contact__list span {
    color: var(--h-ink);
    font-size: 16px;
    font-style: normal;
    line-height: 1.6;
}

.sp-contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-contact__info .home-badge {
    margin-top: clamp(8px, 3vw, 40px);
}

.sp-contact__form {
    display: grid;
    justify-items: start;
    gap: 20px;
    padding: clamp(28px, 4vw, 64px);
    background: var(--h-bg);
}

/* Biểu mẫu: ô nhập chỉ có đường kẻ dưới */
body.asenra-style--2 .sp-form {
    gap: 24px;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

body.asenra-style--2 .sp-form {
    justify-self: stretch;
}

body.asenra-style--2 .sp-form .contact-form__row {
    gap: 24px;
}

body.asenra-style--2 .sp-form input,
body.asenra-style--2 .sp-form textarea {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(22, 23, 15, .3);
    border-radius: 0;
    background: transparent;
    color: var(--h-ink);
    font-size: 16px;
}

body.asenra-style--2 .sp-form input:focus,
body.asenra-style--2 .sp-form textarea:focus {
    border-color: var(--h-ink);
    box-shadow: none;
}

body.asenra-style--2 .sp-form .contact-form__submit {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-top: 8px;
    padding: 0 32px;
    border: 1px solid var(--h-olive);
    border-radius: 999px;
    background: var(--h-olive);
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
}

body.asenra-style--2 .sp-form .contact-form__submit:hover {
    border-color: var(--h-ink);
    background: var(--h-ink);
    color: #fff;
    box-shadow: none;
    transform: none;
}

.sp-map {
    height: clamp(320px, 36vw, 520px);
    background: var(--h-bg);
}

.sp-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.05);
}

/* ===================== Bài viết ===================== */
.sp-article-hero .v3-hero__row {
    align-items: start;
}

body.asenra-style--2 .sp-article-hero h1 {
    max-width: 1280px;
    margin-left: max(0px, calc((100% - 1620px) / 2));
    font-size: clamp(36px, 4.6vw, 76px);
    line-height: 1.08;
}

.sp-article-hero .v3-hero__row p {
    max-width: 640px;
}

.sp-article-meta {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-article-meta li {
    display: grid;
    gap: 8px;
    padding: 4px clamp(14px, 1.6vw, 28px);
    border-left: 1px solid var(--h-line);
}

.sp-article-meta li:first-child {
    padding-left: 0;
    border-left: 0;
}

.sp-article-meta small {
    color: var(--h-gold);
    font: 600 11px/1 var(--s2-sans);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sp-article-meta :is(strong, time) {
    color: var(--h-ink);
    font-size: 15px;
    font-weight: 600;
}

/* Bố cục mục lục + nội dung */
body.home-v3 .style2-post-layout {
    grid-template-columns: 260px minmax(0, 760px);
    gap: clamp(40px, 6vw, 110px);
    width: auto;
    max-width: calc(1180px + 2 * var(--v3-gutter));
    padding: clamp(56px, 6vw, 96px) var(--v3-gutter) clamp(64px, 8vw, 112px);
}

body.home-v3 .style2-post-toc {
    top: 110px;
    padding: 0 0 0 24px;
    border: 0;
    border-left: 1px solid var(--h-line);
    border-radius: 0;
    background: none;
}

body.home-v3 .style2-post-toc > span {
    margin-bottom: 18px;
    color: var(--h-gold);
    font: 600 12px/1 var(--s2-sans);
    letter-spacing: .2em;
}

body.home-v3 .style2-post-toc nav a {
    padding: 9px 0;
    border-left: 0;
    color: var(--h-text);
    font-size: 14px;
}

body.home-v3 .style2-post-toc nav a::before {
    top: 50%;
    left: -28px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform var(--mo-base), background var(--mo-base);
}

body.home-v3 .style2-post-toc nav a.is-active::before {
    background: var(--h-gold);
    transform: translateY(-50%);
}

body.home-v3 .style2-post-toc nav a.is-level-3 {
    padding-left: 14px;
    color: var(--h-muted);
}

body.home-v3 .style2-post-toc nav a:hover,
body.home-v3 .style2-post-toc nav a.is-active {
    color: var(--h-ink);
}

body.home-v3 .style2-post-toc__contact {
    display: inline-flex;
    gap: 10px;
    min-height: 46px;
    margin-top: 24px;
    padding: 0 22px;
    border: 1px solid var(--h-ink);
    border-radius: 999px;
    color: var(--h-ink);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--mo-base), color var(--mo-base);
}

body.home-v3 .style2-post-toc__contact:hover {
    background: var(--h-ink);
    color: #fff;
}

body.home-v3 .style2-post-article .post__content {
    color: var(--h-text);
    font-size: 17px;
    line-height: 1.9;
}

body.home-v3 .style2-post-article .post__content :is(h2, h3) {
    color: var(--h-ink);
    font-weight: 600;
    letter-spacing: -.015em;
}

body.home-v3 .style2-post-article .post__content h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.2;
}

body.home-v3 .style2-post-article .post__content blockquote {
    margin: 36px 0;
    padding: 4px 0 4px 28px;
    border-left: 2px solid var(--h-gold);
    color: var(--h-ink);
    font-size: clamp(19px, 1.6vw, 23px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.6;
}

body.home-v3 .style2-post-article .post__content img {
    border-radius: 0;
}

body.home-v3 .style2-post-rating {
    margin-top: 64px;
    padding: 28px 0;
    border: 0;
    border-top: 1px solid var(--h-line);
    border-bottom: 1px solid var(--h-line);
    border-radius: 0;
    background: none;
}

body.home-v3 .style2-post-rating > div:first-child span {
    color: var(--h-gold);
    font-size: 12px;
    letter-spacing: .2em;
}

body.home-v3 .style2-post-rating > div:first-child strong {
    color: var(--h-ink);
    font-size: 15px;
}

body.home-v3 .style2-post-rating__stars button {
    font-size: 28px;
}

.sp-related {
    padding: var(--h-section) var(--h-pad);
    background: var(--h-bg-soft);
}

/* ===================== Máy tính bảng ===================== */
@media (max-width: 1080px) {
    .sp-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-related .sp-posts > :nth-child(3) {
        display: none;
    }

    .sp-channels {
        grid-template-columns: 1fr;
    }

    .sp-channels a,
    .sp-channels a:first-child {
        padding: 24px 0;
        border-top: 1px solid var(--h-line);
        border-left: 0;
    }

    .sp-channels a:first-child {
        border-top: 0;
    }

    .sp-steps__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-steps__list li:nth-child(n) {
        padding-left: clamp(20px, 2.6vw, 44px);
        border-left: 1px solid var(--h-line);
        background: rgba(255, 255, 255, .7);
    }

    .sp-steps__list li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
        background: none;
    }

    .sp-steps__list li:nth-child(n)::before {
        left: clamp(20px, 2.6vw, 44px);
    }

    .sp-steps__list li:nth-child(odd)::before {
        left: 0;
    }
}

/* ===================== Điện thoại & máy tính bảng dọc ===================== */
@media (max-width: 860px) {
    .v3-hero__row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .v3-hero__media {
        aspect-ratio: 4 / 3;
    }

    .sp-stats ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-stats li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .sp-stats li:nth-child(-n + 2) {
        border-bottom: 1px solid var(--h-line);
    }

    .sp-intro,
    .sp-contact,
    .sp-newsletter {
        grid-template-columns: 1fr;
    }

    .sp-intro__copy .home-asterisk,
    .sp-contact__info .home-badge {
        display: none;
    }

    .sp-plans__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .sp-plan--featured {
        margin-top: 0;
    }

    .sp-post--featured {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sp-post--featured .sp-post__media {
        aspect-ratio: 3 / 2;
    }

    body.home-v3 .style2-post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Mục lục thành ngăn kéo (style2.css); bỏ đường kẻ trái của bản máy tính */
    body.home-v3 .style2-post-layout .style2-post-toc {
        padding: 58px 24px 28px;
        border-left: 0;
        background: #fff;
    }

    body.home-v3 .style2-post-toc nav a::before {
        left: -14px;
    }
}

@media (max-width: 640px) {
    .v3-hero {
        padding-top: 104px;
    }

    .v3-hero__actions,
    .v3-hero__actions .home-pill {
        width: 100%;
    }

    .v3-hero__row p {
        font-size: 15px;
    }

    .sp-features,
    .sp-steps__list,
    .sp-posts {
        grid-template-columns: 1fr;
    }

    .sp-features li:nth-child(n),
    .sp-steps__list li:nth-child(n) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
        background: none;
    }

    .sp-steps__list li:nth-child(n)::before {
        left: 0;
    }

    .sp-features b,
    .sp-steps__list b {
        font-size: 56px;
    }

    .sp-related .sp-posts > :nth-child(3) {
        display: grid;
    }

    .sp-band__actions,
    .sp-band__actions .home-pill {
        width: 100%;
    }

    .sp-newsletter__form {
        flex-wrap: wrap;
    }

    .sp-newsletter__form input {
        flex-basis: 100%;
    }

    .sp-newsletter__form .home-pill,
    .sp-contact__links .home-pill,
    body.asenra-style--2 .sp-form .contact-form__submit {
        width: 100%;
        justify-self: stretch;
    }

    .sp-article-meta {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 18px 0;
    }

    .sp-article-meta li:nth-child(4) {
        padding-left: 0;
        border-left: 0;
    }

    .sp-channels a,
    .sp-channels a:first-child {
        gap: 4px 16px;
    }

    .sp-channels i,
    .sp-contact__list i {
        width: 48px;
        height: 48px;
    }

    .sp-contact__list li {
        grid-template-columns: 48px 1fr;
    }
}
