/* =========================
   LESSONS HERO
========================= */

.lessons-hero {
  position: relative;
  padding: 190px 40px 110px;
  text-align: center;
  max-width: 1280px;
  margin: auto;
}

.lessons-hero::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,79,0.08), transparent 70%);
  top: 40px;
  left: -120px;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(45,106,79,0.10);
  border: 1px solid rgba(45,106,79,0.08);
  color: #2D6A4F;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin-bottom: 34px;
  backdrop-filter: blur(10px);
}

.lessons-hero h1 {
  font-size: 76px;
  line-height: 1.02;
  font-weight: 900;
  margin-bottom: 28px;
  letter-spacing: -2px;
  color: #1B4332;
}

.lessons-hero p {
  max-width: 820px;
  margin: auto;
  line-height: 1.95;
  font-size: 20px;
  color: #555;
}

/* =========================
   FILTERS
========================= */

.filters-section {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px 70px;
}

.search-box {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 28px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.search-box i {
  color: #2D6A4F;
  font-size: 18px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 17px;
  color: #1B4332;
}

.filter-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  border: none;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: rgba(255,255,255,0.82);
  color: #1B4332;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  color: white;
}

/* =========================
   LESSONS CONTAINER
========================= */

.lessons-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px 120px;
}

/* =========================
   GRID
========================= */

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

/* =========================
   CARD
========================= */

.lesson-card {
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(12px);
  border-radius: 34px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 45px rgba(0,0,0,0.05);
}

.lesson-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.10);
}

.lesson-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.lesson-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.42), rgba(0,0,0,0.04));
}

.lesson-content {
  padding: 32px;
}

.lesson-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-pill {
  background: rgba(45,106,79,0.08);
  color: #2D6A4F;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.lesson-content h3 {
  font-size: 30px;
  margin-bottom: 18px;
  color: #1B4332;
  font-weight: 900;
}

.lesson-content p {
  color: #666;
  line-height: 1.9;
  margin-bottom: 28px;
}

.lesson-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #1B4332;
}

/* =========================
   EMPTY / ERROR
========================= */

.no-results {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255,255,255,0.75);
  border-radius: 34px;
  color: #666;
}

/* =========================
   PAGINATION (FIXED)
========================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.page-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  color: #1B4332;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.page-btn:hover {
  transform: translateY(-2px);
}

.page-btn.active {
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  color: white;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .lessons-hero h1 {
    font-size: 56px;
  }

  .lessons-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 700px) {

  .lessons-hero {
    padding: 150px 24px 70px;
  }

  .lessons-hero h1 {
    font-size: 42px;
  }

  .lessons-hero p {
    font-size: 18px;
  }

  .filters-section,
  .lessons-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .search-box {
    padding: 18px 20px;
  }

  .lesson-content {
    padding: 26px;
  }

  .lesson-content h3 {
    font-size: 26px;
  }

  .lesson-image {
    height: 220px;
  }

  .filter-buttons {
    gap: 12px;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }
}