/* ========================================
   Help Section
======================================== */

.help-section {
  padding: 1.5rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 1.25rem;
  background: var(--surface-color, #ffffff);
}

.help-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.help-section__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-color, #0d9488);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.help-section__header h2 {
  margin: 0;
  color: var(--text-color, #17202a);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 750;
}

.help-section__header p {
  margin: 0.4rem 0 0;
  color: var(--text-secondary, #64748b);
  font-size: 0.9rem;
}

.help-section__header-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--primary-light, #e6f7f5);
  color: var(--primary-color, #0d9488);
  font-size: 1.4rem;
}

.help-section__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Cards */

.help-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 1rem;
  background: var(--card-background, #f9fafb);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.help-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color, #0d9488);
  box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

.help-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.help-card__avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.85rem;
  font-size: 1.35rem;
}

.help-card__avatar--support {
  background: #e0f2fe;
}

.help-card__avatar--teacher {
  background: #ede9fe;
}

.help-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary, #64748b);
  font-size: 0.75rem;
  font-weight: 600;
}

.help-card__status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #16a34a;
}

.help-card__body {
  flex: 1;
}

.help-card__body h3 {
  margin: 0 0 0.5rem;
  color: var(--text-color, #17202a);
  font-size: 1.05rem;
  font-weight: 700;
}

.help-card__body > p {
  margin: 0;
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  line-height: 1.65;
}

.help-card__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.help-card__credentials span {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 0.5rem;
  color: var(--text-secondary, #64748b);
  font-size: 0.7rem;
  line-height: 1.4;
}

/* Actions */

.help-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--primary-color, #0d9488);
  border-radius: 0.7rem;
  background: var(--primary-color, #0d9488);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.help-card__action:hover {
  background: var(--primary-hover, #0f766e);
  border-color: var(--primary-hover, #0f766e);
}

.help-card__action span:last-child {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.help-card__action:hover span:last-child {
  transform: translateX(3px);
}

.help-card__action:focus-visible {
  outline: 3px solid var(--primary-color, #0d9488);
  outline-offset: 3px;
}

/* Responsive */

@media (max-width: 700px) {
  .help-section {
    padding: 1rem;
    border-radius: 1rem;
  }

  .help-section__options {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .help-card {
    padding: 1rem;
  }

  .help-card__top {
    margin-bottom: 0.75rem;
  }

  .help-card__credentials {
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-card,
  .help-card__action,
  .help-card__action span:last-child {
    transition: none;
  }

  .help-card:hover {
    transform: none;
  }
}
