.km-home-wrapper {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

.km-hero-section {
  padding: 40px 0 30px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.km-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.km-hero-left {
  flex: 1.2;
}

.km-hero-right {
  flex: 1;
  text-align: right;
}

.km-hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #0d2757;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.km-hero-subtitle {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 24px;
  font-weight: 500;
}

.km-hero-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.km-search-box-wrap {
  background: #ffffff;
  border-radius: 50px;
  padding: 8px 10px 8px 24px;
  box-shadow: 0 10px 30px rgba(0, 98, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.km-search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.km-search-input-group i {
  color: #0062ff;
  font-size: 16px;
}

.km-search-input-group input,
.km-search-input-group select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1e293b;
  background: transparent;
  padding: 8px 0;
}

.km-search-divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
}

.km-btn-hero-search {
  background: #0062ff;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.km-btn-hero-search:hover {
  background: #004dc7;
  box-shadow: 0 4px 14px rgba(0, 98, 255, 0.35);
}

.km-hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.km-hero-stats i {
  color: #0062ff;
}

.km-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.km-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0;
}

.km-section-link {
  font-size: 14px;
  font-weight: 700;
  color: #0062ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.km-section-link:hover {
  color: #004dc7;
  gap: 10px;
  text-decoration: none;
}

.km-slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.km-slider-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.km-slider-nav-btn:hover {
  background: #0062ff;
  color: #ffffff;
  border-color: #0062ff;
  box-shadow: 0 4px 10px rgba(0, 98, 255, 0.25);
}

.km-slider-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 2px 18px;
  scroll-behavior: smooth;
  cursor: grab;
}

.km-slider-track:active {
  cursor: grabbing;
}

.km-slider-track::-webkit-scrollbar {
  display: none;
}

.km-popular-teachers {
  padding: 30px 0 35px;
}

.km-teacher-card {
  flex: 0 0 260px !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.km-teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 98, 255, 0.09);
  border-color: #bfdbfe;
}

.km-teacher-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.km-teacher-fav-btn:hover {
  color: #ef4444;
}

.km-teacher-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid #f1f5f9;
}

.km-teacher-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.km-teacher-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.km-teacher-subject {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-teacher-exp {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.km-teacher-rating {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.km-teacher-rating i {
  color: #f59e0b;
}

.km-teacher-rating span {
  color: #94a3b8;
  font-weight: 400;
}

.km-teacher-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 20px;
}

.km-request-banner-section {
  padding: 15px 0 35px;
}

.km-request-banner {
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 8px 24px rgba(0, 98, 255, 0.04);
}

.km-request-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: #0d2757;
  margin-bottom: 6px;
  text-align: center;
}

.km-request-banner-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  text-align: center;
}

.km-request-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.km-request-input-wrap {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.km-request-input-wrap i {
  color: #0062ff;
  font-size: 15px;
}

.km-request-input-wrap input,
.km-request-input-wrap select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #1e293b;
}

.km-btn-create-request {
  background: #0062ff;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.km-btn-create-request:hover {
  background: #004dc7;
  box-shadow: 0 4px 14px rgba(0, 98, 255, 0.3);
}

.km-recent-requests-section {
  padding: 20px 0 35px;
}

.km-requests-header {
  margin-bottom: 16px;
}

