/* 9Driver Area Pages - Shared Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Prompt', sans-serif;
  background: #FFF8F0;
  color: #4A3B2A;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:root {
  --bg: #FFF8F0; --bg-2: #FFF1E0;
  --orange-soft: #FFD3B0; --orange: #FFA876; --orange-deep: #FF8A4C;
  --green-soft: #C8E6C9; --green: #8BC9A3; --green-deep: #5FB37F;
  --cream: #FFEED9; --text: #4A3B2A; --text-soft: #7A6753;
  --shadow: 0 8px 24px rgba(255, 138, 76, 0.15);
  --shadow-strong: 0 12px 32px rgba(255, 138, 76, 0.25);
  --radius: 24px; --radius-lg: 36px;
}
h1, h2, h3, h4 { font-family: 'Mali', cursive; font-weight: 700; color: var(--text); line-height: 1.4; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--green-deep); }
.kw { font-weight: 700; color: var(--orange-deep); border-bottom: 2px dashed var(--orange); padding: 1px 4px; border-radius: 4px; }
.kw:hover { background: var(--cream); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; position: relative; }

/* Exam Bar (sticky top alert) */
.exam-bar {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: white; text-align: center; padding: 10px 16px;
  font-size: 14.5px; font-weight: 600;
  position: sticky; top: 0; z-index: 200;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.exam-bar a {
  background: white; color: var(--orange-deep); padding: 6px 14px;
  border-radius: 50px; font-weight: 700; font-size: 13.5px;
  transition: all 0.2s;
}
.exam-bar a:hover { transform: scale(1.05); color: var(--orange-deep); background: var(--cream); }

/* Nav */
.nav {
  background: rgba(255, 248, 240, 0.95); backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--orange-soft); padding: 12px 0;
  position: sticky; top: 40px; z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: 'Mali', cursive; font-weight: 700; font-size: 20px; color: var(--orange-deep); }
.nav-logo img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--orange-soft); padding: 2px; background: white; }
.nav-cta { display: flex; gap: 8px; }
.nav-cta a { padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: all 0.2s; }
.nav-call { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%); color: white !important; }
.nav-line { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); color: white !important; }
.nav-cta a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Breadcrumb */
.breadcrumb { padding: 14px 0 0; font-size: 13.5px; color: var(--text-soft); }
.breadcrumb a { color: var(--orange-deep); }
.breadcrumb span { margin: 0 6px; color: var(--text-soft); }

/* Hero */
.hero {
  padding: 50px 0 70px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: 320px; height: 320px;
  background: var(--orange-soft); border-radius: 50%;
  filter: blur(80px); opacity: 0.5; top: -80px; right: -80px;
}
.hero::after {
  content: ""; position: absolute; width: 280px; height: 280px;
  background: var(--green-soft); border-radius: 50%;
  filter: blur(70px); opacity: 0.5; bottom: -60px; left: -60px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; padding: 6px 16px; border-radius: 50px;
  font-size: 13px; color: var(--green-deep); font-weight: 600;
  border: 2px dashed var(--green); margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 16px; }
.hero h1 .accent { color: var(--orange-deep); }
.hero p.lead { font-size: 17px; color: var(--text-soft); margin-bottom: 26px; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 50px; font-size: 15.5px; font-weight: 600;
  transition: all 0.3s ease; border: none; cursor: pointer;
  box-shadow: var(--shadow); text-decoration: none;
}
.btn-call { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%); color: white; }
.btn-line { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); color: white; }
.btn-exam { background: white; color: var(--orange-deep); border: 3px dashed var(--orange); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); color: white; }
.btn-exam:hover { color: var(--orange-deep); background: var(--cream); }

