/*
Theme Name: TeachLink
Theme URI: https://teachlink.com.bd
Author: Codex
Description: Custom TeachLink WordPress theme for Bangladesh teacher marketplace.
Version: 1.0.0
Text Domain: teachlink
*/

:root {
  --tl-primary: #2563eb;
  --tl-primary-dark: #1d4ed8;
  --tl-accent: #f59e0b;
  --tl-success: #10b981;
  --tl-background: #f8fafc;
  --tl-surface: #ffffff;
  --tl-text: #0f172a;
  --tl-muted: #64748b;
  --tl-border: #e2e8f0;
  --tl-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --tl-radius-xl: 28px;
  --tl-radius-lg: 20px;
  --tl-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tl-text);
  background: var(--tl-background);
  font-family: "Hind Siliguri", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.tl-container { width: min(var(--tl-container), calc(100% - 32px)); margin: 0 auto; }
.tl-site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.tl-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px;
}
.tl-site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 34px rgba(15,23,42,.06);
  border-bottom-color: rgba(226,232,240,.95);
}
.tl-brand {
  display: inline-flex; align-items: center; gap: 12px; color: var(--tl-primary);
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.4rem; font-weight: 800;
  transition: transform .25s ease;
}
.tl-brand:hover { transform: translateY(-1px); }
.tl-brand-badge, .tl-icon-circle {
  display: grid; place-items: center; background: rgba(37,99,235,.12); color: var(--tl-primary);
}
.tl-brand-badge {
  width: 44px; height: 44px; border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 20px rgba(37,99,235,.12);
}
.tl-nav, .tl-header-actions { display: flex; align-items: center; gap: 18px; }
.tl-header-actions {
  flex-shrink: 0;
  gap: 12px;
}
.tl-nav { color: var(--tl-muted); font-weight: 600; }
.tl-nav a:hover { color: var(--tl-primary); }
.tl-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tl-border);
  border-radius: 14px;
  background: #fff;
  color: var(--tl-text);
  font-size: 1.2rem;
}
.tl-mobile-menu[hidden] {
  display: none !important;
}
.tl-nav ul,
.tl-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl-nav .menu,
.tl-mobile-nav .menu,
.tl-nav .sub-menu,
.tl-mobile-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.tl-nav-menu li {
  margin: 0;
  padding: 0;
}
.tl-nav-menu a {
  color: var(--tl-muted);
  font-weight: 600;
  position: relative;
  transition: color .25s ease;
}
.tl-nav-menu a:hover,
.tl-nav-menu .current-menu-item > a,
.tl-nav-menu .current_page_item > a {
  color: var(--tl-primary);
}
.tl-nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tl-primary), rgba(37,99,235,0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.tl-nav-menu a:hover::after,
.tl-nav-menu .current-menu-item > a::after,
.tl-nav-menu .current_page_item > a::after {
  transform: scaleX(1);
}
.tl-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  color: var(--tl-primary);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.tl-mobile-menu {
  border-top: 1px solid var(--tl-border);
  background: #fff;
}
.tl-mobile-nav {
  display: grid;
  gap: 12px;
  padding: 18px 0 20px;
}
.tl-mobile-nav .tl-nav-menu {
  display: grid;
  gap: 12px;
}
.tl-mobile-nav .tl-nav-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tl-background);
}
.tl-btn, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer; padding: 13px 22px; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
button {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.tl-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tl-primary), var(--tl-primary-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}
.tl-btn-primary::after,
.tl-btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.24) 45%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .7s ease;
}
.tl-btn-primary:hover,
.tl-btn-secondary:hover {
  transform: translateY(-2px);
}
.tl-btn-primary:hover::after,
.tl-btn-secondary:hover::after {
  transform: translateX(130%);
}
.tl-btn-secondary { background: var(--tl-accent); color: var(--tl-text); }
.tl-btn-secondary { position: relative; overflow: hidden; }
.tl-btn-outline { border: 1px solid var(--tl-border); background: #fff; color: var(--tl-text); box-shadow: 0 8px 18px rgba(15,23,42,.04); }
.tl-btn-outline:hover { border-color: var(--tl-primary); color: var(--tl-primary); }
.tl-section, .tl-dashboard-layout { padding: 88px 0; }
.tl-hero {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(245,158,11,.1), transparent 24%),
    linear-gradient(to right, rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  overflow: hidden;
}
.tl-hero::before {
  content: "";
  position: absolute;
  top: 80px;
  left: -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.tl-hero-grid, .tl-two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.tl-badge {
  display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(37,99,235,.16);
  background: rgba(37,99,235,.08); color: var(--tl-primary); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.tl-heading {
  margin: 18px 0 12px;
  line-height: 1.14;
  letter-spacing: -.02em;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-family: "Hind Siliguri", sans-serif;
  font-weight: 700;
  text-wrap: balance;
}
.tl-subheading {
  color: var(--tl-primary-dark);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.tl-copy, .tl-meta { color: var(--tl-muted); }
.tl-copy { max-width: 720px; }
.tl-section-title + .tl-copy,
.tl-section-kicker + .tl-section-title,
.tl-card h1,
.tl-card h2,
.tl-card h3,
.tl-dashboard-panel h1,
.tl-dashboard-panel h2,
.tl-dashboard-panel h3,
.tl-form-shell h1,
.tl-form-shell h2,
.tl-form-shell h3 {
  margin-top: 0;
}
.tl-card p:last-child,
.tl-dashboard-panel p:last-child,
.tl-form-shell p:last-child,
.tl-cta-panel p:last-child,
.tl-quote-card p:last-child {
  margin-bottom: 0;
}
.tl-search-card, .tl-card, .tl-stat-card, .tl-step-card, .tl-teacher-card, .tl-quote-card, .tl-cta-panel, .tl-dashboard-panel, .tl-form-shell {
  background: var(--tl-surface); border: 1px solid var(--tl-border); border-radius: var(--tl-radius-xl); box-shadow: var(--tl-shadow);
}
.tl-search-card { padding: 16px; margin-top: 28px; }
.tl-search-card {
  position: relative;
  overflow: hidden;
}
.tl-search-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.04), transparent 40%, rgba(245,158,11,.05));
  pointer-events: none;
}
.tl-search-grid, .tl-stats-row, .tl-feature-grid, .tl-subject-grid, .tl-trust-grid, .tl-quote-grid, .tl-dashboard-grid, .tl-card-grid {
  display: grid; gap: 20px;
}
.tl-search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home .tl-search-grid {
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: stretch;
}
.post-type-archive-tutor .tl-search-grid {
  grid-template-columns: 1.2fr 1.2fr auto;
  align-items: stretch;
}
.post-type-archive-tutor .tl-search-grid .tl-btn {
  min-width: 150px;
}
.tl-field { background: var(--tl-background); border: 1px solid var(--tl-border); border-radius: 18px; padding: 12px 14px; }
.tl-field label { display:block; margin-bottom:8px; color: var(--tl-muted); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tl-field select, .tl-field input, .tl-form-shell input, .tl-form-shell textarea, .tl-form-shell select {
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font: inherit;
  color: var(--tl-text);
}
.tl-form-shell form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.tl-form-shell input,
.tl-form-shell textarea,
.tl-form-shell select {
  border: 1px solid var(--tl-border);
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-radius: 18px;
  padding: 14px 16px;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.tl-form-shell textarea {
  resize: vertical;
  min-height: 132px;
}
.tl-form-shell input:focus,
.tl-form-shell textarea:focus,
.tl-form-shell select:focus,
.tl-field input:focus,
.tl-field select:focus {
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
  background: #fff;
}
.tl-form-shell .tl-btn,
.tl-form-shell button,
.tl-form-shell input[type="submit"] {
  min-height: 52px;
}
.tl-stats-row { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 22px; }
.tl-card-grid.tl-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tl-card-grid.tl-grid-3, .tl-feature-grid, .tl-quote-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tl-subject-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.tl-trust-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tl-dashboard-grid { grid-template-columns: 280px minmax(0,1fr); }
.tl-card, .tl-step-card, .tl-teacher-card, .tl-quote-card, .tl-stat-card, .tl-dashboard-panel, .tl-cta-panel { padding: 24px; }
.tl-step-card, .tl-teacher-card, .tl-quote-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tl-step-card:hover, .tl-teacher-card:hover, .tl-quote-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.3); box-shadow: 0 24px 42px rgba(15,23,42,.12); }
.tl-stat-card-hero {
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tl-stat-card-hero::after,
.tl-teacher-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.22) 45%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .7s ease;
  pointer-events: none;
}
.tl-stat-card-hero:hover,
.tl-teacher-card:hover {
  transform: translateY(-6px);
}
.tl-stat-card-hero:hover::after,
.tl-teacher-card:hover::after {
  transform: translateX(130%);
}
.tl-stat-card-hero h3 {
  margin: 16px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.tl-stat-card-hero .tl-icon-circle {
  box-shadow: 0 12px 22px rgba(37,99,235,.16);
}
.tl-icon-circle { width: 52px; height: 52px; border-radius: 18px; font-weight: 800; }
.tl-section-title { margin: 0; font-size: clamp(2rem,3vw,3rem); font-family: "Plus Jakarta Sans", sans-serif; }
.tl-section-kicker { margin-bottom: 14px; color: var(--tl-primary); font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.tl-chip, .tl-subject-pill { display: inline-flex; border-radius: 999px; font-weight: 700; }
.tl-chip { padding: 8px 14px; background: rgba(37,99,235,.1); color: var(--tl-primary); }
.tl-chip-success { background: rgba(16,185,129,.12); color: var(--tl-success); }
.tl-chip-accent { background: rgba(245,158,11,.14); color: #b45309; }
.tl-hero-copy > * { max-width: 760px; }
.tl-search-submit {
  min-height: 92px;
  min-width: 174px;
  padding: 16px 26px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  box-shadow: 0 16px 30px rgba(245,158,11,.28);
  border-radius: 28px;
  white-space: nowrap;
  align-self: stretch;
}
.tl-search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(245,158,11,.34);
}
.tl-search-submit:active { transform: translateY(0); }
.tl-hero-visual {
  position: relative;
  overflow: hidden;
}
.tl-floating-card { animation: tl-float 4.8s ease-in-out infinite; }
.tl-review-bubble { animation: tl-float-alt 5.6s ease-in-out infinite; }
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tl-step-card[data-reveal],
.tl-teacher-card[data-reveal],
.tl-quote-card[data-reveal] {
  transition-delay: var(--tl-reveal-delay, 0ms);
}
.tl-subject-pill { justify-content:center; padding: 14px 16px; border: 1px solid var(--tl-border); background:#fff; text-align:center; }
.tl-subject-pill:hover { background: var(--tl-primary); color: #fff; border-color: var(--tl-primary); }
.tl-listing-hero {
  margin-bottom: 22px;
}
.tl-tutor-thumb {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 84px;
  border: 1px solid var(--tl-border);
  background: #fff;
}
.tl-tutor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.tl-teacher-card {
  position: relative;
  overflow: hidden;
}
.tl-teacher-card:hover .tl-tutor-thumb img {
  transform: scale(1.06);
}
.tl-profile-image {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--tl-border);
  background: #fff;
  box-shadow: var(--tl-shadow);
  margin-bottom: 20px;
}
.tl-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tl-profile-card {
  position: relative;
  overflow: hidden;
}
.tl-profile-card::after,
.tl-dashboard-sidebar::after,
.tl-dashboard-main::after,
.tl-contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.05), transparent 42%, rgba(245,158,11,.04));
  pointer-events: none;
}
.tl-profile-content {
  position: relative;
  z-index: 1;
}
.tl-contact-panel,
.tl-dashboard-sidebar,
.tl-dashboard-main {
  position: relative;
  overflow: hidden;
}
.tl-contact-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.tl-review-panel .tl-quote-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.tl-dashboard-sidebar {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.tl-dashboard-main {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.tl-dashboard-main .tl-card {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}
.tl-highlight { background: var(--tl-primary); color: #fff; }
.tl-highlight .tl-stat-card, .tl-highlight .tl-card { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.16); box-shadow:none; }
.tl-cta-split, .tl-footer-grid { display:grid; gap:24px; }
.tl-cta-split { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tl-panel-blue,
.tl-panel-amber {
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tl-panel-blue::after,
.tl-panel-amber::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  filter: blur(6px);
  pointer-events: none;
}
.tl-panel-blue:hover,
.tl-panel-amber:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 44px rgba(15,23,42,.12);
}
.tl-panel-blue { background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(37,99,235,.12)); }
.tl-panel-amber { background: linear-gradient(180deg, rgba(245,158,11,.95), rgba(245,158,11,.86)); }
.tl-site-footer {
  position: relative;
  background: linear-gradient(180deg, #fff, #f9fbff);
  border-top: 1px solid var(--tl-border);
}
.tl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 72px 0 32px; }
.tl-footer-bottom { display:flex; justify-content:space-between; gap:16px; padding:18px 0 28px; border-top: 1px solid var(--tl-border); color: var(--tl-muted); }
.tl-footer-col h3,
.tl-footer-brand .tl-brand {
  margin-bottom: 16px;
}
.tl-footer-col p {
  margin: 10px 0;
}
.tl-footer-col a,
.tl-footer-bottom a {
  transition: color .22s ease, transform .22s ease;
}
.tl-footer-col a:hover,
.tl-footer-bottom a:hover {
  color: var(--tl-primary);
}
.tl-sidebar-menu a { display:block; padding:12px 14px; border-radius:14px; color: var(--tl-muted); font-weight:700; }
.tl-sidebar-menu a:hover, .tl-sidebar-menu a.is-active { background: rgba(37,99,235,.08); color: var(--tl-primary); }
.tl-empty { padding: 40px; text-align: center; color: var(--tl-muted); border: 1px dashed var(--tl-border); border-radius: 20px; }
.tl-pricing-grid { display:grid; gap:24px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.tl-price-card { position:relative; padding:28px; border-radius:28px; border:1px solid var(--tl-border); background:#fff; box-shadow: var(--tl-shadow); }
.tl-price-card.is-featured { border-color: rgba(37,99,235,.35); transform: translateY(-6px); }
.tl-price-tag { font-size: 2rem; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; }
.tl-checklist { margin:16px 0 0; padding-left: 18px; color: var(--tl-muted); }
.tl-checklist li { margin: 8px 0; }
@media (max-width: 1024px) {
  .tl-hero-grid, .tl-two-col, .tl-footer-grid, .tl-subject-grid, .tl-trust-grid, .tl-card-grid.tl-grid-4, .tl-card-grid.tl-grid-3, .tl-quote-grid, .tl-feature-grid, .tl-cta-split, .tl-dashboard-grid, .tl-pricing-grid { grid-template-columns: 1fr 1fr; }
  .tl-search-grid { grid-template-columns: 1fr 1fr; }
  .home .tl-search-grid { grid-template-columns: 1fr 1fr; }
  .post-type-archive-tutor .tl-search-grid { grid-template-columns: 1fr 1fr; }
  .tl-footer-grid { gap: 30px; }
}
@media (max-width: 720px) {
  .tl-nav, .tl-header-actions { display: none; }
  .tl-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .tl-hero-grid, .tl-two-col, .tl-footer-grid, .tl-subject-grid, .tl-trust-grid, .tl-card-grid.tl-grid-4, .tl-card-grid.tl-grid-3, .tl-quote-grid, .tl-feature-grid, .tl-cta-split, .tl-dashboard-grid, .tl-search-grid, .tl-stats-row, .tl-pricing-grid { grid-template-columns: 1fr; }
  .tl-section, .tl-dashboard-layout { padding: 64px 0; }
  .tl-footer-bottom { flex-direction: column; }
  .tl-heading { line-height: 1.18; }
  .tl-search-submit { min-height: 64px; }
  .tl-card, .tl-step-card, .tl-teacher-card, .tl-quote-card, .tl-stat-card, .tl-dashboard-panel, .tl-cta-panel, .tl-form-shell {
    padding: 20px;
  }
  .tl-profile-image {
    width: 140px;
    height: 140px;
  }
  .tl-user-pill {
    width: 100%;
    justify-content: flex-start;
  }
  .tl-mobile-nav .tl-btn {
    width: 100%;
  }
  .tl-form-shell form {
    gap: 12px;
  }
  .tl-form-shell input,
  .tl-form-shell textarea,
  .tl-form-shell select {
    padding: 13px 14px;
  }
  .tl-empty {
    padding: 28px 18px;
  }
}
@keyframes tl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes tl-float-alt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-floating-card,
  .tl-review-bubble,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
