/* =====================================================================
   Family Connect — phần mở rộng cho WordPress
   (Khách hàng, Câu chuyện, Đội ngũ, Hình ảnh, Blog, trang trong).
   Dùng chung biến màu --rose-* của style.css.
   ===================================================================== */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.narrow { max-width: 860px; }
.brand-logo { height: 44px; width: auto; }
.main-nav a.is-active:not(.btn) { background: var(--rose-50); color: var(--rose-700); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--rose-700); }
.link-more .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-more:hover .ico { transform: translateX(4px); }
.about-more { margin-top: 24px; }
.section-more { text-align: center; margin-top: 44px; }
.btn .ico { flex: none; }

/* ---------- Footer 4 cột ---------- */
.footer-grid-4 { grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 40px; }
.footer-title { font-size: .85rem; }
.footer-contact li { align-items: flex-start; }
.footer-contact .ico { margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-50); color: var(--rose-700); border: 1px solid var(--line); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--rose-600); color: #fff; }
.footer-social .ico { width: 18px; height: 18px; }

/* ---------- Form (bản WordPress) ---------- */
.form-card .form-title { font-family: var(--font-head); font-weight: 600; font-size: 1.75rem; color: var(--ink); }
.field textarea { width: 100%; padding: 12px 16px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--rose-25); border: 1.5px solid var(--rose-200); border-radius: 14px; resize: vertical; min-height: 96px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea:focus { outline: none; border-color: var(--rose-500); background: #fff; box-shadow: 0 0 0 4px rgba(236, 72, 153, .15); }
.field label small { font-weight: 400; color: var(--ink-soft); }
.consent-row a { text-decoration: underline; }

/* ---------- Nhãn ---------- */
.demo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: #8A4B08; background: #FEF3C7; border: 1px dashed #F59E0B; padding: 3px 10px; border-radius: 999px; line-height: 1.4; }
.demo-badge .ico { width: 13px; height: 13px; }
.verified-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ok); background: #ECFDF3; padding: 4px 10px; border-radius: 999px; }
.verified-badge .ico { width: 14px; height: 14px; }

