/*
Theme Name: Minimal White v1.3
Theme URI: https://example.com/minimal-white
Author: ท่านชิด
Description: ธีมพื้นขาวเรียบง่าย v1.3 (ภาพหน้าปกอยู่กลางบทความ, ไม่มีบทความแนะนำ) — แสดงภาพหน้าปก, หน้าแรกเป็นรายการบทความ, มีแท็ก og:title / og:image / description ในตัว (ให้ Facebook สร้างกล่องตัวอย่างลิงก์), ใช้กับปลั๊กอิน Content Toggler (READ MORE) ได้
Version: 1.3.0
Requires at least: 5.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal-white-v11
*/
html, body {
  background: #ffffff;
  color: #111111;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Noto Sans", "Liberation Sans", sans-serif;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1d4ed8; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* หัวเว็บ / ท้ายเว็บ */
.site-header { border-bottom: 1px solid #eee; }
.site-header .inner, .site-footer .inner { max-width: 860px; margin: 0 auto; padding: 0.9rem 1rem; }
.site-title { font-size: 1.25rem; font-weight: 700; color: #111; }
.site-title:hover { text-decoration: none; }
.site-footer { border-top: 1px solid #eee; margin-top: 3rem; color: #666; font-size: 0.9rem; }

main { max-width: 860px; margin: 1.5rem auto; padding: 0 1rem; }

/* หน้าบทความ */
.entry-title { font-size: 2rem; line-height: 1.25; margin: 1rem 0 0.5rem; }
.entry-meta { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.entry-thumb { margin: 0 0 1.25rem; }
.entry-thumb img { width: 100%; border-radius: 6px; }
.entry-content .mid-thumb { margin: 1.5rem 0; }
.entry-content { margin-bottom: 2rem; font-size: 1.1rem; }
.entry-content p { margin: 0 0 1.1rem; }
.entry-content h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; }

/* หน้าแรก: รายการบทความ */
.post-list { display: grid; gap: 1.5rem; }
.card { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; border-bottom: 1px solid #f0f0f0; padding-bottom: 1.5rem; }
.card .card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.card h2 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 0.4rem; }
.card h2 a { color: #111; }
.card p { margin: 0; color: #444; font-size: 0.95rem; }
.card.no-thumb { grid-template-columns: 1fr; }
@media (max-width: 600px) {
  .card { grid-template-columns: 1fr; }
  .entry-title { font-size: 1.6rem; }
}

/* แบ่งหน้า */
.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0; }
.pagination .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid #ddd; border-radius: 4px; color: #111; }
.pagination .current { background: #111; color: #fff; border-color: #111; }
