/* ==========================================================================
   STUDENT STATISTICS PAGE SPECIFIC STYLESHEET
   Sutapa Infotech Skills Foundation / IDST
   ========================================================================== */

/* Key Metrics Counter Cards */
.metric-stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 31, 77, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(0, 31, 77, 0.08);
  height: 100%;
}

.metric-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 31, 77, 0.12);
}

.metric-stat-card.card-saffron {
  border-bottom: 4px solid #ff9933;
}
.metric-stat-card.card-blue {
  border-bottom: 4px solid #005bc5;
}
.metric-stat-card.card-green {
  border-bottom: 4px solid #128807;
}
.metric-stat-card.card-purple {
  border-bottom: 4px solid #8b5cf6;
}

.metric-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.metric-stat-icon.icon-saffron { background: #fffeed; color: #ea580c; border: 1px solid rgba(234, 88, 12, 0.2); }
.metric-stat-icon.icon-blue { background: #eff6ff; color: #005bc5; border: 1px solid rgba(0, 91, 197, 0.2); }
.metric-stat-icon.icon-green { background: #f0fdf4; color: #128807; border: 1px solid rgba(18, 136, 7, 0.2); }
.metric-stat-icon.icon-purple { background: #f5f3ff; color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.2); }

.metric-stat-number {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: #001f4d;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0;
}

/* Year Filter Tabs */
.stats-filter-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: all 0.25s ease;
  cursor: pointer;
}

.stats-filter-btn:hover {
  background: #f1f5f9;
  color: #001f4d;
  border-color: #001f4d;
}

.stats-filter-btn.active {
  background: #001f4d;
  color: #ffffff;
  border-color: #001f4d;
  box-shadow: 0 4px 12px rgba(0, 31, 77, 0.2);
}

/* Course Progress Breakdown Cards */
.course-progress-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
}

.course-progress-card .progress {
  height: 10px;
  border-radius: 10px;
  background-color: #e2e8f0;
}

/* Topper Student Card */
.topper-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 31, 77, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.topper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 31, 77, 0.12);
  border-color: #ff9933;
}

.topper-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto 12px auto;
  display: block;
}

.topper-badge {
  background: linear-gradient(135deg, #ff9933 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
  .metric-stat-number {
    font-size: 1.65rem !important;
  }
  .metric-stat-card {
    padding: 16px 12px !important;
  }
  .metric-stat-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
  }
  .stats-filter-btn {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   CALL TO ACTION BANNER (HIGH CONTRAST NAVY & TRICOLOR STYLING)
   ========================================================================== */
.cta-section {
  padding: 50px 0 !important;
  background: linear-gradient(135deg, #001f4d 0%, #003b8e 50%, #071329 100%) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #ff9933 0%, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #128807 66.66%, #128807 100%);
  z-index: 5;
}

.cta-title {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: #ffffff !important;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.cta-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #cbd5e1 !important;
  max-width: 740px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.cta-btn-saffron {
  background: linear-gradient(135deg, #ff9933 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn-saffron:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(234, 88, 12, 0.5);
}

.cta-btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-btn-outline-white:hover {
  background: #ffffff;
  color: #001f4d !important;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

@media (max-width: 767.98px) {
  .cta-section {
    padding: 30px 0 !important;
  }
  .cta-title {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }
  .cta-subtitle {
    font-size: 0.84rem !important;
    margin-bottom: 20px !important;
  }
  .cta-btn-saffron,
  .cta-btn-outline-white {
    padding: 10px 22px !important;
    font-size: 0.8rem !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cta-title {
    font-size: 2rem !important;
    line-height: 1.28 !important;
  }
}
