/* teachers.css - Modern Responsive Styles for Teacher Directory & Cards */

:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface2: #f0ede6;
  --border: #e4ddd0;
  --text: #1a1410;
  --text-muted: #7c6e5b;
  --gold: #c8972a;
  --gold-light: #e5b95c;
  --gold-soft: rgba(200,151,42,0.1);
  --navy: #0f2744;
  --navy-mid: #1e3d6e;
  --green: #1a9e5f;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(15,39,68,0.06);
  --shadow-hover: 0 10px 30px rgba(15,39,68,0.12);
  --font: 'Hind Siliguri', 'Outfit', sans-serif;
}

/* Top Apply Banner CTA */
.teacher-cta-banner {
  background: linear-gradient(135deg, #0f2744 0%, #1e3d6e 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px auto 30px auto;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(15,39,68,0.15);
  border: 1px solid rgba(200,151,42,0.3);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teacher-cta-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(15,39,68,0.22);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200,151,42,0.2);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cta-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.cta-banner-sub {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.cta-banner-btn {
  background: linear-gradient(135deg, #c8972a, #e5b95c);
  color: #0f2744;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

/* Directory Section Layout */
.directory-container {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
}

.directory-header {
  text-align: center;
  margin-bottom: 28px;
}

.directory-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.directory-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Teacher Grid */
.teacher-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Teacher Card */
.teacher-card-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teacher-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-light);
}

.tc-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid var(--gold-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Distinct Avatar Placeholders for Male & Female */
.tc-avatar-custom {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.tc-avatar-male {
  background: linear-gradient(145deg, #0b2239 0%, #15395b 55%, #1d4e78 100%);
  color: #fff;
  border: 2.5px solid #e5b95c;
  box-shadow: inset 0 0 14px rgba(229,185,92,0.3);
}

.tc-avatar-female {
  background: linear-gradient(145deg, #380b3d 0%, #581c61 55%, #86198f 100%);
  color: #fff;
  border: 2.5px solid #f472b6;
  box-shadow: inset 0 0 14px rgba(244,114,182,0.3);
}

.tc-avatar-icon {
  font-size: 38px;
  line-height: 1;
  margin-top: -8px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
  transition: transform 0.25s ease;
}

.teacher-card-item:hover .tc-avatar-icon,
.pub-teacher-card:hover .tc-avatar-icon {
  transform: scale(1.1);
}

.tc-avatar-role-pill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 3px 0 4px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.tc-avatar-male .tc-avatar-role-pill {
  background: linear-gradient(90deg, #c8972a, #b8831e);
  color: #ffffff;
}

.tc-avatar-female .tc-avatar-role-pill {
  background: linear-gradient(90deg, #db2777, #9333ea);
  color: #ffffff;
}

.tc-avatar-fallback {
  font-size: 44px;
}

.tc-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.tc-designation {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  min-height: 24px;
}

.tc-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(200,151,42,0.1);
  color: #b38012;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Structured Teacher Profile Info Box (Qualifications, Experience, Specializations) */
.tc-profile-structured-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 12px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

.tc-structured-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.tc-s-lbl {
  font-weight: 800;
  color: var(--navy, #0f2744);
  white-space: nowrap;
  font-size: 11.5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

.tc-s-val {
  color: #334155;
  font-size: 11.5px;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.tc-s-text {
  font-weight: 700;
  color: #1e293b;
}

.tc-s-badge-qual {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 1.5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  line-height: 1.35;
}

.tc-s-badge-spec {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 1.5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  line-height: 1.35;
}

.tc-s-badge-exp {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 1.5px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
  line-height: 1.35;
}

.tc-qualifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.tc-tag {
  background: var(--surface2);
  color: var(--navy-mid);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tc-action-btn {
  width: 100%;
  background: var(--navy);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  margin-top: auto;
  display: inline-block;
}

.tc-action-btn:hover {
  background: var(--navy-mid);
}

/* Admin controls overlay/toolbar on card */
.tc-admin-tools {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  width: 100%;
}

.tc-admin-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.tc-admin-edit {
  background: #e2e8f0;
  color: #1e293b;
}

.tc-admin-delete {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 640px) {
  .teacher-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
  .cta-banner-content {
    flex-direction: column;
  }
  .cta-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── MARKETPLACE FILTER & SEARCH STYLES ── */
.mkt-filter-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(15,39,68,0.04);
}

.mkt-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.mkt-search-input-wrap {
  flex: 1;
  position: relative;
}

.mkt-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fdfdfd;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.mkt-search-input:focus {
  border-color: var(--navy-mid);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30,61,110,0.1);
}

.mkt-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.mkt-filter-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mkt-chip {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mkt-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mkt-chip.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(15,39,68,0.25);
}

.mkt-chip-gender-male.active {
  background: #1e3d6e;
  border-color: #1e3d6e;
}

.mkt-chip-gender-female.active {
  background: #9d174d;
  border-color: #9d174d;
}

/* Card Fee Badge */
.tc-fee-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16,185,129,0.1);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.25);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin: 6px 0;
}

.tc-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(200,151,42,0.12);
  color: #b38012;
  border: 1px solid rgba(200,151,42,0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Demo Video / Audio Box */
.tc-demo-player-box {
  background: #0f172a;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  color: #fff;
  border: 1px solid rgba(200,151,42,0.3);
}

.tc-demo-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Smart Lightweight Video Facade */
.smart-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  border: 1.5px solid rgba(200,151,42,0.3);
}

.sv-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sv-facade:hover .sv-play-btn {
  transform: scale(1.12);
  background: #d4a843;
  box-shadow: 0 0 0 14px rgba(200,151,42,0.35), 0 12px 28px rgba(0,0,0,0.5);
}

.sv-facade:hover img {
  opacity: 1 !important;
  transform: scale(1.03);
}

.sv-play-btn {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(200,151,42,0.95);
  box-shadow: 0 0 0 8px rgba(200,151,42,0.28), 0 8px 20px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  padding-left: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