/* EXAM BANNER (the prominent CTA the user wants on every page) */
.exam-banner {
  background: linear-gradient(135deg, #FFE4CC 0%, #C8E6C9 100%);
  padding: 60px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 30px 0;
  border: 4px dashed white;
}
.exam-banner::before {
  content: "📝"; position: absolute; font-size: 200px;
  opacity: 0.08; top: -30px; right: -30px;
}
.exam-banner .badge {
  display: inline-block; background: white; color: var(--orange-deep);
  padding: 6px 18px; border-radius: 50px; font-weight: 700; font-size: 13px;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.exam-banner h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; position: relative; z-index: 2; }
.exam-banner p { color: var(--text); font-size: 16px; margin-bottom: 22px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.exam-stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; position: relative; z-index: 2; }
.exam-stats .s {
  background: white; padding: 12px 22px; border-radius: 50px;
  font-weight: 600; color: var(--text); box-shadow: var(--shadow);
  font-size: 14px;
}
.exam-stats .s b { color: var(--orange-deep); font-family: 'Mali', cursive; font-size: 18px; margin-right: 6px; }
.exam-banner .btn-exam-big {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: white; padding: 18px 40px; border-radius: 50px;
  font-size: 18px; font-weight: 700; display: inline-flex;
  gap: 10px; align-items: center; box-shadow: var(--shadow-strong);
  transition: all 0.3s ease; text-decoration: none;
  position: relative; z-index: 2;
  animation: pulse-btn 2s ease-in-out infinite;
}
.exam-banner .btn-exam-big:hover { transform: translateY(-4px) scale(1.05); color: white; }
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 138, 76, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(255, 138, 76, 0.4), 0 0 0 14px rgba(255, 138, 76, 0); }
}

/* Section title */
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-tag { display: inline-block; background: var(--cream); color: var(--orange-deep); padding: 5px 16px; border-radius: 50px; font-size: 12.5px; font-weight: 600; border: 2px dashed var(--orange-soft); margin-bottom: 12px; }
.sec-title h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 10px; }
.sec-title p { color: var(--text-soft); font-size: 16px; max-width: 620px; margin: 0 auto; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.svc-card {
  background: white; padding: 26px 22px; border-radius: var(--radius);
  text-align: center; transition: all 0.3s ease;
  border: 2px solid transparent; position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--green) 100%);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.svc-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-soft) 0%, var(--green-soft) 100%); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 14px; }
.svc-card h3 { font-size: 17px; margin-bottom: 6px; }
.svc-card p { font-size: 14px; color: var(--text-soft); }

/* Gallery */
.gallery-bg { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid a { display: block; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; position: relative; border: 3px dashed transparent; transition: all 0.3s; background: var(--cream); }
.gallery-grid a:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-strong); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid a::after { content: "💬 ทักไลน์"; position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 138, 76, 0.92) 100%); color: white; padding: 24px 12px 12px; text-align: center; font-weight: 600; font-size: 13px; transform: translateY(100%); transition: transform 0.3s; }
.gallery-grid a:hover::after { transform: translateY(0); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.why-card { background: white; padding: 24px 22px; border-radius: var(--radius); border-left: 5px solid var(--orange); display: flex; gap: 14px; transition: all 0.3s; }
.why-card:nth-child(even) { border-left-color: var(--green); }
.why-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.why-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-soft) 0%, var(--orange) 100%); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Mali', cursive; font-weight: 700; font-size: 17px; }
.why-card:nth-child(even) .why-num { background: linear-gradient(135deg, var(--green-soft) 0%, var(--green) 100%); }
.why-card h3 { font-size: 16px; margin-bottom: 4px; }
.why-card p { font-size: 14px; color: var(--text-soft); }

/* Areas list (for province pages: list of districts/amphoes) */
.areas-list-bg { background: white; }
.areas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.areas-list a {
  background: var(--bg-2); padding: 14px 18px; border-radius: var(--radius);
  border: 2px dashed var(--orange-soft); display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--text); font-size: 14.5px;
  transition: all 0.3s ease;
}
.areas-list a:hover { background: var(--cream); border-color: var(--orange); transform: translateY(-2px); color: var(--orange-deep); }
.areas-list a::before { content: "📍"; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 12px; border-radius: var(--radius); border: 2px dashed var(--orange-soft); overflow: hidden; transition: all 0.3s; }
.faq-item.open { border-color: var(--orange); box-shadow: var(--shadow); }
.faq-q { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; user-select: none; }
.faq-q:hover { color: var(--orange-deep); }
.faq-q .icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.3s; }
.faq-item.open .icon { background: var(--orange); color: white; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s, padding 0.4s; padding: 0 20px; color: var(--text-soft); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 280px; padding: 0 20px 18px; }

