html, body { overflow-x: hidden; }
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@300;400;500;600&display=swap');

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans Georgian', sans-serif;
  background: #FAFAF9;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,249,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid #e5e5e0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}
.logo span { color: #0F6E56; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 13px;
  color: #666;
  transition: color 0.15s;
}
.nav-links a:hover { color: #1a1a1a; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #1a1a1a;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  border-top: 0.5px solid #e5e5e0;
  gap: 4px;
}
.mobile-menu a {
  padding: 10px 0;
  font-size: 14px;
  color: #444;
  border-bottom: 0.5px solid #f0f0f0;
}
.mobile-menu.open { display: flex; }

/* ===================== BUTTONS ===================== */
.btn-primary {
  background: #0F6E56;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  font-family: 'Noto Sans Georgian', sans-serif;
}
.btn-primary:hover { background: #0a5a43; }

.btn-white {
  background: #fff;
  color: #0F6E56;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: 'Noto Sans Georgian', sans-serif;
}
.btn-white:hover { opacity: 0.9; }

/* ===================== HERO ===================== */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -80px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #9FE1CB 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob2 {
  position: absolute;
  bottom: -120px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #9FE1CB 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E1F5EE;
  color: #0F6E56;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1D9E75;
  display: inline-block;
}

.hero-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #111;
  margin-bottom: 16px;
}
.hero-title em { font-style: normal; color: #0F6E56; }

.hero-sub {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

/* ===================== SEARCH BAR ===================== */
.search-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #d8d8d0;
  border-radius: 14px;
  max-width: 620px;
  position: relative;
  overflow: visible;
}

.sb-item {
  flex: 1;
  padding: 13px 18px;
  cursor: pointer;
  position: relative;
  min-width: 0;
}
.sb-item:hover { background: #f5f5f0; border-radius: 14px; }

.sb-divider {
  width: 0.5px;
  background: #e5e5e0;
  margin: 10px 0;
  flex-shrink: 0;
}

.sb-label {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.sb-val {
  font-size: 13px;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-btn {
  background: #0F6E56;
  color: #fff;
  border: none;
  border-radius: 0 12px 12px 0;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans Georgian', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.sb-btn:hover { background: #0a5a43; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 0.5px solid #d8d8d0;
  border-radius: 12px;
  min-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.dropdown.open { display: block; }
.dd-opt {
  padding: 10px 16px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  font-family: 'Noto Sans Georgian', sans-serif;
  white-space: nowrap;
}
.dd-opt:hover { background: #f5f5f0; }
.dd-opt.active { color: #0F6E56; font-weight: 500; background: #f0fdf8; }

/* ===================== STATS ===================== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.stat { display: flex; flex-direction: column; }
.stat-n { font-size: 22px; font-weight: 600; color: #111; line-height: 1.1; }
.stat-l { font-size: 11px; color: #888; margin-top: 2px; }
.stat-div { width: 1px; height: 28px; background: #e0e0da; }

/* ===================== SECTIONS ===================== */
.section { padding: 56px 0; }
.bg-alt { background: #F4F4F0; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.sec-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.3px;
}
.sec-link {
  font-size: 13px;
  color: #0F6E56;
  font-weight: 500;
}
.sec-link:hover { text-decoration: underline; }

/* ===================== CATEGORIES ===================== */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-card {
  background: #fff;
  border: 0.5px solid #e5e5e0;
  border-radius: 12px;
  padding: 18px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.cat-card:hover {
  border-color: #0F6E56;
  transform: translateY(-2px);
}
.cat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 18px;
}
.cat-name {
  font-size: 11px;
  color: #555;
  line-height: 1.3;
}

/* ===================== TEACHER CARDS ===================== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.teacher-card {
  background: #fff;
  border: 0.5px solid #e5e5e0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
}
.teacher-card:hover {
  transform: translateY(-3px);
  border-color: #b0d8ce;
}

.tc-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center top !important;
}
.tc-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  border: 2.5px solid rgba(255,255,255,0.7);
}
.tc-online {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.92);
  color: #0F6E56;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
}
.tc-body { padding: 14px 16px; }
.tc-name { font-size: 14px; font-weight: 600; color: #111; }
.tc-sub { font-size: 12px; color: #888; margin: 3px 0 10px; }
.tc-stars { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.stars { color: #EF9F27; font-size: 12px; letter-spacing: 1px; }
.star-count { font-size: 11px; color: #aaa; }
.tc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 0.5px solid #f0f0ec;
}
.tc-price { font-size: 14px; font-weight: 600; color: #0F6E56; }
.tc-region {
  font-size: 11px;
  color: #888;
  background: #f4f4f0;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Color themes for avatar backgrounds */
.bg-teal  { background: linear-gradient(135deg, #E1F5EE, #9FE1CB); }
.bg-amber { background: linear-gradient(135deg, #FAEEDA, #FAC775); }
.bg-pink  { background: linear-gradient(135deg, #FBEAF0, #F4C0D1); }
.bg-blue  { background: linear-gradient(135deg, #E6F1FB, #B5D4F4); }
.bg-purple{ background: linear-gradient(135deg, #EEEDFE, #CECBF6); }
.bg-green { background: linear-gradient(135deg, #EAF3DE, #C0DD97); }

.av-teal  { background:#E1F5EE; color:#0F6E56; }
.av-amber { background:#FAEEDA; color:#854F0B; }
.av-pink  { background:#FBEAF0; color:#993556; }
.av-blue  { background:#E6F1FB; color:#185FA5; }
.av-purple{ background:#EEEDFE; color:#534AB7; }
.av-green { background:#EAF3DE; color:#3B6D11; }

/* ===================== STEPS ===================== */
.steps-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 0.5px solid #e5e5e0;
  border-radius: 12px;
}
.step-arrow {
  font-size: 20px;
  color: #ccc;
  padding: 0 12px;
  flex-shrink: 0;
}
.step-num {
  font-size: 11px;
  font-weight: 600;
  color: #0F6E56;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: #0F2D26;
  padding: 40px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-banner h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.cta-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ===================== FOOTER ===================== */
.footer {
  background: #fff;
  border-top: 0.5px solid #e5e5e0;
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 12px; color: #aaa; }

/* ===================== LOADING ===================== */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #aaa;
  font-size: 14px;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #aaa;
  font-size: 14px;
}

/* ===================== TEACHERS PAGE ===================== */
.page-hero {
  padding: 40px 0 32px;
  border-bottom: 0.5px solid #e5e5e0;
  background: #fff;
}
.page-hero h1 {
  font-size: 28px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}
.filter-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") right 12px center no-repeat;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  padding: 9px 36px 9px 14px;
  font-size: 13px;
  font-family: 'Noto Sans Georgian', sans-serif;
  color: #333;
  cursor: pointer;
  min-width: 160px;
}
.filter-select:focus { outline: none; border-color: #0F6E56; }

.results-count {
  font-size: 13px;
  color: #888;
  padding: 8px 0;
}

/* ===================== PROFILE PAGE ===================== */
.profile-wrap {
  padding: 40px 0 60px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.profile-card {
  background: #fff;
  border: 0.5px solid #e5e5e0;
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.profile-card-top {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  border: 3px solid rgba(255,255,255,0.7);
}
.profile-info { padding: 20px; }
.profile-name { font-size: 18px; font-weight: 600; color: #111; margin-bottom: 4px; }
.profile-sub { font-size: 13px; color: #888; margin-bottom: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.badge {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f4f4f0;
  color: #666;
}
.badge.green { background: #E1F5EE; color: #0F6E56; }

.info-rows { padding: 0 20px 20px; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid #f0f0ec;
  gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-lbl { font-size: 12px; color: #888; flex-shrink: 0; }
.info-val { font-size: 13px; color: #111; font-weight: 500; text-align: right; word-break: break-word; overflow-wrap: break-word; max-width: 180px; }
.info-val.green { color: #0F6E56; }

.contact-btn {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  background: #0F6E56;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans Georgian', sans-serif;
  transition: background 0.15s;
}
.contact-btn:hover { background: #0a5a43; }

.profile-main { display: flex; flex-direction: column; gap: 20px; }
.profile-section {
  background: #fff;
  border: 0.5px solid #e5e5e0;
  border-radius: 14px;
  padding: 24px;
}
.profile-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}
.profile-section p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* ===================== REGISTER PAGE ===================== */
.register-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.register-wrap h1 {
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.register-wrap p.sub {
  font-size: 14px;
  color: #777;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Noto Sans Georgian', sans-serif;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0F6E56;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%;
  background: #0F6E56;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans Georgian', sans-serif;
  margin-top: 8px;
  transition: background 0.15s;
}
.form-submit:hover { background: #0a5a43; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-sub br { display: none; }

  .search-bar {
    flex-direction: column;
    border-radius: 12px;
    max-width: 100%;
  }
  .sb-item { border-bottom: 0.5px solid #e5e5e0; }
  .sb-divider { display: none; }
  .sb-btn {
    border-radius: 0 0 10px 10px;
    padding: 14px;
    text-align: center;
  }

  .cats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .steps-row { flex-direction: column; gap: 10px; }
  .step-arrow { transform: rotate(90deg); padding: 0; }

  .cta-inner { flex-direction: column; text-align: center; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
  .stat-n { font-size: 18px; }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .teachers-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
}

/* ── TEXT LOGO ── */
a.logo {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.5px;
  font-family: 'Noto Sans Georgian', sans-serif;
}
.logo-dot { color: #0F6E56; }
