/* ==================================================
   AIA LIFE CATEGORY HERO - FORCE STYLE
   รองรับทั้ง:
   1. Category มาตรฐาน: /category/slug/
   2. ACF Custom Taxonomy: /insurance-category/slug/

   Taxonomy Key:
   page_category
================================================== */

/* --------------------------------------------------
   ซ่อน Page Header เดิมของ Theme
-------------------------------------------------- */
body:is(.category, .tax-page_category) .page-header {
  display: none !important;
}

/* --------------------------------------------------
   Hero Wrapper
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 28px auto 38px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* --------------------------------------------------
   Hero Inner
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__inner {
  position: relative !important;
  overflow: hidden !important;

  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: center !important;
  gap: 28px !important;

  padding: clamp(38px, 5vw, 64px) !important;
  border-radius: 38px !important;

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(211, 17, 69, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 86%,
      rgba(211, 17, 69, 0.13),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fff7fa 46%,
      #fff1f5 100%
    ) !important;

  border: 1px solid rgba(211, 17, 69, 0.13) !important;
  box-shadow: 0 26px 74px rgba(15, 23, 42, 0.08) !important;
}

/* วงกลมตกแต่งด้านขวาบน */
body:is(.category, .tax-page_category) .aia-life-hero__inner::before {
  content: "";
  position: absolute;
  right: -130px;
  top: -130px;

  width: 360px;
  height: 360px;
  border-radius: 999px;

  background: rgba(211, 17, 69, 0.08);
  pointer-events: none;
}

/* วงกลมตกแต่งด้านซ้ายล่าง */
body:is(.category, .tax-page_category) .aia-life-hero__inner::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -160px;

  width: 420px;
  height: 420px;
  border-radius: 999px;

  background: rgba(211, 17, 69, 0.07);
  pointer-events: none;
}

/* --------------------------------------------------
   Content
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__content {
  position: relative !important;
  z-index: 2 !important;

  max-width: 880px !important;
}

/* --------------------------------------------------
   ซ่อน Visual Box ด้านขวา
   ใช้ Layout Hero แบบคอลัมน์เดียว
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__visual {
  display: none !important;
}

/* --------------------------------------------------
   Eyebrow
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;

  margin: 0 0 18px !important;
  padding: 9px 15px !important;
  border-radius: 999px !important;

  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(211, 17, 69, 0.18) !important;
  color: #d31145 !important;
  box-shadow: 0 10px 24px rgba(211, 17, 69, 0.06) !important;

  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* --------------------------------------------------
   H1
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero h1 {
  margin: 0 0 18px !important;

  color: #d31145 !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: clamp(2.15rem, 4.2vw, 3.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
}

/* --------------------------------------------------
   Lead Description
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__lead {
  max-width: 760px !important;
  margin: 0 0 26px !important;

  color: #475569 !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: clamp(1.04rem, 1.25vw, 1.18rem) !important;
  font-weight: 500 !important;
  line-height: 1.9 !important;
}

/* --------------------------------------------------
   Chips
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;

  max-width: 780px !important;
  margin: 0 0 28px !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__chips span {
  display: inline-flex !important;
  align-items: center !important;

  padding: 8px 13px !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  border: 1px solid #f3b5c8 !important;
  color: #b4234f !important;

  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* --------------------------------------------------
   Action Buttons
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;

  margin-top: 4px !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 52px !important;
  padding: 0 26px !important;
  border-radius: 16px !important;

  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__btn:hover {
  transform: translateY(-2px) !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__btn--primary {
  background: #d31145 !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(211, 17, 69, 0.24) !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__btn--outline {
  background: #ffffff !important;
  color: #d31145 !important;
  border: 1px solid rgba(211, 17, 69, 0.32) !important;
}

/* --------------------------------------------------
   รองรับกรณีเปิด Visual Box กลับมาในอนาคต
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__card {
  border-radius: 28px !important;
  padding: 26px !important;

  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.09) !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__card span {
  display: inline-flex !important;
  margin: 0 0 8px !important;

  color: #94a3b8 !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__card strong {
  display: block !important;
  margin: 0 0 8px !important;

  color: #0f172a !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__card p {
  margin: 0 !important;

  color: #475569 !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
}

/* --------------------------------------------------
   Mini Cards
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__mini-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__mini {
  padding: 16px 14px !important;
  border-radius: 22px !important;

  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(211, 17, 69, 0.1) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__mini span {
  display: block !important;
  margin: 0 0 8px !important;

  color: #d31145 !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__mini strong {
  display: block !important;

  color: #0f172a !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__mini small {
  display: block !important;
  margin-top: 4px !important;

  color: #64748b !important;
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------
   Trust Box
-------------------------------------------------- */
body:is(.category, .tax-page_category) .aia-life-hero__trust {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;

  padding: 16px 18px !important;
  border-radius: 22px !important;

  background: #d31145 !important;
  color: #ffffff !important;
  box-shadow: 0 18px 40px rgba(211, 17, 69, 0.22) !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__trust strong {
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
}

body:is(.category, .tax-page_category) .aia-life-hero__trust span {
  font-family: "Prompt Primary", "Prompt", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  opacity: 0.9 !important;
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 900px) {
  body:is(.category, .tax-page_category) .aia-life-hero {
    margin: 18px auto 28px !important;
    padding: 0 12px !important;
  }

  body:is(.category, .tax-page_category) .aia-life-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;

    padding: 30px 22px !important;
    border-radius: 28px !important;
  }

  body:is(.category, .tax-page_category) .aia-life-hero h1 {
    font-size: clamp(2.2rem, 9.6vw, 3.35rem) !important;
    line-height: 1.1 !important;
  }

  body:is(.category, .tax-page_category) .aia-life-hero__lead {
    font-size: 0.98rem !important;
    line-height: 1.78 !important;
  }

  body:is(.category, .tax-page_category) .aia-life-hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body:is(.category, .tax-page_category) .aia-life-hero__btn {
    min-height: 48px !important;
  }

  body:is(.category, .tax-page_category) .aia-life-hero__mini-grid {
    grid-template-columns: 1fr !important;
  }

  body:is(.category, .tax-page_category) .aia-life-hero__trust {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
/* ==================================================
   AIA LIFE HERO - HIDE CHIPS & ACTION BUTTONS
   ซ่อนข้อความแท็กและปุ่ม CTA ใน Hero
================================================== */

body:is(.category, .tax-page_category) .aia-life-hero__chips,
body:is(.category, .tax-page_category) .aia-life-hero__actions {
  display: none !important;
}

/* ==================================================
   AIA LIFE HERO - HIDE EYEBROW BADGE
   ซ่อนป้ายข้อความด้านบนของ Hero
================================================== */

body:is(.category, .tax-page_category) .aia-life-hero__eyebrow {
  display: none !important;
}