/* ==========================================================================
   TutorBridge - UI Components
   Marketplace Cards, Buttons, Search Module, SVG Icons, Forms, Modals
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--deep-teal);
  outline-offset: 2px;
}

/* Primary CTA: Golden Yellow with Dark Text -> Hover Deep Teal with White Text */
.btn-primary {
  background-color: var(--golden-yellow);
  color: var(--text-main);
  border-color: var(--golden-yellow);
}

.btn-primary:hover {
  background-color: var(--deep-teal);
  color: #FFFFFF;
  border-color: var(--deep-teal);
}

/* Deep Teal Action Button */
.btn-teal {
  background-color: var(--deep-teal);
  color: #FFFFFF;
  border-color: var(--deep-teal);
}

.btn-teal:hover {
  background-color: var(--deep-teal-dark);
  color: #FFFFFF;
  border-color: var(--deep-teal-dark);
}

/* Secondary Button: Bright Cyan or Soft Background */
.btn-secondary {
  background-color: var(--bright-cyan-light);
  color: var(--deep-teal);
  border-color: rgba(33, 141, 174, 0.2);
}

.btn-secondary:hover {
  background-color: var(--deep-teal);
  color: #FFFFFF;
  border-color: var(--deep-teal);
}

/* Cyan Button */
.btn-cyan {
  background-color: var(--bright-cyan);
  color: #FFFFFF;
  border-color: var(--bright-cyan);
}

.btn-cyan:hover {
  background-color: #24A2BB;
  color: #FFFFFF;
}

/* Outline Button: Clean neutral border with Deep Teal text */
.btn-outline {
  background-color: transparent;
  color: var(--deep-teal);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--deep-teal);
  background-color: var(--bright-cyan-light);
  color: var(--deep-teal);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background-color: var(--bg-page);
  color: var(--deep-teal);
}

.btn-white {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-white:hover {
  border-color: var(--deep-teal);
  color: var(--deep-teal);
}

/* Button Sizes */
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  border-radius: var(--radius-btn);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   SVG Icons System
   ========================================================================== */
.icon-svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-teal { color: var(--deep-teal); }
.icon-cyan { color: var(--bright-cyan); }
.icon-yellow { color: #EAB308; }

/* ==========================================================================
   Badges & Tags
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-teal {
  background-color: var(--bright-cyan-light);
  color: var(--deep-teal);
}

.badge-yellow {
  background-color: var(--soft-yellow);
  color: var(--text-main);
  border: 1px solid rgba(255, 215, 88, 0.4);
}

.badge-golden {
  background-color: var(--golden-yellow);
  color: var(--text-main);
}

.badge-cyan {
  background-color: #E0F7FA;
  color: #00838F;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--deep-teal);
  background-color: var(--bright-cyan-light);
  border: 1px solid rgba(33, 141, 174, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.form-label .required {
  color: var(--danger);
  margin-left: 0.2rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-input);
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(33, 141, 174, 0.12);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.form-checkbox-label input[type="checkbox"],
.form-checkbox-label input[type="radio"] {
  accent-color: var(--deep-teal);
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.radio-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 0.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: var(--transition);
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card.selected,
.radio-card:has(input:checked) {
  border-color: var(--deep-teal);
  background-color: var(--bright-cyan-light);
}

.radio-card-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
}

/* ==========================================================================
   Search Module (Hero & Directory)
   10-12px radius, subtle border, soft shadow, White background
   ========================================================================== */
.search-widget-container {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-search);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-field-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  border-right: 1px solid var(--border-light);
  position: relative;
}

.search-field-group:last-of-type {
  border-right: none;
}

.search-field-group .icon-svg {
  color: var(--deep-teal);
}

.search-field-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.search-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-input-field {
  border: none;
  padding: 0.15rem 0 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  width: 100%;
}

.search-input-field:focus {
  outline: none;
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  max-height: 230px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.search-suggestion-item {
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-suggestion-item:hover {
  background-color: var(--bright-cyan-light);
  color: var(--deep-teal);
}

/* ==========================================================================
   Tutor Card (Marketplace Listing Style)
   White card, 10-12px radius, subtle border, hover shadow only
   ========================================================================== */
.tutor-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: 1.25rem;
  box-shadow: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tutor-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(33, 141, 174, 0.3);
}

.tutor-card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.tutor-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.tutor-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.tutor-favorite-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 2;
}

.tutor-favorite-btn:hover {
  color: #DC2626;
  border-color: #FCA5A5;
}

.tutor-favorite-btn.active {
  color: #DC2626;
  background-color: #FEF2F2;
  border-color: #FCA5A5;
}

.tutor-favorite-btn.active svg {
  fill: #DC2626;
}

.tutor-meta-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tutor-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tutor-name a:hover {
  color: var(--deep-teal);
}

.tutor-headline {
  font-size: 0.8125rem;
  color: var(--deep-teal);
  font-weight: 600;
}

.tutor-ratings-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  margin-top: 0.2rem;
}