/* ---------- Avatar ---------- */
.avatar { display: block; flex: none; border-radius: 50%; overflow: hidden; background: var(--rose-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: #fff; background: var(--grad); letter-spacing: .02em; }
.avatar-initials.tone-plum { background: linear-gradient(135deg, #A855F7 0%, #9D174D 100%); }
.avatar-initials.tone-rose { background: linear-gradient(135deg, #F472B6 0%, #DB2777 60%, #BE185D 100%); }

/* ---------- Tabs ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin: -16px 0 36px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--rose-200); background: #fff; color: var(--rose-700); font-weight: 600; transition: all .2s; }
.tab .ico { width: 18px; height: 18px; }
.tab:hover { border-color: var(--rose-400); }
.tab.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(219, 39, 119, .7); }
.tab-count { font-size: .78rem; background: rgba(0, 0, 0, .08); padding: 1px 8px; border-radius: 999px; }
.tab.is-active .tab-count { background: rgba(255, 255, 255, .25); }

/* ---------- Khách hàng ---------- */
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member-grid[hidden] { display: none; }
.member-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--rose-200); }
.member-top { display: flex; align-items: center; gap: 14px; }
.member-avatar { width: 64px; height: 64px; font-size: 1.35rem; box-shadow: 0 0 0 4px var(--rose-50); }
.member-card h3 { font-size: 1.08rem; }
.member-meta { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.member-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.member-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--rose-800); background: var(--rose-50); padding: 4px 10px; border-radius: 999px; }
.member-facts .ico { width: 14px; height: 14px; }
.member-intro { font-size: .92rem; color: var(--ink); line-height: 1.6; }
.member-seek { font-size: .85rem; color: var(--ink-soft); line-height: 1.55; }
.member-seek strong { color: var(--ink); font-weight: 600; }
.member-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-cta { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.member-cta .ico { width: 16px; height: 16px; }
.members-note { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; margin: 28px auto 0; max-width: 720px; font-size: .88rem; color: var(--ink-soft); }
.members-note .ico { width: 16px; height: 16px; color: var(--rose-600); }

/* ---------- Câu chuyện ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rose-50); }
.story-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-card:hover .story-thumb > img { transform: scale(1.04); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 90% at 80% 10%, #FFE1EE 0%, rgba(255, 225, 238, 0) 60%), linear-gradient(160deg, #FFF8FB 0%, #FCE7F3 100%); }
.thumb-fallback img { width: 52%; height: auto; }
.thumb-fallback-post img { width: 72px; opacity: .85; }
.story-milestone { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 28px); background: rgba(255, 255, 255, .94); color: var(--rose-800); font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.story-milestone .ico { width: 15px; height: 15px; }
.story-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; align-items: flex-start; }
.story-body h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.story-body h3 a { color: var(--ink); }
.story-body h3 a:hover { color: var(--rose-700); }
.story-couple { font-size: .88rem; color: var(--rose-700); font-weight: 500; }
.story-quote { margin: 4px 0 6px; position: relative; padding-left: 30px; }
.story-quote .ico { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; color: var(--rose-300); }
.story-quote p { font-style: italic; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.story-excerpt { color: var(--ink-soft); font-size: .95rem; }
.story-body .link-more { margin-top: auto; }

/* ---------- Đội ngũ ---------- */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.expert-grid.expert-count-4 { grid-template-columns: repeat(4, 1fr); max-width: none; }
.expert-grid.expert-count-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.expert-grid.expert-count-2 { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.expert-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.expert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.expert-photo { position: relative; width: 148px; height: 148px; margin: 0 auto 20px; }
.expert-photo::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed var(--rose-200); }
.expert-avatar { width: 148px; height: 148px; font-size: 2.6rem; border: 5px solid #fff; box-shadow: var(--shadow); }
.expert-card h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.expert-role { color: var(--rose-700); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.expert-facts { display: grid; gap: 6px; margin: 14px 0 0; }
.expert-facts li { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .86rem; color: var(--ink-soft); }
.expert-facts .ico { width: 15px; height: 15px; color: var(--rose-600); }
.expert-bio { color: var(--ink-soft); font-size: .93rem; margin-top: 14px; line-height: 1.6; }
.expert-quote { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--font-head); font-style: italic; color: var(--rose-800); font-size: 1rem; line-height: 1.5; }

/* ---------- Hình ảnh thực tế ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 236px); gap: 14px; }
.photo-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--rose-50); }
.photo-item:first-child { grid-column: span 2; grid-row: span 2; }
.photo-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-item:hover img { transform: scale(1.05); }
.photo-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(59, 28, 42, .62); color: #fff; font-size: .82rem; line-height: 1.35; backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.photo-cap .ico { width: 16px; height: 16px; }
.photo-item:hover .photo-cap, .photo-item:focus-visible .photo-cap { opacity: 1; transform: none; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 10, 20, .86); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 14px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: .95rem; }
.lightbox-close, .lightbox-nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; translate: 0 -50%; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.prev .ico { transform: rotate(180deg); }
.lightbox-nav.next { right: 16px; }

/* ---------- Blog card ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rose-50); }
.post-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb > img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-soft); }
.chip-cat { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--rose-700); background: var(--rose-100); padding: 3px 10px; border-radius: 999px; }
.post-body h3 { font-size: 1.12rem; line-height: 1.4; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--rose-700); }
.post-body p { color: var(--ink-soft); font-size: .93rem; line-height: 1.6; }
.post-read { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-soft); }
.post-read .ico { width: 15px; height: 15px; }
.post-card-page { border-style: dashed; }

/* ---------- Đầu trang trong ---------- */
.page-hero { position: relative; overflow: hidden; padding: 44px 0 64px; text-align: center; background: radial-gradient(60% 90% at 85% 10%, #FFE1EE 0%, rgba(255, 225, 238, 0) 60%), radial-gradient(50% 80% at 5% 100%, #FFEAF3 0%, rgba(255, 234, 243, 0) 60%), linear-gradient(180deg, #FFF8FB 0%, #FFFFFF 100%); }
.page-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.18; margin: 16px 0 14px; max-width: 900px; }
.page-hero .eyebrow { margin-top: 18px; }
.page-hero .eyebrow + h1 { margin-top: 16px; }
.page-lead { color: var(--ink-soft); font-size: 1.09rem; max-width: 720px; }
.page-hero .hero-actions { justify-content: center; margin-top: 26px; }
.page-hero-article h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: .84rem; color: var(--ink-soft); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--rose-700); }
.crumbs .ico { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--rose-700); font-weight: 500; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-meta, .story-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; font-size: .9rem; color: var(--ink-soft); }
.article-meta span, .story-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico, .story-hero-meta .ico { width: 16px; height: 16px; color: var(--rose-600); }
.story-hero-meta span { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; color: var(--ink); }
.demo-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Nội dung soạn thảo ---------- */
.section-page { padding: 72px 0 96px; }
.section-page-tight { padding: 64px 0 8px; }
.entry-content { font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.9em; margin-bottom: .2em; }
.entry-content h3 { font-size: 1.22rem; margin-top: 1.6em; margin-bottom: .1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { color: #4A2F3C; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 0; display: grid; gap: 10px; }
.entry-content ul > li { position: relative; padding-left: 30px; }
.entry-content ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--rose-300); box-shadow: 0 0 0 4px var(--rose-50); }
.entry-content ol { counter-reset: li; }
.entry-content ol > li { position: relative; padding-left: 40px; counter-increment: li; }
.entry-content ol > li::before { content: counter(li); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; background: var(--rose-100); color: var(--rose-700); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 1.6em 0; padding: 22px 26px 22px 30px; border-left: 4px solid var(--rose-400); background: var(--rose-25); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-style: italic; font-size: 1.15rem; }
.entry-content blockquote p { color: var(--rose-800); }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--rose-50); }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--grad); padding: 12px 26px; font-weight: 600; text-decoration: none; }
.entry-content hr { border: 0; border-top: 1px dashed var(--rose-200); margin: 2em 0; }
.page-cover { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.page-updated { margin-top: 48px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--ink-soft); }