.km-requests-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.km-request-card {
  flex: 0 0 280px !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.km-request-card:hover {
  border-color: #0062ff;
  box-shadow: 0 6px 20px rgba(0, 98, 255, 0.08);
}

.km-request-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.km-request-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.km-badge-math { background: #fff7ed; color: #ea580c; }
.km-badge-lang { background: #ecfdf5; color: #059669; }
.km-badge-phys { background: #f5f3ff; color: #7c3aed; }
.km-badge-music { background: #eff6ff; color: #0284c7; }

.km-request-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
}

.km-request-location {
  font-size: 12px;
  color: #64748b;
}

.km-request-level {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.km-request-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px dashed #f1f5f9;
}

.km-request-price-label {
  font-size: 12px;
  color: #94a3b8;
}

.km-request-price-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.km-request-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.km-request-time {
  font-size: 11px;
  color: #94a3b8;
}

.km-btn-give-offer {
  background: #ffffff;
  color: #0062ff;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.km-btn-give-offer:hover {
  background: #0062ff;
  color: #ffffff;
  border-color: #0062ff;
}

.km-request-info-bar {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.km-content-3col-section {
  padding: 25px 0 35px;
}

.km-content-3col-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 14px;
  scroll-behavior: smooth;
}

.km-content-3col-grid::-webkit-scrollbar {
  display: none;
}

.km-col-box {
  flex: 0 0 350px !important;
  width: 350px !important;
  min-width: 350px !important;
  max-width: 350px !important;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}

.km-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.km-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.km-col-all-link {
  font-size: 12px;
  font-weight: 700;
  color: #0062ff;
  text-decoration: none;
}

.km-col-all-link:hover {
  text-decoration: underline;
}

.km-col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.km-col-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.km-col-item:hover {
  background-color: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.km-col-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.km-col-item-info {
  flex: 1;
  min-width: 0;
}

.km-col-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.km-col-item-date {
  font-size: 11px;
  color: #94a3b8;
}

.km-testimonials-section {
  padding: 25px 0 35px;
  background-color: #f8fafc;
}

.km-testimonials-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 14px;
  scroll-behavior: smooth;
}

.km-testimonials-grid::-webkit-scrollbar {
  display: none;
}

.km-testi-card {
  flex: 0 0 340px !important;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.km-testi-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.km-testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.km-testi-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.km-testi-location {
  font-size: 12px;
  color: #64748b;
}

.km-testi-stars {
  color: #f59e0b;
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 2px;
}

.km-testi-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 12px;
  font-style: italic;
}

.km-testi-author {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: right;
}

.km-faq-section {
  padding: 30px 0 40px;
}

.km-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.km-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s;
}

.km-faq-item.active {
  border-color: #0062ff;
  box-shadow: 0 4px 14px rgba(0, 98, 255, 0.06);
}

.km-faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.km-faq-question i {
  color: #0062ff;
  transition: transform 0.2s;
}

.km-faq-item.active .km-faq-question i {
  transform: rotate(180deg);
}

.km-faq-answer {
  padding: 0 20px 18px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  display: none;
}

.km-faq-item.active .km-faq-answer {
  display: block;
}

.km-seo-directory-section {
  padding: 30px 0 40px;
  background: #f8faff;
  border-top: 1px solid #e2e8f0;
}

.km-seo-directory-wrap {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
}

.km-seo-dir-main-title {
  font-size: 18px;
  font-weight: 800;
  color: #0d2757;
  line-height: 1.3;
  width: 160px;
  flex-shrink: 0;
}

.km-seo-cities-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.km-seo-city-col h5 {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.km-seo-city-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-seo-city-col a {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.km-seo-city-col a:hover {
  color: #0062ff;
}

.km-seo-next-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0062ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 10px;
}

.km-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.km-modal-backdrop.active {
  display: flex;
}

.km-modal-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: kmModalIn 0.25s ease-out;
}

@keyframes kmModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.km-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #64748b;
  transition: all 0.2s;
}

.km-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.km-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0d2757;
  margin: 0 0 6px;
}

.km-modal-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px;
}

.km-form-group {
  margin-bottom: 16px;
}

.km-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.km-form-group input,
.km-form-group select,
.km-form-group textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  font-family: inherit;
}

.km-form-group input:focus,
.km-form-group select:focus,
.km-form-group textarea:focus {
  border-color: #0062ff;
  box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

.km-btn-modal-submit {
  width: 100%;
  background: #0062ff;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.km-btn-modal-submit:hover {
  background: #004dc7;
}

@media (max-width: 992px) {
  .km-hero-grid {
    flex-direction: column;
    text-align: center;
  }
  .km-hero-right {
    text-align: center;
  }
  .km-search-box-wrap {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
  }
  .km-search-divider {
    display: none;
  }
  .km-btn-hero-search {
    width: 100%;
  }
  .km-hero-stats {
    justify-content: center;
  }
  .km-seo-directory-wrap {
    flex-direction: column;
  }
  .km-seo-dir-main-title {
    width: 100%;
  }
  .km-seo-cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.swal-overlay {
  z-index: 999999 !important;
}
.swal-modal {
  z-index: 999999 !important;
}
.swal2-container {
  z-index: 999999 !important;
}
