/* ======================================
   SCHOOL MODULE — PokerSchool Courses
   ====================================== */
/* ==============================
   SCHOOL HERO SECTION
============================== */

.school-hero {
  position: relative;
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  text-align: center;
  color: #111;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.school-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.school-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.school-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.school-hero .btn-primary {
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.school-hero .btn-primary:hover {
  background: #b71f1f;
}

/* ==============================
   ALTERNATIVE VERSION WITH IMAGE
============================== */

.school-hero.type-image {
  background-image: 
    linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.4)),
    url('/images/hero-poker-table-dark.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  border: none;
}

.school-hero.type-image .btn-primary {
  background: #fff;
  color: var(--brand-red);
}

.school-hero.type-image .btn-primary:hover {
  background: #f2f2f2;
}

/* Responsive */
@media (max-width: 768px) {
  .school-hero {
    padding: 80px 20px;
  }

  .school-hero h1 {
    font-size: 1.8rem;
  }

  .school-hero p {
    font-size: 1rem;
  }
}





.school-dashboard {
  width: 100%;
  background: var(--soft);
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.school-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text);
}

/* XP Progress */
.xp-progress {
  margin-bottom: 40px;
}

.xp-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.xp-bar {
  background: #eee;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
}

.xp-fill {
  background: linear-gradient(90deg, var(--brand-red), #b71f1f);
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.8s ease;
}

/* Level Grid */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Level Cards */
.level-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level-card:hover:not(.locked) {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.level-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin: 0;
}

.xp-range {
  font-size: 0.9rem;
  color: var(--muted);
}

.level-card p {
  color: var(--muted);
  margin: 10px 0 16px;
  line-height: 1.4;
}

/* Badges */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  background: #f4f4f4;
  color: #555;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 8px;
}

.badge.earned {
  background: #ffd700;
  color: #111;
  font-weight: 600;
}

/* Locked State */
.locked {
  opacity: 0.6;
  position: relative;
  pointer-events: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  font-weight: 600;
  color: var(--brand-red);
  font-size: 1rem;
  text-align: center;
}

/* Buttons */
.level-card .btn-primary {
  display: inline-block;
  text-align: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.level-card .btn-primary:hover {
  background: #b71f1f;
}

/* Responsive */
@media (max-width: 768px) {
  .school-dashboard {
    padding: 24px;
  }
  .school-title {
    text-align: center;
  }
  .xp-labels {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


/* ======================================
   DASHBOARD LAYOUT ENHANCEMENT
   ====================================== */

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Modules (Right Column) */
.module {
  background: #fff;
  margin-bottom:20px;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.module h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}

/* Progress module reuses XP bar styles */

/* Coach Tip Box */
.coach-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 14px;
}

.coach-tip-box .coach-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
  object-fit: cover;
}

.coach-tip-box p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Badge Module */
.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-grid .badge {
  background: #fff5f5;
  border: 1px solid #ffd700;
  color: #111;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

