/* Support page — light style matching home.html */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #F7F8FC;
  color: #111827;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }

/* Shell */
.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 24px 80px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 24px 48px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  background: #fff4ee;
  color: #FF6A2A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.subtitle {
  font-size: 17px;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.meta {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 12px;
}

/* Search */
.searchWrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.searchWrap input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.searchWrap input:focus {
  border-color: #FF6A2A;
  background: #fff;
}

.searchWrap input::placeholder { color: #9ca3af; }

.searchWrap button, .open {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.searchWrap button:hover, .open:hover {
  background: #f9fafb;
}

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

.card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

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

.step {
  font-size: 11px;
  font-weight: 700;
  color: #FF6A2A;
  background: #fff4ee;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 12px 0 6px;
  line-height: 1.3;
}

.card p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 8px;
  line-height: 1.6;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 500;
}

.open {
  margin-top: 14px;
  background: #FF6A2A;
  color: #fff;
  border-color: #FF6A2A;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
}

.open:hover { background: #e55a1a; border-color: #e55a1a; }

.empty {
  margin-top: 16px;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  color: #6b7280;
  padding: 24px;
  text-align: center;
  font-size: 15px;
}

/* Topic detail page */
.topic {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.topic h1 { color: #111827; font-size: clamp(22px, 4vw, 36px); font-weight: 800; margin-top: 8px; }

.topicParent { color: #FF6A2A; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: #9ca3af; margin-bottom: 8px;
}

.breadcrumb a { color: #FF6A2A; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.crumbSep { opacity: 0.5; }

.back {
  display: inline-block;
  color: #FF6A2A;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
}

.section {
  margin-top: 20px;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}

.section h2 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 10px; }

.section ul { margin: 0; padding-left: 20px; }

.section li {
  margin-bottom: 8px;
  color: #374151;
  line-height: 1.6;
  font-size: 15px;
}

/* Page nav */
.pageNav {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pageNavLink {
  text-decoration: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  max-width: 48%;
  transition: background 0.2s;
}

.pageNavLink.next { text-align: right; margin-left: auto; }
.pageNavLink:hover { background: #f9fafb; }
.pageNavGhost { width: 48%; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0 4px;
}

.sectionGallery { margin-top: 12px; }

.galleryFig {
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  cursor: zoom-in;
  transition: box-shadow 0.2s ease;
}

.galleryFig:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

.galleryFig img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.galleryFig figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: #6b7280;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lbClose {
  position: fixed;
  top: 16px; right: 20px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 18px;
  cursor: pointer;
}

.lbPrev, .lbNext {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.lbPrev { left: 16px; }
.lbNext { right: 16px; }

/* Lang button in nav (handled by newhome.css but keep fallback) */
.langBtn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s;
}

.langBtn:hover { background: #f3f4f6; }

@media (max-width: 860px) {
  .shell { padding: 90px 16px 60px; }
  .grid { grid-template-columns: 1fr; }
  .searchWrap { grid-template-columns: 1fr; }
}
