/*
 * ISP Theme - Public Pages
 * Marketing landing page, login, and register — no sidebar layout.
 */

/* ── Body overrides for public pages ─────────────────────────────────────── */
body.path-frontpage,
body.path-user {
  overflow: auto;
  height: auto;
  min-height: 100vh;
  font-family: var(--font-display);
}

/* ── Public navbar ────────────────────────────────────────────────────────── */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
}

.public-nav-logo svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.public-nav-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.public-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.public-nav-links a:hover {
  color: var(--text-main);
}

.btn-nav-login {
  background: var(--primary-color);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-nav-login:hover {
  background: var(--primary-hover) !important;
  color: #fff !important;
}

/* ── Public nav: hamburger toggle (hidden on desktop) ─────────────────────── */
.public-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.public-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ── Mobile nav ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .public-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
  }

  .public-nav-toggle {
    display: flex;
  }

  .public-nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.25rem 0 0.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
  }

  .public-nav.is-open .public-nav-links {
    display: flex;
  }

  .public-nav-links a {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
  }

  .public-nav-links a:last-child {
    border-bottom: none;
    margin-top: 0.25rem;
  }

  .btn-nav-login {
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
  }
}

/* ── Hero section ─────────────────────────────────────────────────────────── */
.public-hero {
  background: var(--bg-hero);
  color: #fff;
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.public-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.public-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #fff;
  color: var(--primary-color);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.public-section {
  padding: 5rem 2rem;
}

.public-section--alt {
  background: var(--bg-section);
}

.public-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.75rem;
}

.public-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--text-main);
}

.public-section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ── Feature cards ────────────────────────────────────────────────────────── */
.public-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .public-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .public-features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.feature-icon--ai      { background: var(--color-ai); }
.feature-icon--video   { background: var(--color-video); }
.feature-icon--private { background: var(--color-private); }
.feature-icon--podcast { background: var(--color-podcast); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.public-how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.public-how-it-works::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.3% - 1rem);
  right: calc(33.3% - 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 640px) {
  .public-how-it-works {
    grid-template-columns: 1fr;
  }
  .public-how-it-works::before {
    display: none;
  }
}

.how-step {
  text-align: center;
}

.how-step-number {
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.how-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.public-stats {
  background: var(--bg-hero);
  padding: 3.5rem 2rem;
}

.public-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 600px) {
  .public-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ── Final CTA ────────────────────────────────────────────────────────────── */
.public-cta-section {
  background: var(--bg-hero);
  padding: 5rem 2rem;
  text-align: center;
  color: #fff;
}

.public-cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.75rem;
}

.public-cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0 0 2rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.public-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 2rem;
}

.public-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.public-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 1rem;
}

.public-footer-logo svg {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
}

.public-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.public-footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.public-footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.public-footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Body overrides for inner public pages ────────────────────────────────── */
body.is-public-page {
  overflow: auto;
  height: auto;
  min-height: 100vh;
  font-family: var(--font-display);
}

/* ── Small hero (inner pages) ─────────────────────────────────────────────── */
.page-hero-small {
  background: var(--bg-hero);
  color: #fff;
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}

.page-hero-small-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero-small h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
}

