
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #F77F00;
  --orange-dark: #D65A00;
  --orange-light: #FFB347;
  --gold: #D4A017;
  --gold-light: #F4C430;
  --white: #FFFFFF;
  --cream: #FFF8E7;
  --text: #2C2416;
  --text-soft: #5C4A2E;
  --shadow: 0 8px 24px rgba(247,127,0,0.12);
  --shadow-hover: 0 12px 32px rgba(247,127,0,0.25);
  --radius: 16px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Prompt', 'Sarabun', 'Kanit', sans-serif;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFFFFF 60%, #FFF1D6 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.header {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: var(--white);
  padding: 16px 0;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { height: 56px; width: auto; background: white; border-radius: 12px; padding: 4px; }
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.logo-text small { display: block; font-size: 12px; font-weight: 400; opacity: 0.9; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 30px;
  font-weight: 600; text-decoration: none; font-size: 14px;
  transition: all 0.25s ease; border: 2px solid transparent;
}
.btn-call { background: var(--white); color: var(--orange-dark); }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.btn-line { background: #06C755; color: var(--white); }
.btn-line:hover { background: #05a946; transform: translateY(-2px); }
.btn-home { background: rgba(255,255,255,0.2); color: var(--white); border-color: var(--white); }
.btn-home:hover { background: var(--white); color: var(--orange-dark); }

/* HERO INDEX */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(247,127,0,0.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(212,160,23,0.08), transparent 50%);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px); font-weight: 700;
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  margin-bottom: 16px; line-height: 1.3;
}
.hero p { font-size: 18px; color: var(--text-soft); max-width: 720px; margin: 0 auto 24px; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(247,127,0,0.1); color: var(--orange-dark);
  border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
  border: 1px solid rgba(247,127,0,0.25);
}

/* PILLAR LINK CARD */
.pillar-link {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: white; padding: 24px; border-radius: var(--radius);
  text-align: center; margin: 30px 0; box-shadow: var(--shadow);
  text-decoration: none; display: block; transition: all 0.3s;
}
.pillar-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pillar-link h3 { font-size: 20px; margin-bottom: 6px; }
.pillar-link p { font-size: 14px; opacity: 0.95; }

/* CATEGORIES INDEX */
.cat-section { padding: 40px 0; }
.section-title {
  font-size: 26px; font-weight: 700; color: var(--orange-dark);
  border-left: 6px solid var(--gold); padding-left: 14px; margin-bottom: 24px;
}
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: all 0.3s ease;
  border-top: 4px solid var(--orange);
  text-decoration: none; color: inherit; display: block;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cat-icon { font-size: 40px; margin-bottom: 8px; }
.cat-card h3 { color: var(--orange-dark); font-size: 18px; margin-bottom: 8px; }
.cat-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 12px; }
.cat-meta { display: inline-block; font-size: 12px; padding: 4px 10px; background: var(--cream); border-radius: 12px; color: var(--orange-dark); font-weight: 600; }

/* ARTICLE LIST */
.article-list { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.article-list ol { list-style: none; counter-reset: art; }
.article-list li {
  counter-increment: art; padding: 12px 0; border-bottom: 1px dashed #f3e3c0;
  display: flex; gap: 12px; align-items: flex-start;
}
.article-list li:last-child { border-bottom: none; }
.article-list li::before {
  content: counter(art); flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.article-list a { color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.5; }
.article-list a:hover { color: var(--orange-dark); }

/* ARTICLE PAGE */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--text-soft); }
.breadcrumb a { color: var(--orange-dark); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.article {
  background: white; border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow); margin: 20px 0 40px;
}
.article h1 {
  font-size: clamp(24px, 4vw, 34px); color: var(--orange-dark);
  margin-bottom: 20px; line-height: 1.35;
  border-bottom: 3px solid var(--gold); padding-bottom: 16px;
}
.article-meta { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.article-meta span { display: inline-block; margin-right: 14px; }
.article h2 {
  font-size: 22px; color: var(--orange-dark); margin: 32px 0 14px;
  padding-left: 12px; border-left: 5px solid var(--orange);
}
.article h3 { font-size: 18px; color: var(--text); margin: 22px 0 10px; }
.article p { margin-bottom: 14px; color: var(--text); font-size: 16px; }
.article ul, .article ol { margin: 12px 0 18px 28px; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--orange-dark); }

