/* ============================================================
   iThanks – Thank List Page
   (Card styles reused from ithanks-home.css .ithanks-card--thanks)
   ============================================================ */

/* Header – same style as stories page */
.ithanks-tl__header {
  padding: 0;
}
.ithanks-tl__title {
  margin-bottom: 0.5rem;
  color: var(--ithanks-se-100);
  padding-top: 3rem;
}
.ithanks-tl__subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 0;
  padding-bottom: 2rem;
}

/* Filter */
.ithanks-tl__filter {
  background: #f8f9fa;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 10;
}
.ithanks-tl__filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* Select dropdown */
.ithanks-tl__filter-select {
  position: relative;
}
.ithanks-tl__select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #dee2e6;
  border-radius: 24px;
  padding: 8px 40px 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s;
}
.ithanks-tl__select:focus {
  outline: none;
  border-color: #0a2e6c;
}
.ithanks-tl__select:hover {
  border-color: #0a2e6c;
}

/* Search */
.ithanks-tl__filter-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 24px;
  overflow: hidden;
  min-width: 280px;
}
.ithanks-tl__search-input {
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  flex: 1;
  background: transparent;
}
.ithanks-tl__search-btn {
  border: none;
  background: none;
  padding: 8px 14px;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.ithanks-tl__search-btn:hover {
  color: #0a2e6c;
}

/* Card List */
.ithanks-tl__list {
  padding: 32px 0 48px;
}

/* Match card height with homepage (526px) */
.ithanks-tl__list .ithanks-card--thanks {
  height: 526px;
}

/* Pagination */
.ithanks-tl__pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.ithanks-tl__pagination .pagination {
  margin: 0;
}
.ithanks-tl__pagination .page-link {
  color: #0a2e6c;
  border-radius: 8px;
  margin: 0 2px;
  border-color: #dee2e6;
}
.ithanks-tl__pagination .page-item.active .page-link {
  background-color: #0a2e6c;
  border-color: #0a2e6c;
  color: #fff;
}

/* Empty state */
.ithanks-tl__empty {
  text-align: center;
  padding: 64px 20px;
  color: #777;
}
.ithanks-tl__empty p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Button */
.ithanks-btn--primary {
  display: inline-block;
  padding: 12px 32px;
  background: #0a2e6c;
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.ithanks-btn--primary:hover {
  background: #1a5276;
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 767px) {
  .ithanks-tl__title {
    font-size: 1.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  .ithanks-tl__filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ithanks-tl__select {
    width: 100%;
    min-width: auto;
  }
  .ithanks-tl__filter-search {
    min-width: auto;
  }
  .ithanks-tl__list .ithanks-card--thanks {
    height: auto;
    min-height: 420px;
  }
}
