/* ===== GIA SƯ TIÊU BIỂU PAGE ===== */

/* Page wrapper */
.gtb-page { background: #f5f6fa; min-height: 60vh; }

/* Hero banner */
.gtb-hero {
  background: #fff;
  padding: 36px 0 0;
  text-align: center;
  border-bottom: 1px solid #e8ecf4;
}
.gtb-hero-title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 2rem; font-weight: 900; color: #0a1f44;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.gtb-hero-title .wheat-icon { color: #c8960c; font-size: 1.5rem; }
.gtb-hero-subtitle { font-size: 0.95rem; color: #555; margin-bottom: 28px; }
.gtb-hero-subtitle strong { color: #e07018; }

/* Stats bar */
.gtb-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 80px; flex-wrap: wrap;
  background: #fff;
  padding: 18px 24px;
}
.gtb-stat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.gtb-stat-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.gtb-stat-icon.orange { background: rgba(240,124,26,0.12); color: #e07018; }
.gtb-stat-icon.yellow { background: rgba(200,150,12,0.12); color: #c8960c; }
.gtb-stat-icon.blue   { background: rgba(10,31,68,0.10); color: #0a1f44; }
.gtb-stat-icon.green  { background: rgba(22,163,74,0.10); color: #16a34a; }
.gtb-stat-text { display: flex; flex-direction: column; text-align: left; }
.gtb-stat-number { font-size: 1.3rem; font-weight: 900; color: #0a1f44; line-height: 1; }
.gtb-stat-label { font-size: 0.78rem; color: #777; margin-top: 3px; }

/* Filter bar */
.gtb-filter-wrap {
  background: #f5f6fa;
  padding: 24px 0 0;
}
.gtb-filter-bar {
  background: #fff; border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 2px 16px rgba(10,31,68,0.07);
  display: flex; gap: 10px; flex-wrap: nowrap; align-items: flex-end;
  margin-bottom: 24px;
}
.gtb-filter-group {
  display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0;
}
.gtb-filter-label {
  font-size: 0.72rem; font-weight: 600; color: #666; white-space: nowrap;
}
.gtb-filter-btn {
  display: flex; align-items: flex-end; flex-shrink: 0;
  gap: 10px;
}
.gtb-filter-btn.has-reset {
  align-items: stretch;
}

/* Custom select dropdown */
.gtb-cselect {
  position: relative;
  user-select: none;
}
.gtb-cselect-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  border: 1.5px solid #dde2ef; border-radius: 7px;
  font-size: 0.84rem; color: #333; background: #fff; cursor: pointer;
  white-space: nowrap; gap: 8px;
  transition: border-color 0.18s;
}
.gtb-cselect.is-disabled .gtb-cselect-trigger {
  background: #f3f6fb;
  color: #94a3b8;
  cursor: not-allowed;
}
.gtb-cselect.is-disabled .gtb-cselect-trigger i {
  color: #cbd5e1;
}
.gtb-cselect-trigger i {
  font-size: 0.7rem; color: #999; transition: transform 0.2s; flex-shrink: 0;
}
.gtb-cselect.open .gtb-cselect-trigger {
  border-color: #e07018;
}
.gtb-cselect.open .gtb-cselect-trigger i {
  transform: rotate(180deg);
}
.gtb-cselect-dropdown {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 100%; z-index: 999;
  background: #fff; border: 1.5px solid #dde2ef; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(10,31,68,0.13);
  overflow: hidden;
  max-height: 220px; overflow-y: auto;
}
.gtb-cselect.open .gtb-cselect-dropdown { display: block; }
.gtb-cselect-option {
  padding: 9px 14px;
  font-size: 0.84rem; color: #333; cursor: pointer;
  transition: background 0.12s;
}
.gtb-cselect-option:hover { background: #f5f6fa; }
.gtb-cselect-option.gtb-csel-active { color: #e07018; font-weight: 600; }

/* Search inside dropdown */
.gtb-cselect-search {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.gtb-cselect-search input {
  width: 100%; box-sizing: border-box;
  padding: 6px 10px 6px 28px;
  border: 1.5px solid #dde2ef; border-radius: 6px;
  font-size: 0.8rem; color: #333; outline: none;
  background: #f8f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 8px center;
  background-size: 13px;
}
.gtb-cselect-search input:focus { border-color: #e07018; }
.gtb-cselect-option.gtb-hidden { display: none; }
.gtb-cselect-empty {
  padding: 10px 14px; font-size: 0.82rem; color: #aaa; display: none;
}
.gtb-empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  box-shadow: 0 2px 14px rgba(10,31,68,0.08);
}
.gtb-search-btn {
  display: flex; align-items: center; gap: 8px;
  background: #0a1f44; color: #fff; font-weight: 700;
  padding: 10px 24px; border-radius: 7px; font-size: 0.9rem;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.gtb-search-btn:hover { background: #122b5e; }
.gtb-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 7px;
  border: 1.5px solid #d8e0ef;
  background: #fff;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.gtb-reset-btn:hover {
  border-color: #e07018;
  color: #e07018;
  background: #fff8f1;
}

/* Grid */
.gtb-content { padding: 0 0 40px; background: #f5f6fa; }
.gtb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

/* Page bottom spacing — always present even after button hidden */
.gtb-page { padding-bottom: 48px; }

/* Load more */
.gtb-loadmore {
  text-align: center;
  padding-bottom: 8px;
}
.gtb-loadmore-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 36px; border-radius: 10px;
  border: 2px solid #0a1f44; background: transparent;
  color: #0a1f44; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s;
}
.gtb-loadmore-btn:hover {
  background: #0a1f44; color: #fff;
}

/* Tutor card */
.gtb-card {
  background: #fff; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(10,31,68,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.gtb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(10,31,68,0.14);
}

/* Photo area */
.gtb-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #e8ecf4;
}
.gtb-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
.gtb-verified-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(10,31,68,0.85);
  color: #fff; font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(4px);
}
.gtb-verified-badge i { color: #5bc6ff; font-size: 0.72rem; }
.gtb-rank-badge {
  position: absolute; top: 10px; left: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #c8960c; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* Card body */
.gtb-card-body {
  padding: 14px 14px 12px;
  flex: 1; display: flex; flex-direction: column; gap: 0;
}
.gtb-card-name {
  font-size: 1rem; font-weight: 800; color: #0a1f44;
  margin-bottom: 6px; line-height: 1.3;
}
.gtb-card-specialty {
  font-size: 0.8rem; font-weight: 700; color: #e07018;
  margin-bottom: 5px;
}
.gtb-card-school {
  font-size: 0.75rem; color: #666; margin-bottom: 12px; line-height: 1.5;
}
.gtb-card-stars {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.78rem; color: #f59e0b; margin-bottom: 8px;
}
.gtb-card-stars span { color: #888; }

/* Location & price */
.gtb-card-meta {
  display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px;
}
.gtb-card-meta-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: #555;
}
.gtb-card-meta-row i { color: #e07018; font-size: 0.72rem; width: 12px; }

/* Button */
.gtb-card-btn {
  display: block; width: 100%;
  padding: 10px 0; border-radius: 7px;
  font-size: 0.85rem; font-weight: 700;
  text-align: center; cursor: pointer;
  transition: all 0.2s; border: none;
  text-decoration: none;
}
.gtb-card-btn.primary {
  background: #e07018; color: #fff;
}
.gtb-card-btn.primary:hover { background: #c8600f; }
.gtb-card-btn.secondary {
  background: #0a1f44; color: #fff;
}
.gtb-card-btn.secondary:hover { background: #e07018; }

/* Trust bar */
.gtb-trust {
  background: #0a1f44;
  padding: 22px 0;
}
.gtb-trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.gtb-trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex: 1; min-width: 160px;
}
.gtb-trust-item:last-child { border-right: none; }
.gtb-trust-icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 1rem; flex-shrink: 0;
}
.gtb-trust-text { display: flex; flex-direction: column; }
.gtb-trust-title { font-size: 0.85rem; font-weight: 700; color: #fff; }
.gtb-trust-sub { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* Pagination / load more */
.gtb-loadmore {
  text-align: center; padding: 20px 0 10px;
}
.gtb-loadmore-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid #0a1f44; color: #0a1f44; font-weight: 700;
  padding: 12px 32px; border-radius: 7px; font-size: 0.9rem;
  background: transparent; cursor: pointer; transition: all 0.2s;
}
.gtb-loadmore-btn:hover { background: #0a1f44; color: #fff; }

/* Responsive */
@media (max-width: 1200px) {
  .gtb-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .gtb-grid { grid-template-columns: repeat(3, 1fr); }
  .gtb-stat-item { padding: 14px 20px; }
  .gtb-trust-item { padding: 12px 18px; min-width: 140px; }
}
@media (max-width: 640px) {
  .gtb-grid { grid-template-columns: repeat(2, 1fr); }
  .gtb-hero-title { font-size: 1.4rem; }
  .gtb-filter-wrap {
    padding: 16px 0 0;
  }
  .gtb-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    padding: 18px 16px;
  }
  .gtb-filter-location { flex-direction: column; }
  .gtb-filter-group,
  .gtb-filter-btn {
    width: 100%;
  }
  .gtb-filter-btn {
    grid-column: 1 / -1;
  }
  .gtb-filter-label {
    font-size: 0.8rem;
    white-space: normal;
  }
  .gtb-cselect,
  .gtb-cselect-trigger,
  .gtb-search-btn {
    width: 100%;
  }
  .gtb-cselect-trigger {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 0.9rem;
  }
  .gtb-search-btn {
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .gtb-filter-btn.has-reset {
    flex-direction: column;
  }
  .gtb-reset-btn {
    width: 100%;
    min-height: 44px;
  }
  .gtb-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 16px;
  }
  .gtb-stat-item {
    justify-content: center;
    padding: 8px 0;
  }

  .gtb-trust {
    padding: 18px 0;
  }
  .gtb-trust-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .gtb-trust-item {
    min-width: 0;
    padding: 14px 12px;
    border-right: none;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    align-items: flex-start;
    gap: 10px;
  }
  .gtb-trust-item:last-child {
    border-right: none;
  }
  .gtb-trust-icon {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
  .gtb-trust-title {
    font-size: 0.9rem;
    line-height: 1.25;
  }
  .gtb-trust-sub {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-top: 4px;
  }
}
@media (max-width: 400px) {
  .gtb-grid { grid-template-columns: 1fr; }

  .gtb-trust-inner {
    grid-template-columns: 1fr;
  }
}