/* ---------- Trang Về chúng tôi ---------- */
.about-page-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: start; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.about-aside .aside-card img { margin: -6px auto 6px; max-width: 280px; width: 100%; }
.about-aside .values { margin: 8px 0 20px; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Trang Liên hệ ---------- */
.contact-section { background: linear-gradient(180deg, #fff 0%, var(--rose-25) 100%); padding-top: 72px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 28px; }
.contact-cards li { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.contact-cards .icon-badge { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.contact-cards .icon-badge .ico { width: 22px; height: 22px; }
.contact-cards small { display: block; font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.contact-cards li > div > a, .contact-cards li > div > span { font-weight: 600; color: var(--ink); line-height: 1.45; }
.contact-cards .icon-badge { color: #fff; }
.contact-cards .icon-badge .ico { stroke: currentColor; }
.contact-cards a:hover { color: var(--rose-700); }
.map-section { padding: 0 0 96px; background: var(--rose-25); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 21 / 8; background: var(--rose-50); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Trang Hỏi đáp ---------- */
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-a-inner p { padding: 0 !important; color: var(--ink-soft); }
.faq-a-inner > * + * { margin-top: .8em; }
.faq-a-inner a { text-decoration: underline; }
.section-page-note { padding: 0 0 96px; }
.note-card { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; background: #fff; border: 1px dashed var(--rose-300); border-radius: var(--radius-lg); padding: 26px 30px; }
.note-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.note-card .entry-content { font-size: 1rem; }

/* ---------- Danh sách bài ---------- */
.section-list { padding: 56px 0 96px; }
.list-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; transition: all .2s; }
.cat-pills a:hover { border-color: var(--rose-300); color: var(--rose-700); }
.cat-pills a.is-active { background: var(--rose-600); border-color: var(--rose-600); color: #fff; }
.search-form { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--rose-200); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: 280px; }
.search-form input { flex: 1; border: 0; outline: 0; font: inherit; font-size: .95rem; background: transparent; color: var(--ink); min-width: 0; }
.search-form button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; }
.search-form button .ico { width: 18px; height: 18px; }
.search-form:focus-within { border-color: var(--rose-500); box-shadow: 0 0 0 4px rgba(236, 72, 153, .12); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }
.pagination a.page-numbers:hover { border-color: var(--rose-300); color: var(--rose-700); }
.empty-state { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 10px; color: var(--ink-soft); }
.empty-state h2 { font-size: 1.6rem; margin-top: 8px; }

/* ---------- Bài viết ---------- */
.section-article { padding: 56px 0 96px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article { max-width: 760px; }
.article-cover { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; }
.story-cover { position: relative; aspect-ratio: 16 / 9; background: var(--rose-50); }
.story-cover > img { width: 100%; height: 100%; object-fit: cover; }
.article-lead { font-size: 1.15rem; line-height: 1.75; color: var(--ink); font-weight: 500; padding: 4px 0 24px; margin-bottom: 28px; border-bottom: 1px dashed var(--rose-200); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.article-tags a { font-size: .85rem; background: var(--rose-50); padding: 4px 12px; border-radius: 999px; }
.article-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 48px; padding: 26px 28px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #FFF0F7 0%, #FFFFFF 100%); border: 1px solid var(--rose-200); }
.article-cta h2 { font-size: 1.3rem; }
.article-cta p { color: var(--ink-soft); font-size: .95rem; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.aside-title { font-family: var(--font-head); font-size: 1.35rem; }
.aside-title-sm { font-size: 1.1rem; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.aside-card > p { color: var(--ink-soft); font-size: .93rem; }
.aside-posts { display: grid; gap: 12px; }
.aside-posts a { display: block; color: var(--ink); font-weight: 500; font-size: .93rem; line-height: 1.45; }
.aside-posts a:hover { color: var(--rose-700); }
.aside-posts small { color: var(--ink-soft); font-size: .78rem; }
.story-bigquote { position: relative; margin: 0 0 36px; padding: 28px 32px 28px 76px; background: var(--rose-25); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.story-bigquote .ico { position: absolute; left: 26px; top: 28px; width: 34px; height: 34px; color: var(--rose-400); }
.story-bigquote p { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--rose-800); }

/* ---------- Gói: số lượng khác 3 ---------- */
.pkg-grid.pkg-count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.pkg-grid.pkg-count-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.pkg-grid.pkg-count-4 { grid-template-columns: repeat(4, 1fr); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid-4 .footer-brand { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .pkg-grid.pkg-count-4 { grid-template-columns: repeat(2, 1fr); }
  .expert-grid.expert-count-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .about-page-grid, .contact-grid, .article-grid { grid-template-columns: 1fr; }
  .about-aside, .aside-sticky { position: static; }
  .article { max-width: none; }
  .map-frame { aspect-ratio: 16 / 9; }
  .main-nav a.is-active:not(.btn) { background: var(--rose-50); }
}

@media (max-width: 680px) {
  .member-grid, .story-grid, .post-grid, .expert-grid, .expert-grid.expert-count-2, .expert-grid.expert-count-4 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 10px; }
  .photo-item:first-child { grid-row: span 1; grid-auto-rows: auto; }
  .photo-item:first-child, .photo-item:last-child:nth-child(even) { grid-column: span 2; }
  .photo-cap { opacity: 1; transform: none; font-size: .75rem; padding: 6px 10px; }
  .photo-item:not(:first-child) .photo-cap { display: none; }
  .tabs { margin-top: -6px; }
  .tab { padding: 10px 18px; }
  .page-hero { padding: 28px 0 44px; }
  .page-lead { font-size: 1rem; }
  .crumbs [aria-current] { max-width: 22ch; }
  .section-page { padding: 48px 0 64px; }
  .section-page-tight { padding: 44px 0 0; }
  .entry-content { font-size: 1rem; }
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .cat-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .cat-pills a { white-space: nowrap; }
  .search-form { min-width: 0; }
  .article-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .note-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .note-actions { justify-content: center; }
  .note-actions .btn { width: 100%; }
  .footer-grid-4 { grid-template-columns: 1fr; }
  .story-bigquote { padding: 22px 20px 22px 60px; }
  .story-bigquote .ico { left: 18px; top: 22px; width: 28px; height: 28px; }
  .story-bigquote p { font-size: 1.12rem; }
  .contact-section { padding-top: 48px; }
  .map-section { padding-bottom: 64px; }
  .map-frame { aspect-ratio: 4 / 3; }
  .lightbox-nav { top: auto; bottom: 16px; translate: none; }
  .expert-photo, .expert-avatar { width: 128px; height: 128px; }
  .pkg-grid.pkg-count-2, .pkg-grid.pkg-count-4 { grid-template-columns: 1fr; }
}

/* ---------- Header: menu 6 mục ---------- */
.header-inner { gap: 20px; }
.main-nav { gap: 2px; }
.main-nav a:not(.btn) { white-space: nowrap; padding: 8px 11px; }
.brand-tag, .brand-word, .header-hotline strong, .header-cta { white-space: nowrap; }
@media (max-width: 1240px) {
  .header-hotline > span:last-child { display: none; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .brand-tag { display: none; }
  .main-nav a:not(.btn) { padding: 8px 8px; font-size: .88rem; }
}

/* ---------- Ảnh thực tế: lấp đầy lưới 8 ảnh ---------- */
@media (min-width: 961px) {
  .photo-grid { grid-auto-flow: dense; }
  .photo-item:nth-child(6) { grid-column: span 2; }
}

/* ---------- Form card: vạch hồng bo theo góc thẻ ---------- */
.form-card { overflow: hidden; }
.form-card::before { inset: 0 0 auto 0; height: 6px; border-radius: 0; }

/* ---------- Header mobile: đẩy nút gọi + menu sang phải ---------- */
@media (max-width: 960px) {
  .main-nav + .header-actions { margin-left: auto; }
  .admin-bar .main-nav { top: calc(var(--header-h) + 32px); }
}
@media (max-width: 782px) {
  .admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
}

/* ---------- Dòng "Phát triển bởi Code Pro" ---------- */
.footer-credit a { color: var(--rose-700); font-weight: 600; }
.footer-credit a:hover { color: var(--rose-800); text-decoration: underline; }

/* ---------- Hero: ảnh văn phòng thực tế + địa chỉ ---------- */
.hero-office .hero-photo { aspect-ratio: 1000 / 864; border-radius: 180px 180px 32px 32px; }
.hero-office .hero-photo img { object-position: 50% 40%; }
.hero-inset { position: absolute; right: -16px; bottom: 6px; width: 30%; aspect-ratio: 1; margin: 0; border-radius: 22px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); animation: bob 6s ease-in-out -3s infinite; z-index: 2; }
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.chip-place { left: -10px; bottom: 26px; max-width: 66%; align-items: flex-start; z-index: 2; animation: none; }
.chip-place small { display: block; white-space: normal; line-height: 1.45; margin-top: 2px; }
.chip-place strong { color: var(--rose-800); }
.hero-office .chip-heart { display: none; }

@media (max-width: 960px) {
  .hero-office .hero-visual { max-width: 560px; }
}
@media (max-width: 680px) {
  .hero-office { padding-top: 20px; }
  .hero-office .hero-grid { gap: 20px; }
  .hero-office .hero-visual { order: -1; padding: 8px 4px 0; }
  .hero-office .hero-visual::before { inset: 0 0 60px 0; }
  .hero-office .hero-photo { border-radius: 120px 120px 22px 22px; border-width: 4px; }
  .hero-office .lede { display: none; }
  .hero-office .hero-copy h1 { margin: 14px 0 6px; font-size: 2rem; }
  .hero-office .hero-actions { margin-top: 18px; }
  .hero-office .hero-trust { margin-top: 16px; }
  .hero-inset { width: 26%; right: 0; bottom: auto; top: calc((100vw - 40px) * 0.864 * 0.66); border-width: 3px; border-radius: 14px; }
  .chip-place { position: relative; left: auto; bottom: auto; max-width: none; margin: 12px 0 0; text-align: left; }
  .chip-place small { display: block; }
  .hero-office .chip-heart { display: none; }
}

/* Bỏ khối nền hồng phía sau ảnh văn phòng */
.hero-office .hero-visual::before { display: none; }
