/* ==========================================
   SHARED RICH CONTENT PAGES STYLING
   ========================================== */

.content-page-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-page-card {
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 
              0 0 40px rgba(var(--accent-color-rgb), 0.03);
  position: relative;
  overflow: hidden;
}

/* Glowing top border */
.content-page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.content-page-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.content-page-section {
  margin-bottom: 32px;
}

.content-page-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

.content-page-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.content-page-section p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-page-section ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style-type: square;
}

.content-page-section li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.content-page-section code {
  font-family: var(--font-typing);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 2px 6px;
  color: var(--accent-color);
}

.content-page-section strong {
  color: var(--text-primary);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .content-page-card {
    padding: 24px;
  }
  .content-page-title {
    font-size: 28px;
  }
}

/* ==========================================
   SEO CONTENT SECTION (homepage)
   ========================================== */

#seo-content {
  margin-top: 0;
  padding-top: 0;
}

#seo-content .content-page-card {
  border-top: none;
}

#seo-content .content-page-card::before {
  display: none;
}

/* ==========================================
   FAQ ACCORDION (details/summary)
   ========================================== */

.content-page-section details {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: background var(--transition-base);
}

.content-page-section details[open] {
  background: rgba(0, 0, 0, 0.15);
}

.content-page-section details summary {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 14px 18px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: color var(--transition-base);
}

.content-page-section details summary:hover {
  color: var(--accent-color);
}

.content-page-section details summary::before {
  content: '\25B6';
  font-size: 10px;
  color: var(--accent-color);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.content-page-section details[open] summary::before {
  transform: rotate(90deg);
}

/* Remove default marker in all browsers */
.content-page-section details summary::-webkit-details-marker {
  display: none;
}

.content-page-section details p {
  padding: 0 18px 14px;
  margin-bottom: 0;
}