.page-hero-small .hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb-public {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.breadcrumb-public a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb-public a:hover {
  color: #fff;
}

.breadcrumb-public span {
  margin: 0 0.4rem;
}

/* ── Level grid ───────────────────────────────────────────────────────────── */
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .level-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .level-grid {
    grid-template-columns: 1fr;
  }
}

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.level-badge--a1 { background: #dcfce7; color: #166534; }
.level-badge--a2 { background: #ccfbf1; color: #115e59; }
.level-badge--b1 { background: #dbeafe; color: #1e40af; }
.level-badge--b2 { background: #ede9fe; color: #5b21b6; }

.level-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.level-card .level-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.level-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.level-card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.level-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.level-card .level-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.level-card .level-cta {
  display: inline-block;
  margin-top: auto;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.level-card .level-cta:hover {
  background: var(--primary-hover);
}

/* ── FAQ section ──────────────────────────────────────────────────────────── */
.faq-section {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.faq-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.faq-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  background: var(--bg-card);
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
  background: var(--bg-section);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  background: var(--bg-card);
}

/* ── Skill cards (exam skills) ────────────────────────────────────────────── */
.skill-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .skill-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.skill-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.skill-card-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.35rem;
}

.skill-card .skill-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Inburgering timeline ─────────────────────────────────────────────────── */
.inburg-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
}

.inburg-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.inburg-step::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -1px;
  width: 2px;
  height: 40px;
  background: var(--border-color);
}

.inburg-step:last-child::after { display: none; }

.inburg-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.inburg-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem;
}

.inburg-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .inburg-timeline {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .inburg-step::after { display: none; }
}

/* ── Testimonial grid ─────────────────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--primary-color);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.15rem;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Comparison table ─────────────────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-main);
}

.comparison-table th:first-child {
  width: 45%;
}

.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check-yes {
  color: #16a34a;
  font-weight: 700;
  font-size: 1rem;
}

.comparison-table .check-no {
  color: #dc2626;
  font-weight: 700;
  font-size: 1rem;
}

/* ── AI demo preview ──────────────────────────────────────────────────────── */
.ai-demo-preview {
  max-width: 560px;
  margin: 2rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
}

.ai-demo-bar {
  background: var(--bg-hero);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-demo-bar span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
}

.ai-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.ai-demo-dot--active {
  background: #4ade80;
}

.ai-demo-messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-demo-msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ai-demo-msg--ai {
  background: var(--bg-section);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-demo-msg--user {
  background: var(--primary-color);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-demo-input {
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
}

.ai-demo-input-field {
  flex: 1;
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-demo-send {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-demo-send svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* ── Info block ───────────────────────────────────────────────────────────── */
.info-block {
  background: var(--bg-section);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.info-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem;
}

.info-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── CTA block inside section ─────────────────────────────────────────────── */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-primary-lg {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.9rem 2.25rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary-lg:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ── Login / register card pages ──────────────────────────────────────────── */
.login-hero-bar {
  background: var(--bg-hero);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
}

.login-hero-bar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.login-hero-bar svg {
  width: 26px;
  height: 26px;
}

.login-page-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--bg-section);
}

.login-card {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(30, 58, 138, 0.12);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.login-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 0 0 0.4rem;
}

.login-card-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.login-card-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive card padding on small screens */
@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
}

/* Ensure Drupal form fields fill the card width correctly */
.login-card .form-item {
  margin-bottom: 1.25rem;
}
.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
}
.login-card .form-actions {
  margin-top: 1.5rem;
}
.login-card .button--primary {
  width: 100%;
  justify-content: center;
}

/* ── Landing Page blocks (lp-hero, lp-section, lp-card, lp-cta) ─────────── */

.lp-hero {
  background: var(--bg-hero);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.lp-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.lp-hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.lp-hero__heading {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.lp-hero__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* lp-card */
.lp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.lp-card__icon {
  width: 48px;
  height: 48px;
  background: var(--bg-section);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.lp-card__heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.lp-card__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.lp-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: auto;
}

.lp-card__link:hover {
  text-decoration: underline;
}

/* lp-section body */
.lp-section__body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Light CTA variant */
.public-cta-section--light {
  background: var(--bg-section);
}

.public-cta-section--light h2,
.public-cta-section--light p {
  color: var(--text-main);
}

/* Layout Builder column cells get full height so cards align */
.layout-builder__region .layout__region > div {
  height: 100%;
}

/* ── Cursussen page ──────────────────────────────────────────────────────── */

.cursussen-kenmerken {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cursussen-kenmerk {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.cursussen-kenmerk__icon {
  width: 40px;
  height: 40px;
  background: var(--bg-section);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-color);
}

.cursussen-kenmerk strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.cursussen-kenmerk p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Wrapper so LMS cards fill the full section width */
.cursussen-lms-grid {
  margin-top: 2rem;
}

/* Override LMS card grid to use 3 columns on this page */
.cursussen-lms-grid .lms-courses-grid,
.cursussen-lms-grid .views-responsive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Make LMS course cards feel at home on a white public page */
.cursussen-lms-grid .lms-course-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 260px;
}

@media (max-width: 900px) {
  .cursussen-kenmerken {
    grid-template-columns: 1fr;
  }
  .cursussen-lms-grid .lms-courses-grid,
  .cursussen-lms-grid .views-responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cursussen-lms-grid .lms-courses-grid,
  .cursussen-lms-grid .views-responsive-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Layout Builder — reset wrapper chrome
   ══════════════════════════════════════════════════════════════════════════ */

/* Strip default block wrappers when rendered inside Layout Builder */
.layout-builder-block > .block,
.layout-builder-block > .block > .block__content {
  display: contents;
}

/* Each Layout Builder region is a flex column; lp-card fills height */
.layout__region {
  display: flex;
  flex-direction: column;
}

/* Four-column section cards fill equal height */
[class*="layout--fourcol"] .layout__region .lp-card,
[class*="layout--threecol"] .layout__region .lp-card,
[class*="layout--twocol"] .layout__region .lp-card {
  flex: 1;
  height: 100%;
}

/* ── lp_card extensions ─────────────────────────────────────────────────── */
.lp-card__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-style: italic;
}

.lp-card__duration {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.lp-card.lp-card--has-badge {
  padding-top: 1.25rem;
}

/* ── Level badge ────────────────────────────────────────────────────────── */
.level-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.level-badge--a1 { background: #d1fae5; color: #065f46; }
.level-badge--a2 { background: #ccfbf1; color: #0f766e; }
.level-badge--b1 { background: #dbeafe; color: #1e40af; }
.level-badge--b2 { background: #ede9fe; color: #5b21b6; }

/* ── lp_steps — how-it-works ────────────────────────────────────────────── */
.public-how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.how-step {
  text-align: center;
  padding: 1.5rem;
}

.how-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.how-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── lp_faq — accordion ─────────────────────────────────────────────────── */
.faq-section {
  max-width: 760px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-section-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.faq-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  margin: 0 0 0.35rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text-main);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
}

/* ── lp_testimonials ────────────────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-quote {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Podcast grid + teaser + full view ───────────────────────────────────── */
.podcasts-page .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.podcasts-page .views-row,
.podcasts-page .views-col {
  box-sizing: border-box;
  min-width: 0;
}

.podcasts-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

.podcasts-pager {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.podcast-teaser {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.podcast-teaser:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color) !important;
}

.podcast-teaser a:hover { text-decoration: none; }

.podcast-teaser--ready   { border-left: 3px solid var(--primary-color); }
.podcast-teaser--pending { border-left: 3px solid var(--border-color); opacity: 0.8; }

.podcast-teaser__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.podcast-teaser__icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.podcast-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.podcast-badge--ready   { background: #dcfce7; color: #166534; }
.podcast-badge--pending { background: #fef9c3; color: #854d0e; }

.podcast-teaser__content { flex: 1; }

.podcast-teaser__content h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.podcast-teaser__description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.podcast-teaser__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.875rem;
  margin-top: auto;
}

.podcast-teaser__date     { font-size: 0.8rem; color: var(--text-light); }
.podcast-teaser__duration { font-size: 0.8rem; color: var(--text-muted); }
.podcast-teaser__listen   { padding: 0.4rem 0.875rem; font-size: 0.875rem; }
.podcast-meta-duration    { font-size: 0.85rem; color: var(--text-muted); margin-left: 0.75rem; }

.podcast-full {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}

.podcast-header {
  text-align: center;
  margin-bottom: 2rem;
}

.podcast-category {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.podcast-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.podcast-meta { color: var(--text-light); font-size: 0.9rem; }

.podcast-player-container {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.podcast-player-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.player-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-content { flex: 1; }
.player-label { font-weight: 500; margin-bottom: 0.5rem; font-size: 1rem; }

.podcast-player-container audio {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

.podcast-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-top: 1.5rem;
}

.podcast-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.podcast-back-button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .public-how-it-works { grid-template-columns: 1fr; gap: 1rem; }
  .testimonial-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  [class*="layout--fourcol"] { grid-template-columns: 1fr 1fr !important; }
  [class*="layout--threecol"] { grid-template-columns: 1fr !important; }
  [class*="layout--twocol"] .layout__region { flex-direction: column; }
}

/* ── Generic public page (page.html.twig fallback) ────────────────────── */
.public-page-content {
  min-height: 60vh;
  padding: 2rem 0 3rem;
}

.public-page-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
