/* =========================================================
   AgriSure block theme — CSS thành phần
   Màu, font, cỡ chữ: theme.json (sửa trong Trình thiết kế → Phong cách).
   File này chỉ định dạng các khối có class as-* và form.
   ========================================================= */
:root {
	--as-green-900: var(--wp--preset--color--green-900);
	--as-green-800: var(--wp--preset--color--green-800);
	--as-green-600: var(--wp--preset--color--green-600);
	--as-green-400: var(--wp--preset--color--green-400);
	--as-green-100: var(--wp--preset--color--green-100);
	--as-green-50: var(--wp--preset--color--green-50);
	--as-cream: var(--wp--preset--color--cream);
	--as-ink: var(--wp--preset--color--ink);
	--as-ink-2: var(--wp--preset--color--ink-2);
	--as-line: var(--wp--preset--color--line);
	--as-accent: var(--wp--preset--color--accent);
	--as-danger: #B42318;
	--as-radius: 14px;
	--as-radius-sm: 10px;
	--as-shadow: var(--wp--preset--shadow--card);
	--as-header-h: 68px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--as-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; margin-block-end: 0; }
img { height: auto; }
.wp-block-heading { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--as-accent); outline-offset: 2px; }

/* Nhãn [CẦN XÁC NHẬN] – chỉ quản trị viên thấy */
mark.tbc { background: #FFF4CC; color: #7A4B00; border: 1px dashed #E3B341; border-radius: 6px; padding: 0 .35em; font-size: max(13px, .85em); font-weight: 600; }

/* ---------- Nút ---------- */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--as-green-800); border-color: var(--as-green-800); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--as-green-50); color: var(--as-green-900); }
.wp-block-button.is-style-accent > .wp-block-button__link { background: var(--as-accent); border-color: var(--as-accent); color: #2B1F00; }
.wp-block-button.is-style-accent > .wp-block-button__link:hover { background: #E7A426; border-color: #E7A426; }
.as-btn-block .wp-block-button, .as-btn-block .wp-block-button__link { width: 100%; }
.as-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .65em 1.2em; border-radius: 999px; border: 2px solid var(--as-green-800); font: 600 .97rem/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .15s; }
.as-btn--primary { background: var(--as-green-800); color: #fff; }
.as-btn--primary:hover { background: var(--as-green-900); color: #fff; }
.as-btn--outline { background: #fff; color: var(--as-green-800); }
.as-btn--outline:hover { background: var(--as-green-50); }
.as-btn--lg { min-height: 52px; font-size: 1.02rem; }
.as-btn--block { width: 100%; }

/* ---------- Đầu trang ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.scrolled { border-color: var(--as-line); box-shadow: 0 2px 12px rgba(16,40,24,.06); }
.as-header-inner { min-height: var(--as-header-h); gap: 16px; }
.as-logo { margin: 0; flex: none; }
.as-logo img { width: 140px; display: block; }
.as-nav { flex: 1; }
.as-nav .wp-block-navigation-item__content { color: var(--as-ink); padding: 8px 10px; border-radius: 8px; }
.as-nav .wp-block-navigation-item__content:hover { background: var(--as-green-50); color: var(--as-green-800); }
.as-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; border: 1px solid var(--as-line); border-radius: 10px; justify-content: center; align-items: center; color: var(--as-green-800); }
.as-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 20px max(16px, 4vw); }
.as-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; padding: 12px 4px; }
.as-header-cta { flex: none; }
.as-header-cta .wp-block-button__link { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
/* Menu thu gọn tới 960px (5 mục + nút không vừa màn hình máy tính bảng) */
@media (min-width: 600px) and (max-width: 959px) {
	.as-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.as-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.as-nav { justify-content: flex-end; }
}
@media (max-width: 959px) {
	.wp-block-buttons.as-header-cta { display: none !important; }
	.as-nav { justify-content: flex-end; }
}
@media (min-width: 960px) and (max-width: 1139px) {
	.as-nav .wp-block-navigation-item__content { padding: 8px 6px; font-size: .9rem; }
	.as-header-cta .wp-block-button__link { font-size: .88rem; padding: .5em .85em; }
	.as-logo img { width: 128px; }
}

/* ---------- Khung các dải ---------- */
.as-landing > .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.as-section, .as-hero { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.as-wrap { width: 100%; }
.as-wrap > * + * { margin-block-start: 1.75rem; }
.as-tint { background: var(--as-green-50); }
.as-cream { background: var(--as-cream); border-top: 1px solid #EFE8D6; padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.as-dark { background: var(--as-green-800); color: #E7F2EA; }
.as-dark :where(h2, h3) { color: #fff; }
.as-head { max-width: 760px; }
.as-head > * { margin: 0; }
.as-head > * + * { margin-top: .6rem; }
.as-head p:not(.is-style-eyebrow) { color: var(--as-ink-2); }
.as-dark .as-head p:not(.is-style-eyebrow) { color: #CFE3D5; }
.as-narrow { max-width: 820px; margin-inline: auto; }
.as-narrow > * + * { margin-top: 1.75rem; }

p.is-style-eyebrow { font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--as-green-600); margin-bottom: .5rem; }
.as-dark p.is-style-eyebrow { color: var(--as-green-400); }
p.is-style-note { font-size: .95rem; color: var(--as-ink-2); padding: 12px 14px; border-left: 3px solid var(--as-green-400); background: rgba(123,196,127,.08); border-radius: 0 8px 8px 0; }
.as-muted { color: var(--as-ink-2); }
.as-small { font-size: .92rem; }

/* ---------- Thẻ ---------- */
.wp-block-group.is-style-card { background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius); padding: clamp(18px, 2.5vw, 26px); display: flex; flex-direction: column; }
.wp-block-group.is-style-card > * { margin-block: 0; }
.wp-block-group.is-style-card > * + * { margin-top: .9rem; }
.as-push { margin-top: auto !important; padding-top: .5rem; }

/* ---------- Danh sách dấu tích ---------- */
ul.is-style-ticks { list-style: none; padding: 0; margin-inline: 0; margin-bottom: 0; display: grid; gap: 8px; }
ul.is-style-ticks li { position: relative; padding-left: 26px; color: var(--as-ink-2); font-size: .97rem; }
ul.is-style-ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--as-green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%232F8F4E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Hero ---------- */
.as-hero { background: linear-gradient(180deg, var(--as-cream) 0%, #fff 100%); padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.as-hero h1 { margin: 0 0 1rem; }
.as-hero-grid { gap: clamp(1.5rem, 4vw, 3rem); }
.as-hero-grid > .wp-block-column > * { margin-block: 0; }
.as-hero-grid > .wp-block-column > * + * { margin-top: 1rem; }
.as-lead { font-size: 1.08rem; color: var(--as-ink-2); }
.as-for { font-size: .97rem; padding: 10px 14px; background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); }
.as-for strong { color: var(--as-green-800); }
.as-trust { font-size: .97rem; color: var(--as-ink-2); padding-left: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8F4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6zM8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E") left .1em/22px no-repeat; }
.as-trust strong { color: var(--as-green-900); }
.as-benefits { grid-template-columns: 1fr 1fr; gap: 10px 16px !important; }
.as-benefits li { color: var(--as-ink); font-weight: 600; }
.as-hero-cta { gap: 10px; margin-top: 1.5rem !important; }
.as-hero-visual { margin: 0; text-align: center; }
.as-hero-visual img { width: 100%; max-width: 560px; }
.as-hero-visual figcaption { font-size: .85rem; color: #8A978F; margin-top: 4px; }
@media (max-width: 599px) {
	.as-hero-cta .wp-block-button { width: 100%; }
	.as-hero-cta .wp-block-button__link { width: 100%; }
}
@media (max-width: 379px) { .as-benefits { grid-template-columns: 1fr; } }

/* ---------- Dịch vụ ---------- */
.as-service { box-shadow: var(--as-shadow); }
.as-service-top { gap: 14px; align-items: center; }
.as-service-top > * { margin: 0; }
p.as-chem { width: 54px; height: 54px; border-radius: 12px; background: var(--as-green-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; flex: none; margin: 0; }
p.as-chem.as-chem-o { background: var(--as-accent); color: #2B1F00; }
.as-service-name > * { margin: 0; }
.as-service-name h3 { font-size: 1.18rem; }
.as-role { color: var(--as-ink-2); }
.as-verify { color: var(--as-green-800); font-weight: 600; font-size: .95rem; }

/* Bảng thông số (kiểu "Thông số") */
.wp-block-table.is-style-spec { margin: 0; }
.wp-block-table.is-style-spec table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); overflow: hidden; font-size: .97rem; }
.wp-block-table.is-style-spec td { border: 0; border-bottom: 1px solid var(--as-green-50); padding: 11px 14px; vertical-align: top; }
.wp-block-table.is-style-spec tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-spec td:first-child { color: var(--as-ink-2); width: 46%; font-size: .92rem; }
.wp-block-table.is-style-spec td:last-child { font-weight: 600; color: var(--as-green-900); text-align: right; }

/* ---------- Đối tượng ---------- */
.as-icon { margin: 0 !important; }
.as-icon img { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--as-green-100); display: block; }
.as-aud-partner { border-color: var(--as-green-400) !important; }

/* ---------- Quy trình ---------- */
ol.as-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; }
ol.as-steps > li { counter-increment: s; position: relative; padding: 0 0 22px 60px; color: var(--as-ink-2); font-size: .97rem; min-height: 44px; }
ol.as-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--as-green-800); color: #fff; display: grid; place-items: center; font-weight: 700; z-index: 1; }
ol.as-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px; background: var(--as-line); }
ol.as-steps > li strong { display: block; color: var(--as-green-900); font-size: 1.05rem; margin: 8px 0 2px; }
@media (min-width: 960px) {
	ol.as-steps { grid-template-columns: repeat(7, 1fr); gap: 12px; }
	ol.as-steps > li { padding: 56px 0 0; font-size: .9rem; }
	ol.as-steps > li:not(:last-child)::after { left: 52px; right: -8px; top: 21px; bottom: auto; width: auto; height: 2px; }
	ol.as-steps > li strong { font-size: 1rem; margin-top: 0; }
}
.as-field { border: 1px solid var(--as-line); border-radius: var(--as-radius); background: var(--as-green-50); padding: clamp(18px, 3vw, 28px); margin-top: 2.5rem !important; }
.as-field > * { margin-block: 0; }
.as-field > * + * { margin-top: .9rem; }
.as-fs-item { background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); padding: 14px 16px; }
.as-fs-item > * { margin: 0; }
.as-fs-item > * + * { margin-top: 4px; }
.as-fs-item p { color: var(--as-ink-2); font-size: .95rem; }
.as-fs-item .as-fs-title strong { color: var(--as-green-900); font-size: 1rem; }

/* ---------- Lợi ích (nền đậm) ---------- */
.as-benefit { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--as-radius); padding: 20px; }
.as-benefit > * { margin: 0; }
.as-benefit > * + * { margin-top: .5rem; }
.as-benefit .as-icon img { background: transparent; padding: 0; width: 30px; height: 30px; }
.as-benefit p { color: #CFE3D5; font-size: .97rem; }

/* ---------- Định kỳ & đối tác ---------- */
.as-offers { gap: 16px; }
.as-offer { border-radius: var(--as-radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; height: 100%; }
.as-offer > * { margin-block: 0; }
.as-offer > * + * { margin-top: .9rem; }
.as-offer p:not(.as-tag) { color: var(--as-ink-2); }
.as-offer h3 { font-size: 1.25rem; }
.as-offer-main { background: var(--as-green-50); border: 1px solid #CFE4C8; }
.as-offer-partner { background: #fff; border: 1.5px dashed var(--as-green-400); }
p.as-tag { align-self: flex-start; font-size: .84rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--as-green-800); color: #fff !important; }
p.as-tag.as-tag-accent { background: var(--as-accent); color: #2B1F00 !important; }

/* ---------- Minh bạch ---------- */
.wp-block-table.as-method { margin: 0; }
.wp-block-table.as-method table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--as-line); border-radius: var(--as-radius); overflow: hidden; background: #fff; font-size: .97rem; }
.wp-block-table.as-method thead { border: 0; }
.wp-block-table.as-method th { background: var(--as-green-50); color: var(--as-green-800); text-align: left; font-size: .9rem; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--as-line); }
.wp-block-table.as-method td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--as-green-50); }
.wp-block-table.as-method tr:last-child td { border-bottom: 0; }
.wp-block-table.as-method td:first-child { color: var(--as-ink-2); }
.wp-block-table.as-method td:not(:first-child) { font-weight: 600; color: var(--as-green-900); }
@media (max-width: 599px) {
	.wp-block-table.as-method th, .wp-block-table.as-method td { padding: 10px; font-size: .9rem; }
}
.as-lab { border-color: var(--as-green-400) !important; }
.as-lab p, .is-style-card p { font-size: .97rem; }
.as-media { gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2.5rem !important; }
.as-media h3 { font-size: 1.15rem; margin: 0 0 14px; }
.wp-block-gallery.as-photos { gap: 12px; margin: 0; }
.wp-block-gallery.has-nested-images.as-photos figure.wp-block-image:not(#individual-image) img { flex: none; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--as-radius-sm); }
.wp-block-gallery.as-photos.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--as-ink-2); font-size: .9rem; padding: 6px 0 0; text-align: left; text-shadow: none; max-height: none; overflow: visible; }
.wp-block-gallery.as-photos.has-nested-images figure.wp-block-image { flex-direction: column; }
.wp-block-gallery.as-photos.has-nested-images figure.wp-block-image::before { display: none; }
.as-docs { gap: 12px; }
.as-doc { margin: 0; padding: 10px; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.as-doc:hover { border-color: var(--as-green-600); box-shadow: var(--as-shadow); }
.as-doc img { width: 100%; aspect-ratio: 480 / 680; object-fit: cover; object-position: top; border-radius: 6px; }
.as-doc figcaption { font-weight: 600; color: var(--as-green-900); font-size: .93rem; text-align: left; margin-top: 8px; }

/* ---------- Form & liên hệ ---------- */
.as-quote { gap: clamp(1.5rem, 4vw, 3rem); }
.as-quote > .wp-block-column > * { margin-block: 0; }
.as-quote > .wp-block-column > * + * { margin-top: 1rem; }
@media (min-width: 782px) {
	.as-quote > .wp-block-column:first-child { position: sticky; top: calc(var(--as-header-h) + 24px); align-self: flex-start; }
}
.agrisure-contact.is-card { padding: 16px; border-radius: var(--as-radius-sm); background: #fff; border: 1px solid var(--as-line); }
.agrisure-contact.is-card > * { margin: 0; }
.agrisure-contact.is-card > * + * { margin-top: 8px; }
.agrisure-contact__title { font-weight: 600; color: var(--as-green-900); }
.agrisure-contact__line { font-size: 1rem; }
.agrisure-contact__line a { color: var(--as-green-800); text-decoration: none; }
.agrisure-contact__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.agrisure-contact__actions .as-btn { flex: 1; min-height: 44px; }
.agrisure-contact__addr { font-size: .95rem; color: var(--as-ink-2); }
.agrisure-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

.quote-form { background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--as-shadow); }
.form-legend { font-size: .9rem; color: var(--as-ink-2); margin: 0 0 12px; text-align: right; }
.form-grid { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: .97rem; margin-bottom: 6px; padding: 0; color: var(--as-ink); }
.req { color: var(--as-danger); }
.opt { color: #6B7A71; font-weight: 400; font-size: .92em; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
	width: 100%; font: 400 16px/1.4 inherit; font-family: inherit; color: var(--as-ink); background: #fff; border: 1.5px solid #C9D6CC; border-radius: var(--as-radius-sm); padding: 11px 12px; min-height: 48px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; box-sizing: border-box;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234A5A50' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center/18px no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--as-green-600); box-shadow: 0 0 0 3px rgba(47,143,78,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--as-danger); }
.error { color: var(--as-danger); font-size: .9rem; margin: 4px 0 0; }
.error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.chips-4 { display: grid; grid-template-columns: repeat(2, 1fr); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 14px; border: 1.5px solid #C9D6CC; border-radius: 999px; font-size: .97rem; background: #fff; transition: all .15s; box-sizing: border-box; }
.chips-3 .chip span, .chips-4 .chip span { width: 100%; justify-content: center; min-height: 48px; }
.chip input:checked + span { background: var(--as-green-800); border-color: var(--as-green-800); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--as-accent); outline-offset: 2px; }
.field.invalid .chip span { border-color: var(--as-danger); }
.more { margin-top: 18px; border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); background: #FCFDFB; }
.more > summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 14px; font-weight: 600; color: var(--as-green-800); position: relative; min-height: 48px; font-size: .97rem; box-sizing: border-box; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--as-green-600); }
.more[open] > summary::after { content: "–"; }
.more-grid { padding: 4px 14px 16px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .95rem; line-height: 1.55; color: var(--as-ink-2); margin: 16px 0; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: none; animation: as-spin .8s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }
.is-loading .spinner { display: inline-block; }
.is-loading { opacity: .85; pointer-events: none; }
.form-status { margin-top: 14px; border-radius: var(--as-radius-sm); font-size: .97rem; }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 16px; background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }
.form-status.err { padding: 14px 16px; background: #FEF3F2; color: var(--as-danger); border: 1px solid #FECDCA; }
.form-status:focus { outline: none; }
@media (min-width: 640px) {
	.form-grid { grid-template-columns: repeat(2, 1fr); }
	.field-full { grid-column: 1 / -1; }
	.chips-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- FAQ ---------- */
.as-faq { display: grid; gap: 10px; }
.as-faq > * { margin: 0 !important; }
.as-faq .wp-block-details { border: 1px solid var(--as-line); border-radius: var(--as-radius-sm); background: #fff; }
.as-faq .wp-block-details summary { cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 600; color: var(--as-green-900); list-style: none; position: relative; }
.as-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.as-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--as-green-600); font-weight: 400; }
.as-faq .wp-block-details[open] summary::after { content: "–"; }
.as-faq .wp-block-details > p { padding: 0 16px 16px; margin: 0; color: var(--as-ink-2); }

/* ---------- CTA cuối ---------- */
.as-final { gap: 20px 40px; }
.as-final-text { flex: 1 1 28rem; min-width: 0; }
.as-final-text > * { margin: 0; }
.as-final h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); margin: 0 0 .5rem; }
.as-final p { color: var(--as-ink-2); }
.as-final-btn { flex: 0 0 auto; }
@media (max-width: 599px) { .as-final-btn, .as-final-btn .wp-block-button, .as-final-btn .wp-block-button__link { width: 100%; } }

/* ---------- Chân trang ---------- */
.as-footer { background: var(--as-green-900); color: #C4D8CA; padding-block: 44px 24px; font-size: .97rem; }
.as-footer a { color: #E7F2EA; }
.as-footer .as-footer-h { font-size: .97rem; color: #fff; margin: 0 0 10px; }
.as-logo-light img { filter: brightness(0) invert(1); opacity: .95; }
.as-footer-cols { gap: 24px; }
.as-footer-cols p { margin-top: 12px; }
.as-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.as-footer-links a, .agrisure-contact__list a { display: inline-block; padding: 6px 0; }
.as-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px !important; padding-top: 18px; font-size: .92rem; line-height: 1.65; }
.as-legal > * { margin: 0; }
.as-legal .as-copy { margin-top: 8px; color: #8FAB98; }
.as-footer mark.tbc { background: rgba(255,244,204,.15); color: #FFE08A; border-color: rgba(227,179,65,.6); }

/* ---------- Thanh nút cố định trên điện thoại ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(255,255,255,.97); border-top: 1px solid var(--as-line); box-shadow: 0 -4px 16px rgba(16,40,24,.08); transform: translateY(110%); transition: transform .2s ease; }
.mobile-bar.show { transform: none; }
.mobile-bar[hidden] { display: none; }
.mobile-bar .as-btn { min-height: 48px; padding: .6em .9em; font-size: .95rem; white-space: nowrap; }
.mobile-bar .mb-quote { flex: 1; min-width: 0; }
.has-mobile-bar .as-footer { padding-bottom: 96px; }
@media (min-width: 960px) { .mobile-bar { display: none !important; } .has-mobile-bar .as-footer { padding-bottom: 24px; } }

/* ---------- Trang, bài viết, danh sách ---------- */
.as-main { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem); min-height: 50vh; }
.as-main .wp-block-post-title { margin-bottom: .5rem; }
.as-single .wp-block-post-featured-image { margin-block: 1.5rem; }
.as-single .wp-block-post-featured-image img { border-radius: var(--as-radius); }
.wp-block-post-content { font-size: 1.05rem; line-height: 1.75; }
.as-landing .wp-block-post-content { font-size: 1rem; line-height: 1.65; }
.wp-block-post-content :where(h2) { margin-top: 2rem; }
.wp-block-post-content img { border-radius: var(--as-radius-sm); }
.as-post-cta { margin-top: 2.5rem !important; padding: 22px; border-radius: var(--as-radius); background: var(--as-green-50); border: 1px solid #CFE4C8; }
.as-post-cta > * { margin-block: 0; }
.as-post-cta > * + * { margin-top: .75rem; }
.as-post-nav { margin-top: 2rem !important; font-size: .97rem; gap: 12px; }
.as-archive .wp-block-query-title, .as-archive h1 { margin-bottom: 1.5rem; }
.as-post-card { padding: 0 !important; overflow: hidden; height: 100%; }
.as-post-card > * { margin: 0 !important; }
.as-post-card .wp-block-post-featured-image img { border-radius: 0; }
.as-post-card .wp-block-post-title { font-size: 1.15rem; padding: 18px 18px 0; }
.as-post-card .wp-block-post-title a { text-decoration: none; }
.as-post-card .wp-block-post-date { padding: 6px 18px 0; }
.as-post-card .wp-block-post-excerpt { padding: 8px 18px 18px; color: var(--as-ink-2); font-size: .97rem; }
.as-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-query-pagination { margin-top: 2rem; gap: 8px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--as-line); text-decoration: none; }
.wp-block-query-pagination .current { background: var(--as-green-800); color: #fff; border-color: var(--as-green-800); }

/* Lưới tự co giãn: không để cột trống */
.wp-block-group.is-layout-grid.as-grid-2, .wp-block-group.is-layout-grid.as-grid-3, .wp-block-group.is-layout-grid.as-grid-4, .wp-block-group.is-layout-grid.as-fs-grid { grid-template-columns: repeat(auto-fit, minmax(min(var(--as-min, 16rem), 100%), 1fr)); }
.as-grid-2 { --as-min: 20rem; } .as-grid-3 { --as-min: 17rem; } .as-grid-4 { --as-min: 15rem; } .as-fs-grid { --as-min: 18rem; }
.as-dark .as-grid-3 { --as-min: 19rem; }
@media (min-width: 1000px) { .as-fs-grid, .as-dark .as-grid-3 { grid-template-columns: repeat(3, 1fr) !important; } }
.chips-3 .chip span { padding: 8px 6px; white-space: nowrap; }
