/*
Theme Name: AIA Group 487
Description: Block theme สำหรับเว็บไซต์ตัวแทนประกันกลุ่ม AIA (aiaagent-487.com) — หน้าแรก, ผลิตภัณฑ์ 3 แผน, เกี่ยวกับเรา, ติดต่อ/ขอใบเสนอราคา พร้อมฟอร์มที่มี checkbox ยินยอม PDPA
Version: 1.3.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: aia487
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.aia-eyebrow {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.02em;
	margin-bottom: 0;
}
.aia-lead { font-size: 1.15rem; color: var(--wp--preset--color--muted); max-width: 46rem; }
.aia-note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.aia-center { text-align: center; }
/* Narrow lead text stays aligned with the section's left edge inside constrained layouts. */
.is-layout-constrained > .aia-lead {
	max-width: min(46rem, var(--wp--style--global--content-size));
	margin-left: calc((100% - min(100%, var(--wp--style--global--content-size))) / 2) !important;
}
.aia-center > .aia-lead, .aia-center.aia-lead { margin-inline: auto !important; }

/* ---------- Header ---------- */
.aia-header {
	background: #fff;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: 0.75rem;
}
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child {
	/* Sticky must sit on the template part: the inner group is exactly as tall as its parent, so it had nowhere to stick. */
	position: sticky; top: 0; z-index: 100;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
html { scroll-padding-top: 80px; }

/* Hamburger menu below 960px (the full menu needs about 900px), with a visible label. */
@media (max-width: 959px) {
	.aia-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.aia-header .wp-block-navigation__responsive-container-open { display: flex !important; }
}
.aia-header .wp-block-navigation__responsive-container-open {
	align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink); font-size: 0.9rem; font-weight: 600;
}
.aia-header .wp-block-navigation__responsive-container-open::after { content: "เมนู"; }
.aia-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem 1.25rem; }
.aia-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.1rem; font-size: 1.1rem; }
.aia-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { min-width: 0 !important; border: 0 !important; box-shadow: none; padding: 0.4rem 0 0 1rem; }
.aia-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { white-space: normal; }
.aia-brand { gap: 0.6rem; }
.aia-brand .wp-block-site-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.aia-brand .wp-block-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.aia-brand .wp-block-site-title a::first-letter { color: inherit; }
.aia-header .wp-block-navigation { font-size: 0.975rem; gap: 1.4rem; }
.aia-header .wp-block-navigation a { text-decoration: none; }
.aia-header .wp-block-navigation-item a:hover { color: var(--wp--preset--color--primary); }
.aia-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 12px; padding: 0.4rem 0; box-shadow: 0 12px 32px rgba(34, 40, 46, 0.1);
}
.aia-header .wp-block-navigation .aia-nav-cta > a {
	background: var(--wp--preset--color--primary); color: #fff !important;
	padding: 0.5em 1.2em; border-radius: 999px; font-weight: 600;
}
.aia-header .wp-block-navigation .aia-nav-cta > a:hover { background: var(--wp--preset--color--primary-dark); }

/* ---------- Sections ---------- */
.aia-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.aia-section--soft { background: var(--wp--preset--color--soft); }
.aia-section--blush { background: var(--wp--preset--color--blush); }
.aia-section-title { margin-bottom: 0.5rem; }
.aia-section > .aia-lead { margin-top: 0; }

