/* Charmer4you Redesign — design system from the "Charmer Clinic – SEO Redesign" canvas */
:root {
	--cc-navy: #0F2A4A;
	--cc-text: #3A4A5E;
	--cc-muted: #5B6B7F;
	--cc-accent: #1E64C8;
	--cc-sky: #EEF5FC;
	--cc-ph: #DCEBFA;
	--cc-line: #DCE6F0;
	--cc-line-2: #C5D5E6;
	--cc-line-3: #B9D3EE;
	--cc-on-dark: #DCE6F0;
	--cc-on-dark-2: #A9C2DE;
	--cc-head: 'Prompt', sans-serif;
	--cc-body: 'IBM Plex Sans Thai', sans-serif;
	--cc-wrap: 1200px;
}

/* ---------- Base (scoped to body.cc so legacy Impreza pages keep working) ---------- */
body.cc { margin: 0; background: #fff; color: var(--cc-text); font-family: var(--cc-body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.cc *, body.cc *::before, body.cc *::after { box-sizing: border-box; }
body.cc a { color: var(--cc-accent); }
body.cc a:hover { color: var(--cc-navy); }
:where(body.cc) img { max-width: 100%; height: auto; }
body.cc :focus-visible { outline: 3px solid var(--cc-accent); outline-offset: 2px; border-radius: 4px; }
.cc h1, .cc h2, .cc h3, .cc h4 { font-family: var(--cc-head); font-weight: 600; color: var(--cc-navy); letter-spacing: 0; margin: 0; }
.cc p, .cc ul, .cc ol, .cc dl, .cc figure { margin: 0; }
.cc-wrap { max-width: var(--cc-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cc-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 16px; }
.cc-skip:focus { left: 8px; }
.cc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cc-stack { display: flex; flex-direction: column; gap: 12px; }
.cc-muted { color: var(--cc-muted); }
.cc-note { font-size: 14px; color: var(--cc-muted); }
.cc-kicker { font-size: 14px; font-weight: 600; color: var(--cc-accent); }
.cc-eyebrow { font-size: 15px; font-weight: 600; color: var(--cc-accent); }

/* ---------- Buttons ---------- */
.cc .cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--cc-accent); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-family: inherit; font-size: 16px; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.cc .cc-btn:hover { background: var(--cc-navy); color: #fff; }
.cc .cc-btn--sm { height: 44px; padding: 0 20px; font-weight: 500; }
.cc .cc-btn--ghost { background: #fff; color: var(--cc-navy); border-color: var(--cc-line-2); }
.cc .cc-btn--ghost:hover { background: var(--cc-sky); color: var(--cc-navy); }
.cc .cc-btn--white { background: #fff; color: var(--cc-navy); }
.cc .cc-btn--white:hover { background: var(--cc-sky); color: var(--cc-navy); }
.cc .cc-btn--navy { background: var(--cc-navy); }
/* Every LINE call-to-action uses LINE green. */
.cc a.cc-btn[href*="line.me"] { background: #06C755; color: #fff; border-color: #06C755; }
.cc a.cc-btn[href*="line.me"]:hover { background: #05A847; border-color: #05A847; color: #fff; }
.cc .cc-nav .cc-lang { color: var(--cc-navy); text-decoration: none; }
.cc .cc-nav .cc-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; border: 1px solid var(--cc-line-2); border-radius: 999px; padding: 6px 12px; }
.cc .cc-pill { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--cc-line-2); color: var(--cc-navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.cc .cc-pill:hover { background: var(--cc-sky); }
.cc .cc-more { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.cc .cc-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.cc-header { border-bottom: 1px solid var(--cc-line); background: #fff; position: relative; z-index: 50; }
.cc-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.cc .cc-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; flex: 0 0 auto; }
.cc .cc-logo img { height: 56px; width: auto; display: block; }
.cc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.cc .cc-nav a:not(.cc-btn) { color: var(--cc-navy); text-decoration: none; }
.cc .cc-nav a:not(.cc-btn):hover, .cc .cc-nav a.is-current { color: var(--cc-accent); }
.cc-menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--cc-navy); align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* ---------- Generic sections ---------- */
.cc-hero { background: var(--cc-sky); }
.cc-main { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 80px; }
.cc-sec { display: flex; flex-direction: column; gap: 24px; }
.cc-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cc-sec h2, .cc-h2 { font-size: 34px; line-height: 1.3; }
.cc-sec__sub { color: var(--cc-muted); margin-top: 4px; }
.cc-crumb { font-size: 14px; color: var(--cc-muted); }
.cc .cc-crumb a { color: var(--cc-muted); }
.cc-grid { display: grid; gap: 20px; }
.cc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cc-grid--treat { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cc-grid--chips { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cc-grid--docs { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cc-grid--why { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.cc-grid--branches { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.cc-grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.cc-ph { display: flex; align-items: center; justify-content: center; background: var(--cc-ph); color: var(--cc-muted); font-size: 14px; text-align: center; padding: 12px; width: 100%; height: 100%; }

/* Home hero */
.cc-hero__in { padding-top: 56px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 48px; align-items: center; }
.cc-hero__txt { display: flex; flex-direction: column; gap: 20px; }
.cc-hero h1 { font-size: 52px; line-height: 1.18; }
.cc-hero__lead { font-size: 19px; max-width: 560px; }
.cc-hero__lead strong { color: var(--cc-navy); }
.cc-checks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--cc-navy); }
.cc-checks li { display: inline-flex; align-items: center; gap: 8px; }
.cc-hero__media { aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: var(--cc-ph); }
.cc-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; display: block; }
/* Imagify serves WebP inside <picture>; let it fill its frame so images cover the box. */
.cc-hero__media picture, .cc-phero__media picture, .cc-cover picture, .cc-tcard__media picture, .cc-media-box picture, .cc-featured__media picture, .cc-post__media picture { display: block; width: 100%; height: 100%; }

/* Treatment cards */
.cc .cc-tcard { border: 1px solid var(--cc-line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--cc-navy); display: flex; flex-direction: column; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cc .cc-tcard:hover { border-color: var(--cc-line-3); box-shadow: 0 8px 24px rgba(15, 42, 74, .08); color: var(--cc-navy); }
.cc-tcard__media { aspect-ratio: 16 / 9; background: var(--cc-ph); overflow: hidden; }
.cc-tcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-tcard__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.cc-tcard__name { font-family: var(--cc-head); font-weight: 600; font-size: 22px; }
.cc-tcard__desc { font-size: 16px; color: var(--cc-text); }
.cc-tcard__go { font-size: 15px; font-weight: 600; color: var(--cc-accent); }

/* Concern chips */
.cc .cc-chip { background: var(--cc-sky); border-radius: 16px; padding: 20px; font-weight: 600; color: var(--cc-navy); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.cc .cc-chip:hover { background: var(--cc-ph); color: var(--cc-navy); }
.cc-chip span { font-weight: 400; font-size: 14px; color: var(--cc-muted); }

/* Why */
.cc-why { border-top: 2px solid var(--cc-navy); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.cc-why strong { color: var(--cc-navy); font-size: 19px; }
.cc-why span { font-size: 16px; }

/* Doctor cards */
.cc .cc-doc { background: var(--cc-sky); border-radius: 22px; padding: 24px; text-decoration: none; color: var(--cc-navy); display: flex; gap: 16px; align-items: center; }
.cc .cc-doc:hover { background: var(--cc-ph); color: var(--cc-navy); }
.cc-avatar { width: 72px; height: 72px; border-radius: 999px; background: var(--cc-ph); flex: 0 0 auto; }
/* Doctor card photos from co.th are 1040x1040 cards: zoom in on the face. */
.cc .cc-avatar.cc-avatar--photo { background-color: #fff; background-repeat: no-repeat; background-size: 300%; background-position: 50% 26%; border: 1px solid var(--cc-line); }
.cc .cc-avatar.cc-avatar--logo { background-color: #fff; background-repeat: no-repeat; background-size: 78%; background-position: center; border: 1px solid var(--cc-line); }
.cc .cc-doc:hover .cc-avatar { background-color: #fff; }
.cc-doc__txt { display: flex; flex-direction: column; }
.cc-doc__txt strong { font-size: 17px; }
.cc-doc__txt span { font-size: 15px; color: var(--cc-text); }
.cc .cc-doc--outline { background: #fff; border: 1px solid var(--cc-line); }

/* Reviews strip */
.cc-media-box { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--cc-ph); display: flex; align-items: center; justify-content: center; color: var(--cc-muted); font-size: 15px; text-decoration: none; }
.cc-media-box iframe, .cc-media-box img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.cc-rating { background: var(--cc-navy); color: #fff; flex-direction: column; gap: 4px; text-align: center; padding: 16px; }
.cc-rating strong { font-family: var(--cc-head); font-size: 40px; font-weight: 600; }
.cc-rating span { font-size: 15px; color: var(--cc-on-dark); }

/* Text cards (articles) */
.cc .cc-card { border: 1px solid var(--cc-line); border-radius: 18px; padding: 22px 24px; text-decoration: none; color: var(--cc-navy); display: flex; flex-direction: column; gap: 6px; background: #fff; }
.cc .cc-card:hover { border-color: var(--cc-line-3); color: var(--cc-navy); }
.cc-card__title { font-family: var(--cc-head); font-weight: 600; font-size: 19px; line-height: 1.45; }

/* FAQ (details) */
.cc-faqs { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.cc-faq, .cc details.cc-faq { border-bottom: 1px solid var(--cc-line); padding: 14px 0; }
.cc-faq summary { cursor: pointer; font-weight: 600; color: var(--cc-navy); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; font-size: 18px; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: '+'; font-family: var(--cc-head); font-size: 24px; color: var(--cc-accent); flex: 0 0 auto; }
.cc-faq[open] summary::after { content: '–'; }
.cc-faq p, .cc-faq__a { margin: 8px 0 0; }
.cc-faq__a > * + * { margin-top: 10px; }

/* Dark bands */
.cc-band { background: var(--cc-navy); color: var(--cc-on-dark); border-radius: 28px; padding: 40px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cc-band h2 { color: #fff; font-size: 30px; }
.cc-band--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; padding: 48px; }
.cc-band .cc-btn--white { align-self: flex-start; }
.cc-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 16px; }
.cc-dl dt { color: var(--cc-muted); }
.cc-dl dd { margin: 0; color: var(--cc-navy); }
.cc-dl--dark dt { color: var(--cc-on-dark-2); }
.cc-dl--dark dd { color: #fff; }
.cc .cc-dl--dark a { color: #fff; }

/* Branch cards */
.cc-branch { border: 1px solid var(--cc-line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cc-branch__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cc-branch h3 { font-size: 22px; }
.cc .cc-branch h3 a { color: var(--cc-navy); text-decoration: none; }
.cc-stars { font-size: 14px; font-weight: 600; color: var(--cc-navy); white-space: nowrap; }
.cc-stars span { font-weight: 400; color: var(--cc-muted); }
.cc-branch .cc-dl { grid-template-columns: 76px 1fr; gap: 6px 12px; font-size: 15px; line-height: 1.55; }
.cc-branch .cc-dl dd { color: var(--cc-text); }
.cc-branch__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- Article hub ---------- */
.cc-hub-hero .cc-wrap { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.cc-hub-hero h1 { font-size: 48px; line-height: 1.2; max-width: 820px; }
.cc-hub-hero p { font-size: 19px; max-width: 720px; }
.cc-search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; margin-top: 8px; }
.cc-search input[type="search"] { flex: 1 1 320px; min-height: 52px; padding: 0 20px; border: 1px solid var(--cc-line-2); border-radius: 999px; font: inherit; font-size: 16px; background: #fff; color: var(--cc-navy); }
.cc-search button { min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--cc-navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.cc-search button:hover { background: var(--cc-accent); }
.cc-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cc .cc-cats a { padding: 8px 18px; border-radius: 999px; background: #fff; color: var(--cc-navy); font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid var(--cc-line-2); }
.cc .cc-cats a.is-current, .cc .cc-cats a:hover { background: var(--cc-navy); color: #fff; border-color: var(--cc-navy); }
.cc-main--hub { padding-top: 56px; gap: 72px; }
.cc-main--hub .cc-sec h2 { font-size: 30px; }
.cc-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.cc-featured__media { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--cc-ph); display: block; }
.cc-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-featured__txt { display: flex; flex-direction: column; gap: 16px; }
.cc-featured h2 { font-size: 34px; line-height: 1.3; }
.cc .cc-featured h2 a { color: var(--cc-navy); text-decoration: none; }
.cc .cc-featured h2 a:hover { color: var(--cc-accent); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; font-size: 14px; color: var(--cc-muted); }
.cc-byline { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.cc-byline .cc-avatar { width: 44px; height: 44px; }
.cc-byline strong { color: var(--cc-navy); }
.cc-qcard { border: 1px solid var(--cc-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cc-qcard h3 { font-size: 20px; line-height: 1.4; }
.cc-qcard p { font-size: 16px; }
.cc-post { display: flex; flex-direction: column; gap: 12px; }
.cc-post__media { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--cc-ph); display: block; }
.cc-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cc-post:hover .cc-post__media img { transform: scale(1.03); }
.cc-post__title { font-size: 21px; line-height: 1.45; }
.cc .cc-post__title a { color: var(--cc-navy); text-decoration: none; }
.cc .cc-post__title a:hover { color: var(--cc-accent); }
.cc-post__sum { font-size: 16px; }
.cc-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.cc .cc-pager a, .cc .cc-pager span { min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cc-line); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--cc-navy); }
.cc .cc-pager .current { background: var(--cc-navy); color: #fff; border-color: var(--cc-navy); }
.cc .cc-pager .dots { border: 0; color: var(--cc-muted); }
.cc-empty { background: var(--cc-sky); border-radius: 20px; padding: 32px; }

/* ---------- Single article ---------- */
.cc-art-head { padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.cc-art-head h1 { font-size: 44px; line-height: 1.25; max-width: 900px; }
.cc-art-by { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 15px; }
.cc-art-by .cc-avatar { width: 52px; height: 52px; background-color: var(--cc-line); }
.cc-art-by > div { display: flex; flex-direction: column; line-height: 1.5; }
.cc-art { padding-top: 32px; padding-bottom: 80px; display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 56px; align-items: start; }
.cc-article { grid-column: 2; grid-row: 1; }
.cc-art-side { grid-column: 1; grid-row: 1; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; max-height: calc(100vh - 48px); overflow-y: auto; }
.cc-toc { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; border-top: 2px solid var(--cc-navy); padding-top: 16px; }
.cc-toc strong { color: var(--cc-navy); font-family: var(--cc-head); font-weight: 600; }
.cc .cc-toc a { text-decoration: none; color: var(--cc-text); }
.cc .cc-toc a:hover, .cc .cc-toc a.is-active { color: var(--cc-accent); }
.cc-article { min-width: 0; display: flex; flex-direction: column; gap: 28px; font-size: 18px; line-height: 1.8; }
.cc-cover { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--cc-ph); }
.cc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-aside-cta { background: var(--cc-navy); color: var(--cc-on-dark); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cc-aside-cta--bottom { display: none; }
.cc-aside-cta strong { font-family: var(--cc-head); font-weight: 600; font-size: 22px; color: #fff; line-height: 1.4; }
.cc-aside-cta p { font-size: 15px; line-height: 1.6; }
.cc .cc-aside-cta a:not(.cc-btn) { color: #fff; font-size: 15px; text-align: center; }
.cc-aside-cta .cc-btn { height: auto; min-height: 44px; padding: 12px 20px; white-space: normal; text-align: center; }

/* Prose — article body (old posts written in the classic editor) */
.cc-prose { display: flex; flex-direction: column; gap: 20px; }
.cc-prose > * { margin: 0 !important; }
.cc-prose h2 { font-size: 30px; line-height: 1.35; margin-top: 20px !important; scroll-margin-top: 24px; }
.cc-prose h3 { font-size: 22px; line-height: 1.4; }
.cc-prose h4 { font-size: 19px; }
.cc-prose ul, .cc-prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.cc-prose strong { color: var(--cc-navy); }
.cc-prose img { border-radius: 16px; display: block; }
.cc-prose .wp-caption { width: auto !important; max-width: 100%; }
.cc-prose .wp-caption-text { font-size: 14px; color: var(--cc-muted); margin-top: 8px; }
.cc-prose iframe { max-width: 100%; border-radius: 16px; }
.cc-prose blockquote { background: var(--cc-sky); border-radius: 20px; padding: 28px 32px; border: 0; font-style: normal; color: var(--cc-text); }
.cc-prose blockquote.cc-tldr strong:first-child { font-family: var(--cc-head); font-weight: 600; font-size: 20px; color: var(--cc-accent); display: inline-block; margin-bottom: 4px; }
.cc-prose .cc-faq-h { margin-bottom: -8px !important; }
.cc-table { overflow-x: auto; border: 1px solid var(--cc-line); border-radius: 16px; }
.cc-table table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.cc-table th, .cc-table td { padding: 12px 20px; text-align: left; vertical-align: top; border: 0; }
.cc-table thead tr, .cc-table tr:first-child th { background: var(--cc-sky); color: var(--cc-navy); }
.cc-table tr + tr { border-top: 1px solid var(--cc-line); }
.cc-table td:first-child { font-weight: 600; color: var(--cc-navy); }
.cc-author { background: var(--cc-sky); border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.cc-author .cc-avatar { width: 88px; height: 88px; background-color: var(--cc-line); }
.cc-author > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.cc-author h2 { font-size: 20px; }
.cc-author p { font-size: 16px; }
.cc-related { background: var(--cc-sky); }
.cc-related .cc-wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.cc-related h2 { font-size: 28px; }
.cc-related .cc-card { border: 0; border-radius: 16px; padding: 24px; }

/* ---------- Treatment / doctor / branch ---------- */
.cc-phero__in { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cc-phero__txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.cc-phero h1 { font-size: 46px; line-height: 1.2; }
.cc-phero__lead { font-size: 19px; }
.cc-phero__lead strong { color: var(--cc-navy); }
.cc-phero__media { flex: 1 1 400px; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: var(--cc-ph); }
.cc-phero__media img, .cc-phero__media iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.cc-phero__media--portrait { flex: 0 1 420px; aspect-ratio: 1 / 1; background: #fff; }
.cc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; background: #fff; border-radius: 20px; padding: 20px 24px; }
.cc-facts dt { font-size: 14px; color: var(--cc-muted); }
.cc-facts dd { margin: 0; font-weight: 600; color: var(--cc-navy); }
.cc-facts--bar { margin-top: -28px; position: relative; border: 1px solid var(--cc-line); box-shadow: 0 8px 24px rgba(15, 42, 74, .06); }
.cc-panel { background: var(--cc-sky); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.cc-panel h2 { font-size: 26px; }
.cc-panel ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cc-panel li { display: flex; flex-direction: column; }
.cc-panel li strong { color: var(--cc-navy); }
.cc-panel li span { font-size: 15px; }
.cc-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.cc .cc-box { border: 1px solid var(--cc-line); border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--cc-navy); display: flex; flex-direction: column; gap: 2px; }
.cc .cc-box:hover { border-color: var(--cc-line-3); color: var(--cc-navy); }
.cc-box strong { font-family: var(--cc-head); font-weight: 600; font-size: 19px; }
.cc-box span { font-size: 15px; color: var(--cc-text); }
.cc-box .cc-box__tel { font-weight: 600; color: var(--cc-accent); margin-top: 6px; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cc .cc-tags a { padding: 10px 18px; border-radius: 999px; background: var(--cc-sky); color: var(--cc-navy); font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cc .cc-tags a:hover { background: var(--cc-ph); }
.cc-hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.cc-hours th, .cc-hours td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--cc-line); font-weight: 400; }
.cc-hours th { color: var(--cc-navy); font-weight: 600; width: 40%; }
.cc-hours tr.is-closed td { color: #B4232C; font-weight: 600; }
.cc-get { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cc-get > div { background: var(--cc-sky); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.cc-get strong { color: var(--cc-navy); font-family: var(--cc-head); font-weight: 600; font-size: 18px; }
.cc-map { aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: var(--cc-ph); flex: 1 1 400px; }
.cc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.cc-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.cc-steps li { border-top: 2px solid var(--cc-navy); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.cc-badge-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--cc-navy); }

/* ---------- Footer & mobile bar ---------- */
.cc-footer { border-top: 1px solid var(--cc-line); }
.cc-footer__in { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--cc-muted); }
.cc-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.cc-mbar { display: none; }

/* Floating chat buttons (desktop/tablet). On phones the bottom bar .cc-mbar takes over. */
.cc-float { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cc .cc-float__btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 42, 74, .22); transition: transform .15s ease, box-shadow .15s ease; }
.cc .cc-float__btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 42, 74, .28); }
.cc .cc-float__btn--line { background: #06C755; }
.cc .cc-float__btn--msg { background: #0866FF; }
.cc .cc-mbar__msg { background: #0866FF; border-color: #0866FF; color: #fff; }
.cc .cc-mbar__msg:hover { background: #0657D9; color: #fff; }
.cc-mbar svg, .cc-float svg { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cc-art { grid-template-columns: minmax(0, 1fr); }
	.cc-article { grid-column: 1; }
	.cc-art-side { display: none; }
	.cc-aside-cta--bottom { display: flex; }
}
@media (max-width: 900px) {
	.cc-menu-btn { display: inline-flex; }
	.cc-header__in { padding-top: 8px; padding-bottom: 8px; padding-right: 12px; flex-wrap: nowrap; }
	.cc .cc-logo img { height: 46px; }
	.cc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--cc-line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(15, 42, 74, .08); }
	.cc-nav.is-open { display: flex; }
	.cc .cc-nav a:not(.cc-btn) { padding: 12px 0; border-bottom: 1px solid var(--cc-line); min-height: 44px; }
	.cc-nav .cc-btn { margin-top: 12px; }
	.cc .cc-nav a.cc-lang { align-self: flex-start; margin-top: 12px; padding: 8px 14px; min-height: 0; border-bottom: 1px solid var(--cc-line-2); }
}
@media (max-width: 760px) {
	body.cc { font-size: 16px; line-height: 1.6; padding-bottom: 80px; }
	.cc-wrap { padding-left: 20px; padding-right: 20px; }
	.cc-hero__in, .cc-phero__in { padding-top: 20px; padding-bottom: 24px; gap: 16px; grid-template-columns: 1fr; }
	.cc-hero__txt, .cc-phero__txt { gap: 12px; }
	.cc-hero h1 { font-size: 29px; line-height: 1.25; }
	.cc-hero__lead, .cc-phero__lead, .cc-hub-hero p { font-size: 16px; }
	/* Mobile home hero follows the "มือถือ · หน้าแรก" board: eyebrow, H1, image, checks (CTA lives in the bottom bar). */
	.cc-hero__in { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
	.cc-hero__txt { display: contents; }
	.cc-hero .cc-eyebrow { order: 1; font-size: 13px; }
	.cc-hero h1 { order: 2; }
	.cc-hero__lead, .cc-hero .cc-btns { display: none; }
	.cc-hero__media { aspect-ratio: 16 / 9; border-radius: 16px; order: 3; }
	.cc-checks { font-size: 13px; gap: 6px 16px; order: 4; margin-top: 0; }
	.cc-phero h1, .cc-hub-hero h1 { font-size: 30px; }
	/* Treatment / doctor / branch heroes keep their natural order (H1 first). */
	.cc-phero h1, .cc-phero .cc-eyebrow, .cc-hub-hero h1, .cc-hub-hero .cc-eyebrow { order: 0; }
	.cc-hero__media img { transform: scale(1.12); transform-origin: 85% 50%; }
	.cc-art-head h1 { font-size: 28px; }
	.cc-art-head { padding-top: 20px; gap: 14px; }
	.cc-art-by { flex-wrap: nowrap; align-items: flex-start; gap: 12px; font-size: 14px; }
	.cc-art-by .cc-avatar { width: 40px; height: 40px; }
	.cc-main { padding-top: 32px; padding-bottom: 48px; gap: 48px; }
	.cc-sec { gap: 14px; }
	.cc-sec h2, .cc-h2, .cc-main--hub .cc-sec h2, .cc-featured h2 { font-size: 22px; }
	.cc-grid--treat, .cc-grid--chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cc-grid--treat .cc-tcard__media { display: none; }
	.cc-tcard { border-radius: 16px; }
	.cc-tcard__body { padding: 14px; gap: 2px; }
	.cc-tcard__name { font-size: 17px; }
	.cc-tcard__desc { font-size: 13px; color: var(--cc-muted); }
	.cc-tcard__go { display: none; }
	.cc .cc-chip { padding: 14px; font-size: 15px; }
	.cc-grid--branches, .cc-grid--posts, .cc-grid--3, .cc-grid--docs, .cc-grid--2 { grid-template-columns: 1fr; }
	.cc-band, .cc-band--grid { padding: 28px 24px; border-radius: 22px; }
	.cc-band h2 { font-size: 24px; }
	.cc-hub-hero .cc-wrap { padding-top: 20px; padding-bottom: 28px; gap: 12px; }
	.cc-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -20px; }
	.cc .cc-cats a { white-space: nowrap; }
	.cc-article { font-size: 16px; line-height: 1.75; }
	.cc-prose h2 { font-size: 22px; }
	.cc-prose h3 { font-size: 18px; }
	.cc-prose blockquote { padding: 20px; }
	.cc-art { gap: 32px; padding-top: 20px; }
	.cc-facts--bar { margin-top: 0; }
	.cc-mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px 20px; background: #fff; border-top: 1px solid var(--cc-line); }
	.cc .cc-mbar .cc-btn { height: 48px; }
	.cc .cc-mbar .cc-btn--ghost { flex: 0 0 auto; padding: 0 20px; }
	.cc-mbar__line { flex: 1; padding: 0 12px; }
	.cc .cc-mbar .cc-mbar__msg { flex: 0 0 auto; padding: 0 14px; }
	.cc .cc-mbar .cc-mbar__msg span { display: none; }
	.cc-float { display: none; }
	.cc-footer__in { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.cc * { transition: none !important; scroll-behavior: auto !important; }
}

/* Admin bar (logged-in only): Imagify wraps the site icon in <picture>, which escapes WP's 16px sizing. */
#wpadminbar #wp-admin-bar-site-name picture, #wpadminbar #wp-admin-bar-site-name img { width: 16px !important; height: 16px !important; display: inline-block; vertical-align: middle; }

/* English version: tighter menu so it stays on one line next to the logo. */
html[lang^="en"] .cc-nav { gap: 8px 22px; font-size: 15px; }
html[lang^="en"] .cc .cc-nav .cc-btn--sm { padding: 0 18px; }

/* Footer social links with icons */
.cc .cc-footer__links .cc-social { display: inline-flex; align-items: center; gap: 6px; }
.cc .cc-footer__links .cc-social svg { width: 18px; height: 18px; }
@media (min-width: 761px) { .cc-footer__in { padding-right: 190px; } }

/* Article → treatment page card */
.cc .cc-treat-link { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border: 1px solid var(--cc-line-2); border-left: 4px solid var(--cc-accent); border-radius: 16px; text-decoration: none; color: var(--cc-text); background: #fff; margin: 8px 0 24px; }
.cc .cc-treat-link strong { font-family: var(--cc-head); font-size: 20px; color: var(--cc-navy); }
.cc .cc-treat-link:hover { background: var(--cc-sky); color: var(--cc-text); }

/* Contact page */
.cc-grid--contact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cc .cc-contact { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 20px; background: var(--cc-sky); color: var(--cc-navy); text-decoration: none; }
.cc .cc-contact strong { font-family: var(--cc-head); font-size: 20px; }
.cc .cc-contact span { font-weight: 600; word-break: break-word; }
.cc .cc-contact em { font-style: normal; color: var(--cc-muted); font-size: 14px; }
.cc .cc-contact:hover { background: var(--cc-ph); color: var(--cc-navy); }
.cc .cc-contact--line { background: #06C755; color: #fff; }
.cc .cc-contact--msg { background: #0866FF; color: #fff; }
.cc .cc-contact--line em, .cc .cc-contact--msg em { color: rgba(255, 255, 255, .85); }
.cc .cc-contact--line:hover { background: #05A847; color: #fff; }
.cc .cc-contact--msg:hover { background: #0657D9; color: #fff; }
.cc .cc-tags--social a { display: inline-flex; align-items: center; gap: 6px; }
.cc .cc-tags--social svg { width: 18px; height: 18px; }

/* Click-to-play video */
.cc .cc-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--cc-navy); cursor: pointer; }
.cc .cc-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s; }
.cc .cc-video:hover img { opacity: 1; }
.cc-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #E62117; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.cc-video__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; display: block; }

/* Client photos (reviews page) */
.cc-grid--people { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.cc .cc-person { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cc .cc-person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
.cc .cc-person figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--cc-muted); }
.cc .cc-person strong { color: var(--cc-navy); font-size: 16px; }
.cc .cc-rating .cc-more { margin-top: 8px; color: #fff; }

.cc-grid--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .cc-grid--videos { grid-template-columns: 1fr; } }

/* Article cards with cover image (home, treatment, doctor pages) */
.cc .cc-card--pic { padding: 0; overflow: hidden; gap: 0; transition: box-shadow .2s, transform .2s; }
.cc .cc-card--pic:hover { box-shadow: 0 10px 28px rgba(18,42,74,.10); transform: translateY(-2px); }
.cc-card__media { display: block; aspect-ratio: 16 / 9; background: var(--cc-ph); overflow: hidden; }
.cc-card__media picture { display: block; width: 100%; height: 100%; }
.cc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cc-card--pic:hover .cc-card__media img { transform: scale(1.03); }
.cc-card__media .cc-ph { display: flex; height: 100%; align-items: center; justify-content: center; }
.cc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
