/**
 * MCT Frontend Theme
 * Central color tokens — update :root to rebrand the site.
 */
:root {
  --primary-color: #1B2340;
  --secondary-color: #232D4B;
  --accent-color: #F97316;
  --accent-hover: #ea6c0a;
  --accent-light: #FFF4EC;
  --text-color: #1E293B;
  --heading-color: #1B2340;
  --background-color: #FFFFFF;
  --border-color: #E2E8F0;
  --footer-bg: #1B2340;
  --surface-color: #F8FAFC;
  --muted-color: #64748B;
  --success-color: #22C55E;
  --footer-text: rgba(255, 255, 255, 0.65);
  --footer-text-muted: rgba(255, 255, 255, 0.6);
  --footer-heading: white;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-social-bg: rgba(255, 255, 255, 0.07);
  --brand-highlight-color: #8e44ad;
  --process-badge-bg: rgba(142, 68, 173, 0.12);
  --process-badge-text: #6a307d;
}

/* ── Base typography (header/footer scope) ───────────────── */
.mct-nav,
.mct-footer {
  font-family: 'Inter', sans-serif;
}

.mct-footer .footer-brand {
  font-family: 'Sora', sans-serif;
}

/* ── Header / Nav ──────────────────────────────────────── */
header.mct-header {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 0;
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}

.mct-nav {
  background: var(--background-color);
  padding: 0.5rem 0;
}

.mct-nav-bar {
  width: 100%;
  min-height: 52px;
}

.mct-nav-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  text-decoration: none;
  gap: 0.5rem;
}

.mct-nav-brand img {
  width: 60px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.mct-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--heading-color);
  white-space: nowrap;
}

.mct-brand-name .mct-brand-highlight {
  color: var(--brand-highlight-color);
}

@media (max-width: 575.98px) {
  .mct-brand-name {
    font-size: 0.95rem;
  }
}

.mct-nav-toggler {
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: transparent;
  color: var(--primary-color);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.mct-nav-links .nav-link-custom + .nav-link-custom {
  margin-left: 0.15rem;
}

.mct-nav-actions .btn-login {
  margin-right: 0.5rem;
}

.mct-nav .nav-link-custom {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.mct-nav .nav-link-custom:hover,
.mct-nav .nav-link-custom.active {
  background: var(--surface-color);
  color: var(--accent-color);
}

.mct-nav .btn-login {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border: 1.5px solid var(--primary-color);
  border-radius: 8px;
  color: var(--primary-color);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.mct-nav .btn-login:hover {
  background: var(--primary-color);
  color: var(--background-color);
}

.mct-nav .btn-cta-nav {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  background: var(--accent-color);
  color: var(--background-color);
  border-radius: 8px;
  border: none;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.mct-nav .btn-cta-nav:hover {
  background: var(--accent-hover);
  color: var(--background-color);
}

.mct-nav .btn-login-block,
.mct-nav .btn-cta-nav-block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.mct-nav .mct-profile-toggle {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  background: transparent;
}

.mct-nav .mct-profile-toggle:hover,
.mct-nav .mct-profile-toggle:focus {
  background: var(--surface-color);
  color: var(--primary-color);
  box-shadow: none;
}

.mct-nav .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  min-width: 13em;
  margin-top: 0.35rem;
}

.mct-nav .dropdown-menu::before {
  display: none;
}

.mct-nav .dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.mct-nav .dropdown-item:hover {
  background: var(--surface-color);
  color: var(--accent-color);
}

/* Mobile collapse panel — NOT using navbar-collapse to avoid BS4 expand conflicts */
.mct-nav .mct-mobile-panel {
  display: none;
}

.mct-nav .mct-mobile-panel.show,
.mct-nav .mct-mobile-panel.collapsing {
  display: block;
}

.mct-nav .mct-mobile-menu {
  padding: 1rem 0 0.5rem;
}

.mct-nav .mct-mobile-menu .nav-link-custom {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.25rem;
}

.mct-nav .mct-mobile-menu .mct-mobile-divider {
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
  padding-top: 1rem;
}


/* ── Footer ────────────────────────────────────────────── */
.mct-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  border-top: none;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  clear: both;
}

.mct-footer .footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--background-color);
}

.mct-footer .footer-brand img {
  max-width: 160px;
  height: auto;
}

.mct-footer .footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  color: var(--footer-text);
}

.mct-footer .footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin-bottom: 0.85rem;
}

