/**
 * Titan Course Archive - Stylesheet
 *
 * Scoped, responsive styling for Titan Course Archive Elementor Widget.
 *
 * @package Prawal_Custom_Widgets
 */

/* ==========================================================================
   1. RESET & BASE WRAPPER
   ========================================================================== */

.tca-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
}

.tca-wrapper *,
.tca-wrapper *::before,
.tca-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   2. TOOLBAR (COUNTER, SORTING, VIEW SWITCHER)
   ========================================================================== */

.tca-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tca-toolbar__left,
.tca-toolbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tca-drawer-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tca-drawer-toggle-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.tca-results-counter {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

/* SORTING DROPDOWN */
.tca-sorting-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tca-sorting-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
}

.tca-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tca-sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 32px 8px 14px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tca-sort-select:focus {
  outline: none;
  border-color: #0866e8;
  box-shadow: 0 0 0 3px rgba(8, 102, 232, 0.15);
}

.tca-select-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  font-size: 11px;
  color: #64748b;
}

/* VIEW SWITCHER */
.tca-view-switcher {
  display: inline-flex;
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.tca-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tca-view-btn:hover {
  color: #0f172a;
}

.tca-view-btn--active {
  background-color: #ffffff;
  color: #0866e8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   3. ACTIVE FILTER CHIPS
   ========================================================================== */

.tca-active-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tca-chips-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.tca-chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tca-chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: #e0f2fe;
  color: #0369a1;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.tca-chip-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.tca-chip-remove:hover {
  opacity: 1;
}

.tca-clear-all-chips-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #ef4444;
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================================================================
   4. ARCHIVE LAYOUT: SIDEBAR + CONTENT AREA
   ========================================================================== */

.tca-layout {
  display: block;
  width: 100%;
}

.tca-layout--with-sidebar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}