.tutor-bio-snippet {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tutor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.tutor-pill {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-page);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.tutor-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tutor-price-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.tutor-price-period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Category Card (Clean White, Small Teal Icon, 10-12px Radius)
   ========================================================================== */
.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.15rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition);
  box-shadow: none;
}

.category-card:hover {
  border-color: var(--deep-teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-card.highlight {
  background-color: var(--soft-yellow-light);
  border-color: rgba(255, 215, 88, 0.4);
}

.category-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bright-cyan-light);
  color: var(--deep-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.category-card:hover .category-icon-box {
  background: var(--deep-teal);
  color: #FFFFFF;
}

.category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.category-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 3px;
}

.category-count {
  font-size: 0.78125rem;
  color: var(--deep-teal);
  font-weight: 600;
}

/* ==========================================================================
   Audience Cards (Built for Learners & Tutors)
   ========================================================================== */
.audience-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.audience-card:hover {
  border-color: var(--deep-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.audience-card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bright-cyan-light);
  color: var(--deep-teal);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.audience-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.audience-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.audience-feature-list {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
}

.audience-feature-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.audience-feature-item svg {
  color: var(--deep-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   Course Card
   ========================================================================== */
.course-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(33, 141, 174, 0.3);
}

.course-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-page);
}

.course-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail {
  transform: scale(1.03);
}

.course-badge-overlay {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
}

.course-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.course-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-title a:hover {
  color: var(--deep-teal);
}

.course-instructor {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.course-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.course-current-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.course-original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.step-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: 1.75rem 1.25rem;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--deep-teal);
  box-shadow: var(--shadow-sm);
}

.step-card.highlight {
  background-color: var(--soft-yellow-light);
  border-color: rgba(255, 215, 88, 0.4);
}

.step-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-teal);
  background: var(--bright-cyan-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Star Ratings
   ========================================================================== */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #EAB308;
}

.star-interactive {
  cursor: pointer;
  font-size: 1.4rem;
  color: #D1D5DB;
  transition: var(--transition);
}

.star-interactive.active, .star-interactive:hover {
  color: #EAB308;
}

/* ==========================================================================
   Modal System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(23, 50, 58, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  transform: translateY(8px);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   .modal-card — the container class used by the dashboard/admin/profile
   modals. Without these rules the dialog had no width, height or internal
   scrolling, so long forms overflowed the viewport and overlapped the page.
   ========================================================================== */
.modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 860px);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-card .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.modal-card .modal-footer {
  flex-shrink: 0;
}

.modal-card .modal-header {
  flex-shrink: 0;
}

.modal-lg {
  max-width: 760px;
}

.modal-md {
  max-width: 600px;
}

/* Long forms keep readable, evenly spaced fields instead of stretching. */
.modal-card .form-group {
  margin-bottom: 0.95rem;
}

.modal-card .form-label {
  margin-bottom: 0.15rem;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0.6rem;
    align-items: flex-start;
  }
  .modal-card,
  .modal-card.modal-lg,
  .modal-card.modal-md {
    max-width: 100%;
    max-height: 92vh;
  }
  .modal-card .modal-body {
    padding: 1.1rem;
  }
  .modal-card .modal-header,
  .modal-card .modal-footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--bg-page);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: var(--bg-page);
  border-bottom-left-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
}