.mct-footer .footer-link {
  font-size: 0.85rem;
  color: var(--footer-text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.mct-footer .footer-link:hover {
  color: var(--accent-color);
}

.mct-footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.mct-footer .footer-contact-item a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.mct-footer .footer-contact-item a:hover {
  color: var(--accent-color);
}

.mct-footer .mct-footer-grid > [class*="col-"] {
  margin-bottom: 1.5rem;
}

.mct-footer .mct-social-row .social-btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.mct-footer .social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--footer-social-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin: 0;
}

.mct-footer .social-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.mct-footer .social-btn--facebook {
  background: #1877f2;
}

.mct-footer .social-btn--facebook:hover {
  background: #166fe5;
}

.mct-footer .social-btn--youtube {
  background: #ff0000;
}

.mct-footer .social-btn--youtube:hover {
  background: #e60000;
}

.mct-footer .social-btn--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.mct-footer .social-btn--instagram:hover {
  background: linear-gradient(45deg, #e8852a 0%, #d95d33 25%, #d01f3a 50%, #b81f5c 75%, #a9157a 100%);
}

.mct-footer .social-btn--tiktok {
  background: #000;
}

.mct-footer .social-btn--tiktok:hover {
  background: #111;
}

.mct-footer .social-btn svg {
  width: 20px;
  height: 20px;
}

.mct-footer .footer-bottom {
  border-top: 1px solid var(--footer-border);
  margin-top: 2.5rem;
  padding: 1.25rem 0 0;
  font-size: 0.8rem;
  background: transparent;
  height: auto;
  color: var(--footer-text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mct-footer .footer-bottom .accent-heart {
  color: var(--accent-color);
}

/* WhatsApp float (preserve existing behaviour) */
.mct-footer ~ .float,
.float {
  background-color: var(--success-color);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .mct-nav .mct-mobile-panel.show {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 0.75rem;
    padding: 0 1rem 0.75rem;
  }

  /* Override legacy purple mobile menu from responsive.css */
  .mct-nav .mct-mobile-panel,
  .mct-nav .mct-mobile-panel.show {
    background-color: var(--background-color) !important;
    text-align: left !important;
  }
}

@media (min-width: 992px) {
  /* Never show mobile drawer on desktop */
  .mct-nav .mct-mobile-panel,
  .mct-nav .mct-mobile-panel.show,
  .mct-nav .mct-mobile-panel.collapsing {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  .mct-nav-toggler {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .mct-footer {
    padding: 40px 0 24px;
  }

  .mct-footer .footer-bottom {
    padding: 1rem 0 0;
    text-align: center;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════
   CMS PAGE COMPONENTS (shared across all static pages)
   ══════════════════════════════════════════════════════════ */

.mct-page-hero,
.mct-section,
.mct-prose,
.mct-contact-form,
.mct-faq-section {
  font-family: 'Inter', sans-serif;
}

.mct-page-hero {
  background: var(--primary-color);
  position: relative;
  overflow: visible;
  padding: 56px 0 110px;
}

.mct-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, var(--secondary-color) 0%, transparent 70%);
  pointer-events: none;
}

.mct-page-hero .container {
  position: relative;
  z-index: 1;
}

.mct-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.mct-page-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--background-color);
  margin-bottom: 0.75rem;
}

.mct-page-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 0;
}

.mct-page-hero.text-center .mct-page-lead,
.mct-page-hero .text-center .mct-page-lead {
  margin-left: auto;
  margin-right: auto;
}

.mct-section {
  padding: 64px 0;
}

.mct-section-alt {
  background: var(--surface-color);
}

.mct-section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}

.mct-section-sub {
  font-size: 1rem;
  color: var(--muted-color);
  line-height: 1.7;
  max-width: 640px;
}

.mct-prose {
  padding: 48px 0 64px;
  color: var(--text-color);
  line-height: 1.8;
}

.mct-prose h5,
.mct-prose h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--heading-color);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.mct-prose p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.mct-prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.mct-prose li {
  margin-bottom: 0.35rem;
}

.mct-prose a {
  color: var(--accent-color);
  text-decoration: none;
}

.mct-prose a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
@media (max-width: 576px) {
    .mct-prose {
        padding: 10px 18px;
    }
}

/* Buttons */
.mct-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--background-color);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.mct-btn-primary:hover {
  background: var(--accent-hover);
  color: var(--background-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.mct-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid var(--primary-color);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mct-btn-outline:hover {
  background: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
}

/* How it works steps */
.mct-steps {
  display: flex;
  flex-direction: column;
}

.mct-step {
  display: flex;
  align-items: flex-start;
}

.mct-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
}

.mct-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-color);
  color: var(--background-color);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mct-step-num-accent {
  background: var(--accent-color);
}

.mct-step-connector {
  width: 2px;
  height: 50px;
  background: var(--border-color);
  margin: 0.3rem auto;
}

