/*
 * Thesis Presentation Importer — Article Styles
 * thesis.รับจ้างทำสไลด์.com
 * Version: 1.0.0
 *
 * All classes prefixed with .thesis- to avoid conflicts with WordPress themes.
 */

/* ─── TOKENS ─── */
:root {
  --thesis-navy:    #0f1b35;
  --thesis-navy2:   #162040;
  --thesis-navy3:   #1e2f52;
  --thesis-blue:    #2563eb;
  --thesis-blue-lt: #3b7cf8;
  --thesis-accent:  #f59e0b;
  --thesis-accent2: #fbbf24;
  --thesis-green:   #10b981;
  --thesis-white:   #ffffff;
  --thesis-gray-50: #f8fafc;
  --thesis-gray-100:#f1f5f9;
  --thesis-gray-200:#e2e8f0;
  --thesis-gray-400:#94a3b8;
  --thesis-gray-600:#475569;
  --thesis-gray-700:#334155;
  --thesis-gray-800:#1e293b;
  --thesis-radius:  16px;
  --thesis-radius-sm: 10px;
  --thesis-shadow:  0 4px 24px rgba(15,27,53,.12);
  --thesis-tr:      .25s cubic-bezier(.4,0,.2,1);
}

/* ─── BODY OVERRIDE for article pages ─── */
body.thesis-article-page {
  font-family: 'Sarabun', sans-serif;
  background: var(--thesis-gray-50);
  color: var(--thesis-gray-800);
  line-height: 1.75;
  font-size: 16px;
  margin: 0;
  padding: 0;
}
body.thesis-article-page *,
body.thesis-article-page *::before,
body.thesis-article-page *::after {
  box-sizing: border-box;
}
body.thesis-article-page a { text-decoration: none; }
body.thesis-article-page h1,
body.thesis-article-page h2,
body.thesis-article-page h3,
body.thesis-article-page h4 {
  font-family: 'Kanit', sans-serif;
  line-height: 1.25;
}

/* ─── NAV ─── */
.thesis-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,27,53,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.thesis-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: 1080px; margin: 0 auto; padding: 0 24px; gap: 16px;
}
.thesis-nav-logo {
  font-family: 'Kanit', sans-serif;
  font-weight: 800; font-size: 1rem;
  color: #fff; white-space: nowrap;
}
.thesis-nav-logo span { color: var(--thesis-accent); }
.thesis-nav-links {
  display: flex; gap: 4px; list-style: none;
  margin: 0; padding: 0;
}
.thesis-nav-links a {
  font-size: .82rem; color: rgba(255,255,255,.65);
  padding: 5px 10px; border-radius: 7px;
  transition: all var(--thesis-tr);
}
.thesis-nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.thesis-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--thesis-accent); color: var(--thesis-navy) !important;
  font-weight: 800; font-size: .82rem;
  padding: 7px 16px; border-radius: 9px;
  transition: all var(--thesis-tr); white-space: nowrap;
}
.thesis-nav-cta:hover { background: var(--thesis-accent2); transform: translateY(-1px); }

/* ─── BREADCRUMB ─── */
.thesis-breadcrumb {
  background: var(--thesis-white);
  border-bottom: 1px solid var(--thesis-gray-200);
  padding: 10px 0;
}
.thesis-breadcrumb-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  font-size: .8rem; color: var(--thesis-gray-600);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.thesis-breadcrumb-inner a { color: var(--thesis-blue); }
.thesis-breadcrumb-inner a:hover { text-decoration: underline; }
.thesis-bc-sep { color: var(--thesis-gray-400); }

/* ─── ARTICLE HERO ─── */
.thesis-art-hero {
  background: var(--thesis-navy);
  padding: 52px 0 44px;
  position: relative; overflow: hidden;
}
.thesis-art-hero::after {
  content: '';
  position: absolute; top: -100px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  pointer-events: none;
}
.thesis-art-hero-inner {
  max-width: 780px; margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 1;
}
.thesis-art-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px;
  margin-bottom: 14px;
  background: rgba(37,99,235,.2); color: #93c5fd;
}
.thesis-art-h1 {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900; color: #fff;
  margin: 0 0 14px; line-height: 1.2;
}
.thesis-art-h1 em { color: var(--thesis-accent); font-style: normal; }
.thesis-art-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.art-meta-tag {
  font-size: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  padding: 3px 10px; border-radius: 8px;
}