/* ==========================================================================
   Multi-Step Wizard
   ========================================================================== */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-progress-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-light);
  transform: translateY(-50%);
  z-index: 1;
}

.wizard-progress-bar {
  height: 100%;
  background-color: var(--deep-teal);
  width: 0%;
  transition: width 0.3s ease;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.wizard-step-node.active {
  border-color: var(--deep-teal);
  background-color: var(--deep-teal);
  color: #FFFFFF;
}

.wizard-step-node.completed {
  border-color: var(--deep-teal);
  background-color: #FFFFFF;
  color: var(--deep-teal);
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: #FFFFFF;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 280px;
  max-width: 380px;
}

.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error { border-left: 3px solid var(--danger); }
.toast.toast-info { border-left: 3px solid var(--deep-teal); }

.toast-message {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
}

.toast-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

/* ==========================================================================
   Dashboard Components
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding: 2rem 0 4rem 0;
}

.dashboard-sidebar {
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: 1rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: fit-content;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dashboard-nav-item:hover, .dashboard-nav-item.active {
  background-color: var(--bright-cyan-light);
  color: var(--deep-teal);
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-top: 0.2rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bright-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-teal);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  background: #FFFFFF;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  background-color: var(--bg-page);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-card);
}

.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-main);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background-color: var(--bright-cyan-light);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  border: 1px dashed var(--border-light);
  max-width: 480px;
  margin: 0 auto;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.empty-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Chat Layout */
.chat-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 640px;
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

.chat-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-card);
}

.chat-thread-list {
  overflow-y: auto;
  flex: 1;
}

.chat-thread-item {
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-card);
  cursor: pointer;
  transition: var(--transition);
}

.chat-thread-item:hover, .chat-thread-item.active {
  background-color: var(--bright-cyan-light);
}

.chat-avatar-container {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--success);
  border: 2px solid #FFFFFF;
}

.chat-thread-details {
  flex: 1;
  overflow: hidden;
}

.chat-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.chat-thread-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
}

.chat-thread-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-thread-preview {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-main {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}

.chat-main-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-bubble.incoming {
  align-self: flex-start;
  background-color: var(--bg-page);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.message-bubble.outgoing {
  align-self: flex-end;
  background-color: var(--deep-teal);
  color: #FFFFFF;
}

.message-time {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  opacity: 0.75;
  text-align: right;
}

.chat-input-bar {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #FFFFFF;
}

/* Calendar Widget */
.calendar-widget {
  background-color: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.calendar-day-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.4rem 0;
}

.calendar-day-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  background-color: #FFFFFF;
}

.calendar-day-cell:hover {
  border-color: var(--deep-teal);
  background-color: var(--bright-cyan-light);
}

.calendar-day-cell.active-day {
  border-color: var(--deep-teal);
  box-shadow: 0 0 0 1.5px var(--deep-teal);
}

.calendar-day-num {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-main);
}

.calendar-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--deep-teal);
  margin-top: 2px;
}

.calendar-event-dot.demo { background-color: var(--golden-yellow); }
.calendar-event-dot.class { background-color: var(--deep-teal); }
.calendar-event-dot.available { background-color: var(--bright-cyan); }

/* ==========================================================================
   Responsive Grids: Categories (2 cols on mobile) & Tutors (3 desktop, 2 tab, 1 mob)
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .category-card {
    padding: 0.85rem 0.65rem;
    gap: 0.65rem;
  }
  .category-desc {
    display: none;
  }
}

.tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .tutors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .tutors-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

/* ==========================================================================
   REBUILT HERO SECTION (REFERENCE COMPOSITION)
   Full-width soft light-blue background, large typography,
   prominent horizontal search, geometric blue corner image
   ========================================================================== */
.hero-rebuild-section {
  background-color: #E4F0FF;
  width: 100%;
  min-height: 680px;
  padding: 4.5rem 0 5rem 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-rebuild-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr; /* ~58-62% left, ~38-42% right */
  gap: 3.5rem;
  align-items: center;
}

