/* Cadet College — scoped theme for /cadet-college pages */

:root {
  --cadet-olive: #3d4f2f;
  --cadet-navy: #1a2744;
  --cadet-gold: #c9a84c;
  --cadet-cream: #f7f5f0;
  --cadet-olive-light: #5a7048;
}

.bp-cadet-hero {
  background: linear-gradient(135deg, var(--cadet-navy) 0%, #243656 45%, var(--cadet-olive) 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.bp-cadet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.bp-cadet-hero--compact {
  padding: 2.5rem 0 2rem;
}

.bp-cadet-hero__badge,
.bp-cadet-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: #f3e6b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.bp-cadet-hero__title {
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.bp-cadet-hero__lead {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 36rem;
}

.bp-cadet-hero__sub {
  opacity: 0.82;
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.bp-cadet-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bp-cadet-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.bp-cadet-hero__stats strong {
  color: var(--cadet-gold);
}

.bp-cadet-btn {
  background: var(--cadet-gold) !important;
  border-color: var(--cadet-gold) !important;
  color: var(--cadet-navy) !important;
  font-weight: 700;
}

.bp-cadet-btn:hover {
  background: #dbb95a !important;
  border-color: #dbb95a !important;
  color: var(--cadet-navy) !important;
}

.bp-cadet-btn-outline {
  border: 1px solid var(--cadet-olive);
  color: var(--cadet-olive);
  background: transparent;
  font-weight: 600;
}

.bp-cadet-btn-outline:hover {
  background: var(--cadet-olive);
  color: #fff;
}

.bp-cadet-hero__visual {
  position: relative;
  min-height: 260px;
}

.bp-cadet-hero__shield {
  width: 180px;
  height: 200px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.25), rgba(61, 79, 47, 0.5));
  clip-path: polygon(50% 0%, 100% 18%, 100% 72%, 50% 100%, 0% 72%, 0% 18%);
  border: 2px solid rgba(201, 168, 76, 0.35);
}

.bp-cadet-hero__paper {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 120px;
  background: var(--cadet-cream);
  border-radius: 8px;
  padding: 1rem 0.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transform: rotate(6deg);
}

.bp-cadet-hero__paper-line {
  display: block;
  height: 6px;
  background: #d8d2c4;
  border-radius: 3px;
  margin-bottom: 0.45rem;
}

.bp-cadet-hero__paper-line--short {
  width: 65%;
}

.bp-cadet-hero__check {
  color: var(--cadet-olive);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.bp-cadet-hero__star {
  position: absolute;
  color: var(--cadet-gold);
  opacity: 0.7;
}

.bp-cadet-hero__star--1 { top: 12%; left: 10%; font-size: 1rem; }
.bp-cadet-hero__star--2 { top: 28%; right: 6%; font-size: 0.75rem; }

.bp-cadet-section {
  background: var(--cadet-cream);
}

.bp-cadet-section--alt {
  background: #fff;
}

.bp-cadet-heading {
  color: var(--cadet-navy);
  font-weight: 800;
}

.bp-cadet-class-card {
  background: #fff;
  border: 1px solid #e4dfd3;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bp-cadet-class-card:hover,
.bp-cadet-class-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 39, 68, 0.12);
  border-color: rgba(201, 168, 76, 0.5);
}

.bp-cadet-class-card__shield {
  width: 36px;
  height: 40px;
  background: linear-gradient(160deg, var(--cadet-gold), var(--cadet-olive));
  clip-path: polygon(50% 0%, 100% 20%, 100% 75%, 50% 100%, 0% 75%, 0% 20%);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.bp-cadet-class-card__label {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cadet-navy);
  margin-bottom: 0.35rem;
}

.bp-cadet-class-card__desc {
  color: #5c6470;
  font-size: 0.92rem;
  min-height: 2.75rem;
}

.bp-cadet-class-card__count {
  margin: 1rem 0;
  color: var(--cadet-olive);
}

.bp-cadet-subject-card {
  background: #fff;
  border: 1px solid #ebe6da;
  border-radius: 14px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.bp-cadet-subject-card:hover {
  border-color: var(--cadet-gold);
}

.bp-cadet-subject-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(61, 79, 47, 0.1);
  color: var(--cadet-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.bp-cadet-subject-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cadet-navy);
}

.bp-cadet-subject-card p {
  font-size: 0.88rem;
  color: #667085;
  margin-bottom: 0.5rem;
}

.bp-cadet-subject-card__count {
  font-size: 0.85rem;
  color: var(--cadet-olive);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bp-cadet-filter-chip.is-active {
  background: var(--cadet-navy);
  border-color: var(--cadet-navy);
  color: #fff;
}

.bp-cadet-benefit__icon {
  background: rgba(61, 79, 47, 0.12) !important;
  color: var(--cadet-olive) !important;
}

.bp-cadet-breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
}

.bp-cadet-breadcrumb a {
  color: #f3e6b8;
  text-decoration: none;
}

.bp-cadet-breadcrumb a:hover {
  text-decoration: underline;
}

.bp-cadet-mock-card .bp-quiz-card {
  border-left: 4px solid var(--cadet-gold);
}

.bp-cadet-promo-card {
  background: linear-gradient(135deg, #f7f5f0 0%, #eef3e8 100%);
  border: 1px solid #d9e0cf;
  border-radius: 16px;
}

.bp-cadet-promo-card__badge {
  display: inline-block;
  background: var(--cadet-navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
  .bp-cadet-hero {
    padding: 3rem 0 2.5rem;
  }

  .bp-cadet-hero__visual {
    min-height: 200px;
    margin-top: 1rem;
  }

  .bp-cadet-hero__shield {
    width: 140px;
    height: 155px;
  }

  .bp-quick-filters {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 0.25rem;
  }

  .bp-cadet-filter-chip {
    flex: 0 0 auto;
  }
}
