/* ฟอนต์และสีหลัก */
:root {
  --brand-900: #0f2f5a;
  --brand-800: #163b71;
  --brand-700: #1a4a8a;
  --brand-600: #1e5aa5;
  --brand-500: #2a6dc9;
  --brand-200: #cfe0ff; /* เติมตัวแปรที่ถูกใช้งานใน UI */
  --brand-100: #f0f6ff;
  --brand-50: #f8fbff;
  --ink-900: #0b1324;
  --ink-700: #2b374b;
  --ink-500: #55627a;
  --ink-300: #8c97ab;
  --bg: #ffffff;
  --shadow: 0 10px 30px rgba(16, 41, 85, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Mitr', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--ink-900);
  /* พื้นหลังเว็บไซต์ให้ดูมีมิติแต่ยังเป็นทางการ */
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -300px, rgba(42,109,201,0.08), rgba(42,109,201,0)),
    linear-gradient(to bottom, rgba(16,41,85,0.04) 0px, rgba(16,41,85,0.00) 380px);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
 a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-600); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #cfe0ff; outline-offset: 2px; border-radius: 12px; }
h1, h2, h3, h4 { font-weight: 700; color: var(--brand-800); margin: 0 0 8px; }
p { margin: 0 0 14px; color: var(--ink-700); }