.article-image {
  display: block; margin: 24px auto; max-width: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.article-image:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }
.article-image-wrap { display: block; text-align: center; margin: 28px 0; }
.article-image-wrap small { display: block; color: var(--text-soft); margin-top: 8px; font-size: 13px; }

/* INFO BOX */
.info-box {
  background: linear-gradient(135deg, var(--cream) 0%, #FFF3D9 100%);
  border-left: 5px solid var(--gold);
  padding: 18px 22px; margin: 22px 0; border-radius: 10px;
}
.info-box strong { display: block; margin-bottom: 6px; }

.warning-box {
  background: linear-gradient(135deg, #FFEEDD 0%, #FFE2C2 100%);
  border-left: 5px solid var(--orange-dark);
  padding: 18px 22px; margin: 22px 0; border-radius: 10px;
}

/* FAQ */
.faq { margin-top: 36px; }
.faq h2 { color: var(--orange-dark); }
.faq-item {
  background: var(--cream); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 14px;
  border-left: 4px solid var(--gold);
}
.faq-q { font-weight: 700; color: var(--orange-dark); margin-bottom: 8px; font-size: 17px; }
.faq-q::before { content: "Q: "; }
.faq-a { color: var(--text); }
.faq-a::before { content: "A: "; font-weight: 700; color: var(--gold); }

/* CTA BOX */
.cta-box {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: white; padding: 32px; border-radius: var(--radius);
  text-align: center; margin: 36px 0; box-shadow: var(--shadow);
}
.cta-box h2 { color: white !important; border: none !important; padding: 0 !important; margin-bottom: 12px; }
.cta-box p { color: white; margin-bottom: 20px; }
.cta-box .btn { font-size: 16px; padding: 14px 24px; }

/* RELATED */
.related { background: white; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.related h2 { color: var(--orange-dark); font-size: 22px; margin-bottom: 16px; padding-left: 12px; border-left: 5px solid var(--orange); }
.related ul { list-style: none; }
.related li { padding: 10px 0; border-bottom: 1px dashed #f3e3c0; }
.related li:last-child { border: none; }
.related a { color: var(--text); text-decoration: none; font-weight: 500; }
.related a::before { content: "▸ "; color: var(--orange); font-weight: 700; }
.related a:hover { color: var(--orange-dark); }

/* FOOTER */
.footer {
  background: linear-gradient(135deg, #2C2416 0%, #5C4A2E 100%);
  color: var(--cream); padding: 40px 0 20px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; margin-bottom: 24px; }
.footer h4 { color: var(--gold-light); margin-bottom: 12px; font-size: 17px; }
.footer p, .footer a { color: var(--cream); text-decoration: none; font-size: 14px; line-height: 1.9; }
.footer a:hover { color: var(--gold-light); }
.footer ul { list-style: none; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(244,196,48,0.2); font-size: 13px; opacity: 0.85; }

/* FLOATING CALL */
.float-call {
  position: fixed; bottom: 20px; right: 20px; z-index: 99;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  color: white; text-decoration: none;
  transition: all 0.25s ease; border: 3px solid white;
}
.float-btn:hover { transform: scale(1.1); }
.float-call-phone { background: var(--orange); }
.float-call-line { background: #06C755; }

/* RESPONSIVE */
@media (max-width: 720px) {
  .article { padding: 24px 20px; }
  .header-actions .btn { padding: 8px 12px; font-size: 13px; }
  .logo-text { font-size: 18px; }
  .logo-area img { height: 44px; }
  .hero { padding: 40px 16px 20px; }
}