/* ─── LAYOUT ─── */
.thesis-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 32px; max-width: 1080px;
  margin: 0 auto; padding: 40px 24px 80px;
  align-items: start;
}

/* ─── ARTICLE CONTENT ─── */
.thesis-article {
  background: var(--thesis-white);
  border: 1.5px solid var(--thesis-gray-200);
  border-radius: var(--thesis-radius);
  padding: 36px 40px;
}
.thesis-article h2 {
  font-family: 'Kanit', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--thesis-navy);
  margin: 28px 0 10px;
  border-left: 4px solid var(--thesis-blue); padding-left: 12px;
}
.thesis-article h2:first-child { margin-top: 0; }
.thesis-article h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--thesis-navy);
  margin: 20px 0 8px;
}
.thesis-article p {
  margin-bottom: 14px; font-size: .95rem;
  color: var(--thesis-gray-700); line-height: 1.8;
}
.thesis-article ul,
.thesis-article ol {
  margin: 0 0 14px 20px; font-size: .95rem; color: var(--thesis-gray-700);
}
.thesis-article li { margin-bottom: 6px; }
.thesis-article strong { color: var(--thesis-navy); }
.thesis-article em { color: var(--thesis-blue); font-style: normal; }

/* ─── TABLES ─── */
.thesis-article table {
  width: 100%; border-collapse: collapse;
  margin: 12px 0 20px; font-size: .86rem;
  border-radius: 10px; overflow: hidden;
}
.thesis-article th {
  background: var(--thesis-navy); color: #fff;
  padding: 10px 14px; text-align: left; font-weight: 700;
}
.thesis-article td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--thesis-gray-200);
  color: var(--thesis-gray-700);
}
.thesis-article tr:nth-child(even) td { background: var(--thesis-gray-50); }
.thesis-article tr:last-child td { border-bottom: none; }

/* ─── CTA BOX (inside article) ─── */
.thesis-article .cta-box {
  background: linear-gradient(135deg, var(--thesis-navy), #1a2d52);
  color: #fff; border-radius: 14px;
  padding: 28px; margin: 28px 0; text-align: center;
}
.thesis-article .cta-box h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 1.1rem; margin-bottom: 8px; color: #fff;
}
.thesis-article .cta-box p {
  font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 16px;
}
.thesis-article .cta-box a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--thesis-accent); color: var(--thesis-navy);
  font-family: 'Kanit', sans-serif; font-weight: 800;
  padding: 11px 26px; border-radius: 10px; font-size: .9rem;
  transition: background var(--thesis-tr);
}
.thesis-article .cta-box a:hover { background: var(--thesis-accent2); }

/* ─── TIP / WARN BOXES ─── */
.thesis-article .tip-box {
  background: #f0fdf4; border: 1.5px solid #86efac;
  border-radius: 10px; padding: 16px 20px; margin: 16px 0;
  font-size: .88rem; color: #166534;
}
.thesis-article .warn-box {
  background: #fffbeb; border: 1.5px solid #fcd34d;
  border-radius: 10px; padding: 16px 20px; margin: 16px 0;
  font-size: .88rem; color: #78350f;
}

/* ─── FAQ (inside article) ─── */
.thesis-article .faq-item {
  border: 1.5px solid var(--thesis-gray-200);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 10px; cursor: pointer;
  transition: border-color var(--thesis-tr);
}
.thesis-article .faq-item:hover,
.thesis-article .faq-item.open { border-color: var(--thesis-blue); }
.thesis-article .faq-q {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  font-family: 'Kanit', sans-serif;
  font-size: .9rem; font-weight: 700; color: var(--thesis-navy);
}
.thesis-article .faq-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--thesis-gray-100); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--thesis-gray-600);
  transition: all var(--thesis-tr);
}
.thesis-article .faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--thesis-blue); color: #fff;
}
.thesis-article .faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: .85rem; color: var(--thesis-gray-600); line-height: 1.7;
}
.thesis-article .faq-item.open .faq-a { max-height: 400px; padding: 0 18px 16px; }