.mct-step-body {
  padding-bottom: 1rem;
  padding-left: 0.75rem;
}

.mct-step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}

.mct-step-text {
  font-size: 0.9rem;
  color: var(--muted-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/* How It Works — horizontal process (home + /howitworks) */
.mct-process-section {
  background: var(--background-color);
}

.mct-process-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.mct-process-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--process-badge-text);
  background: var(--process-badge-bg);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.mct-process-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.mct-process-title-accent {
  color: var(--brand-highlight-color);
}

.mct-process-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-color);
  margin-bottom: 0;
}

.mct-process-flow {
  position: relative;
  padding-top: 0.5rem;
}

.mct-process-track {
  position: absolute;
  top: 28px;
  left: 16.666%;
  right: 16.666%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--brand-highlight-color) 0%,
    var(--accent-color) 50%,
    var(--brand-highlight-color) 100%
  );
  border-radius: 99px;
  z-index: 0;
}

.mct-process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem 1rem;
}

.mct-process-step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--brand-highlight-color);
  color: var(--background-color);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(106, 48, 125, 0.22);
}

.mct-process-step-num-accent {
  background: var(--accent-color);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.mct-process-step-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}

.mct-process-step-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-color);
  margin: 0 auto;
  max-width: 320px;
}

@media (max-width: 767.98px) {
  .mct-process-track {
    display: none;
  }

  .mct-process-step {
    margin-bottom: 1.5rem;
  }

  .mct-process-step:last-child {
    margin-bottom: 0;
  }
}

/* Feature cards (Why Choose Us, etc.) */
.mct-feature-card {
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.mct-feature-card-body {
  padding: 1.5rem;
}

.mct-feature-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}

.mct-feature-card p {
  font-size: 0.9rem;
  color: var(--muted-color);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.mct-feature-card img {
  width: 100%;
  display: block;
}

.mct-feature-card-highlight {
  background: var(--primary-color);
  border-color: transparent;
}

.mct-feature-card-highlight h3,
.mct-feature-card-highlight p {
  color: rgba(255, 255, 255, 0.9);
}

/* Why Choose Us page */
.mct-why-section {
  background: var(--surface-color);
}

.mct-why-header {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.mct-why-points {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.mct-why-points li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-color);
}

.mct-why-points li::before {
  content: '✓';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

@media (min-width: 768px) {
  .mct-why-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .mct-why-header {
    margin-bottom: 1.75rem;
  }

  .mct-why-points li {
    padding: 1rem 1.1rem;
    font-size: 0.9rem;
  }
}

/* Platform stats banner (homepage) */
.mct-stats-banner {
  background: var(--accent-color);
  border-top: 6px solid var(--primary-color);
  padding: 2.25rem 0;
}

.mct-stats-row {
  align-items: center;
  text-align: center;
}

.mct-stat-item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.mct-stat-number {
  font-family: 'Sora', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--primary-color);
  margin: 0;
}

.mct-stat-number .fa-star {
  font-size: 0.72em;
  margin-left: 0.1rem;
  vertical-align: baseline;
}

.mct-stat-caption {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.62rem, 1.4vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  .mct-stats-banner {
    padding: 1.75rem 0;
  }

  .mct-stat-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .mct-stat-item:nth-child(n + 3) {
    margin-top: 0.25rem;
  }
}

/* Tutor listing cards */
.mct-tutor-grid {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.mct-tutor-grid > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.mct-tutor-card {
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mct-tutor-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 36px rgba(27, 35, 64, 0.1);
  transform: translateY(-3px);
}

.mct-tutor-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.mct-tutor-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.mct-tutor-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
  background: var(--primary-color);
  min-width: 0;
}

.mct-tutor-card-avatar {
  margin: 0;
  flex-shrink: 0;
}

.mct-tutor-card-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: block;
}

.mct-tutor-card-intro {
  flex: 1;
  min-width: 0;
}

.mct-tutor-card-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 0.15rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mct-tutor-card-subjects {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.85rem 1rem 0.25rem;
}

