/* =========================================================
   Highpro Business — สไตล์หลักของเว็บไซต์
   เขียนแบบ mobile-first: สไตล์พื้นฐานคือมือถือ
   แล้วค่อยปรับสำหรับจอใหญ่ใน @media (min-width: ...)
   ========================================================= */

/* ---------- 1. ค่าสี/ฟอนต์ของแบรนด์ (แก้ที่นี่ที่เดียว) ---------- */
:root {
  --primary: #00809A;       /* teal หลัก: ปุ่ม หัวข้อ แถบ */
  --primary-dark: #00687E;  /* hover, ส่วนพื้นเข้ม */
  --accent-cyan: #00ABC8;   /* เส้นตกแต่ง ไอคอน */
  --accent-red: #E31E26;    /* จุดเน้นเล็ก ๆ เท่านั้น */
  --bg-light: #EAF7FA;      /* พื้นหลังของบาง section */
  --text: #2D2E30;          /* ตัวอักษรหลัก */
  --text-muted: #58585A;    /* ตัวอักษรรอง */
  --white: #FFFFFF;
  --border: #D3E7EC;

  --font-heading: "Prompt", "Noto Sans Thai", sans-serif;
  --font-body: "Noto Sans Thai", sans-serif;

  --radius: 18px;           /* มุมโค้งของการ์ด */
  --radius-pill: 999px;     /* ปุ่ม/แท็กทรงแคปซูล */
  --shadow: 0 6px 24px rgba(0, 104, 126, 0.10);
  --container: 1160px;      /* ความกว้างสูงสุดของเนื้อหา */
  --header-h: 64px;         /* ความสูงแถบเมนูด้านบน */
}

/* ---------- 2. Reset พื้นฐาน ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* เวลากดลิงก์ #section ไม่ให้หัวข้อถูกแถบเมนูบัง */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
ul { padding-left: 1.2em; }

/* เส้นขอบเวลาใช้คีย์บอร์ด (Tab) ให้เห็นชัด */
:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ซ่อนข้อความจากสายตา แต่โปรแกรมอ่านหน้าจอยังอ่านได้ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ลิงก์ "ข้ามไปเนื้อหา" สำหรับผู้ใช้คีย์บอร์ด */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--primary); color: var(--white);
  padding: 8px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- 3. Layout ทั่วไป ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; position: relative; }
.section--light { background: var(--bg-light); }

.section-header { margin-bottom: 28px; }
.section-header p { color: var(--text-muted); max-width: 640px; margin-bottom: 0; }

/* หัวข้อ section แบบโบรชัวร์: จุดแดง + แถบ teal ทรงแคปซูล */
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 6px 22px 6px 6px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 1.3rem;
}
.section-title::before {
  content: "";
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-red);
  border: 4px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ---------- 4. ปุ่ม & แท็ก ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;               /* ขนาดกดง่ายบนมือถือ */
  padding: 10px 26px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); }
.btn--outline { background: var(--white); color: var(--primary); }
.btn--outline:hover { background: var(--bg-light); color: var(--primary-dark); }

/* แท็กทรงแคปซูล เช่น "กล้อง 1 ตัว" */
.pill {
  display: inline-block;
  padding: 3px 14px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- 5. Header / เมนู ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
}
.brand-name small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ปุ่มแฮมเบอร์เกอร์ (มือถือ) */
.nav-toggle {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 10px;
  cursor: pointer; color: var(--primary);
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* เมนูบนมือถือ: เลื่อนลงมาจากแถบด้านบน */
.site-nav {
  position: absolute;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--bg-light);
  color: var(--text); text-decoration: none;
  font-family: var(--font-heading); font-weight: 500;
}
.site-nav a:hover { color: var(--primary); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  text-align: center;
  /* ตารางจาง ๆ คล้ายพื้นหลังโบรชัวร์ */
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(0, 171, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 171, 200, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* เส้นวงจรตกแต่ง (SVG ใน HTML) */
.hero-circuit {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  color: var(--accent-cyan);
  opacity: 0.45;
}
.hero .container { position: relative; }

.hero-logo { width: 96px; height: 96px; margin: 0 auto 18px; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.25rem; margin-bottom: 4px;
}
/* แถบขีดเล็ก ๆ สองข้างคำว่า "สื่อการเรียนรู้" */
.hero-kicker::before, .hero-kicker::after {
  content: ""; width: 36px; height: 12px;
  background: repeating-linear-gradient(90deg, var(--accent-cyan) 0 3px, transparent 3px 6px);
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent-cyan);
  text-shadow: 3px 3px 0 var(--primary-dark);
  margin-bottom: 14px;
}

.hero-audience {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 12px;
  margin: 0 0 18px; padding: 0; list-style: none;
  font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem;
}
/* เส้นแดงคั่นระหว่างกลุ่มผู้เรียน */
.hero-audience li + li::before {
  content: ""; display: inline-block;
  width: 3px; height: 1.1em; margin-right: 12px;
  background: var(--accent-red); vertical-align: -0.15em;
}

.hero-tagline {
  max-width: 560px; margin: 0 auto 28px;
  color: var(--text-muted); font-size: 1.05rem;
}

.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 320px; margin: 0 auto 28px;
}

