/*==============================================================================
    HOME CATEGORIES
    File : public/assets/css/frontend/home/home.css
==============================================================================*/

.fe-home-categories {
  position: relative;
  overflow: hidden;
}

/* Decorative Background */

.fe-home-categories::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #2563eb20 0%, transparent 70%);
  top: -180px;
  left: -160px;
  pointer-events: none;
}

.fe-home-categories::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #f9731620 0%, transparent 70%);
  right: -150px;
  bottom: -180px;
  pointer-events: none;
}

/*==============================================================================
    HEADER
==============================================================================*/

.fe-section-header {
  max-width: 900px;
  margin: 0 auto 70px;
  text-align: center;
}

.fe-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 1.25rem;
}

.fe-section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 1rem;
}

.fe-section-title span {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fe-section-description {
  max-width: 760px;
  margin: 0 auto;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.9;
}

/*==============================================================================
    STATS
==============================================================================*/

.fe-home-categories-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 2.75rem;
}

.fe-stat-mini {
  min-width: 150px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: 0.35s;
}

.fe-stat-mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.fe-stat-mini strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #2563eb;
}

.fe-stat-mini span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.9rem;
}

/*==============================================================================
    GRID
==============================================================================*/

.fe-home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/*==============================================================================
    CARD
==============================================================================*/

.fe-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: 0.4s ease;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.05);
}

.fe-category-card:hover {
  transform: translateY(-10px);
  border-color: #2563eb33;
  box-shadow: 0 28px 60px rgba(37, 99, 235, 0.15);
}

/* Animated Glow */

.fe-category-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #2563eb18 0%, transparent 70%);
  right: -120px;
  top: -120px;
  transition: 0.45s;
}

.fe-category-card:hover .fe-category-glow {
  transform: scale(1.4);
}

/*==============================================================================
    TOP
==============================================================================*/

.fe-category-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.fe-category-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.fe-category-icon.academic {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.fe-category-icon.computer {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.fe-category-icon.competitive {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.fe-category-badge {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

/*==============================================================================
    CONTENT
==============================================================================*/

.fe-category-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.fe-category-card p {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

/*==============================================================================
    FEATURES
==============================================================================*/

.fe-category-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.fe-category-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #475569;
  font-size: 0.95rem;
}

.fe-category-features i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfeff;
  color: #0891b2;
  font-size: 0.8rem;
}

/*==============================================================================
    FOOTER
==============================================================================*/

.fe-category-footer {
  margin-top: auto;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
}

.fe-course-count {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.fe-arrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #2563eb;
  font-weight: 700;
  transition: 0.35s;
}

.fe-category-card:hover .fe-arrow {
  gap: 1rem;
}

/*==============================================================================
    HOVER EFFECT
==============================================================================*/

.fe-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, #2563eb40, #06b6d440, #f9731640);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.35s;
}

.fe-category-card:hover::before {
  opacity: 1;
}

/*==============================================================================
    RESPONSIVE
==============================================================================*/

@media (max-width: 992px) {
  .fe-home-category-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .fe-section-header {
    margin-bottom: 50px;
  }

  .fe-category-card {
    padding: 1.6rem;
  }

  .fe-home-categories-stats {
    gap: 12px;
  }

  .fe-stat-mini {
    min-width: 130px;
    padding: 16px;
  }
}

@media (max-width: 576px) {
  .fe-home-category-grid {
    grid-template-columns: 1fr;
  }

  .fe-category-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .fe-category-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .fe-home-categories-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
