/*==============================================================================
    HOME PAGE
    File: public/assets/css/frontend/home/home.css
    Project: GyanPeeth Academy
    Purpose:
    Contains ONLY Home Page section layouts.
==============================================================================*/

/*==============================================================================
    SECTION SPACING
==============================================================================*/

.fe-home-section {
  position: relative;
  padding: 90px 0;
}

.fe-home-section:nth-child(even) {
  background: #f8fafc;
}

.fe-home-container {
  width: min(1280px, 92%);
  margin: auto;
}

/*==============================================================================
    SECTION HEADER
==============================================================================*/

.fe-home-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.fe-home-header .fe-badge {
  margin-bottom: 18px;
}

.fe-home-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--fe-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.fe-home-text {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.8;
}

/*==============================================================================
    STATS
==============================================================================*/

.fe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fe-stat-card {
  background: #fff;
  border-radius: 24px;
  padding: 35px;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: 0.35s;
}

.fe-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.fe-stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  display: grid;
  place-items: center;
  margin: auto;
  font-size: 28px;
  margin-bottom: 22px;
}

.fe-stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--fe-dark);
}

.fe-stat-label {
  color: #64748b;
  margin-top: 10px;
}

/*==============================================================================
    FEATURES
==============================================================================*/

.fe-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.fe-feature {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  transition: 0.35s;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.fe-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
}

.fe-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.fe-feature h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  color: #0f172a;
}

.fe-feature p {
  color: #64748b;
  line-height: 1.8;
}

/*==============================================================================
    CTA
==============================================================================*/

.fe-home-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 40px;
  padding: 80px;
  text-align: center;
}

.fe-home-cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.fe-home-cta p {
  opacity: 0.9;
  max-width: 700px;
  margin: auto;
  margin-bottom: 35px;
}

/*==============================================================================
    SHAPES
==============================================================================*/

.fe-home-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.05);
  top: -120px;
  right: -120px;
  z-index: -1;
}

.fe-home-section::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.05);
  bottom: -100px;
  left: -80px;
  z-index: -1;
}

/*==============================================================================
    RESPONSIVE
==============================================================================*/

@media (max-width: 992px) {
  .fe-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .fe-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .fe-home-cta {
    padding: 60px 35px;
  }
}

@media (max-width: 768px) {
  .fe-home-section {
    padding: 70px 0;
  }

  .fe-home-header {
    margin-bottom: 45px;
  }

  .fe-stats {
    grid-template-columns: 1fr;
  }

  .fe-features {
    grid-template-columns: 1fr;
  }

  .fe-stat-card,
  .fe-feature {
    padding: 28px;
  }

  .fe-home-cta {
    padding: 50px 25px;
    border-radius: 28px;
  }
}

@media (max-width: 480px) {
  .fe-home-title {
    font-size: 2rem;
  }

  .fe-home-text {
    font-size: 0.95rem;
  }

  .fe-home-cta h2 {
    font-size: 2rem;
  }
}
