/* Page-local layout to match the Learn mock */
.learn-page {
  padding: 0 7.5rem 6rem 7.5rem;
}

.learn-hero {
  margin-top: 4rem;
  margin-bottom: 3rem;
  text-align: center;
}

.learn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: #e5efff;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.learn-title {
  font-size: 3rem;
  font-weight: 800;
}

.learn-subtitle {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

.learn-filters {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.title-filter-container{
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.level-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f3f4f6;
  padding: 0.15rem;
  border-radius: 999px;
}

.level-tab {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
}

.level-tab.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.level-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.lesson-search-wrap {
  position: relative;
}

.lesson-search-input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.2rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  background: #ffffff;
}

.lesson-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #9ca3af;
}

.lesson-section-label {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
}

.lesson-list-status {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.lesson-list-status.is-error {
  color: #dc2626;
}

.lesson-list-status.is-empty {
  color: #6b7280;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lesson-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  background: #f9fafb;
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.lesson-thumb img {
  width: 96px;
  height: 96px;
  border-radius: 0.9rem;
  object-fit: cover;
}

.lesson-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.lesson-body p {
  font-size: 0.85rem;
  color: #6b7280;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.lesson-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lesson-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lesson-actions .btn {
  font-size: 0.8rem;
  padding-inline: 1.1rem;
}

.lesson-access-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.72rem;
  font-weight: 600;
}

.btn-more-info {
  border-radius: 999px;
  border: 1px solid #f97316;
  background: #fff7ed;
  color: #f97316;
  font-weight: 500;
  padding-inline: 1rem;
  font-size: 0.8rem;
}

.btn-more-info:hover {
  background: #ffedd5;
}

.learn-banner {
  margin-top: 5rem;
  background: #fff0e4;
  border-radius: 1.75rem;
  padding: 2.5rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.learn-banner h2 {
  margin-bottom: 0.75rem;
}

.learn-banner p {
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 26rem;
}

.learn-banner-phones {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
}

.phone-mock {
  width: 140px;
  height: 260px;
  border-radius: 1.75rem;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.learn-footer-row {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.85rem;
}

.learn-email-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.learn-email-form input[type="email"] {
  min-width: 220px;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

.learn-email-form .btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
  font-size: 0.85rem;
}

.learn-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.learn-store-badge {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.learn-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: #9ca3af;
  font-size: 0.8rem;
}

.learn-footer-meta a {
  color: inherit;
}

@media (max-width: 900px) {
  .learn-page {
    padding: 0 1.25rem 4rem 1.25rem;
  }

  .learn-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .learn-banner-phones {
    justify-content: center;
  }
}

@media (max-width: 400px){
  .lesson-card {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    background: #f9fafb;
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  }

  .lesson-list {
    gap: 3rem;
  }
}
