/* =========================================================
   Suriya9 — Packages page (แพ็กเกจการจัดงานศพ)
   โหลดเฉพาะ template-packages.php — คลาส pk-* กันชนกับ home
   ========================================================= */

/* ===== HERO ===== */
.pk-hero {
  position: relative;
  height: 390px;
  overflow: hidden;
}
/* 3d-wallpaper ตัดเป็น banner (cover) — ไม่สูงเกิน */
.pk-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pk-hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 261px;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
}

/* ===== MAIN ===== */
.pk-main {
  position: relative;
  padding-top: 40px;
}

/* ===== TITLE ===== */
.pk-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.pk-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  color: #8c0e0f;
  text-align: center;
  white-space: nowrap;
}

/* ===== TABS ===== */
.pk-tabs-wrap {
  display: flex;
  justify-content: center;
  margin: 48px 0 0;
}
.pk-tabs {
  display: flex;
  gap: 13px;
  align-items: center;
  background: #f5efe5;
  border-radius: 100px;
  height: 56px;
}
.pk-tab {
  padding: 12px 36px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: #94641e;
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
  line-height: normal;
  transition: color 0.2s ease;
}
.pk-tab.active {
  background: linear-gradient(92.73deg, #a67c1e 1.52%, #d4af37 99.43%);
  border: 1px solid #fff;
  color: #fff;
  box-shadow: 0 10px 12px rgba(166, 124, 30, 0.4);
}

/* ===== SECTION (แบบกดสลับ — โชว์เฉพาะที่ active) ===== */
.pk-section {
  background: #fff;
  padding-bottom: 60px;
  display: none;
}
.pk-section.is-active { display: block; }

/* อนิเมชั่นตอนแท็บ active — เล่นซ้ำทุกครั้งที่กดสลับ */
@keyframes pkIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.pk-section.is-active .pk-heading {
  animation: pkIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.pk-section.is-active .pk-card {
  animation: pkIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.pk-section.is-active .pk-row .pk-card:nth-child(1) { animation-delay: 0.12s; }
.pk-section.is-active .pk-row .pk-card:nth-child(2) { animation-delay: 0.22s; }
.pk-section.is-active .pk-row .pk-card:nth-child(3) { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .pk-section.is-active .pk-heading,
  .pk-section.is-active .pk-card { animation: none; }
}

.pk-heading {
  padding-top: 48px;
  text-align: center;
  margin-bottom: 48px;
}
.pk-sec-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  color: #8c0e0f;
}
.pk-sec-desc {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.6;
  color: #545454;
}

/* ===== CARD ROW ===== */
.pk-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 64px;
  margin-bottom: 40px;
}

/* ===== CARD ===== header ราคายื่นขึ้นบน (z-index ต่ำ) + รูปเต็มใบทับด้านหน้า */
.pk-card {
  position: relative;
  width: 400px;
  flex-shrink: 0;
  padding-top: 44px;
}
.pk-card-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(93.25deg, #a67c1e 1.52%, #d4af37 99.43%);
  filter: drop-shadow(0 8px 12px rgba(166, 124, 30, 0.4));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px 24px 0 18px;
  z-index: 1;
}
.pk-card-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16px;
  color: #fff;
  white-space: nowrap;
}
.pk-card-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}
.pk-card-frame {
  position: relative;
  z-index: 2;
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.pk-card-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== RESPONSIVE (desktop-first, กันล้นจอเล็กเล็กน้อย) ===== */
@media (max-width: 1280px) {
  .pk-row { padding-left: 32px; padding-right: 32px; gap: 16px; }
}