.container { width: min(1120px, 92%); margin: 0 auto; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #e8eef8; background-image: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-800); text-decoration: none; font-weight: 700; letter-spacing: .3px; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; font-weight: 700; }
.brand-text { font-size: 20px; }
.brand-logo { height: 36px; width: auto; object-fit: contain; display: inline-block; }
/* ขยายโลโก้เฉพาะในส่วน Header ให้เด่นขึ้น */
.site-header .brand-logo { height: 56px; }
.site-header .brand-mark { width: 56px; height: 56px; }

.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-menu a { color: var(--ink-700); text-decoration: none; padding: 10px 14px; border-radius: 10px; position: relative; font-weight: 600; letter-spacing: .2px; transition: color .18s ease, background .18s ease; }
.nav-menu a:hover { color: var(--brand-700); background: var(--brand-100); }
/* ไฮไลต์เส้นใต้แบบหรูสำหรับหัวข้อเมนู */
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0.0;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-menu a:hover:not(.btn)::after,
.nav-menu a:focus-visible:not(.btn)::after {
  transform: scaleX(1);
  opacity: 0.9;
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle:hover { background: #f2f6fc; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink-900); transition: transform .22s ease, opacity .18s ease; }
/* แอนิเมชั่นแปลงเป็น X เมื่อเปิดเมนู */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ปรับสไตล์ปุ่มติดต่อใน Header สำหรับเดสก์ท็อปให้ตัวอักษรเป็นสีขาว */
@media (min-width: 981px) {
.site-header .nav .btn-outline { color: #fff; border-color: rgba(255,255,255,0.85); background: transparent; }
.site-header .nav .btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; }
  /* ตัดเส้นไฮไลต์ใต้เมนูสำหรับปุ่ม */
  .site-header .nav-menu a.btn-outline::after { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-outline { color: var(--brand-700); border: 2px solid var(--brand-600); border-radius: 12px; }
.btn-outline:hover { background: var(--brand-100); }
.btn-link { color: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand-700); border: 1px solid #d9e5ff; }

/* Hero */
.hero { background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 28px 0 16px; align-items: center; justify-items: center; }
.hero-text { text-align: center; max-width: 860px; }
.banner-full { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.eyebrow { color: var(--brand-600); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.25; margin: 0 0 14px; }
.hero h1 .accent { color: var(--brand-700); }
.nowrap { white-space: nowrap; }
.hero-bullets { list-style: none; padding: 0; margin: 18px auto; color: var(--ink-700); text-align: left; display: inline-block; }
.hero-bullets li { margin: 8px 0; position: relative; padding-left: 24px; }
.hero-bullets li::before { content: '\\2713'; position: absolute; left: 0; color: var(--brand-600); }
.hero-cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.hero-media { display: grid; place-items: center; }
.banner-img { display: none; }
.hero-video { width: 100%; max-width: 600px; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.hero-wave { width: 100%; height: 90px; display: block; }

/* Sections */
.section { padding: 72px 0; background-image:
  radial-gradient(900px 450px at 20% -250px, rgba(42,109,201,0.06), rgba(42,109,201,0)),
  radial-gradient(900px 450px at 80% -250px, rgba(16,41,85,0.05), rgba(16,41,85,0));
  background-repeat: no-repeat; }
.section-alt { background: linear-gradient(180deg, #f7faff 0%, #eef3ff 100%); box-shadow: inset 0 1px 0 #e8eef8; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 32px); color: var(--brand-800); }
.section-head p { margin: 0; color: var(--ink-500); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: 140px auto; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16, 41, 85, 0.15); }
.card-media.gradient { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); }
.card-body { padding: 18px; }
.card h3 { margin: 0 0 6px; color: var(--brand-800); }
.card p { margin: 0 0 10px; color: var(--ink-700); }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-700); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: #fff; border: 1px solid #e7eefb; border-radius: var(--radius-md); padding: 16px; box-shadow: 0 4px 16px rgba(16,41,85,.06); }
.step-num { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h4 { margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--ink-700); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid #e7eefb; border-radius: var(--radius-md); padding: 16px; display: flex; gap: 10px; align-items: flex-start; }
.feature .icon { color: var(--brand-700); }

/* CTA */
.cta { background: linear-gradient(90deg, var(--brand-700), var(--brand-500)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.btn.btn-light:hover { background: #f3f6ff; }

/* Footer */
.site-footer { background: linear-gradient(180deg, #0f2344 0%, #0b1a33 100%); color: #cfe0ff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 28px 0; }
.brand-footer .brand-mark { background: linear-gradient(135deg, #173d77, #2a6dc9); box-shadow: 0 6px 18px rgba(23,61,119,.35); }
.site-footer a { color: #ffffff; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { margin: 6px 0; }
.copyright { text-align: center; padding: 10px 0; background: #0b1a33; color: #88a3cc; font-size: 14px; }

/* Social links (footer) */
.footer-bottom { display: grid; gap: 14px; justify-items: center; padding-bottom: 18px; }
.social-links { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px); }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 10px 24px rgba(0,0,0,.28); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; position: relative; }
.social-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); opacity: .85; }
.social-link:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 36px rgba(0,0,0,.34); opacity: .98; }
.social-link:focus-visible { outline: 3px solid #cfe0ff; outline-offset: 2px; }
.social-link svg { display: block; }
.social-link img { display: block; width: 24px; height: 24px; object-fit: contain; }
/* disabled state previously used; removed to restore original behavior */
.social-link.fb { background: #1877F2; }
.social-link.line { background: #06C755; }
.social-link.ig { background: linear-gradient(135deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); }
.social-link.tiktok { background: #000; }
.social-link.lemon8 { background: #FFD54F; }

/* Responsive tweaks for footer social links */
@media (max-width: 680px) {
  .social-links { gap: 10px; padding: 8px 12px; }
  .social-link { width: 44px; height: 44px; }
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,16,36,.55); backdrop-filter: blur(3px); }
.modal-panel { position: relative; z-index: 1; width: min(720px, 94%); margin: 6vh auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.modal-close { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.contact-form .grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.contact-form label { display: grid; gap: 6px; color: var(--ink-700); }
input, textarea { width: 100%; border-radius: 10px; border: 1px solid #dbe6fb; padding: 10px 12px; font: inherit; }
input:focus, textarea:focus { outline: 2px solid #cfe0ff; border-color: #bcd1ff; }
.contact-form .full { grid-column: 1 / -1; }

/* Clients Logos Marquee */
.logos-section { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.logos-head { text-align: center; margin-bottom: 12px; }
.logos-track-wrap { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, rgba(0,0,0,0), #000 10%, #000 90%, rgba(0,0,0,0)); }
.logos-track { 
  display: flex; 
  align-items: center; 
  gap: 0; 
  padding: 10px 0; 
  animation: marquee 25s linear infinite;
  width: max-content; /* ให้ความกว้างตามเนื้อหา */
}
.logos-track img { 
  height: 44px; 
  width: auto; 
  object-fit: contain; 
  filter: grayscale(1); 
  opacity: .8; 
  transition: opacity .2s, filter .2s; 
  margin: 0 24px;
  flex-shrink: 0; /* ป้องกันการหดตัว */
}
.logos-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } /* เลื่อนครึ่งหนึ่งของความกว้างทั้งหมด */
}
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-menu { position: absolute; right: 4%; top: 64px; background: #fff; border: 1px solid #e7eefb; box-shadow: var(--shadow); border-radius: 12px; padding: 8px; display: none; flex-direction: column; min-width: 220px; transform-origin: top right; }
  .nav-menu.show { display: flex; animation: menuDrop .22s cubic-bezier(.2,.7,.2,1) both; }
  .nav-menu a { display: block; padding: 12px 14px; }
  .line-widget { top: 72px; right: 12px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-footer { flex-direction: column; gap: 12px; text-align: center; }
  .article-inline-image img { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .mission-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* เมนูเลื่อนลงนุ่มบนมือถือ/แท็บเล็ต */
@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating Line OA popup */
.line-widget { position: fixed; right: 16px; top: 84px; z-index: 60; display: none; }
.line-widget.show { display: flex; flex-direction: column; align-items: flex-end; }
.line-bubble { display: flex; align-items: center; gap: 10px; background: #00b900; color: #fff; padding: 10px 12px; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.line-bubble img { width: 24px; height: 24px; object-fit: contain; }
.line-close { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #0b1a33; color: #fff; cursor: pointer; }
/* QR code panel */
.line-qr { margin-top: 8px; background: #ffffff; padding: 8px; border-radius: 12px; box-shadow: var(--shadow); }
.line-qr img { width: 140px; height: auto; display: block; }

/* Chatbot Widget */
.chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 70; font-size: 16px; }
.chatbot-toggle { 
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); 
  color: #fff; 
  border: 0; 
  border-radius: 999px; 
  width: 56px; 
  height: 56px; 
  padding: 0; 
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); 
  cursor: pointer; 
  display: inline-grid; 
  place-items: center; 
  transition: transform .2s, box-shadow .2s; 
  animation: pulse 2s infinite;
}
.chatbot-toggle svg { display:block; pointer-events: none; }
.chatbot-toggle:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4); 
}
.chatbot-window { 
  position: absolute; 
  right: 0; 
  bottom: 80px; 
  width: 380px; 
  max-height: 70vh; 
  background: #fff; 
  border: 2px solid var(--brand-200); 
  border-radius: 20px; 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); 
  display: none; 
  overflow: hidden; 
  transform: scale(0.9);
  transition: all 0.3s ease;
}
.chatbot-window.show { 
  display: grid; 
  grid-template-rows: auto 1fr auto; 
  transform: scale(1);
}
.chatbot-header { 
  padding: 16px 20px; 
  background: linear-gradient(135deg, #f6f9ff, #eef4ff); 
  color: var(--brand-800); 
  font-weight: 700; 
  font-size: 18px;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 1px solid var(--brand-100);
}
.chatbot-body { 
  padding: 16px; 
  overflow: auto; 
  display: grid; 
  gap: 12px; 
  background: #fafbff;
}
.chatbot-input { 
  display: flex; 
  gap: 12px; 
  padding: 16px; 
  border-top: 1px solid var(--brand-100); 
  background: #fff;
}
.chatbot-input input { 
  flex: 1; 
  padding: 12px 16px; 
  border: 2px solid var(--brand-200); 
  border-radius: 25px; 
  font-size: 14px;
  transition: border-color 0.3s ease;
}
.chatbot-input input:focus { 
  outline: none; 
  border-color: var(--brand-500); 
}
.chatbot-input button { 
  padding: 12px 20px; 
  border-radius: 25px; 
  font-weight: 600;
}
.msg { 
  padding: 12px 16px; 
  border-radius: 18px; 
  max-width: 85%; 
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.msg.user { 
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); 
  color: #fff;
  margin-left: auto; 
}
.msg.bot { 
  background: #fff; 
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
}
.chip { 
  display: inline-block; 
  background: linear-gradient(135deg, #eef4ff, #dbe6fb); 
  color: var(--brand-800); 
  padding: 10px 16px; 
  border-radius: 25px; 
  cursor: pointer; 
  margin: 4px 6px 0 0; 
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--brand-200);
  transition: all 0.3s ease;
}
.chip:hover { 
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200)); 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* QR Code in chat */
.chat-qr { 
  text-align: center; 
  padding: 16px; 
  background: #f8faff; 
  border-radius: 12px; 
  margin: 8px 0; 
}
.chat-qr img { 
  width: 120px; 
  height: auto; 
  border-radius: 8px; 
  margin-bottom: 8px; 
}
.chat-qr p { 
  margin: 0; 
  font-size: 13px; 
  color: var(--brand-700); 
  font-weight: 500; 
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Typing Animation */
.typing-indicator {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-text {
  color: var(--brand-600);
  font-size: 14px;
  font-style: italic;
  margin-left: 4px;
}

/* Articles */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.article-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16, 41, 85, 0.15); }
.article-image { position: relative; height: 200px; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-category { position: absolute; top: 12px; left: 12px; background: var(--brand-700); color: #fff; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.article-content { padding: 20px; }
.article-content h3 { margin: 0 0 12px; color: var(--brand-800); font-size: 18px; line-height: 1.4; }
.article-excerpt { margin: 0 0 16px; color: var(--ink-700); line-height: 1.6; }
.article-meta { display: flex; justify-content: space-between; align-items: center; }
.article-date { color: var(--ink-500); font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Article Detail */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 32px; }
.article-header .article-category { position: static; display: inline-block; margin-bottom: 12px; }
.article-header h1 { margin: 0 0 12px; color: var(--brand-800); font-size: clamp(24px, 4vw, 32px); line-height: 1.3; }
.article-meta { justify-content: center; gap: 16px; }
.article-image { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.article-image img { width: 100%; height: auto; }
.article-body { line-height: 1.8; color: var(--ink-700); }
.article-body h2 { margin: 32px 0 16px; color: var(--brand-800); }
.article-body h3 { margin: 24px 0 12px; color: var(--brand-700); }
.article-body h4 { margin: 20px 0 8px; color: var(--brand-600); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin: 4px 0; }
.article-body table { margin: 20px 0; }
.article-inline-image { margin: 24px 0; text-align: center; }
.article-inline-image img { width: 100%; max-width: 600px; height: auto; border-radius: var(--radius-md); box-shadow: 0 4px 16px rgba(16,41,85,.1); }
.image-caption { margin: 8px 0 0; color: var(--ink-500); font-size: 14px; font-style: italic; }
.article-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e7eefb; }

/* Navigation active state */
.nav-menu a.active { color: var(--brand-700); background: var(--brand-100); }

/* About Page */
.hero-content { text-align: center; padding: 60px 0; }
.hero-content h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 16px; color: var(--brand-800); }
.hero-content p { font-size: 18px; color: var(--ink-700); max-width: 600px; margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { margin: 0 0 20px; color: var(--brand-800); }
.about-text p { margin: 0 0 16px; line-height: 1.7; }
.about-image img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Optional circle style for about image */
.about-image.circle img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 32px; }
.stat-item { text-align: center; padding: 16px; border: 1px solid #e7eefb; border-radius: var(--radius-lg); background: #f7f9ff; box-shadow: 0 4px 12px rgba(16,41,85,.06); }
.stat-number { display: block; font-size: 34px; font-weight: 700; color: var(--brand-700); }
.stat-label { font-size: 14px; color: var(--ink-600); }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mission-card { background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.mission-icon { font-size: 48px; margin-bottom: 16px; }
.mission-card h3 { margin: 0 0 12px; color: var(--brand-800); }
.mission-card p { margin: 0; line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-member { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.member-photo img { width: 100%; height: 200px; object-fit: cover; }
.member-info { padding: 20px; }
.member-info h4 { margin: 0 0 8px; color: var(--brand-800); }
.member-role { margin: 0 0 8px; color: var(--brand-600); font-weight: 600; }
.member-desc { margin: 0; color: var(--ink-700); font-size: 14px; line-height: 1.5; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-item { background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-item h3 { margin: 0 0 12px; color: var(--brand-800); }
.feature-item p { margin: 0; line-height: 1.6; }

/* (reverted enhancements to keep original layout) */

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid #e7eefb; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(16,41,85,.14); }
.service-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--brand-800); }
.service-card p { margin: 0 0 12px; color: var(--ink-700); }
.feature-list { margin: 0; padding-left: 18px; color: var(--ink-700); }
.feature-list li { margin: 4px 0; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; border: 1px solid #e7eefb; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(16,41,85,.16); }
.news-image img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-content { padding: 16px; }
.news-content h3 { margin: 0 0 8px; font-size: 18px; color: var(--brand-800); }
.btn.btn-text { color: var(--brand-700); }

/* CTA alignment */
.cta { padding: 48px 0; }
.cta-content { text-align: center; color: #fff; }
.cta-content h2 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 3.2vw, 32px); }
.cta-content p { margin: 0 0 16px; color: #eef4ff; }
.cta-buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer-bottom { text-align: center; padding: 12px 0; color: #88a3cc; border-top: 1px solid #0d203d; }
.footer-tagline { margin: 8px 0 0; color: #cfe0ff; }

/* Buttons extra */
.btn-line { background: #00b900; color: #fff; }
.btn-line:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-text { background: transparent; border: 0; padding: 0; }

/* keep desktop nav visible; mobile overrides exist in @media (max-width: 980px) above */
.article-inline-image img { max-width: 100%; }
.about-grid { grid-template-columns: 1fr; gap: 32px; }
.stats { flex-direction: column; gap: 16px; }
.mission-grid { grid-template-columns: 1fr; }
.team-grid { grid-template-columns: 1fr; }
.features-grid { grid-template-columns: 1fr; }
}

/* Floating Line OA popup */
.line-widget { position: fixed; right: 16px; top: 84px; z-index: 60; display: none; }
.line-widget.show { display: flex; flex-direction: column; align-items: flex-end; }
.line-bubble { display: flex; align-items: center; gap: 10px; background: #00b900; color: #fff; padding: 10px 12px; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.line-bubble img { width: 24px; height: 24px; object-fit: contain; }
.line-close { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #0b1a33; color: #fff; cursor: pointer; }
/* QR code panel */
.line-qr { margin-top: 8px; background: #ffffff; padding: 8px; border-radius: 12px; box-shadow: var(--shadow); }
.line-qr img { width: 140px; height: auto; display: block; }

/* Chatbot Widget */
.chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 70; font-size: 16px; }
.chatbot-toggle { 
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); 
  color: #fff; 
  border: 0; 
  border-radius: 999px; 
  width: 56px; 
  height: 56px; 
  padding: 0; 
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); 
  cursor: pointer; 
  display: inline-grid; 
  place-items: center; 
  transition: transform .2s, box-shadow .2s; 
  animation: pulse 2s infinite;
}
.chatbot-toggle svg { display:block; pointer-events: none; }
.chatbot-toggle:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4); 
}
.chatbot-window { 
  position: absolute; 
  right: 0; 
  bottom: 80px; 
  width: 380px; 
  max-height: 70vh; 
  background: #fff; 
  border: 2px solid var(--brand-200); 
  border-radius: 20px; 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); 
  display: none; 
  overflow: hidden; 
  transform: scale(0.9);
  transition: all 0.3s ease;
}
.chatbot-window.show { 
  display: grid; 
  grid-template-rows: auto 1fr auto; 
  transform: scale(1);
}
.chatbot-header { 
  padding: 16px 20px; 
  background: linear-gradient(135deg, #f6f9ff, #eef4ff); 
  color: var(--brand-800); 
  font-weight: 700; 
  font-size: 18px;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 1px solid var(--brand-100);
}
.chatbot-body { 
  padding: 16px; 
  overflow: auto; 
  display: grid; 
  gap: 12px; 
  background: #fafbff;
}
.chatbot-input { 
  display: flex; 
  gap: 12px; 
  padding: 16px; 
  border-top: 1px solid var(--brand-100); 
  background: #fff;
}
.chatbot-input input { 
  flex: 1; 
  padding: 12px 16px; 
  border: 2px solid var(--brand-200); 
  border-radius: 25px; 
  font-size: 14px;
  transition: border-color 0.3s ease;
}
.chatbot-input input:focus { 
  outline: none; 
  border-color: var(--brand-500); 
}
.chatbot-input button { 
  padding: 12px 20px; 
  border-radius: 25px; 
  font-weight: 600;
}
.msg { 
  padding: 12px 16px; 
  border-radius: 18px; 
  max-width: 85%; 
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.msg.user { 
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); 
  color: #fff;
  margin-left: auto; 
}
.msg.bot { 
  background: #fff; 
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
}
.chip { 
  display: inline-block; 
  background: linear-gradient(135deg, #eef4ff, #dbe6fb); 
  color: var(--brand-800); 
  padding: 10px 16px; 
  border-radius: 25px; 
  cursor: pointer; 
  margin: 4px 6px 0 0; 
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--brand-200);
  transition: all 0.3s ease;
}
.chip:hover { 
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200)); 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* QR Code in chat */
.chat-qr { 
  text-align: center; 
  padding: 16px; 
  background: #f8faff; 
  border-radius: 12px; 
  margin: 8px 0; 
}
.chat-qr img { 
  width: 120px; 
  height: auto; 
  border-radius: 8px; 
  margin-bottom: 8px; 
}
.chat-qr p { 
  margin: 0; 
  font-size: 13px; 
  color: var(--brand-700); 
  font-weight: 500; 
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Typing Animation */
.typing-indicator {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-text {
  color: var(--brand-600);
  font-size: 14px;
  font-style: italic;
  margin-left: 4px;
}

/* Articles */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.article-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16, 41, 85, 0.15); }
.article-image { position: relative; height: 200px; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-category { position: absolute; top: 12px; left: 12px; background: var(--brand-700); color: #fff; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.article-content { padding: 20px; }
.article-content h3 { margin: 0 0 12px; color: var(--brand-800); font-size: 18px; line-height: 1.4; }
.article-excerpt { margin: 0 0 16px; color: var(--ink-700); line-height: 1.6; }
.article-meta { display: flex; justify-content: space-between; align-items: center; }
.article-date { color: var(--ink-500); font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Article Detail */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 32px; }
.article-header .article-category { position: static; display: inline-block; margin-bottom: 12px; }
.article-header h1 { margin: 0 0 12px; color: var(--brand-800); font-size: clamp(24px, 4vw, 32px); line-height: 1.3; }
.article-meta { justify-content: center; gap: 16px; }
.article-image { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.article-image img { width: 100%; height: auto; }
.article-body { line-height: 1.8; color: var(--ink-700); }
.article-body h2 { margin: 32px 0 16px; color: var(--brand-800); }
.article-body h3 { margin: 24px 0 12px; color: var(--brand-700); }
.article-body h4 { margin: 20px 0 8px; color: var(--brand-600); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin: 4px 0; }
.article-body table { margin: 20px 0; }
.article-inline-image { margin: 24px 0; text-align: center; }
.article-inline-image img { width: 100%; max-width: 600px; height: auto; border-radius: var(--radius-md); box-shadow: 0 4px 16px rgba(16,41,85,.1); }
.image-caption { margin: 8px 0 0; color: var(--ink-500); font-size: 14px; font-style: italic; }
.article-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e7eefb; }

/* Navigation active state */
.nav-menu a.active { color: var(--brand-700); background: var(--brand-100); }

/* About Page */
.hero-content { text-align: center; padding: 60px 0; }
.hero-content h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 16px; color: var(--brand-800); }
.hero-content p { font-size: 18px; color: var(--ink-700); max-width: 600px; margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { margin: 0 0 20px; color: var(--brand-800); }
.about-text p { margin: 0 0 16px; line-height: 1.7; }

.about-image img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-image.circle img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 32px; }
.stat-item { text-align: center; padding: 16px; border: 1px solid #e7eefb; border-radius: var(--radius-lg); background: #f7f9ff; box-shadow: 0 4px 12px rgba(16,41,85,.06); }
.stat-number { display: block; font-size: 34px; font-weight: 700; color: var(--brand-700); }
.stat-label { font-size: 14px; color: var(--ink-600); }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mission-card { background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.mission-icon { font-size: 48px; margin-bottom: 16px; }
.mission-card h3 { margin: 0 0 12px; color: var(--brand-800); }
.mission-card p { margin: 0; line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-member { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.member-photo img { width: 100%; height: 200px; object-fit: cover; }
.member-info { padding: 20px; }
.member-info h4 { margin: 0 0 8px; color: var(--brand-800); }
.member-role { margin: 0 0 8px; color: var(--brand-600); font-weight: 600; }
.member-desc { margin: 0; color: var(--ink-700); font-size: 14px; line-height: 1.5; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-item { background: #fff; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-item h3 { margin: 0 0 12px; color: var(--brand-800); }
.feature-item p { margin: 0; line-height: 1.6; }

/* Home layout enhancements */
.hero .container { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.hero-banner-wrap { width: 100%; max-width: 920px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-banner { width: 100%; height: clamp(360px, 50vh, 680px); object-fit: cover; display: block; }
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-banner-wrap { max-width: 100%; }
  .hero-banner { height: clamp(320px, 55vw, 560px); }
}
/* Full-bleed hero banner on desktop: edge-to-edge */
@media (min-width: 981px) {
  .hero-banner-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
}

/* Compact bullets as cards */
.hero-bullets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px auto; padding: 0; list-style: none; }
.hero-bullets li { margin: 0; padding: 10px 12px 10px 32px; background: linear-gradient(135deg, #eef4ff, #dbe6fb); border: 1px solid var(--brand-200); border-radius: 12px; font-size: 14px; color: var(--ink-700); position: relative; }
.hero-bullets li::before { content: '✓'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--brand-600); font-weight: 700; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid #e7eefb; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(16,41,85,.14); }
.service-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--brand-800); }
.service-card p { margin: 0 0 12px; color: var(--ink-700); }
.feature-list { margin: 0; padding-left: 18px; color: var(--ink-700); }
.feature-list li { margin: 4px 0; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; border: 1px solid #e7eefb; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(16,41,85,.16); }
.news-image img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-content { padding: 16px; }
.news-content h3 { margin: 0 0 8px; font-size: 18px; color: var(--brand-800); }
.btn.btn-text { color: var(--brand-700); }

/* CTA alignment */
.cta { padding: 48px 0; }
.cta-content { text-align: center; color: #fff; }
.cta-content h2 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 3.2vw, 32px); }
.cta-content p { margin: 0 0 16px; color: #eef4ff; }
.cta-buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer-bottom { text-align: center; padding: 12px 0; color: #88a3cc; border-top: 1px solid #0d203d; }
.footer-tagline { margin: 8px 0 0; color: #cfe0ff; }

/* Buttons extra */
.btn-line { background: #00b900; color: #fff; }
.btn-line:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-text { background: transparent; border: 0; padding: 0; }

/* Packages Page */
.page-header { padding: 40px 0 16px; background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%); border-bottom: 1px solid #e7eefb; }
.page-header h1 { font-size: clamp(24px, 3.4vw, 36px); color: var(--brand-800); }
.page-header p { color: var(--ink-500); }

.packages { padding: 28px 0 40px; }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 18px; }
.package-card { position: relative; background: #fff; border: 1px solid #e7eefb; border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(16,41,85,.08); padding: 18px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.package-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(16,41,85,.14); }
.package-card.highlight { border-color: #bcd1ff; box-shadow: 0 24px 54px rgba(42,109,201,.18); }
.package-badge { position: absolute; top: 14px; left: 14px; background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow); }

/* Package image */
.package-image { position: relative; height: 200px; overflow: hidden; border-radius: var(--radius-md); margin: 8px 0 12px; }
.package-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.package-header h3 { margin: 0 0 4px; color: var(--brand-800); }
.package-subtitle { margin: 0; color: var(--ink-500); }

.package-price { margin: 14px 0; padding: 12px; background: #f7fbff; border: 1px dashed #dbe6fb; border-radius: var(--radius-md); }
.price { display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: clamp(22px, 3.2vw, 28px); font-weight: 800; color: var(--brand-800); }
.currency { color: var(--ink-500); font-weight: 600; }
.package-price .contact { color: var(--brand-700); font-weight: 700; }
.price-note { margin-top: 6px; color: var(--ink-500); font-size: 14px; }

.package-features { list-style: none; padding: 0; margin: 10px 0 16px; }
.package-features li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--ink-700); }
.package-features li::before { content: '\\2713'; position: absolute; left: 0; color: var(--brand-600); }

.package-footer { display: grid; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 16px; }

/* FAQ on Packages */
.faq { background: #ffffff; padding: 24px 0 40px; }
.section-header { text-align: center; margin-bottom: 18px; }
.section-header h2 { font-size: clamp(22px, 3.2vw, 30px); color: var(--brand-800); margin: 0 0 6px; }
.section-header p { color: var(--ink-500); margin: 0; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.faq-item { background: #fff; border: 1px solid #e7eefb; border-radius: var(--radius-md); padding: 16px; box-shadow: 0 6px 20px rgba(16,41,85,.06); }
.faq-item h3 { color: var(--brand-800); margin: 0 0 6px; }

/* CTA tweak for Packages */
.cta .container { padding: 26px 0; }
.cta-content { text-align: center; color: #fff; }
.cta-content h2 { color: #fff; margin-bottom: 6px; }
.cta-buttons { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.btn-line { background: #00b900; color: #fff; }
.btn-line:hover { background: #00a400; }
.icon-line { width: 18px; height: 18px; display: inline-block; background: url('../img/line-icon.svg') no-repeat center/contain; }

/* Responsive for Packages */
@media (max-width: 980px) {
  .packages { padding: 20px 0 28px; }
}


/* Motion utilities: formal, subtle animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-on-load {
  animation: fadeUp 600ms cubic-bezier(.2,.7,.2,1) both;
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}
.reveal-on-scroll.is-in {
  animation: fadeUp 600ms cubic-bezier(.2,.7,.2,1) both;
}

.modal[aria-hidden="false"] .modal-panel {
  animation: modalIn 240ms cubic-bezier(.2,.7,.2,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-load,
  .reveal-on-scroll,
  .reveal-on-scroll.is-in,
  .modal[aria-hidden="false"] .modal-panel {
    animation: none !important;
    transition: none !important;
  }
}


