:root {
  --help-bg: #070d18;
  --help-surface: #0f1a2d;
  --help-surface-2: #13223a;
  --help-border: #243956;
  --help-text: #eaf2ff;
  --help-muted: #9bb0cb;
  --help-accent: #4ca3ff;
  --help-accent-soft: #112f57;
}

body {
  background: radial-gradient(circle at top right, #162846 0%, var(--help-bg) 48%);
  color: var(--help-text);
}

.help-page {
  max-width: min(110rem, 92vw);
  margin: 0 auto;
  padding: clamp(8rem, 10vw, 12rem) 0 5rem;
}

.help-page--narrow {
  max-width: min(100rem, 92vw);
}

.help-header-simple h1,
.help-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 3.2vw, 4.2rem);
  line-height: 1.12;
  color: #f3f8ff;
}

.help-header-simple p,
.help-hero p {
  margin-top: 1.2rem;
  color: var(--help-muted);
  font-size: clamp(1.6rem, 1.8vw, 2rem);
  max-width: 70ch;
}

.help-search {
  margin-top: clamp(2rem, 3vw, 3.2rem);
}

.help-search input {
  width: min(78rem, 100%);
  display: block;
  margin: 0 auto;
  border: 0.1rem solid #2d4666;
  background: #0c1729;
  border-radius: 1.3rem;
  padding: 1.5rem 1.8rem;
  font-size: clamp(1.6rem, 1.8vw, 2rem);
  color: var(--help-text);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.28);
}

.help-search input:focus {
  outline: none;
  border-color: var(--help-accent);
  box-shadow: 0 0 0 0.3rem rgba(76, 163, 255, 0.22);
}

.help-search-results {
  margin: 1.4rem auto 0;
  width: min(78rem, 100%);
  display: grid;
  gap: 1rem;
}

.search-result-item {
  border: 0.1rem solid var(--help-border);
  background: #101d31;
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
}

.search-result-item a {
  color: var(--help-accent);
  text-decoration: none;
  font-weight: 600;
}

.search-result-meta {
  color: var(--help-muted);
  display: block;
  margin-top: 0.4rem;
  font-size: 1.4rem;
}

.help-options,
.videos-grid,
.featured-grid {
  margin-top: clamp(3rem, 4vw, 4.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: 1.8rem;
}

.help-card,
.video-card,
.faq-item,
.featured-panel {
  border: 0.1rem solid var(--help-border);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, var(--help-surface), var(--help-surface-2));
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.24);
}

.help-card {
  padding: clamp(2rem, 3.4vw, 3rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.35);
}

.help-card h2 {
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  margin: 0 0 1rem;
}

.help-card p {
  color: var(--help-muted);
}

.help-link,
.help-back,
.video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  border: 0.1rem solid #2f5b8f;
  background: var(--help-accent-soft);
  color: #d6e9ff;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.help-link:hover,
.help-back:hover,
.video-btn:hover {
  background: #1a4271;
}

.help-featured {
  margin-top: clamp(3.2rem, 4.2vw, 5rem);
}

.help-featured h2 {
  margin: 0;
  font-size: clamp(2.2rem, 2.4vw, 3rem);
}

.featured-panel {
  padding: 2rem;
}

.featured-panel h3 {
  margin: 0 0 1rem;
}

.featured-list {
  margin: 0;
  padding-left: 2rem;
  display: grid;
  gap: 0.8rem;
}

.featured-list a {
  color: #8ec4ff;
  text-decoration: none;
}

.help-footer {
  margin-top: clamp(3.6rem, 4.5vw, 5.4rem);
  border-top: 0.1rem solid var(--help-border);
  padding-top: 1.8rem;
  color: var(--help-muted);
  display: grid;
  gap: 0.4rem;
}

.help-back {
  margin-top: 1.8rem;
}

.video-card {
  overflow: hidden;
}

.video-thumb {
  position: relative;
  display: block;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0;
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5.8rem;
  height: 5.8rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 2.6rem;
  background: rgba(15, 33, 54, 0.78);
  color: #fff;
}

.video-content {
  padding: 1.6rem;
}

.video-content h2 {
  margin: 0.6rem 0 0.8rem;
  font-size: clamp(1.7rem, 1.6vw, 2rem);
}

.video-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--help-muted);
  font-size: 1.4rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1500;
  padding: 2rem;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__content {
  width: min(96rem, 100%);
  position: relative;
}

.video-frame-wrap {
  aspect-ratio: 16 / 9;
}

.video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1.2rem;
}

.video-modal__close {
  position: absolute;
  top: -4rem;
  right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 3rem;
}

.faq-accordion {
  margin-top: 3.2rem;
  display: grid;
  gap: 1.2rem;
}

.faq-item button {
  width: 100%;
  padding: 1.7rem;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--help-text);
  font-size: clamp(1.6rem, 1.8vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.7rem 1.7rem;
  color: var(--help-muted);
}

.faq-item.is-open .faq-answer {
  max-height: 20rem;
}

@media (max-width: 720px) {
  .help-page {
    padding-top: 7rem;
  }

  .help-search-results {
    gap: 0.8rem;
  }

  .search-result-item {
    padding: 1rem 1.2rem;
  }
}
