/* รีเซ็ตเบื้องต้น */
body {
  margin: 0;
  font-family: 'Prompt', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* ซ่อนไว้สำหรับ SEO */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* แม่แบบหลัก */
.home-main-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 960px;
  margin: auto;
}

/* ================= HERO SECTION (SHOW FULL IMAGE) ================= */

.home-hero {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.06);

  /* ✅ ล็อกพื้นที่ ป้องกัน CLS */
  aspect-ratio: 2 / 3;
}




/* แสดงรูปเต็ม ไม่ครอปหน้า */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 0.5rem;

  /* ✅ กันภาพทำ layout ขยับ */
  aspect-ratio: 2 / 3;
}

.home-columns {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}


/* ปุ่มอยู่ใต้รูป */
.home-hero .btn {
  margin-top: 0.25rem;   /* ⬅ ลดช่องว่าง */
  margin-bottom: 0;      /* ⬅ กันเผื่อมีค่าเดิม */
}



/* ปุ่มหลักใต้ Hero */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #e91e63;
  color: #fff !important;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.08s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(233,30,99,0.35);
}
.btn:hover {
  background: #f06292;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(233,30,99,0.45);
}

/* Column Sections */
.home-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Cards */
.section {
  background: #fff;
  border-radius: 12px;
  margin-top: 0.5rem;
  padding: 2rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.06);
}

.section h2 {
  font-size: 1.4rem;
  color: #e91e63;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ปุ่ม Tag */
.tag {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  background: #f8bbd0;
  color: #880e4f;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.05s ease;
  will-change: transform;
}
.tag:hover {
  background: #ffdde9;
  color: #c2185b;
  transform: translateY(-1px);
}

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.feature {
  flex: 1 1 220px;
  text-align: center;
}

.feature img {
  width: 65px;
  height: auto;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 1.1rem;
  color: #d81b60;
  margin: 0.5rem 0;
}

.feature p {
  font-size: 0.95rem;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .home-main-flex { padding: 1.5rem 1rem; }
  .features { flex-direction: column; align-items: center; }
  .tag { font-size: 0.95rem; padding: 0.5rem 1rem; }
}

/* === FIX ADMIN BAR: กันทุกหน้า ไม่ให้โดนทับ === */
#wpadminbar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 999999 !important;
}

body.admin-bar {
  padding-top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    padding-top: 46px;
  }
}