/* ─── INTERNAL LINKS ─── */
.thesis-article .int-links {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--thesis-gray-200);
  font-size: .83rem; color: var(--thesis-gray-600);
}
.thesis-article .int-links a { color: var(--thesis-blue); font-weight: 600; }
.thesis-article .int-links a:hover { text-decoration: underline; }

/* ─── SIDEBAR ─── */
.thesis-sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 80px;
}
.thesis-sidebar-box {
  background: var(--thesis-white);
  border: 1.5px solid var(--thesis-gray-200);
  border-radius: var(--thesis-radius-sm);
  padding: 20px;
}
.thesis-sidebar-title {
  font-family: 'Kanit', sans-serif;
  font-size: .85rem; font-weight: 800; color: var(--thesis-navy);
  margin-bottom: 14px;
}

/* CTA Sidebar */
.thesis-cta-side {
  background: var(--thesis-navy);
  border-color: transparent;
}
.thesis-cta-side .thesis-sidebar-title {
  color: rgba(255,255,255,.45);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.thesis-cta-heading {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.thesis-cta-desc {
  font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 14px; line-height: 1.6;
}
.thesis-cta-btn {
  display: block; text-align: center;
  background: var(--thesis-accent); color: var(--thesis-navy);
  font-family: 'Kanit', sans-serif; font-weight: 800;
  font-size: .88rem; padding: 11px 16px; border-radius: 9px;
  transition: background var(--thesis-tr);
}
.thesis-cta-btn:hover { background: var(--thesis-accent2); }
.thesis-cta-perks { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.thesis-cta-perk {
  font-size: .75rem; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 6px;
}
.thesis-cta-perk::before { content: '✓'; color: var(--thesis-green); font-weight: 800; }

/* Related links */
.thesis-related-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--thesis-gray-100);
  font-size: .82rem; color: var(--thesis-gray-700);
  transition: color var(--thesis-tr);
}
.thesis-related-link:last-child { border-bottom: none; padding-bottom: 0; }
.thesis-related-link:hover { color: var(--thesis-blue); }
.thesis-related-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Price sidebar */
.thesis-price-box .thesis-sidebar-title { color: var(--thesis-navy); }
.thesis-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--thesis-gray-100);
  font-size: .82rem;
}
.thesis-price-row:last-of-type { border-bottom: none; }
.thesis-price-label { color: var(--thesis-gray-600); }
.thesis-price-val { font-weight: 700; color: var(--thesis-navy); }
.thesis-price-link {
  display: block; text-align: center;
  margin-top: 14px;
  font-size: .82rem; font-weight: 700; color: var(--thesis-blue);
}
.thesis-price-link:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
.thesis-footer {
  background: var(--thesis-navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px 0 20px;
}
.thesis-footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; margin-bottom: 28px;
}
.thesis-footer-logo {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 8px;
}
.thesis-footer-logo span { color: var(--thesis-accent); }
.thesis-footer-tagline {
  font-size: .78rem; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 12px;
}
.thesis-footer-line {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.35);
  color: var(--thesis-blue-lt); font-weight: 700; font-size: .8rem;
  padding: 6px 14px; border-radius: 8px;
}
.thesis-footer-col-title {
  font-family: 'Kanit', sans-serif;
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.3);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
.thesis-footer-links { display: flex; flex-direction: column; gap: 7px; }
.thesis-footer-links a { font-size: .8rem; color: rgba(255,255,255,.45); transition: color var(--thesis-tr); }
.thesis-footer-links a:hover { color: #fff; }
.thesis-footer-bottom {
  max-width: 1080px; margin: 0 auto; padding: 16px 24px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .75rem; color: rgba(255,255,255,.3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.thesis-footer-bottom a { color: rgba(255,255,255,.4); }
.thesis-footer-bottom a:hover { color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .thesis-layout { grid-template-columns: 1fr; }
  .thesis-sidebar { position: static; }
  .thesis-footer-inner { grid-template-columns: 1fr 1fr; }
  .thesis-nav-links { display: none; }
}
@media (max-width: 560px) {
  .thesis-article { padding: 24px 20px; }
  .thesis-footer-inner { grid-template-columns: 1fr; }
  .thesis-art-hero { padding: 36px 0 28px; }
}

/* ─── FADE-IN ANIMATION ─── */
.thesis-article {
  animation: thesisArticleFadeIn .5s ease both;
}
@keyframes thesisArticleFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