.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}

/* ---------- 6.1 ชุดฝึก (Kits) ---------- */
.kits {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.kit-card {
  position: relative;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 6px solid var(--accent-cyan);
  box-shadow: var(--shadow);
}
.kit-card--dark { border-top-color: var(--primary-dark); }

/* หัวการ์ด "1 เริ่มต้นกับ..." */
.kit-step {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-heading); font-weight: 600;
  color: var(--primary);
}
.kit-step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 0.95rem;
}
.kit-card--dark .kit-step { color: var(--primary-dark); }
.kit-card--dark .kit-step-num { background: var(--primary-dark); }

/* รูปสินค้าบนวงกลมสีฟ้าอ่อน (เหมือนในโบรชัวร์) */
.kit-photo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 260px;
  margin-bottom: 16px;
}
/* วงกลมฟ้าอ่อนด้านหลังรูป */
.kit-photo::before {
  content: "";
  position: absolute;
  width: 230px; height: 230px;
  border-radius: 50%;
  background: #CDEBF2;
}
/* รูปถูกจำกัดให้อยู่ในกรอบเสมอ ไม่ว่ารูปจะแนวตั้งหรือแนวนอน */
.kit-photo img {
  position: relative;
  width: auto; height: auto;
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}
/* รูปแนวนอน (Armo): ให้กว้างใกล้เคียงวงกลม ล้นขอบเพียงเล็กน้อย */
.kit-photo--wide img { max-width: min(290px, 100%); }

.kit-name { font-size: 2rem; margin-bottom: 0; }
.kit-model { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 8px; }

.pill-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px; padding: 0; list-style: none;
}

/* ตารางสเปกย่อ */
.kit-specs { margin: 0; border-top: 1px solid var(--border); }
.kit-specs div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.kit-specs dt { font-weight: 600; color: var(--primary-dark); }
.kit-specs dd { margin: 0; }

.kit-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ลูกศร "ต่อยอด" (มือถือ: ชี้ลง) */
.kits-arrow {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-heading); font-weight: 600;
  color: var(--text);
}
.kits-arrow svg {
  width: 48px; height: 20px;
  color: var(--accent-red);
  transform: rotate(90deg);
  margin-top: 8px;
}

/* กล่องเส้นประ "สิ่งที่มาพร้อมทุกชุด" */
.kit-includes {
  display: grid; gap: 12px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.kit-includes li {
  padding: 14px 18px;
  background: var(--white);
  border: 2px dashed var(--accent-cyan);
  border-radius: var(--radius);
  text-align: center;
}
.kit-includes strong { display: block; color: var(--primary); font-family: var(--font-heading); }

/* ---------- 6.2 เส้นทางการเรียนรู้ (Timeline) ---------- */
.timeline {
  position: relative;
  margin: 0; padding: 0; list-style: none;
}
/* เส้นแนวตั้งที่เชื่อมวงกลมตัวเลข */
.timeline::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 3px;
  background: var(--accent-cyan);
  opacity: 0.5;
}

.timeline-step {
  position: relative;
  display: flex; gap: 16px;
  padding-bottom: 24px;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-num {
  position: relative; z-index: 1;
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: 4px solid var(--bg-light);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
}
/* ขั้นสุดท้าย (โครงงาน) เน้นด้วยจุดสีแดง */
.timeline-step:last-child .timeline-num { background: var(--accent-red); }

.timeline-label {
  display: inline-block;
  margin: 0 0 4px; padding: 0 10px;
  border-radius: 6px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
}
.timeline-step h3 { font-size: 1.05rem; margin-bottom: 2px; }
.timeline-en { margin: 0; color: var(--text-muted); font-size: 0.875rem; }

/* กล่องจุดเด่นใต้ไทม์ไลน์ */
.path-highlights { display: grid; gap: 16px; margin-top: 40px; }
.highlight {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
}
.highlight h3 { color: inherit; font-size: 1.1rem; }
.highlight p, .highlight ul { margin: 0; }
.highlight--outline {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--accent-cyan);
}
.highlight--outline h3 { color: var(--primary-dark); }
.highlight ul { list-style: none; padding: 0; }
.highlight li::before { content: "+ "; color: var(--accent-red); font-weight: 700; }

