/* =========================
   PAGE
========================= */

body {
  font-family: 'Inter', sans-serif;
  background: #F7FBF8;
  margin: 0;
}

/* =========================
   HERO
========================= */

.lessons-hero {
  padding: 160px 40px 60px;
  text-align: center;
  max-width: 1100px;
  margin: auto;
}

.hero-badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(45,106,79,0.1);
  color: #2D6A4F;
  font-weight: 800;
  margin-bottom: 20px;
}

/* =========================
   SEARCH
========================= */

.search-box {
  position: relative;

  margin-top: 30px;

  background: white;

  padding: 16px 20px;

  border-radius: 18px;

  max-width: 600px;

  margin-left: auto;
  margin-right: auto;

  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #1B4332;
}

/* =========================
   SEARCH RESULTS
========================= */

.search-results {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;

  background: white;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 20px 40px rgba(0,0,0,0.08);

  z-index: 99;
}

.search-item {
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: 0.2s ease;
}

.search-item:hover {
  background: #F3F8F5;
}

/* =========================
   CONTAINER
========================= */

.dictionary-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px 100px;
}

/* =========================
   LETTER NAV
========================= */

.letter-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 18px;

  margin-top: 10px;
}

.letter-btn {
  height: 90px;

  border: none;
  border-radius: 22px;

  background: white;

  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 900;

  color: #1B4332;

  cursor: pointer;

  box-shadow: 0 12px 30px rgba(0,0,0,0.05);

  transition: 0.25s ease;

  font-feature-settings: "liga" 1, "calt" 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.letter-btn:hover {
  transform: translateY(-4px);
  background: #1B4332;
  color: white;
}

/* =========================
   DICTIONARY HOME BUTTON
========================= */

.dictionary-home-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0 35px;
}

.dictionary-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 28px;

  border-radius: 999px;

  background: #1B4332;
  color: white;

  font-size: 15px;
  font-weight: 800;

  text-decoration: none;

  box-shadow: 0 12px 30px rgba(27,67,50,0.18);

  transition: 0.3s ease;
}

.dictionary-home-link:hover {
  transform: translateY(-3px);
  background: #24543f;
}

/* =========================
   LETTER HEADING
========================= */

.letter-heading {
  font-family: 'Inter', sans-serif;

  font-size: 48px;
  font-weight: 900;

  color: #1B4332;

  text-align: center;

  margin-bottom: 30px;

  font-feature-settings: "liga" 1, "calt" 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   WORD GRID
========================= */

.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.word-card {
  background: white;

  border-radius: 22px;

  padding: 22px;

  text-decoration: none;

  color: inherit;

  box-shadow: 0 10px 25px rgba(0,0,0,0.04);

  transition: 0.25s ease;
}

.word-card:hover {
  transform: translateY(-4px);
}

.word-title {
  font-family: 'Inter', sans-serif;

  font-size: 28px;
  font-weight: 900;

  color: #1B4332;

  margin-bottom: 8px;

  font-feature-settings: "liga" 1, "calt" 1;
}

.word-meaning {
  color: #666;
  font-size: 14px;
}

/* =========================
   PAGINATION
========================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;

  margin-top: 50px;
}

.page-btn {
  width: 46px;
  height: 46px;

  border: none;
  border-radius: 14px;

  background: white;

  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 10px 20px rgba(0,0,0,0.05);

  transition: 0.2s ease;
}

.page-btn:hover {
  transform: translateY(-2px);
}

.page-btn.active {
  background: #1B4332;
  color: white;
}

/* =========================
   EMPTY STATE
========================= */

.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: #1B4332;
}

.no-results p {
  color: #666;
  font-size: 17px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .lessons-hero {
    padding: 140px 20px 40px;
  }

  .dictionary-container {
    padding: 0 20px 80px;
  }

  .letter-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .letter-btn {
    height: 74px;
    font-size: 26px;
  }

  .letter-heading {
    font-size: 40px;
  }

  .word-title {
    font-size: 24px;
  }
}