.mct-tutor-card-subject {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mct-tutor-card-subject--blue {
  background: #e8f0ff;
  border-color: #c7d9ff;
  color: #1e3a8a;
}

.mct-tutor-card-subject--purple {
  background: #f0e8ff;
  border-color: #d8c4f5;
  color: #5b21b6;
}

.mct-tutor-card-price {
  flex-shrink: 0;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.mct-tutor-card-body {
  padding: 0.9rem 1rem 0;
  flex: 1;
}

.mct-tutor-card-bio {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mct-tutor-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.mct-tutor-card-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.mct-tutor-card-stars {
  color: #f59e0b;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.mct-tutor-card-rating-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
}

.mct-tutor-card-cta {
  flex-shrink: 0;
  background: var(--process-badge-bg);
  color: var(--brand-highlight-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.mct-tutor-card:hover .mct-tutor-card-cta {
  background: var(--brand-highlight-color);
  color: #fff;
}

@media (max-width: 575.98px) {
  .mct-tutor-card-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .mct-tutor-card-footer {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .mct-tutor-card-rating {
    flex: 0 1 auto;
    min-width: 0;
  }

  .mct-tutor-card-cta {
    flex: 0 0 auto;
    width: auto;
    text-align: center;
    white-space: nowrap;
    padding: 0.4rem 0.6rem;
  }
}

/* Tutor detail page */
.mct-tutor-detail {
  background: var(--surface-color);
}

.mct-tutor-detail-main {
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
}

.mct-tutor-detail-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--heading-color);
  margin: 0 0 1.5rem;
}

.mct-tutor-detail-block + .mct-tutor-detail-block {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.mct-tutor-detail-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading-color);
  margin: 0 0 0.85rem;
}

.mct-tutor-detail-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted-color);
  margin: 0 0 0.85rem;
}

.mct-tutor-detail-text:last-child {
  margin-bottom: 0;
}

.mct-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mct-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-light);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.mct-tag--muted {
  background: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.mct-tutor-detail-reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mct-tutor-detail-rating-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
}

.mct-detail-reviews-list {
  display: grid;
  gap: 1rem;
}

.mct-detail-review-card {
  background: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
}

.mct-detail-review-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.mct-detail-review-author {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.mct-detail-review-subject {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0 0 0.5rem;
}

.mct-detail-review-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted-color);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mct-tutor-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.mct-tutor-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mct-tutor-profile-card {
  position: sticky;
  top: 88px;
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(27, 35, 64, 0.08);
}

.mct-tutor-profile-card-header {
  background: var(--primary-color);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}

.mct-tutor-profile-avatar {
  margin: 0 auto 1rem;
  width: 96px;
  height: 96px;
}

.mct-tutor-profile-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: block;
}

.mct-tutor-profile-avatar .avatar-initials,
.mct-tutor-profile-avatar .mct-tutor-profile-initials {
  width: 96px;
  height: 96px;
  font-size: 1.75rem;
  margin: 0 auto;
}

.mct-tutor-profile-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.mct-tutor-profile-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.mct-tutor-profile-stats {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.25rem;
}

.mct-tutor-profile-stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.mct-tutor-profile-stats li:last-child {
  border-bottom: none;
}

.mct-tutor-profile-stats span {
  color: var(--muted-color);
}

.mct-tutor-profile-stats strong {
  color: var(--heading-color);
  font-weight: 700;
}

.mct-tutor-profile-actions {
  display: grid;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.mct-tutor-profile-actions .mct-btn-primary,
.mct-tutor-profile-actions .mct-btn-outline {
  width: 100%;
}

.mct-tutor-detail-related {
  background: var(--background-color);
  padding-top: 0;
}

.mct-tutor-detail-related-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .mct-tutor-profile-card {
    position: static;
    margin-bottom: 1.5rem;
  }

  .mct-tutor-detail-main {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .mct-tutor-detail-reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Customer Testimonials (homepage) */
.mct-testimonials-section {
  background: var(--surface-color);
}

.mct-testimonials-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.mct-testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mct-testimonials-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.45) transparent;
}

.mct-testimonials-track::-webkit-scrollbar {
  height: 6px;
}

.mct-testimonials-track::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.45);
  border-radius: 99px;
}

.mct-testimonials-track::-webkit-scrollbar-track {
  background: transparent;
}

.mct-testimonial-card {
  flex: 0 0 calc(100% - 1rem);
  scroll-snap-align: start;
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mct-testimonial-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 10px 32px rgba(27, 35, 64, 0.08);
}

.mct-testimonial-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mct-testimonial-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading-color);
  margin: 0 0 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mct-testimonial-subject {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0 0 0.65rem;
}

