/* ===================================================
   pages.css — Inner Page Styles
   Page Header · Content Pages · Courses Page · Help/FAQ
   Depends on: variables.css, base.css
   =================================================== */

/* ── Page header (gradient banner) ───────────────── */
.page-header {
  padding: 150px 20px 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  color: var(--white);
}

.page-header h1 { font-size: 3rem; margin-bottom: 15px; }
.page-header p  { font-size: 1.2rem; opacity: 0.9; }

/* ── Generic content pages (privacy, terms, about…) ─ */
.content-section { padding: 80px 20px; }

.content-section .container { max-width: 900px; }

.content-section h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin: 40px 0 20px;
}

.content-section h2:first-child { margin-top: 0; }

.content-section p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.content-section ul {
  margin: 20px 0;
  padding-left: 25px;
}

.content-section li {
  color: var(--text-light);
  margin-bottom: 10px;
  list-style: disc;
}

/* ── Courses browse page ──────────────────────────── */
.courses-page-grid { padding: 60px 20px; }

/* ── Help / FAQ page ──────────────────────────────── */
.faq-section   { padding: 60px 20px; }
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
  margin-bottom: 15px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-icon { font-size: 1.5rem; transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 25px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer { max-height: 200px; }

/* Contact section (below FAQ) */
.contact-section {
  padding: 80px 20px;
  background: var(--off-white);
  text-align: center;
}

.contact-section h2 { font-size: 2rem; margin-bottom: 15px; }
.contact-section p  { color: var(--text-light); margin-bottom: 30px; }

/* Dark mode overrides */
body.dark-mode .faq-item { background: var(--off-white); }