/* 講師一覧カード内「〇〇先生の3つの魅力」セクション */
.list-teacher-highlights-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.07);
  box-sizing: border-box;
}
.list-highlights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #93c5fd;
}
.list-highlights-title {
  min-width: 0;
  color: #0c4a6e;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
}
.list-highlights-badge {
  background: #ffffff;
  color: #0369a1;
  border: 1px solid #38bdf8;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);
}
.list-highlights-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-highlights-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.list-highlights-num {
  color: #1F5E5B;
  margin-right: 4px;
  font-weight: 800;
}
.list-highlights-text {
  color: #0f172a;
  font-weight: 800;
}
/* ===== 💎 プラチナ認定（特別推薦）カード専用スタイル ===== */
.list-teacher-card.is-platinum-card {
  border: 2.5px solid #d4af37 !important;
  background: linear-gradient(180deg, #fffdf0 0%, #ffffff 42%) !important;
  box-shadow: 0 6px 20px rgba(180, 134, 8, 0.18), 0 0 0 1px rgba(212, 175, 55, 0.25) !important;
  flex-wrap: wrap !important;
  overflow: hidden !important;
}
.platinum-card-top-banner {
  flex: 0 0 calc(100% + 40px) !important;
  width: calc(100% + 40px) !important;
  max-width: none !important;
  margin: -20px -20px 4px -20px !important;
  padding: 8px 18px;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #334155 100%);
  border-bottom: 2px solid #d4af37;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}
.platinum-banner-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 900;
  color: rgb(253, 224, 71);
  letter-spacing: 0.03em;
}
.platinum-banner-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(254, 240, 138, 0.16);
  color: rgb(254, 240, 138);
  border: 1px solid rgba(250, 204, 21, 0.45);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.list-teacher-card .teacher-photo-link {
  align-self: flex-start !important;
  height: auto !important;
}
.list-teacher-card.is-platinum-card .teacher-photo-link {
  border: 2.5px solid #d4af37 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(180, 134, 8, 0.25) !important;
  height: auto !important;
  align-self: flex-start !important;
  background: #0f172a !important;
}
.list-teacher-card.is-platinum-card .list-teacher-photo {
  border: none !important;
  border-radius: 0 !important;
}
.platinum-photo-ribbon {
  display: block;
  position: static !important;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: rgb(253, 224, 71);
  border-top: 1.5px solid #d4af37;
  font-size: 10.5px;
  font-weight: 900;
  text-align: center;
  padding: 3px 2px;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.list-teacher-card.is-super-rec-card .teacher-photo-link {
  border: 2px solid #d97706 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.2) !important;
  height: auto !important;
  align-self: flex-start !important;
  background: #9a3412 !important;
}
.list-teacher-card.is-rec-card .teacher-photo-link {
  border: 2px solid #0284c7 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.18) !important;
  height: auto !important;
  align-self: flex-start !important;
  background: #0369a1 !important;
}
.list-teacher-card.is-super-rec-card .list-teacher-photo,
.list-teacher-card.is-rec-card .list-teacher-photo {
  border: none !important;
  border-radius: 0 !important;
}
.super-rec-photo-ribbon {
  display: block;
  position: static !important;
  background: linear-gradient(90deg, #9a3412 0%, #b91c1c 100%);
  color: #ffffff;
  border-top: 1.5px solid #fcd34d;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  padding: 3.5px 2px;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.rec-photo-ribbon {
  display: block;
  position: static !important;
  background: linear-gradient(90deg, #1e40af 0%, #0369a1 100%);
  color: #ffffff;
  border-top: 1.5px solid #7dd3fc;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  padding: 3.5px 2px;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
@media screen and (max-width: 900px) {
  .list-teacher-card.is-super-rec-card .teacher-photo-link,
  .list-teacher-card.is-rec-card .teacher-photo-link {
    height: auto !important;
  }
  .super-rec-photo-ribbon,
  .rec-photo-ribbon {
    font-size: 10px !important;
    padding: 3px 1px !important;
  }
}
.platinum-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgb(253, 224, 71) !important;
  border: 1.5px solid #d4af37;
  font-size: 12.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.list-teacher-card.is-platinum-card .list-teacher-highlights-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12) !important;
}
.list-teacher-card.is-platinum-card .list-highlights-header {
  border-bottom-color: #f59e0b !important;
}
.list-teacher-card.is-platinum-card .list-highlights-title {
  color: #78350f !important;
}
.list-teacher-card.is-platinum-card .list-highlights-badge {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: rgb(253, 224, 71) !important;
  border: 1px solid #d4af37 !important;
}
.list-teacher-card.is-platinum-card .list-highlights-item {
  border-color: #fde68a !important;
  border-left: 4px solid #d97706 !important;
}
.list-teacher-card.is-platinum-card .list-highlights-num {
  color: #b45309 !important;
}
@media screen and (max-width: 640px) {
  .platinum-card-top-banner {
    grid-column: 1 / -1 !important;
    grid-row: 1 / 2 !important;
    width: calc(100% + 28px) !important;
    margin: -16px -14px 4px -14px !important;
    padding: 7px 12px !important;
    gap: 4px !important;
  }
  .platinum-banner-main {
    font-size: 12.5px !important;
  }
  .platinum-banner-sub {
    font-size: 10.5px !important;
    padding: 1px 7px !important;
  }
  .list-teacher-card.is-platinum-card .teacher-photo-link {
    grid-column: 1 / 2 !important;
    grid-row: 2 / 3 !important;
    height: auto !important;
  }
  .list-teacher-card.is-platinum-card .list-teacher-header {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
  }
  .platinum-rank-badge {
    font-size: 11px !important;
    padding: 2px 8px !important;
  }
  .platinum-photo-ribbon {
    font-size: 9.5px !important;
    padding: 2px 1px !important;
  }
}
.list-teacher-card .teacher-station-box {
  background: #f8fafc !important;
  border-top: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-left: 5px solid #1e40af !important;
}
@media screen and (max-width: 640px) {
  .list-teacher-card .list-teacher-highlights-box {
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    padding: 11px 11px !important;
  }
  .list-highlights-header {
    gap: 4px !important;
  }
  .list-highlights-title {
    font-size: 13px !important;
    letter-spacing: -0.02em !important;
  }
  .list-highlights-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  .list-highlights-item {
    padding: 7px 10px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
}
/* Tailwind Preflight との共存補正 & Modern Web Guidance (css-layout / form-factor-adaptation) 準拠 */
@media screen and (min-width: 641px) {
  .list-teacher-card .list-teacher-info {
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }
}
.list-teacher-card .list-teacher-header img {
  display: inline-block !important;
  vertical-align: middle !important;
}
.list-teacher-card .card-action-buttons a {
  height: auto !important;
  min-block-size: 48px;
  overflow-wrap: anywhere;
}
.list-teacher-card .tid-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}
.list-teacher-card .card-trial-legal-note {
  font-size: 12px;
  color: #475569;
  margin-top: 6px;
  line-height: 1.45;
}
.list-teacher-card .teacher-message-box,
.list-teacher-card .message-box-content,
.list-teacher-card .ai-teacher-highlights-card,
.list-teacher-card .list-highlights-body,
.list-teacher-card .mini-spec-grid,
.list-teacher-card .spec-item,
.list-teacher-card .spec-val {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media screen and (max-width: 640px) {
  .list-teacher-card {
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }
  .list-teacher-card .teacher-photo-link,
  .list-teacher-card .list-teacher-photo {
    width: 88px !important;
    max-width: 88px !important;
  }
  .list-teacher-card .list-teacher-header-wrap,
  .list-teacher-card .list-teacher-header,
  .list-teacher-card .list-teacher-header > div,
  .list-teacher-card .teacher-name-link,
  .list-teacher-card .list-teacher-name {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }
  .list-teacher-card .platinum-rank-badge,
  .list-teacher-card .platinum-banner-sub {
    white-space: normal !important;
    max-width: 100% !important;
  }
  .list-teacher-card.is-platinum-card .platinum-card-top-banner {
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 / 2 !important;
    width: calc(100% + 24px) !important;
    margin: -12px -12px 4px -12px !important;
  }
  .list-teacher-card.is-platinum-card .teacher-photo-link {
    grid-area: auto !important;
    grid-column: 1 / 2 !important;
    grid-row: 2 / 3 !important;
    height: auto !important;
  }
  .list-teacher-card .card-trial-legal-note {
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 0 !important;
  }
  .online-recommend-section {
    padding: 16px 12px !important;
  }
}
/* ===== 講師の3つの魅力 (WDD USP Showcase 強化スタイル) ===== */
.list-teacher-card .list-teacher-highlights-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 2px solid #38bdf8 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.11), 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
.list-teacher-card.is-platinum-card .list-teacher-highlights-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15) !important;
}
.list-teacher-card .list-highlights-header {
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1.5px dashed #7dd3fc !important;
}
.list-teacher-card.is-platinum-card .list-highlights-header {
  border-bottom-color: #fbbf24 !important;
}
.list-teacher-card .list-highlights-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0c4a6e !important;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}
.list-teacher-card.is-platinum-card .list-highlights-title {
  color: #78350f !important;
}
.list-teacher-card .list-highlights-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0369a1 !important;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.22) !important;
}
.list-teacher-card.is-platinum-card .list-highlights-badge {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: rgb(253, 224, 71) !important;
  border: 1px solid #d4af37 !important;
}
.list-teacher-card .list-highlights-points {
  gap: 8px !important;
}
.list-teacher-card .list-highlights-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  background: #ffffff !important;
  border: 1.5px solid #bae6fd !important;
  border-left: 5px solid #0284c7 !important;
  border-radius: 9px !important;
  padding: 10px 13px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