.mct-testimonial-stars {
  color: #f59e0b;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.mct-testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted-color);
  margin: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mct-testimonial-body .nameFrom {
  font-size: 0.85rem;
  color: var(--heading-color);
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mct-testimonial-body .nameFrom strong {
  font-weight: 700;
  color: var(--heading-color);
  display: block;
}

.mct-testimonial-body .nameFrom-value {
  display: block;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mct-testimonials-nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--background-color);
  color: var(--heading-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mct-testimonials-nav:hover {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.mct-testimonials-empty {
  color: var(--muted-color);
  margin-bottom: 2rem;
}

.mct-btn-reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.mct-btn-reviews:hover {
  background: #ea6c0a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.mct-reviews-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  min-width: 0;
}

.mct-reviews-grid .mct-testimonial-card {
  flex: unset;
  min-height: 220px;
  width: 100%;
}

@media (min-width: 576px) {
  .mct-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mct-testimonials-track .mct-testimonial-card {
    flex: 0 0 calc(50% - 0.65rem);
  }
}

@media (min-width: 992px) {
  .mct-reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mct-testimonials-track .mct-testimonial-card {
    flex: 0 0 calc(33.333% - 0.85rem);
    min-height: 240px;
  }
}

@media (min-width: 1200px) {
  .mct-reviews-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mct-testimonials-track .mct-testimonial-card {
    flex: 0 0 calc(25% - 0.95rem);
  }
}

@media (max-width: 575.98px) {
  .mct-testimonials-header {
    margin-bottom: 1.75rem;
  }

  .mct-testimonials-nav {
    display: none;
  }

  .mct-testimonials-carousel {
    gap: 0;
  }

  .mct-testimonial-card {
    min-height: 200px;
    padding: 1.25rem;
  }
}

.mct-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.mct-trust-list li {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.35rem 0.75rem;
}

.mct-trust-list li::before {
  content: '✓';
  color: var(--accent-color);
  margin-right: 0.4rem;
}

/* CTA banner */
.mct-cta-banner {
  background: var(--primary-color);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.mct-cta-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  pointer-events: none;
}

.mct-cta-banner .mct-section-title {
  color: var(--background-color);
  position: relative;
  z-index: 1;
}

.mct-cta-banner .mct-section-sub {
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
}

/* About page */
.mct-about-image {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
}

.mct-about-points h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--heading-color);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Contact page */
.mct-contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.mct-contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-right: 0.85rem;
}

.mct-contact-info-item p {
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.mct-contact-info-item a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.mct-contact-info-item a:hover {
  color: var(--accent-color);
}

.mct-contact-form {
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 100%;
}

.mct-contact-form form {
  min-width: 0;
  max-width: 100%;
}

.mct-contact-form .form-group {
  margin-bottom: 1rem;
}

.mct-contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
}

.mct-contact-form input,
.mct-contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--surface-color);
  color: var(--text-color);
  transition: border-color 0.2s, background 0.2s;
}

.mct-contact-form input:focus,
.mct-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--background-color);
}

.mct-contact-form small {
  font-size: 0.75rem;
  color: var(--muted-color);
}

/* Google reCAPTCHA v2 iframe is fixed at 304x78 — scale it to the container's
   actual measured width via a container query instead of guessing ancestor
   paddings with viewport units (that guess drifted from the real available
   width and caused the widget to overflow/clip on narrow screens). */
.mct-contact-form .captcha-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  overflow: hidden;
  height: calc(78px * min(1, calc(100cqw / 304px)));
}

.mct-contact-form .g-recaptcha {
  transform-origin: left top;
  -webkit-transform-origin: left top;
  transform: scale(min(1, calc(100cqw / 304px)));
  margin-bottom: 0;
}

@media (max-width: 400px) {
  .mct-contact-form {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 340px) {
  .mct-contact-form {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}


/* Find a tutor search */
.mct-tutor-search-section {
  padding-top: 0;
  padding-bottom: 48px;
  margin-top: -28px;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.mct-tutor-search-card {
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(27, 20, 50, 0.08);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: visible;
}

.mct-tutor-quick-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.mct-tutor-search-field {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
}

.mct-tutor-advanced-form .row > [class*="col-"] {
  min-width: 0;
}

.mct-tutor-search-field label,
.mct-tutor-advanced-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
}

.mct-tutor-search-field select,
.mct-tutor-advanced-form input,
.mct-tutor-advanced-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--surface-color);
  color: var(--text-color);
  transition: border-color 0.2s, background 0.2s;
}

.mct-tutor-search-card .custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  margin: 0 !important;
}

.mct-tutor-search-card .custom-select select {
  display: none;
}

.mct-tutor-search-card .select-selected {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--surface-color);
  color: var(--text-color);
  cursor: pointer;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mct-tutor-search-card .select-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.85rem;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: var(--muted-color);
  transform: translateY(-25%);
  pointer-events: none;
}

.mct-tutor-search-card .select-selected.select-arrow-active {
  border-color: var(--accent-color);
  background: var(--background-color);
}

.mct-tutor-search-card .select-selected.select-arrow-active::after {
  transform: translateY(-75%) rotate(180deg);
}

.mct-tutor-search-card .select-selected.select-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--border-color);
}