/* ---------- Hero ---------- */
.aia-hero {
	background:
		radial-gradient(1100px 500px at 100% 0%, rgba(211, 17, 69, 0.10), transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--wp--preset--color--blush) 100%);
	padding-block: clamp(3rem, 8vw, 6.5rem);
}
.aia-hero h1 { margin-top: 0.4rem; }
.aia-hero .wp-block-columns { align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.aia-hero-card {
	background: #fff; border-radius: 20px; padding: 1.75rem;
	box-shadow: 0 24px 60px rgba(34, 40, 46, 0.12);
	border-top: 5px solid var(--wp--preset--color--primary);
}
.aia-hero-card h2 { font-size: 1.2rem; margin-top: 0; }
.aia-hero-card ul { list-style: none; padding: 0; margin: 0; }
.aia-hero-card li { padding: 0.8rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.aia-hero-card li:last-child { border-bottom: 0; }
.aia-hero-card li a { font-weight: 600; text-decoration: none; display: block; }
.aia-hero-card li small { display: block; color: var(--wp--preset--color--muted); font-size: 0.9rem; }

.aia-page-hero {
	background: linear-gradient(180deg, var(--wp--preset--color--blush) 0%, #fff 100%);
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.aia-page-hero h1 { margin-top: 0.35rem; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.aia-btn-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--primary);
	border: 2px solid currentColor; padding: calc(0.8em - 2px) calc(1.6em - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.aia-btn-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--blush); }
.aia-cta .wp-block-button__link { background: #fff; color: var(--wp--preset--color--primary); }
.aia-cta .wp-block-button__link:hover { background: var(--wp--preset--color--blush); color: var(--wp--preset--color--primary-dark); }
.aia-cta .wp-block-button.aia-btn-outline > .wp-block-button__link { background: transparent; color: #fff; }
.aia-cta .wp-block-button.aia-btn-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Trust bar ---------- */
.aia-trust { background: var(--wp--preset--color--ink); color: #fff; padding-block: 1.1rem; }
.aia-trust ul {
	list-style: none; margin: 0 auto; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem;
	font-size: 0.95rem; font-weight: 500;
}
.aia-trust li::before { content: "✓"; color: #ff6f8f; font-weight: 700; margin-right: 0.45rem; }

/* ---------- Cards ---------- */
.aia-cards { gap: 1.5rem; margin-top: 2rem; }
.aia-cards + .aia-cards { margin-top: 1.5rem; }
.aia-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px; padding: 1.6rem 1.5rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.aia-section--soft .aia-card { border-color: transparent; }
.aia-card > h3 { margin-top: 0; font-size: 1.15rem; }
.aia-card > h3::before {
	content: ""; display: block; width: 36px; height: 4px; border-radius: 2px;
	background: var(--wp--preset--color--primary); margin-bottom: 0.9rem;
}
.aia-card p { margin-bottom: 0; color: var(--wp--preset--color--muted); }
.aia-plan { display: flex; flex-direction: column; border-top: 5px solid var(--wp--preset--color--primary); }
.aia-plan > h3::before { display: none; }
.aia-plan .aia-eyebrow { margin-top: 0; }
.aia-plan ul { padding-left: 1.2rem; color: var(--wp--preset--color--muted); flex: 1; }
.aia-plan .wp-block-buttons { margin-top: auto; padding-top: 1.25rem; }
.aia-plan:hover { box-shadow: 0 16px 40px rgba(34, 40, 46, 0.08); }

/* ---------- Lists ---------- */
.aia-checks { list-style: none; padding-left: 0; }
.aia-checks li { position: relative; padding-left: 1.8rem; margin-bottom: 0.55rem; }
.aia-checks li::before {
	content: "✓"; position: absolute; left: 0; top: 0.05em;
	width: 1.25rem; height: 1.25rem; border-radius: 50%;
	background: var(--wp--preset--color--blush); color: var(--wp--preset--color--primary);
	font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; line-height: 1.25rem; text-align: center;
}
.aia-warn {
	background: #FFF8E6; border: 1px solid #F5D98B; border-radius: 14px; padding: 1.25rem 1.5rem;
}
.aia-warn h3 { margin-top: 0; font-size: 1.05rem; }
.aia-warn ul { margin-bottom: 0; }

/* ---------- Steps ---------- */
.aia-steps { list-style: none; counter-reset: step; padding: 0; }
.aia-steps li {
	counter-increment: step; position: relative;
	padding: 0 0 1.25rem 3.25rem; min-height: 2.5rem;
}
.aia-steps li::before {
	content: counter(step); position: absolute; left: 0; top: -0.1rem;
	width: 2.3rem; height: 2.3rem; border-radius: 50%;
	background: var(--wp--preset--color--primary); color: #fff; font-weight: 700;
	display: grid; place-items: center;
}
.aia-steps li:not(:last-child)::after {
	content: ""; position: absolute; left: 1.13rem; top: 2.4rem; bottom: 0.1rem;
	width: 2px; background: var(--wp--preset--color--line);
}

/* ---------- Table ---------- */
.aia-compare { margin-top: 2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aia-compare table {
	min-width: 680px; border-collapse: separate; border-spacing: 0;
	background: #fff; border-radius: 16px; overflow: hidden;
	border: 1px solid var(--wp--preset--color--line); font-size: 0.95rem;
}
.aia-compare th, .aia-compare td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.85rem 1rem; text-align: left; vertical-align: top; }
.aia-compare thead th { background: var(--wp--preset--color--primary); color: #fff; font-weight: 600; }
.aia-compare tbody td:first-child { font-weight: 600; background: var(--wp--preset--color--soft); width: 22%; }
.aia-compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.aia-faq { max-width: 860px; margin-inline: auto; }
.aia-faq .wp-block-details {
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px; padding: 0; margin-top: 0.75rem;
}
.aia-faq .wp-block-details summary {
	cursor: pointer; font-weight: 600; padding: 1rem 3rem 1rem 1.25rem; position: relative; list-style: none;
}
.aia-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.aia-faq .wp-block-details summary::after {
	content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
	color: var(--wp--preset--color--primary); font-size: 1.4rem; font-weight: 400;
}
.aia-faq .wp-block-details[open] summary::after { content: "−"; }
.aia-faq .wp-block-details > :not(summary) { padding: 0 1.25rem; margin-top: 0; color: var(--wp--preset--color--muted); }
.aia-faq .wp-block-details > :last-child { padding-bottom: 1.1rem; }

/* ---------- CTA band ---------- */
.aia-cta {
	background: linear-gradient(120deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
	color: #fff; text-align: center; padding-block: clamp(3rem, 7vw, 4.5rem);
}
.aia-cta h2 { color: #fff; margin-top: 0; }
.aia-cta p { color: rgba(255, 255, 255, 0.9); margin-inline: auto; max-width: 40rem; }
.aia-cta .wp-block-buttons { justify-content: center; }

/* ---------- Profile / contact ---------- */
.aia-profile {
	background: #fff; border-radius: 20px; padding: 1.75rem;
	border: 1px solid var(--wp--preset--color--line);
}
.aia-profile p { margin: 0.35rem 0; }
.aia-badge {
	display: inline-block; background: var(--wp--preset--color--blush); color: var(--wp--preset--color--primary);
	border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.875rem; font-weight: 600;
}
.aia-contact-list { list-style: none; padding: 0; }
.aia-contact-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.aia-contact-list li strong { display: block; font-size: 0.85rem; color: var(--wp--preset--color--muted); font-weight: 500; }

/* ---------- Prose (privacy, articles) ---------- */
.aia-prose { max-width: 800px; margin-inline: auto; }
.aia-prose h2 { font-size: 1.35rem; margin-top: 2.25rem; }

/* ---------- Quote form ---------- */
.aia-form-wrap {
	background: #fff; border-radius: 20px; padding: clamp(1.25rem, 4vw, 2rem);
	box-shadow: 0 20px 50px rgba(34, 40, 46, 0.1); border-top: 5px solid var(--wp--preset--color--primary);
	scroll-margin-top: 110px;
}
.aia-form-wrap h2 { margin-top: 0; font-size: 1.4rem; }
.aia-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.aia-field { display: flex; flex-direction: column; gap: 0.35rem; }
.aia-field--full { grid-column: 1 / -1; }
.aia-field label { font-weight: 600; font-size: 0.925rem; }
.aia-field label .req { color: var(--wp--preset--color--primary); }
.aia-field input, .aia-field select, .aia-field textarea {
	font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem;
	border: 1px solid #CDD2D7; border-radius: 10px; background: #fff; color: inherit; width: 100%; box-sizing: border-box;
}
.aia-field input:focus, .aia-field select:focus, .aia-field textarea:focus {
	outline: 2px solid rgba(211, 17, 69, 0.35); outline-offset: 1px; border-color: var(--wp--preset--color--primary);
}
.aia-consent { grid-column: 1 / -1; display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.925rem; line-height: 1.6; }
.aia-consent input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--wp--preset--color--primary); flex: none; }
.aia-form button {
	grid-column: 1 / -1; font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer;
	background: var(--wp--preset--color--primary); color: #fff; border: 0; border-radius: 999px; padding: 0.9rem 1.5rem;
}
.aia-form button:hover { background: var(--wp--preset--color--primary-dark); }
.aia-form .aia-note { grid-column: 1 / -1; margin: 0; }
.aia-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aia-notice { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.aia-notice--success { background: #E8F6EE; border: 1px solid #A6DBBD; color: #155C33; }
.aia-notice--error { background: #FDECEF; border: 1px solid #F2A9B9; color: #8A0D2E; }
@media (max-width: 640px) { .aia-form { grid-template-columns: 1fr; } }

/* ---------- Articles ---------- */
.aia-post-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; overflow: hidden; height: 100%; }
.aia-post-card .wp-block-post-featured-image { margin: 0; }
.aia-post-card > :not(.wp-block-post-featured-image) { padding-inline: 1.25rem; }
.aia-post-card .wp-block-post-title { font-size: 1.15rem; margin-top: 1rem; }
.aia-post-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.aia-post-card .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: 0.85rem; padding-bottom: 1.25rem; }

/* ---------- Footer ---------- */
.aia-footer { background: #1B2025; color: #C9CFD5; font-size: 0.95rem; padding-top: clamp(2.5rem, 6vw, 4rem); }
.aia-footer h2, .aia-footer h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.aia-footer a { color: #fff; text-decoration: none; }
.aia-footer a:hover { color: #ff8aa5; }
.aia-footer ul { list-style: none; padding: 0; margin: 0; }
.aia-footer li { margin-bottom: 0.45rem; }
.aia-footer .aia-note { color: #9AA3AC; }
.aia-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.5rem; padding-block: 1.25rem; }
.aia-footer-bottom p { margin: 0.25rem 0; font-size: 0.85rem; color: #9AA3AC; }

@media (max-width: 781px) {
	.aia-hero .wp-block-columns { gap: 2rem; }
	.aia-card { padding: 1.35rem 1.25rem; }
}

/* ---------- Card icons: add class aia-ic-<name> to an .aia-card column ---------- */
.aia-card[class*="aia-ic-"] > h3::before {
	width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
	background: var(--wp--preset--color--blush) center / 24px no-repeat;
}
.aia-card.aia-ic-trophy > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-sliders > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-building > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1'/%3E%3Cpath d='M9 7h2M13 7h2M9 11h2M13 11h2M9 15h2M13 15h2M11 21v-3h2v3'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-usercheck > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0M16 11l2 2 4-4'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-hospital > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M12 7v6M9 10h6M10 21v-4h4v4'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-monitor > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4M7 12l3-3 2 2 4-4'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-users > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-star > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-heart > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-cross > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-tooth > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3c-2.5 0-4 2-4 4.5 0 3 1.5 4.5 2 7 .6 3 1.2 6.5 3 6.5s1.6-5 4-5 2.2 5 4 5 2.4-3.5 3-6.5c.5-2.5 2-4 2-7C21 5 19.5 3 17 3c-2 0-3 1-5 1S9 3 7 3z'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-shield > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' 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-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-firstaid > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V4h6v3M12 10v7M8.5 13.5h7'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-clipboard > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-clipcheck > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 13l2 2 4-4'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-calendar > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-wallet > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h13v2'/%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M16 13.5h2'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-message > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E"); }
.aia-card.aia-ic-presentation > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D31145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='11' rx='1'/%3E%3Cpath d='M12 15v3M8 21l4-3 4 3M7 11l3-3 2 2 4-4'/%3E%3C/svg%3E"); }

/* ---------- Map ---------- */
.aia-map { margin-top: 1rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); line-height: 0; }
.aia-map iframe { width: 100%; height: 300px; border: 0; }

/* ---------- Text wrapping: keep short Thai phrases together ---------- */
.aia-nw { white-space: nowrap; }
.aia-lead, .aia-card p, .aia-note { text-wrap: pretty; }

/* ---------- Photos ---------- */
.aia-rounded img, .aia-hero-img img { display: block; width: 100%; height: auto; border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; }
.aia-hero-img img { aspect-ratio: 5 / 4; object-position: 60% 40%; box-shadow: 0 24px 60px rgba(34, 40, 46, 0.14); }
.aia-hero-img, .aia-rounded { margin: 0; }
.aia-hero-card--overlap { position: relative; width: 84%; margin: -96px 0 0 -48px !important; padding: 1.25rem 1.5rem; }
.aia-hero-card--overlap li { padding: 0.55rem 0; }
@media (max-width: 781px) { .aia-hero-card--overlap { width: auto; margin: -56px 12px 0 !important; } }
.wp-block-image .wp-element-caption { font-size: 0.85rem; color: var(--wp--preset--color--muted); margin-top: 0.5rem; text-align: left; }
.aia-profile-photo { margin: -1.75rem -1.75rem 1.25rem; }
.aia-profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 12%; border-radius: 20px 20px 0 0; }
.aia-award { margin-top: 1.5rem; max-width: 520px; }
.aia-gallery { gap: 1.25rem; margin-top: 1.5rem; }
.aia-page-hero__cols { gap: clamp(1.5rem, 4vw, 3.5rem); }

/* ---------- Reviews ---------- */
.aia-reviews { gap: 1.25rem; margin-top: 1.5rem; align-items: stretch; }
.aia-review { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1.5rem; display: grid; grid-template-rows: 1fr auto; gap: 1rem; height: 100%; box-sizing: border-box; }
.aia-section--soft .aia-review { border-color: transparent; }
.aia-review__quote { margin: 0; font-size: 0.98rem; color: var(--wp--preset--color--ink); text-wrap: pretty; position: relative; padding-top: 1.75rem; }
.aia-review__quote::before { content: "“"; position: absolute; top: -0.6rem; left: 0; font-size: 3rem; line-height: 1; color: var(--wp--preset--color--primary); font-family: Georgia, serif; }
.aia-review__who { margin: 0; font-size: 0.85rem; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--line); padding-top: 0.85rem; }
.aia-review__who strong { color: var(--wp--preset--color--ink); }
.aia-section > .wp-block-buttons { margin-top: 1.5rem; }

/* ---------- Fixes 19 Oct ---------- */
/* Profile photo fills the top of its card edge to edge. */
.aia-profile .wp-block-image.aia-profile-photo { margin: -1.75rem -1.75rem 1.25rem !important; max-width: none; }
.aia-profile .wp-block-image.aia-profile-photo img { border-radius: 19px 19px 0 0; }
/* Submenu wide enough that plan names stay on one line. */
.aia-header .wp-block-navigation__submenu-container { min-width: 340px !important; }
.aia-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { white-space: nowrap; }
li { text-wrap: pretty; }

/* Update note: needs its own surface to read as a label on the pink hero. */
.aia-page-hero .aia-badge { background: #fff; border: 1px solid rgba(211, 17, 69, 0.28); margin-top: 0.6rem; margin-bottom: 0; }

/* ---------- Article ---------- */
.aia-byline { gap: 0.4rem 0.75rem; color: var(--wp--preset--color--muted); font-size: 0.9rem; }
.aia-byline .wp-block-post-author-name::before { content: "เขียนโดย "; }
.aia-byline .wp-block-post-date::before { content: "· "; }
.wp-block-post-content h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.wp-block-post-content h3 { font-size: 1.2rem; margin-top: 2rem; }
.wp-block-post-content .aia-compare table { min-width: 560px; }
.aia-tip { background: var(--wp--preset--color--blush); border-left: 4px solid var(--wp--preset--color--primary); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; }
.aia-faq--article { max-width: none; }
.aia-faq--article h2 { margin-bottom: 0.5rem; }
.wp-block-post-content .wp-block-separator { border: 0; border-top: 1px solid var(--wp--preset--color--line); margin-block: 2.5rem; }
.single .wp-block-post-featured-image img { border-radius: 20px; }

/* Open mobile menu: one left-aligned column, CTA fully visible. */
.aia-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}
.aia-header .is-menu-open .wp-block-navigation__responsive-container-content,
.aia-header .is-menu-open .wp-block-navigation__container,
.aia-header .is-menu-open .wp-block-navigation-item,
.aia-header .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; }
.aia-header .is-menu-open .wp-block-navigation__container { width: 100%; gap: 1.1rem; }
.aia-header .is-menu-open .wp-block-navigation__submenu-container { gap: 0.6rem; font-size: 0.95rem; color: var(--wp--preset--color--muted); }
.aia-header .is-menu-open .aia-nav-cta { margin-top: 0.5rem; }
.aia-header .is-menu-open .aia-nav-cta > a { display: inline-block; padding: 0.6em 1.4em !important; }
.aia-header .is-menu-open .wp-block-navigation__submenu-container { padding: 0.5rem 0 0 1rem !important; }

/* Article cards: category tags as grey pills above the date; excerpt shows up to 3 lines. */
.aia-post-card { display: flex; flex-direction: column; }
.aia-post-card .wp-block-post-excerpt { flex: 1; }
.aia-post-card .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.aia-post-card .aia-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; font-size: 0.8rem; }
.aia-post-card .aia-tags .wp-block-post-terms__separator { display: none; }
.aia-post-card .aia-tags a {
	background: #F1F3F5; color: var(--wp--preset--color--muted); text-decoration: none;
	border-radius: 999px; padding: 0.2rem 0.75rem; font-weight: 500;
}
.aia-post-card .aia-tags a::before { content: "#"; }
.aia-post-card .aia-tags a:hover { background: #E6E9EC; color: var(--wp--preset--color--ink); }
.aia-post-card .wp-block-post-date { margin-top: 0.6rem; }