.tca-layout--sidebar-right {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.tca-layout--sidebar-right .tca-sidebar-wrap {
  order: 2;
}

.tca-layout--sidebar-right .tca-content-area {
  order: 1;
}

/* ==========================================================================
   5. FILTER PANEL & ACCORDIONS
   ========================================================================== */

.tca-filters {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tca-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.tca-filters__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.tca-filters__reset-btn {
  background: none;
  border: none;
  padding: 0;
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.tca-filters__close-drawer-btn {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
}

/* SEARCH INPUT */
.tca-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.tca-search-box svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.tca-search-input {
  width: 100%;
  padding: 9px 30px 9px 36px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  color: #0f172a;
  transition: all 0.2s ease;
}

.tca-search-input:focus {
  outline: none;
  border-color: #0866e8;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 102, 232, 0.12);
}

.tca-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
}

/* FILTER GROUP ACCORDION */
.tca-filter-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
}

.tca-filter-group__header * {
  pointer-events: none;
}

.tca-group-toggle {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.tca-filter-group--collapsed .tca-group-toggle {
  transform: rotate(-90deg);
}

.tca-filter-group--collapsed .tca-filter-group__content {
  display: none !important;
}

.tca-checkbox-list,
.tca-radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.tca-filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.tca-filter-label input {
  display: none;
}

.tca-checkbox-box,
.tca-radio-box {
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tca-radio-box {
  border-radius: 50%;
}

.tca-filter-label input:checked + .tca-checkbox-box {
  background-color: #0866e8;
  border-color: #0866e8;
}

.tca-filter-label input:checked + .tca-checkbox-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.tca-filter-label input:checked + .tca-radio-box {
  border-color: #0866e8;
}

.tca-filter-label input:checked + .tca-radio-box::after {
  content: "";
  width: 7px;
  height: 7px;
  background-color: #0866e8;
  border-radius: 50%;
}

.tca-count {
  margin-left: auto;
  font-size: 11.5px;
  color: #94a3b8;
}

/* ACCORDION INLINE SEARCH */
.tca-accordion-search {
  position: relative;
  margin: 6px 0 10px 0;
}

.tca-accordion-search svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.tca-accordion-search-input {
  width: 100%;
  padding: 6px 10px 6px 28px;
  font-size: 12.5px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  background-color: #f8fafc;
  color: #1e293b;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.tca-accordion-search-input:focus {
  border-color: #0866e8;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(8, 102, 232, 0.08);
}

/* DROPDOWN / SELECT FILTER */
.tca-select-wrapper {
  margin-top: 6px;
}

.tca-filter-select {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  background-color: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.tca-filter-select:focus {
  border-color: #0866e8;
  background-color: #ffffff;
}

/* PILLS / BUTTON FILTER */
.tca-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tca-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tca-filter-pill:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.tca-filter-pill--active {
  background-color: #0866e8;
  border-color: #0866e8;
  color: #ffffff !important;
}

.tca-filter-pill--active .tca-count {
  color: rgba(255, 255, 255, 0.85);
}

/* PRICE RANGE FILTER WITH DUAL SLIDER & CARDS */
.tca-price-filter-wrap {
  padding: 4px 0 8px 0;
}

.tca-price-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.tca-price-slider-container {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  touch-action: none;
}

.tca-price-slider-track {
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: #eceef2;
  border-radius: 4px;
}

.tca-price-slider-fill {
  position: absolute;
  height: 6px;
  background-color: #84cc16;
  border-radius: 4px;
  z-index: 1;
}

.tca-range-slider {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.tca-range-slider::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.tca-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.tca-range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.25);
}

.tca-range-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: grab;
}

.tca-price-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tca-price-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.tca-price-card:focus-within {
  background-color: #ffffff;
  border-color: #84cc16;
  box-shadow: 0 0 0 2px rgba(132, 204, 22, 0.12);
}

.tca-price-card__label {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

.tca-price-card__input-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tca-price-card__symbol {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.tca-price-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
}

.tca-price-input::-webkit-outer-spin-button,
.tca-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tca-price-presets-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tca-price-presets-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tca-price-preset-btn {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tca-price-preset-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.tca-price-preset-btn--active {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
}

.tca-price-matching-count {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}

/* TOP HORIZONTAL FILTER BAR */
.tca-top-filter-bar {
  margin-bottom: 24px;
}

.tca-top-filter-bar .tca-filters {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
}

.tca-top-filter-bar .tca-filter-group {
  position: relative;
}

/* ==========================================================================
   6. CARDS CONTAINER (GRID & LIST)
   ========================================================================= */

.tca-content-area {
  position: relative;
  min-width: 0;
}

.tca-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.tca-cards-container {
  width: 100%;
  box-sizing: border-box;
}

/* GRID VIEW */
.tca-cards-container--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* LIST VIEW */
.tca-cards-container--list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* EQUAL HEIGHT CARDS */
.tca-equal-height .tca-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tca-equal-height .tca-card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tca-equal-height .tca-card__footer {
  margin-top: auto;
}

/* BASE CARD CONTAINER */
.tca-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tca-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  border-color: #cbd5e1;
}

/* THUMBNAIL MEDIA */
.tca-card__media {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #0f172a;
  overflow: hidden;
}

.tca-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tca-card:hover .tca-card__media img {
  transform: scale(1.05);
}

.tca-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background-color: #0866e8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  z-index: 2;
}

.tca-badge--free { background-color: #10b981; }
.tca-badge--sale { background-color: #ef4444; }
.tca-badge--featured { background-color: #f59e0b; }

.tca-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.tca-wishlist-btn:hover,
.tca-wishlist-btn--active {
  background-color: #ffffff;
  color: #ef4444;
}

/* CARD BODY */
.tca-card__body {
  padding: 18px;
}

.tca-card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tca-category-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #0866e8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
}

.tca-rating-compact {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #f59e0b;
}

.tca-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.tca-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tca-card__title a:hover {
  color: #0866e8;
}

.tca-card__desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tca-card__chips {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tca-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
}

.tca-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.tca-card__price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tca-price--current,
.tca-price-current {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.tca-price--regular,
.tca-price-original {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1;
}

.tca-price--free {
  font-size: 17px;
  font-weight: 800;
  color: #10b981;
}

.tca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tca-btn--primary {
  background-color: #0866e8;
  color: #ffffff;
}

.tca-btn--primary:hover {
  background-color: #0654be;
  color: #ffffff;
  transform: translateY(-1px);
}

.tca-btn--secondary {
  background-color: #f1f5f9;
  color: #1e293b;
}

.tca-btn--block {
  width: 100%;
}

/* ==========================================================================
   7. LIST VIEW SPECIFICS
   ========================================================================== */

.tca-card--list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.tca-card__media--list {
  width: 280px;
  height: auto;
  flex-shrink: 0;
}

.tca-card__body--list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tca-card__footer--list {
  margin-top: auto;
}

.tca-card__instructor-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tca-instructor-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.tca-instructor-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.tca-card__action-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* COMPACT HORIZONTAL LIST DESIGN */
.tca-card__compact-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 18px;
  width: 100%;
}

.tca-compact-thumb {
  width: 70px;
  height: 55px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.tca-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tca-compact-info {
  flex-grow: 1;
}

.tca-compact-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.tca-compact-meta {
  font-size: 12px;
  color: #64748b;
}

.tca-compact-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tca-compact-price {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

/* ==========================================================================
   8. PAGINATION & LOAD MORE
   ========================================================================== */

.tca-pagination-container {
  margin-top: 36px;
  text-align: center;
}

.tca-pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tca-page-item .tca-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tca-page-item .tca-page-link:hover {
  border-color: #0866e8;
  color: #0866e8;
}

.tca-page-item--active .tca-page-link {
  background-color: #0866e8;
  border-color: #0866e8;
  color: #ffffff !important;
}

.tca-page-ellipsis {
  padding: 0 6px;
  color: #94a3b8;
}

/* LOAD MORE */
.tca-load-more-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tca-load-more-stats {
  font-size: 13.5px;
  color: #64748b;
}

.tca-progress-bar {
  width: 180px;
  height: 5px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 8px auto 0;
}

.tca-progress-bar__fill {
  height: 100%;
  background-color: #0866e8;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.tca-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  background-color: #0866e8;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tca-load-more-btn:hover {
  background-color: #0654be;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(8, 102, 232, 0.25);
}

.tca-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: tca-spin 0.8s linear infinite;
}

.tca-spinner-large {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(8, 102, 232, 0.2);
  border-top-color: #0866e8;
  border-radius: 50%;
  animation: tca-spin 0.8s linear infinite;
}

@keyframes tca-spin {
  to { transform: rotate(360deg); }
}

/* NO RESULTS */
.tca-no-results {
  text-align: center;
  padding: 50px 20px;
  background-color: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
}

.tca-no-results__icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.tca-no-results__title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
}

.tca-no-results__desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 18px;
}

/* ==========================================================================
   9. MOBILE OFF-CANVAS DRAWER & RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .tca-layout--with-sidebar {
    grid-template-columns: 1fr;
  }

  .tca-sidebar-wrap {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    z-index: 9999;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .tca-sidebar-wrap.tca-drawer--open {
    left: 0;
  }

  .tca-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
    display: none;
  }

  .tca-sidebar-wrap.tca-drawer--open .tca-drawer-backdrop {
    display: block;
  }

  .tca-drawer-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: #ffffff;
  }

  .tca-filters__close-drawer-btn {
    display: block;
  }

  .tca-cards-container--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tca-cards-container--grid {
    grid-template-columns: 1fr;
  }

  .tca-card--list {
    flex-direction: column;
  }

  .tca-card__media--list {
    width: 100%;
    height: 180px;
  }

  .tca-card__compact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tca-compact-action {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   CUSTOM CARD BUILDER & ELEMENTOR SAVED TEMPLATE
   ========================================================================= */

.tca-custom-template-placeholder {
  padding: 36px 24px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background-color: #f8fafc;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.tca-custom-template-placeholder strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 6px;
}

.tca-custom-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.tca-custom-card-body--list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.tca-elem-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.tca-elem-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.tca-elem-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.tca-elem-title a {
  color: #0f172a;
  text-decoration: none;
}

.tca-elem-desc p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.tca-elem-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.tca-elem-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tca-elem-instructor .tca-instructor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.tca-elem-price {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.tca-elem-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 4px 0;
}