.mct-tutor-search-card .select-items {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(27, 20, 50, 0.12);
}

.mct-tutor-search-card .select-items div {
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-color);
  border-radius: 0;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

.mct-tutor-search-card .select-items div:hover,
.mct-tutor-search-card .select-items div.same-as-selected {
  background: var(--surface-color);
  color: var(--primary-color);
}

.mct-tutor-search-field select:focus,
.mct-tutor-advanced-form input:focus,
.mct-tutor-advanced-form select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--background-color);
}

.mct-tutor-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
}

.mct-tutor-search-actions .mct-btn-primary,
.mct-tutor-search-actions .mct-btn-outline {
  margin-top: 1.66rem; /* offset field label (0.875rem * 1.5 line-height + 0.35rem margin) */
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 45px;
}

.mct-tutor-advanced-search {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.mct-tutor-advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.2s;
}

.mct-tutor-advanced-toggle:hover,
.mct-tutor-advanced-toggle:focus {
  color: var(--accent-color);
  outline: none;
}

.mct-tutor-advanced-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.mct-input-group {
  display: flex;
  align-items: stretch;
}

.mct-input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  background: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-color);
}

.mct-input-group input {
  border-radius: 0 8px 8px 0 !important;
}

.mct-tutor-advanced-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* FAQ page */
.mct-faq-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
}

.mct-faq-stat {
  background: var(--primary-color);
  color: var(--background-color);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  min-width: 180px;
  text-align: center;
}

.mct-faq-stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.mct-faq-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.mct-faq-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.mct-faq-card {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--background-color);
}

.mct-faq-card .card-header {
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

.mct-faq-card .btn-link {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mct-faq-card .btn-link:hover,
.mct-faq-card .btn-link:focus {
  text-decoration: none;
  color: var(--accent-color);
}

.mct-faq-card .faq-icon {
  color: var(--accent-color);
  margin-left: 0.75rem;
}

.mct-faq-card .btn-link.collapsed .faq-icon i {
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.mct-faq-card .btn-link:not(.collapsed) .faq-icon i {
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.mct-faq-card .card-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted-color);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 767.98px) {
  .mct-page-hero {
    padding: 40px 0 36px;
  }

  .mct-section {
    padding: 48px 0;
  }

  .mct-tutor-search-section {
    margin-top: -20px;
    padding-bottom: 32px;
  }

  .mct-tutor-search-actions {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
  }

  .mct-tutor-search-field {
    flex: 1 1 100%;
  }

  .mct-tutor-search-actions .mct-btn-primary,
  .mct-tutor-search-actions .mct-btn-outline {
    flex: 0 0 auto;
    justify-content: center;
    margin-top: 0;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    min-height: 40px;
  }

  .mct-tutor-advanced-actions {
    justify-content: stretch;
  }

  .mct-tutor-advanced-actions .mct-btn-primary,
  .mct-tutor-advanced-actions .mct-btn-outline {
    flex: 1 1 auto;
    justify-content: center;
    padding:8px;
  }

  .mct-cta-banner {
    padding: 32px 24px;
  }

  .mct-faq-stat {
    min-width: calc(50% - 1rem);
  }
}

/* ── Subjects page ─────────────────────────────────────── */
.mct-subject-grid {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.mct-subject-grid > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.mct-subject-card {
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  display: block;
  color: inherit;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mct-subject-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.1);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}

.mct-subject-card form {
  margin: 0;
}

.mct-subject-card button {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  color: inherit;
}

.mct-subject-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 0.75rem;
  background: var(--accent-light);
  color: var(--accent-color);
}

.mct-subject-grid > [class*="col-"]:nth-child(6n+2) .mct-subject-icon {
  background: var(--surface-color);
  color: var(--primary-color);
}

.mct-subject-grid > [class*="col-"]:nth-child(6n+3) .mct-subject-icon {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success-color);
}

.mct-subject-grid > [class*="col-"]:nth-child(6n+4) .mct-subject-icon {
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent-hover);
}

.mct-subject-grid > [class*="col-"]:nth-child(6n+5) .mct-subject-icon {
  background: rgba(27, 35, 64, 0.08);
  color: var(--secondary-color);
}

.mct-subject-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading-color);
}

