/* ==========================================================================
   รับจ้างแปลภาษา.com — Service Page Content Styles
   Card-style design system for entry-content blocks (steps / FAQ / related)
   ========================================================================== */

.tf-content {
  font-family: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
}

.entry-content .tf-content {
  color: #1d2a45;
}

/* ---- Headings & body typography ---- */
.entry-content .tf-content h2,
.entry-content .tf-content h3,
.entry-content .tf-content h4 {
  font-family: "Prompt", "Sarabun", system-ui, sans-serif;
  color: #0a1a3a;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.entry-content .tf-content h2 {
  font-size: 28px;
  margin: 44px 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid #f4b740;
  display: inline-block;
}

.entry-content .tf-content h3 {
  font-size: 20px;
  margin: 30px 0 12px;
  color: #163063;
}

.entry-content .tf-content h4 {
  font-size: 18px;
  margin: 24px 0 10px;
}

.entry-content .tf-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #1d2a45;
  margin: 0 0 18px;
}

.entry-content .tf-content ul,
.entry-content .tf-content ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.entry-content .tf-content ul > li,
.entry-content .tf-content ol > li {
  position: relative;
  font-size: 17px;
  line-height: 1.85;
  color: #1d2a45;
  padding-left: 30px;
  margin-bottom: 10px;
}

.entry-content .tf-content ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffd166, #f4b740);
}

.entry-content .tf-content ol > li {
  counter-increment: tfnum;
}

.entry-content .tf-content ol {
  counter-reset: tfnum;
}

.entry-content .tf-content ol > li::before {
  content: counter(tfnum);
  position: absolute;
  left: 0;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a1a3a;
  color: #ffffff;
  font-family: "Prompt", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 22px;
}

.entry-content .tf-content a {
  color: #163063;
  font-weight: 600;
}

.entry-content .tf-content strong {
  color: #0a1a3a;
}

/* ---- Intro / lead ---- */
.entry-content .tf-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.9;
  color: #334155;
}

/* ---- CTA quote box ---- */
.tf-content .tf-cta {
  text-align: center;
  margin: 36px 0;
  padding: 34px 26px;
  background: linear-gradient(135deg, #ffffff, #f6f8fc);
  border: 1px solid #e6ebf4;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 35, 80, 0.10);
}

.tf-content .tf-cta h3 {
  font-size: 22px;
  color: #0a1a3a;
  margin: 0 0 12px;
}

.tf-content .tf-cta p {
  font-size: 16px;
  color: #5c6b8c;
  margin: 0 0 22px;
}

.tf-content .tf-cta .tf-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tf-content .tf-cta .tf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Prompt", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.tf-content .tf-cta .tf-btn:hover { transform: translateY(-2px); }

.tf-content .tf-cta .tf-btn-line {
  background: #06c755;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.32);
}

.tf-content .tf-cta .tf-btn-mail {
  background: linear-gradient(135deg, #1d3d7a, #0a1a3a);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 35, 80, 0.28);
}

/* ---- Steps (ขั้นตอนการสั่งแปล) ---- */
.tf-content .tf-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0 0 26px;
}

.tf-content .tf-step {
  position: relative;
  background: #ffffff;
  border: 1px solid #e6ebf4;
  border-radius: 16px;
  padding: 22px 22px 22px 66px;
  box-shadow: 0 6px 18px rgba(15, 35, 80, 0.06);
}

.tf-content .tf-step .tf-step-num {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd166, #f4b740);
  color: #0a1a3a;
  font-family: "Prompt", sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-content .tf-step b {
  display: block;
  font-family: "Prompt", sans-serif;
  font-size: 16px;
  color: #0a1a3a;
  margin-bottom: 6px;
}

.tf-content .tf-step p {
  font-size: 15px;
  line-height: 1.8;
  color: #5c6b8c;
  margin: 0;
}

/* ---- FAQ (คำถามที่พบบ่อย) ---- */
.tf-content .tf-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 26px;
}

.tf-content .tf-faq-item {
  background: #ffffff;
  border: 1px solid #e6ebf4;
  border-left: 4px solid #14b8a6;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(15, 35, 80, 0.05);
}

.tf-content .tf-faq-item h3 {
  font-size: 17px;
  color: #0a1a3a;
  margin: 0 0 8px;
  font-family: "Prompt", sans-serif;
}

.tf-content .tf-faq-item p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #5c6b8c;
  margin: 0;
}

/* ---- Related services (บริการที่เกี่ยวข้อง) ---- */
.tf-content .tf-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 26px;
}

.tf-content .tf-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  font-family: "Prompt", sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  color: #163063;
  box-shadow: 0 6px 18px rgba(15, 35, 80, 0.05);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.tf-content .tf-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 35, 80, 0.12);
  border-color: #f4b740;
}

.tf-content .tf-related-card .tf-related-arrow {
  margin-left: auto;
  color: #f4b740;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Figure / images inside content ---- */
.entry-content .tf-content figure.wp-caption {
  margin: 26px auto;
  max-width: 100%;
}

.entry-content .tf-content figure.wp-caption img {
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 35, 80, 0.14);
}

.entry-content .tf-content figcaption.wp-caption-text {
  font-size: 14px;
  color: #5c6b8c;
  text-align: center;
  padding-top: 8px;
}

/* ---- Blockquote ---- */
.entry-content .tf-content blockquote {
  border-left: 4px solid #f4b740;
  background: #f6f8fc;
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
}

/* ==========================================================================
   Site-wide typography — ใช้ฟอนต์เดียวกับเนื้อหา (Prompt สำหรับหัวเรื่อง/เมนู)
   ========================================================================== */

.site-header .site-branding .site-title a,
.ast-site-title-wrap .site-title,
.ast-builder-layout-element .site-title,
.main-header-menu .menu-link,
.main-header-menu .menu-item > a,
.ast-builder-menu .main-header-menu .menu-link,
.ast-builder-menu .main-header-menu .menu-item > a,
.ast-nav-menu .menu-link,
.ast-builder-html-element,
.ast-header-html,
.site-header .main-header-menu .menu-link {
  font-family: "Prompt", "Sarabun", system-ui, sans-serif;
}

.entry-title,
.ast-single-post .entry-title,
.page-title,
h1.entry-title,
h1.page-title,
.ast-single-post .entry-title a,
.ast-single-post .entry-title a:hover {
  font-family: "Prompt", "Sarabun", system-ui, sans-serif;
  color: #0a1a3a;
  letter-spacing: -0.01em;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .entry-content .tf-content h2 { font-size: 24px; }
  .tf-content .tf-steps,
  .tf-content .tf-faq,
  .tf-content .tf-related { grid-template-columns: 1fr; }
}
