:root {
  --navy: #0f2547;
  --navy-light: #1a3a6c;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --line-green: #06c755;
  --line-green-hover: #05a847;
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 37, 71, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 37, 71, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: 64px; /* space for mobile sticky bar */
}

h1, h2, h3, h4, .brand-name, .btn, .pill-badge, .section-tag {
  font-family: 'Prompt', sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar {
  background: var(--navy);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-phone {
  color: #fde68a;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px;
}

.hero-brochure-showcase {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.showcase-logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
}

.showcase-header h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
}

.showcase-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.showcase-img-btn {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.showcase-img-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.showcase-img-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 37, 71, 0.85);
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.course-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.course-meta-top .course-badge {
  margin-bottom: 0;
}

.price-pill {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Gallery Controls & 6-Photo Auto-Rotating Grid */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  background: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.gallery-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gallery-page-indicator {
  font-family: 'Prompt', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.gallery-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.gallery-dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--primary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: opacity 0.28s ease;
}

.gallery-grid.fading {
  opacity: 0.35;
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  position: relative;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.03);
}

.gallery-body {
  padding: 18px 20px;
}

.gallery-cat {
  display: inline-block;
  font-family: 'Prompt', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ea580c;
  background: #fff7ed;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.gallery-body h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.gallery-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  margin-top: 10px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  text-align: center;
}

.lightbox-close {
  align-self: flex-end;
  margin-bottom: 8px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.28);
}

.btn-line:hover {
  background: var(--line-green-hover);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 55%, #fefce8 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  background: var(--amber-soft);
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  line-height: 1.28;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-checklist {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  gap: 10px;
}

.hero-checklist li {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Card */
.hero-info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
}

.card-ribbon {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.hero-info-card h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.step-mini-list {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.step-mini {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-mini strong {
  display: block;
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
}

.step-mini p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hours-quick-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.88rem;
}

.hours-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.hours-row:last-child {
  border-bottom: none;
}

.highlight-row {
  color: #b45309;
}

/* Sections */
.section {
  padding: 72px 0;
}

.bg-light {
  background: var(--bg-light);
}

.bg-navy {
  background: var(--navy);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-header.light h2,
.section-header.light p {
  color: #fff;
}

.section-header.light p {
  opacity: 0.85;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: #dbeafe;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.bg-navy .section-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
}

.section-header h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.problem-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.problem-card h3 {
  font-size: 1.18rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Courses */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.course-badge {
  display: inline-block;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }

.course-card h3 {
  font-size: 1.32rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.course-desc {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.course-list {
  padding-left: 20px;
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.course-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.course-link {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-family: 'Prompt', sans-serif;
  background: #f1f5f9;
  color: var(--navy);
}

.comparison-table .highlight-col {
  background: #eff6ff;
  color: var(--navy);
}

.comparison-table thead .highlight-col {
  background: var(--primary);
  color: #fff;
}

/* Checkup Box */
.checkup-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.checkup-intro {
  max-width: 720px;
  margin-bottom: 24px;
}

.checkup-intro h2 {
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group select,
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  color: var(--text-main);
}

.form-group-full {
  grid-column: 1 / -1;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.checkbox-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-family: 'Sarabun', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  color: var(--text-main) !important;
  margin-bottom: 0 !important;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

.checkbox-item:hover {
  background: #eff6ff;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkup-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.copy-status {
  color: #16a34a;
  font-weight: 600;
  font-size: 0.9rem;
}

#generatedMessage {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  font-family: 'Sarabun', sans-serif;
  font-size: 0.98rem;
  color: var(--navy);
  resize: vertical;
  margin-bottom: 14px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.about-content h2 {
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.feature-boxes {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.feature-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.feature-box h4 {
  color: var(--navy);
  margin-bottom: 4px;
}

.classroom-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.classroom-illustration {
  background: linear-gradient(135deg, var(--navy), var(--primary));
  color: #fff;
  padding: 32px 28px;
}

.illust-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.classroom-illustration h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.stat-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.stat-chip strong {
  display: block;
  font-family: 'Prompt', sans-serif;
  font-size: 1.1rem;
  color: #fde68a;
}

.stat-chip span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.fb-connect-box {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fb-connect-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Articles */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-thumb-link {
  display: block;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.article-card:hover .article-thumb {
  transform: scale(1.02);
}

.article-cat {
  display: inline-block;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.article-card h3 a {
  color: var(--navy);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.read-more {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Simple Plain-Text Article Title Links on Homepage */
.simple-articles-more {
  margin-top: 32px;
}

.simple-articles-links {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 0;
}

.simple-articles-links li a {
  display: inline-block;
  font-family: 'Prompt', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease;
}

.simple-articles-links li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.more-articles-cta {
  margin-top: 8px;
}

/* Article Library Search & Filter Bar */
.library-search-box {
  max-width: 920px;
  margin: 0 auto 36px;
  background: #fff;
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#articleSearchInput {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-family: 'Sarabun', sans-serif;
  font-size: 1.02rem;
  color: var(--text-main);
}

#articleSearchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.search-count {
  font-family: 'Prompt', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  background: #eff6ff;
  padding: 6px 12px;
  border-radius: 999px;
}

.category-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-pill {
  font-family: 'Prompt', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.toc-drawer {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.toc-drawer summary {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.toc-grid {
  margin-top: 12px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.toc-grid a {
  color: var(--navy);
  font-weight: 500;
}

.toc-grid a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.article-graphic-wrap {
  margin: 20px 0;
  text-align: center;
}

.article-graphic-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 37, 71, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Full Articles Page */
.page-hero {
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.articles-layout {
  max-width: 860px;
  display: grid;
  gap: 32px;
}

.full-article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.full-article h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.full-article h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin: 18px 0 10px;
}

.article-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.full-article ul,
.full-article ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.article-callout {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 8px;
}

.article-cta-box {
  background: var(--amber-soft);
  padding: 24px;
  border-radius: 12px;
  margin-top: 20px;
}

/* FAQ */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}

.faq-item summary {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
}

.faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.faq-body ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  margin: 8px 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-info-card,
.map-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-details li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.c-icon {
  font-size: 1.3rem;
}

.landmark-note {
  color: #b45309;
  font-weight: 600;
  margin-top: 4px;
}

.copy-inline-btn {
  margin-left: 8px;
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  cursor: pointer;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-card iframe {
  border-radius: 12px;
}

.map-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-sub {
  color: #94a3b8;
}

.footer-desc {
  margin-top: 12px;
  font-size: 0.92rem;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.footer-links a {
  color: #e2e8f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.88rem;
}

/* Hide any injected Netlify badge / drawer overlay so it never blocks buttons */
#netlify-drawer,
.netlify-drawer,
[data-netlify-deploy-drawer],
[id*="netlify-badge"],
[class*="netlify-badge"],
iframe[src*="app.netlify.com"],
netlify-drawer,
netlify-widget {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2147483647 !important;
  display: none;
  grid-template-columns: 1.25fr 1fr;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(15, 37, 71, 0.18);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
}

.sticky-call {
  background: var(--navy);
}

.sticky-line {
  background: var(--line-green);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .courses-grid,
  .grid-3,
  .gallery-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .mobile-sticky-bar {
    display: grid;
  }
}