/* ── Blog listing & detail ─────────────────────────────── */
.mct-blog-card {
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.mct-blog-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.mct-blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.mct-blog-card-body {
  padding: 1.25rem;
}

.mct-blog-card-body h5 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.mct-blog-card-body h5 a {
  color: inherit;
  text-decoration: none;
}

.mct-blog-card-body h5 a:hover {
  color: var(--accent-color);
}

.mct-blog-excerpt {
  font-size: 0.9rem;
  color: var(--muted-color);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.mct-blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

.mct-blog-read-more:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.mct-blog-detail {
  padding-top: 48px;
  padding-bottom: 64px;
}

.mct-blog-detail-inner {
  max-width: 820px;
  margin: 0 auto;
}

.mct-blog-back-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-color);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.mct-blog-back-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.mct-blog-detail-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin-bottom: 1rem;
}

.mct-blog-detail-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--heading-color);
  margin-bottom: 2rem;
}

.mct-blog-detail-figure {
  margin: 0 0 2.5rem;
}

.mct-blog-detail-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.mct-blog-detail-content {
  color: var(--text-color);
  line-height: 1.8;
}

.mct-blog-detail-content.mct-prose {
  padding: 0 0 2rem;
}

.mct-blog-detail-content.mct-prose img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}

.mct-blog-detail-cta {
  margin-top: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.mct-blog-detail-cta .mct-section-sub {
  max-width: 520px;
}

/* ── Auth (login & register) ───────────────────────────── */
.mct-auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 48px 20px 72px;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(249, 115, 22, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 80%, rgba(27, 35, 64, 0.05) 0%, transparent 50%),
    var(--surface-color);
}

.mct-auth-container {
  display: flex;
  width: 1000px;
  max-width: 100%;
  min-height: 600px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--background-color);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 4px 6px rgba(27, 35, 64, 0.03),
    0 20px 48px rgba(27, 35, 64, 0.1);
}

.mct-auth-visual,
.mct-auth-form-panel {
  flex: 1;
}

.mct-auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  text-align: center;
  color: var(--background-color);
  background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.mct-auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.mct-auth-visual::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.mct-auth-visual > * {
  position: relative;
  z-index: 1;
}

.mct-auth-visual img {
  width: 80%;
  max-width: 260px;
  margin-bottom: 1.75rem;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.mct-auth-visual h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.mct-auth-visual p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 300px;
}

.mct-auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.mct-auth-form-panel .loginForm {
  padding: 0;
}

.mct-auth-form-header {
  margin-bottom: 1.75rem;
}

.mct-auth-form-panel h3,
.mct-auth-register-card .mct-auth-form-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.mct-auth-subtitle {
  font-size: 0.925rem;
  color: var(--muted-color);
  margin-bottom: 0;
  line-height: 1.5;
}

.mct-auth-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 0.01em;
}

.mct-auth-input,
.mct-auth-form-panel select.mct-auth-input,
.mct-auth-register-card .form-control {
  width: 100%;
  height: 50px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-color);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: var(--surface-color);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.mct-auth-input::placeholder,
.mct-auth-register-card .form-control::placeholder {
  color: #94a3b8;
}

.mct-auth-input:focus,
.mct-auth-form-panel select.mct-auth-input:focus,
.mct-auth-register-card .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--background-color);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.mct-auth-phone-row,
.mct-auth-radio-row {
  display: flex;
  width: 100%;
}

.mct-auth-phone-row {
  margin-bottom: 0.25rem;
  gap: 0.75rem;
}

.mct-auth-phone-row select.mct-auth-input,
.mct-auth-register-card .mct-auth-country-select {
  width: 96px;
  flex-shrink: 0;
  padding-right: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--surface-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231E293B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

.mct-auth-phone-row select.mct-auth-input:focus,
.mct-auth-register-card .mct-auth-country-select:focus {
  background-color: var(--background-color);
}

.mct-auth-phone-row input.mct-auth-input,
.mct-auth-register-card .mct-auth-phone-row .form-control {
  flex: 1;
  min-width: 0;
}

.mct-auth-radio-row {
  margin-bottom: 0.35rem;
  gap: 0.4rem;
  padding: 4px;
  background: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
}

.mct-auth-radio-col {
  flex: 1;
  margin-right: 0;
  min-width: 0;
}

.mct-auth-password-wrap {
  position: relative;
  width: 100%;
}

.mct-auth-password-wrap .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted-color);
  transition: color 0.2s, background 0.2s;
}

.mct-auth-password-wrap .toggle-password:hover {
  color: var(--accent-color);
  background: var(--accent-light);
}

.mct-auth-register-card .mct-auth-password-wrap .form-control {
  padding-right: 2.75rem;
}

.mct-auth-form-panel .mct-auth-password-wrap .mct-auth-input {
  padding-right: 2.75rem;
}

.mct-auth-error,
.mct-auth-register-card .text-danger.error-message {
  display: block;
  margin: 0.3rem 0 0.85rem;
  font-size: 0.75rem;
  color: #e74c3c;
  line-height: 1.4;
}

