/*
Theme Name: เพื่อสุขภาพ (Pueasukkapab)
Theme URI: https://www.pueasukkapab.com
Author: Pueasukkapab.com
Description: ธีมเว็บเพื่อสุขภาพดอทคอม แก้รูป ข้อความ ปุ่ม และหมวดในหน้าแรกได้เองจากหน้า "ปรับแต่ง" โดยไม่ต้องเขียนโค้ด
Version: 3.1.5
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pueasukkapab
*/

/* =========================================================
   วิธีอ่านไฟล์นี้
   - สี ฟอนต์ ขนาด อยู่ในส่วน "ตั้งค่าหลัก" ด้านล่าง แก้ที่เดียวเปลี่ยนทั้งเว็บ
   - สีหลัก 3 สีแก้ได้จาก ปรับแต่ง > ตั้งค่าธีมเพื่อสุขภาพ > หน้าตาทั่วไป
   - ค้นหาส่วนที่ต้องการด้วยคำว่า "== ชื่อส่วน =="
   ========================================================= */

/* == ตั้งค่าหลัก == */
:root {
	--psk-bg: #eef5ea;           /* สีพื้นเว็บ (เขียวอ่อน) */
	--psk-primary: #2e735e;      /* เขียวหลัก: ลิงก์ ปุ่ม ไอคอน */
	--psk-box: #3c7a63;          /* เขียวกล่องหมวดหมู่ + เมนูใหญ่ */
	--psk-dark: #2b4a3a;         /* เขียวเข้ม: ปุ่มหลัก */
	--psk-footer: #2f5d47;       /* เขียวท้ายเว็บ */
	--psk-leaf: #5a9355;         /* เขียวใบไม้ */
	--psk-head: #1f3a2e;         /* สีหัวข้อ */
	--psk-text: #1f2f27;         /* สีตัวหนังสือ */
	--psk-muted: #6b746f;        /* สีตัวหนังสือรอง (วันที่) */
	--psk-line: #dfe9e2;         /* เส้นขอบ */
	--psk-tag-bg: #e3efe0;       /* พื้นป้ายหมวด */
	--psk-tag: #2e5e46;          /* ตัวหนังสือป้ายหมวด */
	--psk-white: #ffffff;
	--psk-cream: #fbfaf5;

	--psk-font: "Sarabun", Tahoma, sans-serif;       /* เนื้อหา */
	--psk-font-head: "Sarabun", Tahoma, sans-serif;  /* หัวข้อ */
	--psk-radius: 20px;
	--psk-container: 1320px;
	--psk-gutter: clamp(24px, 6vw, 96px); /* ระยะขอบซ้าย-ขวา (จอเล็กแคบลง จอใหญ่กว้างขึ้น) */
	--psk-shadow: 0 8px 22px rgba(31, 58, 46, .08);
}

/* == พื้นฐาน == */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--psk-bg); color: var(--psk-text); font-family: var(--psk-font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--psk-font-head); color: var(--psk-head); line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 16px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--psk-primary); outline-offset: 2px; }
body.psk-lock { overflow: hidden; }

.psk-page { position: relative; overflow: hidden; overflow: clip; } /* clip = ไม่ทำให้แถบแชร์ลอยเสีย */
.psk-container { width: 100%; max-width: calc(var(--psk-container) + var(--psk-gutter) * 2); margin: 0 auto; padding: 0 var(--psk-gutter); position: relative; }
.psk-main { position: relative; z-index: 1; }

/* == ใบไม้ตกแต่ง == */
.psk-leaf { position: absolute; pointer-events: none; z-index: 0; }
.psk-leaf--top { right: -90px; top: 40px; opacity: .45; filter: blur(2px); }
.psk-leaf--hero { left: -20px; top: 150px; width: 250px; height: auto; opacity: .85; }
.psk-leaf--hero2 { right: -120px; top: 330px; width: 200px; height: auto; opacity: .9; }
.psk-leaf--left { left: -90px; top: -20px; opacity: .85; }
.psk-leaf--foot { right: -80px; bottom: 170px; opacity: .75; }

/* == ปุ่ม == */
.psk-btn-dark {
	display: inline-flex; align-items: center; min-height: 54px; padding: 0 32px; border-radius: 999px;
	background: var(--psk-dark); color: #fff; font-size: 17px; font-weight: 500; box-shadow: 0 6px 16px rgba(31, 58, 46, .18);
	transition: transform .2s, background .2s;
}
.psk-btn-dark:hover { background: var(--psk-primary); transform: translateY(-2px); }
/* ปุ่ม "ดูทั้งหมด" แบบแคปซูล */
.psk-pillbtn {
	flex: none; display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 30px 0 24px; border-radius: 999px;
	background: #dbe9df; border: 2px solid var(--psk-primary); box-shadow: 3px 3px 0 rgba(46, 115, 94, .22);
	color: var(--psk-primary); font-family: var(--psk-font-head); font-size: 16px; font-weight: 600; transition: transform .15s, box-shadow .15s;
}
.psk-pillbtn svg { width: 20px; height: 20px; }
.psk-pillbtn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(46, 115, 94, .3); }
.psk-tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; line-height: 1.6; padding: 3px 10px; border-radius: 999px; background: var(--psk-tag-bg); color: var(--psk-tag); }
.psk-tag--onimg { position: absolute; left: 12px; top: 12px; background: #fff; z-index: 1; }
.psk-meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--psk-muted); }
.psk-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 8px; opacity: .6; }

/* รูป + รูปสำรอง */
.psk-img { position: relative; display: block; overflow: hidden; background: #dce9d8; }
.psk-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top; transform-origin: right top; transition: transform .5s ease; } /* ชิดขวาบน ให้เห็นโลโก้เว็บบนรูปทุกใบ */
a:hover .psk-img img { transform: scale(1.04); }
.psk-img--16x10 { aspect-ratio: 16 / 10; }
.psk-img--4x3 { aspect-ratio: 4 / 3; }
.psk-img--1x1 { aspect-ratio: 1 / 1; }
.psk-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--psk-primary); }
.psk-noimg svg, .psk-noimg img { width: 22%; max-width: 56px; height: auto; opacity: .7; }

