:root {
  --bp-primary: #1a5f4a;
  --bp-primary-dark: #134636;
  --bp-accent: #f0a500;
  --bp-bg: #f4f7f5;
}

.board-prep-body {
  background: var(--bp-bg);
  min-height: 100vh;
}

.board-prep-nav {
  background: linear-gradient(135deg, var(--bp-primary), var(--bp-primary-dark));
}

.board-prep-nav .nav-link.active {
  font-weight: 600;
  text-decoration: underline;
}

.board-prep-hero {
  background: linear-gradient(135deg, var(--bp-primary), #2d8a6a);
  color: #fff;
  padding: 4rem 0;
}

.board-prep-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  overflow: hidden;
}

.board-prep-card .card-head {
  background: var(--bp-primary);
  color: #fff;
  padding: 1rem 1.25rem;
}

.board-prep-stat {
  border-left: 4px solid var(--bp-accent);
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.quiz-list-item {
  border: 1px solid #e5ece8;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: .75rem;
  background: #fff;
}

.board-prep-footer {
  border-top: 1px solid #dde5e0;
}

.btn-bp-primary {
  background: var(--bp-primary);
  border-color: var(--bp-primary);
  color: #fff;
}

.btn-bp-primary:hover {
  background: var(--bp-primary-dark);
  border-color: var(--bp-primary-dark);
  color: #fff;
}

.captcha-img {
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ced4da;
}

.bp-subject-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.bp-subject-card__toggle {
  color: #1a3d32;
  text-decoration: none !important;
  padding: 1rem 1.25rem;
  box-shadow: none;
}

.bp-subject-card__toggle:hover,
.bp-subject-card__toggle:focus {
  color: var(--bp-primary);
  text-decoration: none;
}

.bp-subject-card__toggle.collapsed .bp-subject-card__chevron {
  transform: rotate(-90deg);
}

.bp-subject-card__chevron {
  transition: transform .2s ease;
  color: #6c757d;
}

/* ===== Dashboard hero ===== */
.bp-dashboard-hero {
  padding: 0;
}

.bp-dashboard-hero__board {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, var(--bp-primary) 0%, #2d8a6a 55%, #3a9b78 100%);
  color: #fff;
}

.bp-board-logo-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bp-board-logo-wrap--placeholder {
  font-size: 2rem;
  color: var(--bp-primary);
}

.bp-board-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bp-board-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

.bp-board-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}

.bp-dashboard-hero__student {
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
}

.bp-student-chip {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 12px;
  padding: 0.35rem;
  transition: background 0.15s ease;
}

.bp-student-chip:hover {
  background: #f4f7f5;
  color: inherit;
}

.bp-student-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bp-accent);
  flex-shrink: 0;
}

.bp-student-meta {
  flex: 1;
  min-width: 0;
}

.bp-student-greeting {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bp-student-name {
  display: block;
  font-size: 1.15rem;
  color: #1a3d32;
  line-height: 1.3;
  word-break: break-word;
}

.bp-grade-badge {
  margin-top: 0.35rem;
  color: var(--bp-primary-dark) !important;
  font-weight: 600;
}

.bp-student-chevron {
  color: #adb5bd;
  font-size: 0.85rem;
}

.bp-stat-card {
  padding: 0.85rem 0.65rem;
}

.bp-stat-label {
  font-size: 0.7rem;
  line-height: 1.2;
}

@media (min-width: 576px) {
  .bp-stat-card {
    padding: 1rem 1.25rem;
  }

  .bp-stat-label {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  .bp-dashboard-hero__board {
    flex-direction: row;
    text-align: left;
    padding: 1.75rem 2rem;
    gap: 1.5rem;
  }

  .bp-board-logo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 18px;
  }

  .bp-board-title {
    font-size: 1.85rem;
  }

  .bp-dashboard-hero__student {
    padding: 1.25rem 2rem 1.5rem;
  }

  .bp-student-photo {
    width: 72px;
    height: 72px;
  }

  .bp-student-name {
    font-size: 1.35rem;
  }
}

@media (min-width: 992px) {
  .bp-board-title {
    font-size: 2.1rem;
  }

  .bp-board-logo-wrap {
    width: 120px;
    height: 120px;
  }
}

/* Mobile quiz list */
@media (max-width: 575.98px) {
  .quiz-list-item {
    flex-direction: column;
    align-items: stretch !important;
  }

  .quiz-list-item .btn {
    width: 100%;
    margin-top: 0.25rem;
  }

  .bp-subject-card__toggle {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .bp-subject-card__toggle .badge {
    display: block;
    margin-left: 0 !important;
    margin-top: 0.35rem;
    width: fit-content;
  }

  main.container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.board-prep-nav .navbar-nav {
  padding-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .board-prep-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
}