.mct-auth-submit {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--background-color);
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.mct-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.mct-auth-submit:active {
  transform: translateY(0);
}

.mct-auth-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.mct-auth-links p {
  font-size: 0.875rem;
  color: var(--muted-color);
  margin-bottom: 0.5rem;
}

.mct-auth-links a,
.mct-auth-link-btn {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.mct-auth-links a:hover,
.mct-auth-link-btn:hover {
  color: var(--accent-hover);
}

.mct-auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Register layout */
.mct-auth-register-layout {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 70% 50% at 10% 30%, rgba(249, 115, 22, 0.05) 0%, transparent 55%),
    var(--surface-color);
}

.mct-auth-register-intro {
  padding-right: 1.5rem;
}

.mct-auth-register-intro .mct-section-title {
  margin-bottom: 0.5rem;
}

.mct-auth-register-intro img {
  width: 100%;
  border-radius: 16px;
  margin: 1.25rem 0;
  box-shadow: 0 12px 32px rgba(27, 35, 64, 0.1);
}

.mct-auth-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.mct-auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.mct-auth-features li i {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-color);
  font-size: 0.95rem;
}

.mct-auth-register-card {
  background: var(--background-color);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow:
    0 4px 6px rgba(27, 35, 64, 0.03),
    0 16px 40px rgba(27, 35, 64, 0.08);
}

.mct-auth-register-card .form-group {
  margin-bottom: 1.1rem;
}

.mct-auth-register-card .mct-auth-country-select {
  max-width: 120px;
  height: 50px;
}

.mct-auth-register-card label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.45rem;
}

.mct-auth-register-card .reqrd {
  color: var(--accent-color);
}

.mct-auth-register-card .mct-auth-form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.mct-auth-register-card .row.mb-3 {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 0;
  margin-right: 0;
  gap: 0.5rem;
  padding: 4px;
  background: var(--surface-color);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
}

.mct-auth-register-card .row.mb-3 > [class*="col-"] {
  padding-left: 4px;
  padding-right: 4px;
  flex: 1;
  max-width: none;
}

.mct-auth-terms {
  font-size: 0.875rem;
  color: var(--muted-color);
  line-height: 1.5;
}

.mct-auth-terms label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
}

.mct-auth-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.mct-auth-terms a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 400px) {
  .mct-auth-terms-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

.mct-modal-content {
  border-radius: 20px;
  padding: 15px;
  border: none;
  box-shadow: 0 20px 48px rgba(27, 35, 64, 0.15);
}

.mct-modal-header {
  border: none;
  padding-bottom: 0;
}

.mct-modal-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--heading-color);
  width: 100%;
  text-align: center;
}

/* Shared radio toggle (login, register, modals) */
.radioLogin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 0.4rem;
  text-align: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  margin-bottom: 0;
}

.radioLogin input {
  display: none;
}

.radioLogin span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-color);
  white-space: nowrap;
}

.radioLogin i {
  font-size: 0.85rem;
  color: var(--muted-color);
  transition: color 0.2s;
}

.radioLogin.active-btn {
  background: var(--background-color);
  box-shadow: 0 2px 8px rgba(27, 35, 64, 0.08);
}

.radioLogin.active-btn span,
.radioLogin.active-btn i {
  color: var(--accent-color);
}

@media (min-width: 992px) {
  .mct-auth-register-card {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 991px) {
  .mct-auth-register-intro {
    padding-right: 0;
    text-align: center;
  }

  .mct-auth-register-intro .mct-eyebrow {
    display: block;
  }
}

@media (max-width: 820px) {
  .mct-auth-container {
    flex-direction: column;
    max-width: 480px;
    min-height: auto;
  }

  .mct-auth-visual {
    padding: 2rem 1.5rem;
  }

  .mct-auth-visual img {
    max-width: 140px;
    margin-bottom: 1rem;
  }

  .mct-auth-form-panel {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 425px) {
  .mct-auth-wrapper {
    padding: 24px 12px 48px;
  }

  .mct-auth-form-panel {
    padding: 1.5rem 1.15rem;
  }

  .mct-auth-register-card {
    padding: 1.5rem 1.15rem;
  }

  .mct-auth-phone-row select.mct-auth-input,
  .mct-auth-register-card .mct-auth-country-select {
    width: 80px;
    min-width: 80px;
  }

  .mct-auth-radio-row {
    gap: 0.25rem;
    padding: 3px;
  }

  .radioLogin {
    padding: 0.6rem 0.25rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .radioLogin span {
    font-size: 0.75rem;
  }

  .radioLogin i {
    font-size: 0.9rem;
  }
}