/* == หัวเว็บ == */
.psk-header { position: relative; z-index: 30; }
.psk-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.psk-menubtn {
	justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px;
	border-radius: 999px; background: #fff; border: 1px solid #d3e3cf; color: var(--psk-primary);
	font-family: var(--psk-font-head); font-size: 16px; font-weight: 600; box-shadow: 0 2px 8px rgba(31, 58, 46, .06);
}
.psk-menubtn svg { width: 28px; height: 28px; }
.psk-header__logo { margin: 0; font-size: inherit; line-height: 0; }
.psk-header__logo img { mix-blend-mode: multiply; } /* ลบพื้นขาวของไฟล์โลโก้ ให้กลืนกับสีพื้นเว็บ */
.psk-logo { display: inline-flex; }
.psk-logo__img { height: 64px; width: auto; display: block; }
.psk-header__actions { justify-self: end; display: flex; gap: 4px; align-items: center; }
.psk-iconbtn {
	position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--psk-primary);
	display: inline-flex; align-items: center; justify-content: center;
}
.psk-iconbtn:hover { background: rgba(46, 115, 94, .08); }
.psk-iconbtn > svg { width: 26px; height: 26px; }
.psk-searchbar { display: none; padding: 8px 0 18px; }
.psk-searchbar.is-open { display: block; }
.psk-searchform { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.psk-searchform input[type="search"] { flex: 1; min-width: 0; height: 50px; padding: 0 22px; border: 1.5px solid #d3e3cf; border-radius: 999px; font: inherit; background: #fff; }
.psk-searchform input[type="search"]:focus { outline: none; border-color: var(--psk-primary); }
.psk-searchform button { height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--psk-dark); color: #fff; font-weight: 600; }

/* ปุ่มเปลี่ยนภาษา */
.psk-lang { position: relative; }
.psk-lang__badge.psk-flag { position: absolute; right: 4px; bottom: 6px; width: 18px; height: 18px; }
.psk-lang__panel {
	position: absolute; right: -60px; top: 58px; z-index: 40; width: 340px; padding: 22px 18px 16px;
	border-radius: 26px; background: #fff; box-shadow: 0 18px 44px rgba(31, 58, 46, .18); display: flex; flex-direction: column; gap: 6px;
}
.psk-lang__panel[hidden] { display: none; }
.psk-lang__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 8px; }
.psk-lang__head strong { font-family: var(--psk-font-head); font-size: 18px; color: var(--psk-head); }
.psk-lang__head span { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #7a857e; }
.psk-lang__item {
	display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 14px; border-radius: 16px;
	border: 2px solid transparent; background: transparent; text-align: left; color: var(--psk-head);
}
.psk-lang__item:hover { background: #f3f8f1; }
.psk-lang__item.is-active { border-color: #5a9d62; background: #e6f2e4; }
.psk-lang__name { display: flex; flex-direction: column; font-family: var(--psk-font-head); font-size: 19px; font-weight: 600; line-height: 1.3; }
.psk-lang__name small { font-family: var(--psk-font); font-size: 14px; font-weight: 400; color: #7a857e; }
.psk-lang__check { margin-left: auto; color: #4a9a55; display: none; }
.psk-lang__item.is-active .psk-lang__check { display: inline-flex; }
.psk-lang__check svg { width: 22px; height: 22px; stroke-width: 2.4; }
.psk-lang__note { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 12px 6px 0; border-top: 1px dashed #d8ddd8; font-size: 13px; color: #7a857e; }
.psk-lang__note svg { width: 16px; height: 16px; }
/* ธงชาติ (วาดด้วย CSS) */
.psk-flag { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid #d8ddd8; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.psk-flag--th { background: linear-gradient(#a51931 0 17%, #f4f5f8 17% 33%, #2d2a4a 33% 67%, #f4f5f8 67% 83%, #a51931 83%); }
.psk-flag--en { background: linear-gradient(90deg, transparent 41%, #fff 41% 45%, #c8102e 45% 55%, #fff 55% 59%, transparent 59%), linear-gradient(transparent 39%, #fff 39% 43%, #c8102e 43% 57%, #fff 57% 61%, transparent 61%), linear-gradient(33deg, transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(-33deg, transparent 46%, #fff 46% 54%, transparent 54%), #012169; }
.psk-flag--ja { background: radial-gradient(circle, #bc002d 0 30%, #fff 32%); }
.psk-flag--zh-cn { background: #de2910; }
.psk-flag--zh-cn::after { content: "★"; color: #ffde00; font-size: 14px; line-height: 1; position: absolute; left: 22%; top: 18%; }
.psk-flag--ko { background: #fff; }
.psk-flag--ko::after { content: ""; width: 44%; height: 44%; border-radius: 50%; background: linear-gradient(#cd2e3a 50%, #0047a0 50%); }
/* ซ่อนแถบด้านบนของ Google Translate */
.goog-te-banner-frame, .skiptranslate iframe, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }

/* == เมนูใหญ่ == */
.psk-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.psk-drawer.is-open { visibility: visible; }
.psk-drawer__overlay { position: absolute; inset: 0; background: rgba(20, 35, 28, .5); opacity: 0; transition: opacity .25s; }
.psk-drawer.is-open .psk-drawer__overlay { opacity: 1; }
.psk-drawer__panel {
	position: absolute; left: 0; top: 0; width: min(940px, 100%); max-height: 100%; overflow-y: auto;
	background: var(--psk-box); color: #fff; border-radius: 0 0 44px 0; box-shadow: 12px 0 40px rgba(0, 0, 0, .18);
	display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .32s ease;
}
.psk-drawer.is-open .psk-drawer__panel { transform: none; }
.psk-drawer__main { padding: 28px 40px 36px; display: flex; flex-direction: column; gap: 30px; }
.psk-pills { display: flex; flex-wrap: wrap; gap: 14px; }
.psk-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-family: var(--psk-font-head); font-size: 17px; font-weight: 600; transition: transform .15s; }
.psk-pill svg { width: 20px; height: 20px; }
.psk-pill:hover { transform: translateY(-2px); }
.psk-pill--white { background: #fff; color: var(--psk-head); box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.psk-pill--pink { background: #f6b2ad; color: #7a2d2a; box-shadow: 0 4px 0 #d98a85; }
.psk-pill--line { background: #06c755; color: #fff; box-shadow: 0 4px 0 #04a446; }
.psk-pill .psk-brand { width: 24px; height: auto; }
.psk-pill--line .psk-brand { width: 22px; }
.psk-pill--yellow { background: #f7d65a; color: #5a4610; box-shadow: 0 4px 0 #d8b63a; }
/* หมวดหมู่ในเมนูใหญ่ (มาจาก "เมนูหลัก") */
.psk-megacols { column-count: 4; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.psk-megacols > li { break-inside: avoid; margin: 0 0 14px; }
.psk-megacols > li > a { display: inline-block; font-family: var(--psk-font-head); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.psk-megacols ul { list-style: none; margin: 0; padding: 0; }
.psk-megacols ul a { display: inline-block; color: #eaf4ec; font-size: 16px; line-height: 1.9; }
.psk-megacols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.psk-drawer__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.psk-shortcuts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 8px 40px; }
.psk-shortcuts a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; font-family: var(--psk-font-head); font-size: 17px; font-weight: 600; }
.psk-shortcuts svg { width: 26px; height: 26px; stroke-width: 1.6; }
.psk-sc-ico { display: inline-flex; width: 26px; height: 26px; }
.psk-sc-ico svg, .psk-sc-ico img { width: 100%; height: 100%; }
.psk-drawer__mascot { width: auto; height: 150px; flex: none; margin-bottom: -60px; position: relative; z-index: 1; }
.psk-drawer__foot { background: #2f6450; border-radius: 0 0 44px 0; padding: 30px 40px 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.psk-drawer__footlinks { display: flex; flex-direction: column; gap: 10px; }
.psk-drawer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--psk-font-head); font-weight: 600; }
.psk-drawer__links a { color: #fff; }
.psk-drawer__close { width: 52px; height: 52px; border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.psk-drawer__close svg { width: 34px; height: 34px; stroke-width: 1.8; }
.psk-social { display: flex; gap: 6px; margin-left: -10px; }
.psk-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.psk-social svg { width: 24px; height: 24px; }

/* == ส่วนบนสุด == */
.psk-hero { padding: 40px 0 64px; }
.psk-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.psk-hero__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }
.psk-hero__title { margin: 0; font-size: clamp(40px, 3.5vw, 54px); line-height: 1.3; font-weight: 600; color: #1c2a23; letter-spacing: -.01em; }
.psk-hero__desc { margin: 0; font-size: 19px; line-height: 1.6; color: #2a3a32; max-width: 560px; }
.psk-hero__cta { display: flex; align-items: flex-end; gap: 18px; margin-top: 10px; }
.psk-hero__mascot { height: 130px; width: auto; margin-bottom: -30px; }
.psk-hero__art { position: relative; height: 470px; }
.psk-hero__img1 { position: absolute; left: 8%; top: 0; width: 50%; height: 460px; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 44px rgba(31, 58, 46, .16); z-index: 1; background: #c9ddf0; }
.psk-hero__img2 { position: absolute; right: 0; top: 60px; width: 39%; height: 380px; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 28px rgba(31, 58, 46, .12); z-index: 1; background: #ece4d6; }
.psk-hero__img1 img, .psk-hero__img2 img { width: 100%; height: 100%; object-fit: cover; object-position: right top; display: block; }
.psk-hero__chip {
	position: absolute; left: 0; top: 60px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px;
	border-radius: 999px; background: #fff; font-family: var(--psk-font-head); font-size: 17px; font-weight: 500; color: #1c2a23; box-shadow: 0 10px 26px rgba(31, 58, 46, .14);
}
.psk-hero__chip > span { width: 30px; height: 30px; border-radius: 50%; background: #e6f0e3; color: var(--psk-primary); display: inline-flex; align-items: center; justify-content: center; }
.psk-hero__chip svg { width: 16px; height: 16px; }

/* == กล่องหมวดหมู่ == */
.psk-catbox-wrap { padding-bottom: 64px; }
.psk-catbox { position: relative; z-index: 1; background: var(--psk-box); border-radius: 24px; padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 24px; }
.psk-catbox__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #fff; }
.psk-catbox__head h2 { margin: 0; color: #fff; font-size: 28px; font-weight: 700; line-height: 1.3; }
.psk-catbox__head p { margin: 4px 0 0; color: #e3efe6; }
.psk-catbox__mascot { height: 130px; width: auto; margin: -78px 0 -20px; }
.psk-chips4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.psk-catchip {
	display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 18px 12px 12px; border-radius: 18px;
	background: #e7f0e3; border: 1px solid #d3e3cf; box-shadow: 0 2px 6px rgba(31, 58, 46, .06); color: var(--psk-text); transition: transform .2s, background .2s;
}
.psk-catchip:hover { transform: translateY(-3px); background: #fff; }
.psk-catchip__ico { width: 52px; height: 52px; flex: none; border-radius: 14px; background: #d3e4cd; display: flex; align-items: center; justify-content: center; color: var(--psk-head); }
.psk-catchip__ico svg, .psk-catchip__ico img { width: 26px; height: 26px; object-fit: contain; }
.psk-catchip__name { font-family: var(--psk-font-head); font-size: 18px; font-weight: 600; line-height: 1.35; }

/* == หัวข้อส่วน == */
.psk-sec { padding-bottom: 64px; }
.psk-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.psk-shead__title { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.psk-shead__mascot { height: 84px; width: auto; flex: none; margin-bottom: -6px; }
.psk-shead h2 { margin: 0; font-size: 30px; font-weight: 700; }
.psk-shead__eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--psk-leaf); }
.psk-band { padding-top: 56px; margin-bottom: 64px; border-top: 1px solid var(--psk-line); border-bottom: 1px solid var(--psk-line); background: #fff; }
.psk-band--cream { background: var(--psk-cream); }
.psk-band .psk-sec { padding-bottom: 56px; }

/* แถวเลื่อนซ้าย-ขวา + ปุ่มลูกศร */
.psk-scrollwrap { position: relative; }
.psk-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.psk-scroll::-webkit-scrollbar { display: none; } /* ซ่อนเส้นเลื่อน ใช้ปุ่มลูกศรแทน */
.psk-scroll > * { scroll-snap-align: start; flex: none; }
.psk-scrollwrap--boxed .psk-scroll { padding: 14px; gap: 14px; background: #fff; border: 1px solid var(--psk-line); border-radius: 20px; }
.psk-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: #f7f8f5; color: #5a8f63; box-shadow: 0 6px 16px rgba(31, 58, 46, .18); display: inline-flex; align-items: center; justify-content: center;
}
.psk-arrow svg { width: 22px; height: 22px; stroke-width: 2.6; }
.psk-arrow--prev { left: -18px; }
.psk-arrow--next { right: -18px; }

/* บทความแนะนำ: การ์ดแนวนอน */
.psk-hcard { width: 400px; display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--psk-line); }
.psk-hcard__img { width: 130px; height: 120px; flex: none; border-radius: 12px; overflow: hidden; background: #dce9d8; }
.psk-hcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: right top; display: block; }
.psk-hcard__body { display: flex; flex-direction: column; gap: 8px; }
.psk-hcard__title { font-family: var(--psk-font-head); font-size: 17px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* แบบเรื่องเด่น + รายการ */
.psk-mag { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: stretch; }
.psk-mag__lead { display: flex; flex-direction: column; gap: 14px; }
.psk-mag__lead .psk-img { border-radius: 22px; }
.psk-mag__title { font-family: var(--psk-font-head); font-size: 24px; font-weight: 700; line-height: 1.45; color: var(--psk-text); }
.psk-mag__list { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; } /* รายการขวาสูงเท่าเรื่องเด่นซ้าย: บนสุดตรงขอบรูป ล่างสุดตรงวันที่ */
.psk-mag__list .psk-row { padding: 0; border: 0; }
.psk-mag__sep { display: block; height: 1px; background: #e3ebe4; flex: none; }
.psk-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e3ebe4; }
.psk-row:first-child { padding-top: 0; }
.psk-row:last-child { border-bottom: 0; }
.psk-row__img { width: 120px; height: 90px; flex: none; border-radius: 12px; }
.psk-row__body { display: flex; flex-direction: column; gap: 4px; }
.psk-row__title { font-family: var(--psk-font-head); font-size: 16px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* การ์ดสูง (ใช้ทั้งหน้าแรกและหน้าหมวด) */
.psk-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.psk-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.psk-tcard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid #e6ebe4; box-shadow: var(--psk-shadow); transition: transform .2s; }
.psk-tcard:hover { transform: translateY(-3px); }
.psk-tcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.psk-tcard__cat { font-size: 12px; font-weight: 600; color: var(--psk-leaf); }
.psk-tcard__title { font-family: var(--psk-font-head); font-size: 17px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psk-tcard .psk-meta { margin-top: auto; }
.psk-sec--cards .psk-tcard { border-color: #ecdfe3; box-shadow: 0 8px 22px rgba(120, 60, 80, .07); }
.psk-sec--cards .psk-tcard__cat { color: #9a4c60; }
.psk-cards4 .psk-tcard__body { padding: 16px 16px 20px; gap: 8px; }
.psk-cards4 .psk-tcard__title { font-size: 16px; }

/* การ์ดใหญ่ หัวข้อบนรูป */
.psk-wcard { position: relative; width: 470px; height: 270px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.psk-wcard > .psk-img { position: absolute; inset: 0; }
.psk-wcard__title {
	position: relative; width: 100%; padding: 60px 22px 20px; background: linear-gradient(to top, rgba(22, 48, 37, .85), rgba(22, 48, 37, 0));
	font-family: var(--psk-font-head); font-size: 18px; font-weight: 600; line-height: 1.5;
}

/* การ์ดรูป + ปุ่มหมวดย่อย */
.psk-subchips { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 20px; }
.psk-subchips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid #d3e3cf; color: var(--psk-tag); font-size: 14px; font-weight: 600; }
.psk-subchips a:hover { background: var(--psk-primary); color: #fff; }
.psk-tile { width: 270px; display: flex; flex-direction: column; gap: 10px; }
.psk-tile__img { height: 230px; border-radius: 14px; }
.psk-tile__title { font-family: var(--psk-font-head); font-size: 16px; font-weight: 600; line-height: 1.5; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* เรื่องล่าสุดแบบกว้าง */
.psk-wide { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden; background: #f4f8f2; border: 1px solid var(--psk-line); margin-bottom: 20px; }
.psk-wide > .psk-img { min-height: 300px; }
.psk-wide__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px 36px; }
.psk-wide__title { font-family: var(--psk-font-head); font-size: 28px; font-weight: 700; line-height: 1.4; color: var(--psk-text); }
.psk-readmore { font-weight: 600; color: var(--psk-primary); }
.psk-mini { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--psk-line); }
.psk-mini__img { width: 96px; height: 96px; flex: none; border-radius: 14px; }
.psk-mini__body { display: flex; flex-direction: column; gap: 6px; }
.psk-mini__title { font-family: var(--psk-font-head); font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* การ์ดคำพูด */
.psk-quote { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: #f7f3e8; border: 1px solid #ebe3cf; }
.psk-quote__ico { width: 72px; height: 72px; flex: none; border-radius: 50%; background: #fff; border: 2px solid #cfe3cc; display: flex; align-items: center; justify-content: center; color: var(--psk-primary); }
.psk-quote__ico svg, .psk-quote__ico img { width: 32px; height: 32px; }
.psk-quote__body { display: flex; flex-direction: column; gap: 6px; }
.psk-quote__cat { font-size: 12px; font-weight: 600; color: var(--psk-leaf); }
.psk-quote__title { font-family: var(--psk-font-head); font-size: 16px; font-weight: 600; line-height: 1.55; }

/* วงกลมหมวดย่อย + รายการ */
.psk-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; background: #fbf3f1; border: 1px solid #f0dcd8; border-radius: 26px; padding: 32px; }
.psk-split__pick { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.psk-split__q { font-family: var(--psk-font-head); font-size: 20px; font-weight: 600; color: var(--psk-head); }
.psk-split__pick p { margin: 0; color: #4b5a52; }
.psk-circles { display: flex; flex-wrap: wrap; gap: 18px; }
.psk-circles a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.psk-circles__c { width: 96px; height: 96px; border-radius: 50%; background: #fff; border: 2px solid #f0d4d4; box-shadow: 0 6px 16px rgba(160, 60, 60, .10); display: flex; align-items: center; justify-content: center; font-family: var(--psk-font-head); font-size: 36px; font-weight: 700; color: #b2464b; transition: transform .2s; }
.psk-circles__c--long { font-size: 26px; }
.psk-circles a:hover .psk-circles__c { transform: translateY(-3px); }
.psk-circles__label { font-size: 13px; font-weight: 600; }
.psk-split__list { display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 6px 20px; }
.psk-lrow { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #f1e6e4; }
.psk-lrow:last-child { border-bottom: 0; }
.psk-lrow__ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fbe9e8; color: #b2464b; display: flex; align-items: center; justify-content: center; }
.psk-lrow__ico svg, .psk-lrow__ico img { width: 20px; height: 20px; }
.psk-lrow__body { display: flex; flex-direction: column; gap: 2px; }
.psk-lrow__title { font-family: var(--psk-font-head); font-size: 15px; font-weight: 600; line-height: 1.5; }

/* การ์ดสินค้า */
.psk-prod { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #e6ebe4; box-shadow: 0 6px 18px rgba(31, 58, 46, .06); overflow: hidden; }
.psk-prod__badge { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--psk-dark); color: #fff; }
.psk-prod__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; flex: 1; }
.psk-prod__title { font-family: var(--psk-font-head); font-size: 16px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psk-prod__btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--psk-bg); color: var(--psk-primary); font-weight: 600; font-size: 14px; }
.psk-prod:hover .psk-prod__btn { background: var(--psk-primary); color: #fff; }

/* ข่าว */
.psk-news { display: flex; flex-direction: column; gap: 10px; }
.psk-news .psk-img { border-radius: 14px; }
.psk-news__tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--psk-tag); }
.psk-news__title { font-family: var(--psk-font-head); font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* == ท้ายเว็บ == */
.psk-footer__mascotwrap { display: flex; justify-content: flex-end; z-index: 2; }
.psk-footer__mascot { height: 170px; width: auto; margin-bottom: -28px; position: relative; z-index: 2; }
.psk-footer { background: var(--psk-footer); color: #e6efe8; position: relative; z-index: 1; }
.psk-footer__inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; padding-top: 44px; padding-bottom: 44px; }
.psk-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.psk-footer__brand .psk-logo__img { height: 56px; }
.psk-footer__brand p { margin: 0; font-size: 14px; color: #c9dccf; }
.psk-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 6px 40px; }
.psk-footer__menu a { color: #fff; }
.psk-footer__menu a:hover { text-decoration: underline; }
.psk-footer__follow { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #c9dccf; }
.psk-footer__follow .psk-social { margin-left: 0; gap: 10px; }
.psk-footer__follow .psk-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background .15s; }
.psk-footer__follow .psk-social a:hover { background: rgba(255, 255, 255, .24); }
.psk-footer__follow .psk-social svg { width: 21px; height: 21px; }
/* ปุ่มติดต่อโฆษณา */
.psk-adcontact { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: #06c755; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: filter .15s; }
.psk-adcontact:hover { filter: brightness(.95); color: #fff; }
.psk-adcontact svg { width: 20px; height: 20px; flex: none; }
.psk-adcontact--head { margin-right: 6px; min-height: 38px; font-size: 13px; }
.psk-adcontact--drawer { margin-left: 8px; }
.psk-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 16px 0 calc(16px + var(--psk-adspace, 100px)); font-size: 13px; color: #c9dccf; } /* เว้นที่ล่างสุดให้แถบโฆษณา */

.psk-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--psk-dark); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--psk-shadow); }

/* =========================================================
   == หน้าอื่น ๆ (หมวด, ค้นหา, บทความ, หน้า) ==
   ========================================================= */
.psk-breadcrumb { padding: 4px 0 18px; font-size: 14px; }
.psk-breadcrumb .psk-container > * { margin: 0; padding: 8px 18px; border-radius: 12px; background: var(--psk-primary); color: rgba(255, 255, 255, .78); }
.psk-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.psk-breadcrumb li { min-width: 0; }
.psk-breadcrumb li:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: #fff; }
.psk-breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.psk-breadcrumb a { color: #fff; font-weight: 600; }
.psk-breadcrumb a:hover { text-decoration: underline; }
.psk-breadcrumb .breadcrumb_last { color: #fff; }
.psk-pagehead { padding: 16px 0 32px; }
.psk-pagehead__row { display: flex; align-items: center; gap: 16px; }
.psk-pagehead__row .psk-icon { width: 60px; height: 60px; }
.psk-pagehead__title { font-size: 34px; font-weight: 700; margin: 0; }
.psk-pagehead__desc { margin: 12px 0 0; color: var(--psk-muted); max-width: 760px; }
.psk-heading__en { display: block; color: var(--psk-leaf); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.psk-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--psk-primary); color: #fff; }
.psk-icon svg, .psk-icon img { width: 58%; height: 58%; object-fit: contain; }
.psk-icon--sm { width: 30px; height: 30px; }
.psk-icon--plain { background: transparent; color: var(--psk-primary); }
.psk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; list-style: none; padding: 0; }
.psk-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid #d3e3cf; color: var(--psk-tag); font-size: 14px; font-weight: 600; }
.psk-chips a:hover, .psk-chips .is-active a { background: var(--psk-primary); border-color: var(--psk-primary); color: #fff; }
.psk-group { padding: 40px 0 8px; }
.psk-group__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.psk-group__title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin: 0; }
.psk-group__count { font-size: 14px; font-weight: 400; color: var(--psk-muted); }
.psk-group__all { font-size: 14px; font-weight: 600; color: var(--psk-primary); display: inline-flex; align-items: center; gap: 4px; }
.psk-group__all svg { width: 16px; height: 16px; }
.psk-empty { padding: 48px 0; text-align: center; color: var(--psk-muted); }

/* ตัวเลขหน้า */
.psk-pagination { margin: 40px 0 64px; }
.psk-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.psk-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--psk-primary); color: #fff; font-weight: 700; }
.psk-pagination .page-numbers.current { background: var(--psk-leaf); }
.psk-pagination a.page-numbers:hover { background: var(--psk-dark); }

/* หน้าอ่านบทความ */
.psk-article { max-width: 800px; margin: 0 auto; padding: 8px 0 24px; }
.psk-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.psk-article__cats a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--psk-tag-bg); color: var(--psk-tag); font-size: 14px; font-weight: 600; }
.psk-article__title { font-size: 38px; font-weight: 700; line-height: 1.4; margin: 0 0 12px; }
.psk-article__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--psk-muted); font-size: 14px; margin-bottom: 24px; }
.psk-article__thumb { margin: 0 0 32px; border-radius: 22px; overflow: hidden; }
.psk-article__thumb img { width: 100%; display: block; }
.psk-content { font-size: 17.5px; line-height: 1.9; overflow-wrap: break-word; }
.psk-content > * { margin-top: 0; margin-bottom: 1.2em; }
.psk-content h2 { font-size: 26px; margin: 1.8em 0 .7em; padding: 12px 18px; background: #fff; border-left: 5px solid var(--psk-primary); border-radius: 0 12px 12px 0; }
.psk-content h3 { font-size: 21px; margin: 1.6em 0 .6em; padding-bottom: 8px; border-bottom: 2px solid var(--psk-line); }
.psk-content h4 { font-size: 18px; margin: 1.4em 0 .5em; color: var(--psk-primary); }
.psk-content a { color: var(--psk-primary); text-decoration: underline; text-underline-offset: 3px; }
.psk-content img { border-radius: 14px; height: auto; }
.psk-content ul, .psk-content ol { padding-left: 1.4em; }
.psk-content blockquote { margin: 1.5em 0; padding: 16px 22px; background: #fff; border-radius: 14px; border-left: 4px solid var(--psk-leaf); }
.psk-content blockquote > :last-child { margin-bottom: 0; }
.psk-content table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.psk-content th, .psk-content td { border: 1px solid var(--psk-line); padding: 10px 12px; text-align: left; }
.psk-content th { background: var(--psk-tag-bg); }
.psk-content figure { margin-left: 0; margin-right: 0; }
.psk-content figcaption { font-size: 14px; color: var(--psk-muted); text-align: center; }
.psk-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; list-style: none; padding: 0; }
.psk-tags a { display: inline-block; padding: 4px 14px; border: 1px solid var(--psk-line); border-radius: 999px; font-size: 13px; color: var(--psk-muted); background: #fff; }
.psk-related { background: #fff; border-top: 1px solid var(--psk-line); padding: 48px 0 24px; margin-top: 40px; }
.psk-comments textarea, .psk-comments input[type="text"], .psk-comments input[type="email"], .psk-comments input[type="url"] { width: 100%; max-width: 100%; padding: 10px 14px; border: 1.5px solid var(--psk-line); border-radius: 12px; font: inherit; }

/* ปุ่มแชร์ท้ายบทความ */
/* ปุ่มแชร์วงกลม (ป๊อปอัปบนหัวเว็บ / แถบลอยข้างบทความ / ท้ายบทความ) */
.psk-share { display: flex; align-items: center; gap: 10px; }
.psk-share__btn { width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: transform .15s ease, opacity .15s ease; flex: none; }
.psk-share__btn:hover { transform: translateY(-2px); opacity: .92; }
.psk-share__btn svg { width: 20px; height: 20px; }
.psk-share__btn--fb { background: #3b5998; }
.psk-share__btn--x { background: #111; }
.psk-share__btn--line { background: #06c755; }
.psk-share__btn--mail { background: #3a6fd8; }
.psk-share__btn--messenger { background: #0a7cff; }
.psk-share__btn--more { background: var(--psk-primary); }
.psk-share__btn--mail svg, .psk-share__btn--more svg { width: 19px; height: 19px; }
.psk-share--row { justify-content: center; flex-wrap: wrap; padding: 28px 0 44px; }
.psk-share__label { width: 100%; text-align: center; font-size: 14px; color: var(--psk-muted); margin-bottom: 4px; }
.psk-sharebox { position: relative; }
.psk-share--pop { position: absolute; right: -8px; top: calc(100% + 10px); z-index: 60; background: #fff; padding: 12px 14px; border-radius: 22px; box-shadow: 0 14px 34px rgba(31, 58, 46, .14); }
.psk-share--pop[hidden] { display: none; }
.psk-share--pop .psk-share__btn { width: 40px; height: 40px; }
.psk-share--float { display: none; }
@media (min-width: 1024px) {
	.psk-share--float { display: flex; flex-direction: column; position: fixed; right: 18px; top: 50%; transform: translateY(-50%); gap: 10px; z-index: 50; }
	.psk-share--float .psk-share__btn { box-shadow: 0 4px 12px rgba(31, 58, 46, .14); }
	.psk-lock .psk-share--float { display: none; }
}
/* Messenger กดได้เฉพาะบนมือถือ */
@media (hover: hover) and (pointer: fine) { .psk-share__btn--messenger { display: none; } }

.psk-404 { text-align: center; padding: 40px 0 64px; }
.psk-404__num { font-family: var(--psk-font-head); font-size: 88px; font-weight: 700; color: var(--psk-primary); line-height: 1; }

/* =========================================================
   == จอแท็บเล็ตและมือถือ ==
   ========================================================= */
/* ---------- หน้าหมวดหมู่ ---------- */
.psk-cathero {
	position: relative; display: flex; align-items: center; gap: 28px; margin: 8px 0 26px; padding: 40px 260px 40px 44px; border-radius: 28px; overflow: hidden;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 10px, transparent 10px 20px), #e4f2dd;
}
.psk-cathero__icon.psk-icon { width: 104px; height: 104px; box-shadow: 0 10px 24px rgba(31, 58, 46, .18); }
.psk-cathero__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.psk-cathero__en { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--psk-leaf); }
.psk-cathero__title { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.25; color: var(--psk-head); }
.psk-cathero__desc { color: #3e5148; font-size: 17px; line-height: 1.7; max-width: 640px; }
.psk-cathero__desc p { margin: 0; }
.psk-cathero__mascot { position: absolute; right: 36px; bottom: -6px; height: 190px; width: auto; }

.psk-subnav { position: relative; margin: 0 0 48px; padding: 18px 120px 18px 24px; background: #fff; border: 1.5px solid #cfe0cb; border-radius: 20px; box-shadow: var(--psk-shadow); }
.psk-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.psk-subnav a { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 22px; border-radius: 14px; font-family: var(--psk-font-head); font-size: 20px; font-weight: 600; color: var(--psk-head); line-height: 1.4; transition: background .15s, color .15s; }
.psk-subnav a svg { width: 18px; height: 18px; color: var(--psk-primary); transition: transform .2s; }
.psk-subnav a:hover { background: #eef5ea; color: var(--psk-primary); }
.psk-subnav a:hover svg { transform: translateY(3px); }
.psk-subnav .is-active a { background: var(--psk-primary); color: #fff; }
.psk-subnav__mascot { position: absolute; right: 18px; bottom: -4px; height: 92px; width: auto; }

.psk-subsec { margin-bottom: 56px; scroll-margin-top: 24px; }
.psk-subhead {
	position: relative; display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding: 22px 26px; border-radius: 22px;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 10px, transparent 10px 20px), #e4f2dd;
}
.psk-subhead__icon.psk-icon { width: 64px; height: 64px; }
.psk-subhead__text { flex: 1; min-width: 0; }
.psk-subhead h2 { margin: 0; font-size: 28px; font-weight: 700; }
.psk-subhead p { margin: 4px 0 0; color: #4b5d54; font-size: 15px; }
.psk-subhead__mascot { height: 84px; width: auto; margin: -30px 0 -22px; }
.psk-subhead .psk-pillbtn { flex: none; background: #fff; }
.psk-catgrid { gap: 22px; }
.psk-catgrid .psk-tcard__body { padding: 16px 16px 20px; gap: 8px; }
.psk-catgrid .psk-tcard__title { font-size: 16px; }

.psk-recos { margin: 16px 0 72px; }
.psk-recos__title { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 30px; font-size: 26px; color: var(--psk-primary); text-align: center; }
.psk-recos__title::after { content: ""; width: 44px; height: 3px; border-radius: 3px; background: var(--psk-primary); margin-top: 6px; }
.psk-recos__mascot { height: 74px; width: auto; }
.psk-recos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.psk-reco { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1.5px dashed #c9d8c6; }
.psk-reco__img { width: 72px; height: 72px; flex: none; border-radius: 12px; }
.psk-reco__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.psk-reco__cat { font-size: 13px; font-weight: 600; color: var(--psk-leaf); }
.psk-reco__name { font-family: var(--psk-font-head); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--psk-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psk-reco:hover .psk-reco__name { color: var(--psk-primary); }

/* บล็อกรวมบทความจากธีมเดิม (Post Grid / [s_loop]) */
.psk-compat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0 0 40px; }
.psk-content--wide > pre:empty, .psk-content--wide > .wp-block-preformatted:empty { display: none; }
.psk-compat-grid .psk-tcard__body { padding: 16px 16px 20px; gap: 8px; }
.psk-compat-grid .psk-tcard__title { font-size: 16px; }
.psk-compat-slider { margin: 24px 0 36px; }
.psk-compat-slider > * { width: 280px; }
.psk-page-wide .psk-article { max-width: none; }
.psk-content a.psk-tcard { text-decoration: none; color: inherit; }
.psk-content .psk-tcard img { border-radius: 0; height: 100%; margin: 0; }

/* แถบข้างบทความ (วิดเจ็ต) */
.psk-withside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.psk-withside .psk-article { max-width: 780px; width: 100%; margin: 0; justify-self: center; }
.psk-sidebar__inner { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.psk-widget { background: #fff; border: 1px solid #e3ebe4; border-radius: 20px; padding: 20px; box-shadow: var(--psk-shadow); font-size: 15px; overflow: hidden; }
.psk-widget__title, .psk-widget .wp-block-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 18px; font-weight: 700; color: var(--psk-head); }
.psk-widget .wp-block-heading::before, .psk-widget__title::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--psk-primary); flex: none; }
.psk-widget ul { list-style: none; margin: 0; padding: 0; }
.psk-widget li { padding: 8px 0; border-bottom: 1px dashed #d6e2d3; }
.psk-widget li:last-child { border-bottom: 0; }
.psk-widget a { color: var(--psk-text); }
.psk-widget a:hover { color: var(--psk-primary); }
.psk-widget img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.psk-widget:has(> img:only-child), .psk-widget:has(> a:only-child > img), .psk-widget.widget_media_image, .psk-widget.widget_custom_html:not(:has(.psk-widget__title)) { background: none; border: 0; box-shadow: none; padding: 0; }
.psk-widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.psk-widget .wp-block-search__label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--psk-head); }
.psk-widget .wp-block-search__input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1.5px solid #cfe0cb; border-radius: 999px; font: inherit; background: #f7faf5; }
.psk-widget .wp-block-search__button { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--psk-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.psk-wposts { list-style: none; margin: 0; padding: 0; }
.psk-widget .psk-wposts li { padding: 0; border: 0; }
.psk-widget .psk-wposts li + li { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #d6e2d3; }
.psk-wpost { display: flex; gap: 12px; align-items: flex-start; }
.psk-wpost__img { width: 96px; height: 72px; flex: none; border-radius: 12px; }
.psk-widget .psk-wpost__img img { border-radius: 0; height: 100%; }
.psk-wpost__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.psk-wpost__cat { font-size: 12px; font-weight: 600; color: var(--psk-leaf); }
.psk-wpost__title { font-family: var(--psk-font-head); font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--psk-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psk-wpost:hover .psk-wpost__title { color: var(--psk-primary); }
.psk-wpost .psk-meta { font-size: 12px; }
.psk-afterpost { max-width: 800px; margin: 8px auto 24px; display: flex; flex-direction: column; gap: 16px; }

/* กล่องข้อความแถบเขียว: ใส่คลาส "frame" ให้บล็อก (ขั้นสูง > คลาส CSS เพิ่มเติม) เช่นสโลแกนท้ายบทความ */
.psk-content .frame { background: #0f6b4e; color: #fff; border: 0; border-radius: 14px; padding: 10px 20px; margin: 24px 0; line-height: 1.6; box-shadow: 0 8px 20px rgba(15, 107, 78, .18); }
.psk-content .has-text-align-center { text-align: center; }
.psk-content .has-text-align-right { text-align: right; }
.psk-content .frame::before, .psk-content .frame::after { display: none; }
.psk-content .frame, .psk-content .frame * { color: #fff !important; }
.psk-content .frame a { text-decoration: underline; }

/* ปุ่ม TOP */
.psk-totop {
	position: fixed; right: 18px; bottom: calc(var(--psk-adspace, 100px) + 16px); z-index: 50; width: 56px; height: 56px; border-radius: 16px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: var(--psk-primary); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.1; box-shadow: 0 8px 20px rgba(31, 58, 46, .2);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s;
}
.psk-totop svg { width: 20px; height: 20px; }
.psk-totop.is-show { opacity: 1; visibility: visible; transform: none; }
.psk-totop:hover { background: var(--psk-dark); }

@media (max-width: 1100px) {
	.psk-adcontact--head { display: none; }
	.psk-withside { grid-template-columns: 1fr; }
	.psk-sidebar__inner { position: static; max-width: 800px; margin: 0 auto 32px; }
	.psk-megacols { column-count: 3; }
}
@media (max-width: 900px) {
	.psk-compat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.psk-cathero { padding: 28px 22px 150px; flex-direction: column; align-items: flex-start; gap: 16px; }
	.psk-cathero__icon.psk-icon { width: 76px; height: 76px; }
	.psk-cathero__title { font-size: 30px; }
	.psk-cathero__desc { font-size: 15px; }
	.psk-cathero__mascot { height: 140px; right: 18px; }
	.psk-subnav { padding: 14px 14px 70px; }
	.psk-subnav a { font-size: 17px; padding: 6px 14px; }
	.psk-subnav__mascot { height: 70px; right: 50%; transform: translateX(50%); }
	.psk-subhead { flex-wrap: wrap; padding: 18px; gap: 14px; }
	.psk-subhead__icon.psk-icon { width: 52px; height: 52px; }
	.psk-subhead h2 { font-size: 23px; }
	.psk-subhead__mascot { display: none; }
	.psk-subhead__text { flex: 1 1 calc(100% - 70px); }
	.psk-subhead .psk-pillbtn { margin-left: 66px; }
	.psk-recos__grid { grid-template-columns: 1fr; }
	:root { --psk-gutter: 18px; }
	.psk-hero__grid, .psk-mag, .psk-wide, .psk-split { grid-template-columns: 1fr; }
	.psk-hero__title { font-size: 36px; }
	.psk-hero__art { height: 400px; }
	.psk-hero__img1 { height: 390px; left: 4%; width: 52%; }
	.psk-hero__img2 { width: 40%; height: 320px; }
	.psk-grid3 { grid-template-columns: 1fr; }
	.psk-grid4, .psk-chips4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psk-megacols { column-count: 2; }
	.psk-shortcuts { grid-template-columns: 1fr 1fr; }
	.psk-drawer__main { padding: 22px 22px 30px; }
	.psk-drawer__foot { padding: 24px 22px; }
	.psk-catbox { padding: 28px 20px 24px; }
	.psk-catbox__mascot { height: 96px; margin-top: -60px; }
	.psk-arrow { display: none; }
	.psk-leaf--hero2, .psk-leaf--top { display: none; }
}
@media (max-width: 600px) {
	/* มือถือ: การ์ดบทความแถวละ 1 */
	.psk-catgrid, .psk-compat-grid, .psk-cards4 { grid-template-columns: 1fr; gap: 16px; }
	.psk-catgrid .psk-img--4x3, .psk-compat-grid .psk-img--4x3, .psk-cards4 .psk-img--4x3 { aspect-ratio: 16 / 10; }
	.psk-catgrid .psk-tcard__title, .psk-compat-grid .psk-tcard__title, .psk-cards4 .psk-tcard__title { font-size: 18px; -webkit-line-clamp: 2; }
	/* มือถือ: เว้นที่ให้แถบโฆษณาด้านล่าง */
	.psk-footer__bottom { padding-bottom: calc(16px + var(--psk-adspace-m, 160px)); }
	.psk-totop { bottom: calc(var(--psk-adspace-m, 160px) + 12px); right: 12px; width: 50px; height: 50px; }
	.psk-header__inner { grid-template-columns: auto 1fr auto; gap: 8px; }
	.psk-header__logo { justify-self: center; }
	.psk-logo__img { height: 46px; }
	.psk-menubtn span { display: none; }
	.psk-menubtn { padding: 0 10px; }
	.psk-iconbtn { width: 42px; height: 42px; }
	.psk-lang__panel { right: -96px; width: min(340px, calc(100vw - 24px)); }
	.psk-hero__title { font-size: 30px; }
	.psk-hero__desc { font-size: 17px; }
	.psk-hero__mascot { height: 100px; }
	.psk-hero__chip { font-size: 15px; top: 24px; }
	.psk-shead { flex-wrap: wrap; }
	.psk-shead h2 { font-size: 24px; }
	.psk-shead__mascot { height: 64px; }
	.psk-pillbtn { min-height: 44px; padding: 0 18px 0 14px; font-size: 14px; }
	.psk-chips4 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.psk-catchip { min-height: 64px; gap: 10px; padding: 10px; }
	.psk-catchip__ico { width: 42px; height: 42px; }
	.psk-catchip__name { font-size: 15px; }
	.psk-hcard { width: 300px; }
	.psk-hcard__img { width: 96px; height: 96px; }
	.psk-wcard { width: 300px; height: 220px; }
	.psk-tile { width: 220px; }
	.psk-tile__img { height: 180px; }
	.psk-wide__body { padding: 22px; }
	.psk-wide__title { font-size: 22px; }
	.psk-split { padding: 20px; }
	.psk-circles__c { width: 72px; height: 72px; font-size: 28px; }
	.psk-megacols { column-count: 2; column-gap: 16px; }
	.psk-pills { gap: 10px; }
	.psk-pill { min-height: 46px; padding: 0 16px; font-size: 15px; }
	.psk-shortcuts { grid-template-columns: 1fr; }
	.psk-drawer__mascot { height: 110px; margin-bottom: -40px; }
	.psk-article__title { font-size: 28px; }
	.psk-content { font-size: 16.5px; }
	.psk-content table { display: block; overflow-x: auto; }
	.psk-footer__mascot { height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