.list-teacher-card.is-platinum-card .list-highlights-item {
  border-color: #fde68a !important;
  border-left-color: #d97706 !important;
}
.list-teacher-card .list-highlights-num {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  font-size: 0.8125rem !important;
  font-weight: 900 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-right: 0 !important;
  line-height: 1.35 !important;
}
.list-teacher-card.is-platinum-card .list-highlights-num {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #f59e0b !important;
}
.list-teacher-card .list-highlights-text {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.03125rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}
@media screen and (max-width: 640px) {
  .list-teacher-card .list-highlights-item {
    flex-direction: column !important;
    gap: 5px !important;
    padding: 9px 11px !important;
  }
}
/* ===== WDD 3軸ナビゲーション（初心者・発音 ＆ 検定対策・AI診断 ＆ 目的別） ===== */
.wdd-topic-cluster-hub {
  margin-top: 22px;
  padding: 20px 18px;
  background: var(--wdd-tc-bg, #FAF8F5);
  border: 1.5px solid var(--wdd-tc-border, #CFE0DC);
  border-radius: 12px;
  box-sizing: border-box;
}
.wdd-tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wdd-tc-main, #1E3A5F);
}
.wdd-tc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--wdd-tc-main, #1E3A5F);
  margin: 0;
  line-height: 1.4;
}
.wdd-tc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--wdd-tc-sub, #EEF5F3);
  color: var(--wdd-tc-main, #1E3A5F);
  border: 1px solid var(--wdd-tc-border, #CFE0DC);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.wdd-tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.wdd-tc-card {
  background: #ffffff;
  border: 1.5px solid var(--wdd-tc-border, #CFE0DC);
  border-top: 4px solid var(--wdd-tc-main, #1E3A5F);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.wdd-tc-card--exam {
  border-top-color: var(--wdd-tc-accent, #C83E35);
  background: linear-gradient(180deg, var(--wdd-tc-sub, #EEF5F3) 0%, #ffffff 38%);
}
.wdd-tc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.wdd-tc-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wdd-tc-sub, #EEF5F3);
  color: var(--wdd-tc-main, #1E3A5F);
  border: 1px solid var(--wdd-tc-border, #CFE0DC);
}
.wdd-tc-badge--accent {
  background: var(--wdd-tc-accent, #C83E35);
  color: #ffffff;
  border-color: var(--wdd-tc-accent, #C83E35);
}
.wdd-tc-card-ttl {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.42;
}
.wdd-tc-card-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.68;
  margin: 0 0 12px 0;
}
.wdd-tc-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wdd-tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  line-height: 1.35;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wdd-tc-btn--primary {
  background: var(--wdd-tc-main, #1E3A5F);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.wdd-tc-btn--accent {
  background: var(--wdd-tc-accent, #C83E35);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.18);
}
.wdd-tc-btn--sub {
  background: #ffffff;
  color: var(--wdd-tc-main, #1E3A5F) !important;
  border: 1.5px solid var(--wdd-tc-border, #CFE0DC);
}
.wdd-tc-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.wdd-tc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 11px;
  background: var(--wdd-tc-sub, #EEF5F3);
  color: var(--wdd-tc-main, #1E3A5F) !important;
  border: 1px solid var(--wdd-tc-border, #CFE0DC);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.3;
  box-sizing: border-box;
}
.wdd-cluster-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wdd-cluster-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 7px 13px;
  background: #ffffff;
  color: var(--wdd-tc-main, #1E3A5F) !important;
  border: 1.5px solid var(--wdd-tc-border, #CFE0DC);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.3;
  box-sizing: border-box;
  transition: background 0.15s, border-color 0.15s;
}
.wdd-cluster-pill:hover {
  background: var(--wdd-tc-sub, #EEF5F3);
  border-color: var(--wdd-tc-main, #1E3A5F);
}
@media screen and (max-width: 640px) {
  .wdd-topic-cluster-hub {
    padding: 16px 12px !important;
  }
  .wdd-tc-card {
    padding: 14px 12px !important;
  }
}

.platinum-photo-ribbon,
.super-rec-photo-ribbon,
.rec-photo-ribbon {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media screen and (max-width: 640px) {
  .list-teacher-card .teacher-photo-link {
    width: 88px !important;
    max-width: 88px !important;
  }
  .list-teacher-card .list-teacher-photo {
    width: 100% !important;
    max-width: 100% !important;
  }
  .list-teacher-card.is-platinum-card .platinum-card-top-banner {
    width: calc(100% + 28px) !important;
    margin: -16px -14px 4px -14px !important;
  }
  .super-rec-photo-ribbon,
  .rec-photo-ribbon {
    font-size: 9.5px !important;
    padding: 2.5px 1px !important;
  }
}
/* ===== A+B Hybrid: 4-Tier Teacher Rank Hierarchy ===== */
/* Rank 3: Super Recommended */
.list-teacher-card.is-super-rec-card {
  border: 1.5px solid #f59e0b !important;
  border-left: 5px solid #b45309 !important;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 34%) !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.10) !important;
}
.list-teacher-card.is-super-rec-card .teacher-photo-link {
  border: 2px solid #d97706 !important;
  background: #92400e !important;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.18) !important;
}
.super-rec-photo-ribbon {
  background: linear-gradient(90deg, #92400e 0%, #b45309 100%) !important;
  border-top: 1.5px solid #fcd34d !important;
}
.super-rec-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(180, 83, 9, 0.22);
}
.rank-reason-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.35;
  white-space: nowrap;
}
.rank-reason-super {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
}
.list-teacher-card.is-super-rec-card .list-teacher-highlights-box {
  background: #fffbf2 !important;
  border: 1.5px solid #fcd34d !important;
}
.list-teacher-card.is-super-rec-card .list-highlights-header {
  border-bottom-color: #fcd34d !important;
}
.list-teacher-card.is-super-rec-card .list-highlights-title {
  color: #92400e !important;
}
.list-teacher-card.is-super-rec-card .list-highlights-badge {
  background: #b45309 !important;
  color: #ffffff !important;
  border-color: #92400e !important;
}

/* Rank 2: Recommended */
.list-teacher-card.is-rec-card {
  border: 1.5px solid #99f6e4 !important;
  border-left: 5px solid #0f766e !important;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 30%) !important;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.08) !important;
}
.list-teacher-card.is-rec-card .teacher-photo-link {
  border: 2px solid #0d9488 !important;
  background: #115e59 !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.16) !important;
}
.rec-photo-ribbon {
  background: linear-gradient(90deg, #115e59 0%, #0f766e 100%) !important;
  border-top: 1.5px solid #99f6e4 !important;
}
.rec-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #0f766e;
  border: 1.5px solid #0f766e;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
}
.rank-reason-rec {
  background: #ccfbf1;
  color: #115e59;
  border: 1px solid #99f6e4;
}
.list-teacher-card.is-rec-card .list-teacher-highlights-box {
  background: #f4fbf9 !important;
  border: 1.5px solid #99f6e4 !important;
}
.list-teacher-card.is-rec-card .list-highlights-header {
  border-bottom-color: #99f6e4 !important;
}
.list-teacher-card.is-rec-card .list-highlights-title {
  color: #115e59 !important;
}
.list-teacher-card.is-rec-card .list-highlights-badge {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #115e59 !important;
}

.teacher-list-container .list-teacher-card.is-super-rec-card .list-teacher-highlights-box {
  background: #fffbf2 !important;
  border: 1.5px solid #fcd34d !important;
}
.teacher-list-container .list-teacher-card.is-super-rec-card .list-teacher-highlights-box .list-highlights-header {
  border-bottom-color: #fcd34d !important;
}
.teacher-list-container .list-teacher-card.is-super-rec-card .list-teacher-highlights-box .list-highlights-title {
  color: #92400e !important;
}
.teacher-list-container .list-teacher-card.is-super-rec-card .list-teacher-highlights-box .list-highlights-badge {
  background: #b45309 !important;
  color: #ffffff !important;
  border-color: #92400e !important;
}
.teacher-list-container .list-teacher-card.is-rec-card .list-teacher-highlights-box {
  background: #f4fbf9 !important;
  border: 1.5px solid #99f6e4 !important;
}
.teacher-list-container .list-teacher-card.is-rec-card .list-teacher-highlights-box .list-highlights-header {
  border-bottom-color: #99f6e4 !important;
}
.teacher-list-container .list-teacher-card.is-rec-card .list-teacher-highlights-box .list-highlights-title {
  color: #115e59 !important;
}
.teacher-list-container .list-teacher-card.is-rec-card .list-teacher-highlights-box .list-highlights-badge {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #115e59 !important;
}
.teacher-list-container .list-teacher-card:not(.is-platinum-card):not(.is-super-rec-card):not(.is-rec-card) .list-teacher-highlights-box .list-highlights-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}
/* Rank 1: Normal calm badge */
.list-teacher-card:not(.is-platinum-card):not(.is-super-rec-card):not(.is-rec-card) .list-highlights-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

@media screen and (max-width: 640px) {
  .super-rec-rank-badge,
  .rec-rank-badge {
    font-size: 11px !important;
    padding: 2px 8px !important;
  }
  .rank-reason-tag {
    font-size: 10.5px !important;
    padding: 1.5px 6px !important;
  }
}

/* === Heading reset & SEO/Pagination additions === */
h2.list-teacher-name {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}
.ftsm-list-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 10px 0 14px;
  padding: 9px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
}
.ftsm-list-stats-item strong { color: #0f172a; font-weight: 800; }
.pagination-numbered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1E3A5F;
  box-sizing: border-box;
}
.pagination-btn:hover { background: #eff6ff; border-color: #93c5fd; }
.pagination-btn.is-current {
  background: #1E3A5F;
  color: #ffffff;
  border-color: #1E3A5F;
}
.pagination-btn--nav {
  padding: 6px 18px;
  background: #1E3A5F;
  color: #ffffff;
  border-color: #1E3A5F;
}
.pagination-btn--nav:hover { background: #162c49; }
.pagination-ellipsis {
  padding: 0 4px;
  color: #64748b;
  font-weight: 700;
}
.ftsm-pref-hub-box {
  margin: 26px 0;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}
.ftsm-pref-hub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.ftsm-pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1E3A5F;
  text-decoration: none;
}
.ftsm-pref-chip:hover { background: #eff6ff; border-color: #60a5fa; }
.ftsm-pref-chip-cnt { font-size: 11.5px; color: #475569; font-weight: 600; }
