/* ==========================================================================
   Stekker Support Portal — Landing Page & Single Article Enhancement
   Brand: Navy #033446 · Green #0CC170 · Light #F7F7FB
   Font: Poppins (loaded site-wide)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / Reset for portal content
   -------------------------------------------------------------------------- */

.support-hero,
.support-categories,
.support-articles-by-category,
.support-contact-cta-archive {
  font-family: 'Poppins', sans-serif;
  color: #033446;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.support-hero *,
.support-categories *,
.support-articles-by-category *,
.support-contact-cta-archive * {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.support-hero {
  background: #033446;
  padding: 80px 24px 60px;
  text-align: center;
  color: #fff;
}

.support-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.support-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #fff;
}

.support-hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.8;
  margin: 0 0 32px;
  color: #fff;
}

.support-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.support-search-wrapper input[type="search"] {
  width: 100%;
  height: 56px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 28px;
  background: #fff;
  padding: 0 24px;
  color: #033446;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  outline: none;
  transition: box-shadow 0.2s;
}

.support-search-wrapper input[type="search"]::placeholder {
  color: #6B7280;
}

.support-search-wrapper input[type="search"]:focus {
  box-shadow: 0 4px 24px rgba(12, 193, 112, 0.25);
}

/* --------------------------------------------------------------------------
   2. Category Grid
   -------------------------------------------------------------------------- */

.support-categories {
  background: #fff;
  padding: 60px 24px;
}

.support-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. Category Card
   -------------------------------------------------------------------------- */

.support-category-card {
  background: #F7F7FB;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(3, 52, 70, 0.12);
}

.support-category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(12, 193, 112, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.support-category-icon svg {
  width: 28px;
  height: 28px;
}

.support-category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #033446;
  margin: 0 0 8px;
}

.support-category-count {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Articles by Category Section
   -------------------------------------------------------------------------- */

.support-articles-by-category {
  padding: 60px 24px;
  background: #F7F7FB;
  max-width: 100%;
}

.support-articles-by-category > .support-category-section {
  max-width: 1140px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5. Category Section
   -------------------------------------------------------------------------- */

.support-category-section {
  margin-bottom: 0;
}

.support-category-section + .support-category-section {
  margin-top: 24px;
}

.support-category-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #033446;
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 12px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.3s;
}

.support-category-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-category-heading-icon svg {
  width: 28px;
  height: 28px;
}

.support-category-highlight .support-category-heading {
  border-bottom-color: #0CC170;
}

/* --------------------------------------------------------------------------
   6. Article Item (link)
   -------------------------------------------------------------------------- */

.support-article-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #E5E7EB;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, padding-left 0.15s;
  border-radius: 4px;
}

.support-article-list > .support-article-item:last-child {
  border-bottom: none;
}

.support-article-item:hover {
  background: rgba(12, 193, 112, 0.04);
  padding-left: 8px;
}

.support-article-item-content {
  flex: 1;
  min-width: 0;
}

.support-article-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0CC170;
  margin: 0 0 4px;
}

.support-article-item:hover .support-article-item-title {
  color: #0aa85f;
}

.support-article-item-excerpt {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-article-item-arrow {
  flex-shrink: 0;
  color: #6B7280;
  margin-left: 16px;
  margin-top: 4px;
  transition: transform 0.15s, color 0.15s;
}

.support-article-item:hover .support-article-item-arrow {
  color: #0CC170;
  transform: translateX(4px);
}

.support-article-item-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   7. Contact CTA (archive)
   -------------------------------------------------------------------------- */

.support-contact-cta-archive {
  background: #033446;
  padding: 60px 24px;
  text-align: center;
  color: #fff;
}

.support-contact-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.support-contact-cta-archive h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.support-contact-cta-archive p {
  opacity: 0.8;
  margin: 0 0 28px;
  font-size: 1rem;
  color: #fff;
}

.support-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.support-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.15s, transform 0.15s;
}

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

.support-cta-btn-primary {
  background: #0CC170;
  color: #fff;
}

.support-cta-btn-primary:hover {
  background: #0aa85f;
}

.support-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.support-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   8. Breadcrumbs (single article)
   -------------------------------------------------------------------------- */

.support-breadcrumbs {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.8125rem;
  color: #6B7280;
}

.support-breadcrumbs a {
  color: #0CC170;
  text-decoration: none;
}

.support-breadcrumbs a:hover {
  text-decoration: underline;
}

.support-breadcrumbs .separator {
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   9. Related Articles (single article)
   -------------------------------------------------------------------------- */

.support-related {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.support-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #033446;
  margin: 0 0 20px;
}

.support-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.support-related-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #F7F7FB;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.support-related-item:hover {
  background: #E5E7EB;
}

.support-related-item span {
  font-weight: 600;
  color: #033446;
}

/* --------------------------------------------------------------------------
   10. Contact CTA (single article)
   -------------------------------------------------------------------------- */

.support-contact-cta-single {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 40px 24px;
  background: #F7F7FB;
  border-radius: 12px;
  text-align: center;
}

.support-contact-cta-single h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #033446;
  margin: 0 0 8px;
}

.support-contact-cta-single p {
  color: #6B7280;
  margin: 0 0 16px;
}

.support-contact-cta-single a {
  color: #0CC170;
  text-decoration: none;
  font-weight: 600;
}

.support-contact-cta-single a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11. Loading & Error States
   -------------------------------------------------------------------------- */

.support-loading {
  padding: 80px 24px;
  text-align: center;
  color: #6B7280;
  font-size: 0.875rem;
}

.support-loading::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid #E5E7EB;
  border-top-color: #0CC170;
  border-radius: 50%;
  animation: support-spin 0.7s linear infinite;
}

@keyframes support-spin {
  to {
    transform: rotate(360deg);
  }
}

.support-error {
  padding: 60px 24px;
  text-align: center;
  color: #6B7280;
}

.support-no-articles {
  color: #6B7280;
  font-style: italic;
  padding: 16px 0;
}

/* --------------------------------------------------------------------------
   12. Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .support-hero {
    padding: 40px 20px 30px;
  }

  .support-hero h1 {
    font-size: 1.75rem;
  }

  .support-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .support-search-wrapper input[type="search"] {
    height: 48px;
    font-size: 0.9375rem;
  }

  .support-categories {
    padding: 40px 20px;
  }

  .support-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .support-category-card {
    padding: 24px 16px;
  }

  .support-articles-by-category {
    padding: 40px 20px;
  }

  .support-category-section {
    margin-bottom: 36px;
  }

  .support-category-heading {
    font-size: 1.25rem;
  }

  .support-contact-cta-archive {
    padding: 40px 20px;
  }

  .support-contact-cta-archive h2 {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   12b. Responsive — Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .support-categories-grid {
    grid-template-columns: 1fr;
  }

  .support-hero h1 {
    font-size: 1.5rem;
  }

  .support-hero-subtitle {
    font-size: 0.9375rem;
  }

  .support-article-item {
    padding: 16px 0;
  }

  .support-article-item-title {
    font-size: 0.9375rem;
  }

  .support-related {
    padding: 0 16px;
  }

  .support-breadcrumbs {
    padding: 12px 16px 0;
  }

  .support-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}