/* Small Label: EDUCATION MARKETPLACE */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(33, 141, 174, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #218DAE;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: heroFadeIn 0.5s ease-out;
}

/* Dominant Main Headline */
.hero-title-main {
  font-size: clamp(2.75rem, 4.3vw, 4.2rem);
  font-weight: 800;
  color: #17323A;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 700px;
  animation: heroFadeUp 0.6s ease-out 0.1s both;
}

/* Supporting Paragraph */
.hero-desc-main {
  font-size: 1.15rem;
  color: #607780;
  line-height: 1.62;
  margin-bottom: 2rem;
  max-width: 700px;
  animation: heroFadeUp 0.6s ease-out 0.2s both;
}

/* Large Horizontal Search Bar */
.hero-horizontal-search {
  width: 100%;
  max-width: 700px;
  height: 92px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(23, 50, 58, 0.08);
  border: 1px solid rgba(228, 236, 239, 0.9);
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem 0.65rem 1.5rem;
  gap: 1rem;
  position: relative;
  animation: heroFadeUp 0.6s ease-out 0.3s both;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-horizontal-search:focus-within {
  box-shadow: 0 10px 36px rgba(33, 141, 174, 0.15);
  border-color: #218DAE;
}

.hero-search-icon {
  color: #879DA5;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 1.125rem; /* 18px */
  color: #17323A;
  font-weight: 500;
  background: transparent;
  font-family: inherit;
}

.hero-search-input::placeholder {
  color: #879DA5;
  font-weight: 400;
}

.hero-search-btn {
  height: calc(100% - 8px);
  min-height: 56px;
  padding: 0 2rem;
  background: #FFD758;
  color: #17323A;
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(255, 215, 88, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-search-btn:hover {
  background: #E6C147;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 215, 88, 0.5);
}

.hero-search-btn:active {
  transform: translateY(0);
}

/* Validation Feedback Tooltip */
.search-validation-msg {
  display: none;
  position: absolute;
  bottom: -28px;
  left: 1.5rem;
  font-size: 0.8125rem;
  color: #DC2626;
  font-weight: 600;
}

.hero-horizontal-search.has-error {
  border-color: #F87171 !important;
}

.hero-horizontal-search.has-error .search-validation-msg {
  display: block;
}

/* Trust / Statistics Row */
.hero-trust-horizontal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #17323A;
  animation: heroFadeIn 0.7s ease-out 0.4s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(96, 119, 128, 0.35);
}

/* Right-Side Lifestyle Image & Medium-Blue Geometric Corner Shape */
.hero-image-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  padding-top: 26px;
  padding-left: 26px;
  animation: heroSlideRight 0.8s ease-out 0.2s both;
}

/* Geometric top/left corner accent (#5E8FEA) */
.hero-image-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 78%;
  background: #5E8FEA;
  border-radius: 14px;
  z-index: 1;
}

.hero-image-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 470px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(23, 50, 58, 0.12);
  background: #FFFFFF;
}

.hero-lifestyle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-frame:hover .hero-lifestyle-img {
  transform: scale(1.025);
}

/* Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   POPULAR LEARNING CATEGORIES (6 DOMAINS)
   Academics, Languages, IT & Technology, Competitive Exams,
   Hobbies & Creative Skills, Fitness & Wellness
   ========================================================================== */
.learning-domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .learning-domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .learning-domains-grid {
    grid-template-columns: 1fr;
  }
}

.learning-domain-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(23, 50, 58, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.learning-domain-card:hover {
  transform: translateY(-4px);
  border-color: #2BBBD7;
  box-shadow: 0 12px 28px rgba(33, 141, 174, 0.1);
}

.domain-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.domain-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #EBF8FA;
  color: #218DAE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.learning-domain-card:hover .domain-icon-box {
  background: #218DAE;
  color: #FFFFFF;
}

.domain-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #17323A;
  margin: 0 0 4px 0;
}

.domain-desc {
  font-size: 0.9rem;
  color: #607780;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.domain-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #F0F5F7;
}

.domain-meta-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #218DAE;
}

.domain-link-arrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: #218DAE;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.learning-domain-card:hover .domain-link-arrow {
  transform: translateX(4px);
}