/* CTA card */
.final-cta {
  background: linear-gradient(135deg, var(--orange-soft) 0%, var(--green-soft) 100%);
  padding: 50px 30px; border-radius: var(--radius-lg);
  text-align: center; margin: 30px 0;
}
.final-cta h2 { font-size: clamp(22px, 3.5vw, 30px); margin-bottom: 12px; }
.final-cta p { color: var(--text); margin-bottom: 22px; font-size: 16px; }
.final-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: linear-gradient(180deg, var(--bg-2) 0%, var(--cream) 100%); padding: 36px 0 24px; text-align: center; border-top: 3px dashed var(--orange-soft); }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { width: 48px; height: 48px; border-radius: 50%; background: white; padding: 3px; border: 2px solid var(--orange-soft); }
.footer-logo span { font-family: 'Mali', cursive; font-weight: 700; font-size: 20px; color: var(--orange-deep); }
.footer p { color: var(--text-soft); margin-bottom: 6px; font-size: 14px; }
.footer-copy { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--orange-soft); font-size: 12px; color: var(--text-soft); }

/* Floating Buttons */
.fab-wrap { position: fixed; bottom: 18px; right: 18px; z-index: 99; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: all 0.3s; text-decoration: none; }
.fab:hover { transform: scale(1.1); color: white; }
.fab-call { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%); animation: pulse-fab 2s infinite; }
.fab-line { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); }
.fab-exam { background: linear-gradient(135deg, #6BAED6 0%, #4A90C2 100%); }
@keyframes pulse-fab { 0%,100% { box-shadow: 0 8px 24px rgba(255,138,76,0.4); } 50% { box-shadow: 0 8px 24px rgba(255,138,76,0.4), 0 0 0 10px rgba(255,138,76,0); } }

/* Left side exam promo (sticky vertical) */
.side-exam-promo {
  position: fixed; left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: white;
  padding: 18px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 4px 4px 16px rgba(255, 138, 76, 0.3);
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 80px; text-align: center;
  transition: all 0.3s ease;
  animation: side-pulse 2.5s ease-in-out infinite;
}
.side-exam-promo:hover { padding-left: 18px; transform: translateY(-50%) scale(1.05); color: white; }
.side-exam-promo .se-icon { font-size: 26px; line-height: 1; }
.side-exam-promo .se-text-1 { font-family: 'Mali', cursive; font-weight: 700; font-size: 12px; line-height: 1.3; margin-top: 4px; }
.side-exam-promo .se-text-2 { background: white; color: var(--orange-deep); padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; margin-top: 4px; }
@keyframes side-pulse {
  0%, 100% { box-shadow: 4px 4px 16px rgba(255, 138, 76, 0.3); }
  50% { box-shadow: 4px 4px 16px rgba(255, 138, 76, 0.5), 6px 0 0 4px rgba(255, 138, 76, 0.15); }
}

/* Responsive */
@media (max-width: 720px) {
  section { padding: 44px 0; }
  .nav-logo span { display: none; }
  .nav-cta a { padding: 7px 12px; font-size: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .exam-banner { padding: 40px 20px; margin: 18px 0; }
  .exam-banner .btn-exam-big { font-size: 16px; padding: 14px 28px; }
  .exam-stats { gap: 10px; }
  .exam-stats .s { padding: 8px 14px; font-size: 13px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .fab { width: 50px; height: 50px; font-size: 20px; }
  .exam-bar { font-size: 13px; padding: 8px 12px; }
  .exam-bar a { padding: 5px 12px; font-size: 12.5px; }
  .areas-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .side-exam-promo { display: none; }
}