/* ---------- 6.3 ผลงานนักเรียน ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 8px;
}
.filter-btn {
  min-height: 44px;
  padding: 6px 22px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-heading); font-size: 1rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn:hover { background: var(--bg-light); }
/* ปุ่มที่ถูกเลือกอยู่ */
.filter-btn[aria-pressed="true"] { background: var(--primary); color: var(--white); }

.works-count { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; min-height: 1.5em; }

.works-grid { display: grid; gap: 20px; }
.works-grid > .notice { grid-column: 1 / -1; }

.work-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card:hover {
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 104, 126, 0.18);
}
.work-card:hover .work-title { color: var(--primary); }

.work-cover { position: relative; aspect-ratio: 4 / 3; background: var(--bg-light); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ป้ายชื่อชุดฝึกบนรูปปก */
.kit-tag {
  display: inline-block;
  padding: 2px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
}
.kit-tag--armogo { background: var(--primary-dark); }
.work-cover .kit-tag { position: absolute; left: 12px; bottom: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

.work-body { padding: 16px 18px 18px; }
.work-title { font-size: 1.15rem; margin-bottom: 4px; transition: color 0.2s; }
.work-meta { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.work-date { margin: 6px 0 0; font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* การ์ดสีเทาระหว่างรอโหลด */
.work-card--skeleton {
  min-height: 300px;
  background: linear-gradient(100deg, #f1f6f7 40%, #e2eef1 50%, #f1f6f7 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.notice .btn { margin-top: 4px; }

/* ---------- 6.4 ทีมงาน ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  margin: 0; padding: 0; list-style: none;
}
.team-member { text-align: center; }
.team-member img {
  width: 120px; height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent-cyan);
}
.team-member h3 { font-size: 1rem; margin-bottom: 2px; }
.team-member p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }

/* ---------- 6.5 หน้ารายละเอียดผลงาน (work.html) ---------- */
.work-page {
  padding: 20px 0 64px;
  background: linear-gradient(var(--bg-light), var(--white) 420px);
  min-height: 70vh;
}
.work-page article { max-width: 920px; margin: 0 auto; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  margin-bottom: 12px;
  font-family: var(--font-heading); font-weight: 500;
  text-decoration: none;
}
.back-link svg { width: 20px; height: 20px; }
.back-link:hover { text-decoration: underline; }

.work-header { margin-bottom: 32px; }
.work-header h1 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--primary-dark);
  margin: 10px 0 8px;
}
.work-header-meta {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  margin: 0 0 16px; padding: 0; list-style: none;
  color: var(--text-muted);
}
/* จุดคั่นระหว่าง โรงเรียน · ระดับชั้น · วันที่ */
.work-header-meta li + li::before { content: "·"; margin: 0 10px; color: var(--accent-cyan); font-weight: 700; }
.work-summary { font-size: 1.1rem; margin: 0; }

.work-section { margin-bottom: 40px; }
.work-section h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem;
  color: var(--primary-dark);
}
/* ขีดสีฟ้าหน้าหัวข้อย่อย */
.work-section h2::before {
  content: ""; width: 6px; height: 1.2em;
  border-radius: 3px; background: var(--accent-cyan);
}

/* แกลเลอรีรูป */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.gallery-item {
  display: block; width: 100%;
  padding: 0; border: 0;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-light);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }

/* วิดีโอ YouTube (สัดส่วน 16:9) */
.videos { display: grid; gap: 16px; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  background: #000;
}
.video iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video-play:hover img { opacity: 1; }
.video-play-icon {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 48px;
  transform: translate(-50%, -50%);
}

/* รายการสิ่งที่ได้เรียนรู้ (ไอคอนเครื่องหมายถูก) */
.learnings { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.learnings li {
  position: relative;
  padding: 12px 16px 12px 52px;
  background: var(--bg-light);
  border-radius: 12px;
}
.learnings li::before {
  content: "";
  position: absolute; left: 14px; top: 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* คำพูดจากครู */
.teacher-quote {
  position: relative;
  margin: 0 0 40px;
  padding: 28px 24px 22px;
  border-left: 6px solid var(--accent-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  box-shadow: var(--shadow);
}
.teacher-quote blockquote { margin: 0; }
.teacher-quote p { font-size: 1.15rem; font-family: var(--font-heading); font-weight: 500; color: var(--primary-dark); margin-bottom: 10px; }
.teacher-quote p::before { content: "“"; }
.teacher-quote p::after { content: "”"; }
.teacher-quote figcaption { color: var(--text-muted); font-size: 0.9rem; }

/* กล่องชวนติดต่อท้ายหน้า */
.work-cta {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}
.work-cta h2 { color: var(--white); font-size: 1.3rem; }
.work-cta p { color: rgba(255, 255, 255, 0.85); }
.work-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.work-cta .btn { border-color: var(--white); }
.work-cta .btn:not(.btn--outline) { background: var(--white); color: var(--primary-dark); }
.work-cta .btn--outline { background: transparent; color: var(--white); }
.work-cta .btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.notice--page { padding: 48px 24px; }
.notice--page h1 { color: var(--primary-dark); font-size: 1.5rem; }

/* ---------- 6.6 กล่องดูรูปขยาย (Lightbox) ---------- */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 20, 26, 0.94);
  color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img {
  max-width: 92vw; max-height: 80vh;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox figcaption { margin-top: 10px; font-size: 0.9rem; opacity: 0.85; }

.lightbox-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-btn svg { width: 26px; height: 26px; }
.lightbox-close { top: 14px; right: 14px; }
/* มือถือ: ปุ่มก่อนหน้า/ถัดไปอยู่ด้านล่าง กดง่ายด้วยนิ้วโป้ง */
.lightbox-prev { bottom: 20px; left: calc(50% - 64px); }
.lightbox-next { bottom: 20px; right: calc(50% - 64px); }
.lightbox--single .lightbox-prev,
.lightbox--single .lightbox-next { display: none; }

/* ---------- 7. ติดต่อ & Footer ---------- */
.contact {
  background: var(--primary-dark);
  color: var(--white);
}
.contact .section-title { background: var(--white); color: var(--primary-dark); }
.contact .section-header p { color: rgba(255, 255, 255, 0.85); }

.contact-company { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; }
.contact-company span { color: #FFB3B6; font-size: 0.9rem; display: block; font-weight: 500; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white); text-decoration: none;
}
a.contact-item:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.contact-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent-cyan); }
.contact-item strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; word-break: break-word; }
.contact-item small { color: rgba(255, 255, 255, 0.8); }

.site-footer {
  background: #004F60;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 24px 0;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .license { font-size: 0.75rem; opacity: 0.75; }

/* ---------- 8. ข้อความแจ้งสถานะ (กำลังโหลด / ผิดพลาด) ---------- */
.notice {
  padding: 28px 20px;
  border: 2px dashed var(--accent-cyan);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: var(--text-muted);
}

/* =========================================================
   จอขนาดกลางขึ้นไป (แท็บเล็ต 768px+)
   ========================================================= */
@media (min-width: 768px) {
  :root { --header-h: 72px; }

  .section { padding: 80px 0; }
  .section-title { font-size: 1.5rem; }

  .hero { padding: 72px 0 88px; }
  .hero-logo { width: 120px; height: 120px; }
  .hero-kicker { font-size: 1.6rem; }
  .hero-audience { font-size: 1.35rem; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }

  /* ชุดฝึก: การ์ดซ้าย-ขวา มีลูกศร "ต่อยอด" ตรงกลาง */
  .kits { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .kits-arrow { justify-content: center; }
  .kits-arrow svg { transform: none; }
  .kit-card { padding: 28px; }
  .kit-includes { grid-template-columns: 1fr 1fr; }

  .path-highlights { grid-template-columns: repeat(3, 1fr); }

  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .team-member img { width: 140px; height: 140px; }

  /* หน้ารายละเอียดผลงาน */
  .work-page { padding-top: 32px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .videos { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
  .learnings { grid-template-columns: 1fr 1fr; }
  .teacher-quote { padding: 32px 36px 26px; }
  .work-cta { padding: 36px; }

  /* Lightbox: ปุ่มก่อนหน้า/ถัดไปอยู่ข้างรูป */
  .lightbox-prev, .lightbox-next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
  .lightbox figure, .lightbox img { max-width: calc(100vw - 180px); }

  .contact-list { grid-template-columns: 1fr 1fr; }
  .contact-list .contact-item--wide { grid-column: 1 / -1; }
}

/* จอใหญ่ (1024px+): แสดงเมนูเต็มแทนปุ่มแฮมเบอร์เกอร์ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: block;
    background: none; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a {
    border: 0; padding: 8px 14px; border-radius: var(--radius-pill);
    font-size: 0.95rem;
  }
  .site-nav a:hover { background: var(--bg-light); }
  .site-nav .nav-cta a { background: var(--primary); color: var(--white); }
  .site-nav .nav-cta a:hover { background: var(--primary-dark); color: var(--white); }

  .works-grid { grid-template-columns: repeat(3, 1fr); }

  /* ไทม์ไลน์แนวนอน 5 คอลัมน์ */
  .timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .timeline::before {
    left: 10%; right: 10%; top: 23px; bottom: auto;
    width: auto; height: 3px;
  }
  .timeline-step {
    flex-direction: column; align-items: center;
    text-align: center; padding-bottom: 0;
  }
  .timeline-num { width: 52px; height: 52px; margin-top: -2px; }
}

/* ผู้ใช้ที่ตั้งค่าลดการเคลื่อนไหว: ปิดการเลื่อนแบบนุ่ม/อนิเมชัน */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
