/* ============================================================
   TRAJECTORY INSTITUTE — EDITORIAL DESIGN SYSTEM
   redesign.css — loaded globally via app.blade.php
   
   This file overrides the legacy main.css component styles.
   All design tokens are defined here as CSS custom properties.
   ============================================================ */

/* ------------------------------------------------------------
   1. GOOGLE FONTS — Inter
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..900;1,14..32,300..900&display=swap');

/* ------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Backgrounds */
  --ti-bg:         #FAFAF9;   /* warm off-white page background */
  --ti-surface:    #FFFFFF;   /* card surfaces */
  --ti-navy-bg:    #0B2D5B;   /* full-bleed navy sections */
  --ti-dark-bg:    #111827;   /* footer */
  --ti-gold-tint:  #FDF8EC;   /* testimonial section tint */

  /* Text */
  --ti-heading:    #111827;   /* primary headings */
  --ti-body:       #374151;   /* body paragraphs */
  --ti-muted:      #6B7280;   /* captions, meta */
  --ti-light:      #FFFFFF;   /* text on dark backgrounds */
  --ti-light-muted: rgba(255, 255, 255, 0.65);

  /* Brand */
  --ti-navy:       #0B2D5B;
  --ti-navy-hover: #0d3870;
  --ti-gold:       #C9A227;   /* eyebrow labels ONLY */

  /* Borders & dividers */
  --ti-border:     #E5E5E3;
  --ti-border-dark: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --ti-section-y:  96px;
  --ti-section-y-sm: 64px;

  /* Radius */
  --ti-radius:     6px;
  --ti-radius-lg:  12px;
  --ti-radius-pill: 100px;

  /* Shadows */
  --ti-shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ti-shadow-md:  0 4px 16px rgba(0,0,0,0.07);
  --ti-shadow-lg:  0 12px 40px rgba(0,0,0,0.10);
}

/* ------------------------------------------------------------
   3. GLOBAL RESETS
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif !important;
  background-color: var(--ti-bg) !important;
  color: var(--ti-body) !important;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Remove all float-bob animations (clutters the UI) */
.float-bob-x,
.float-bob-y {
  animation: none !important;
}

/* Section padding standardised */
.section-padding {
  padding: var(--ti-section-y) 0 !important;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--ti-section-y-sm) 0 !important;
  }
}

/* Remove cursor follower — unnecessary on academic sites */
.mouseCursor {
  display: none !important;
}

/* ------------------------------------------------------------
   4. TYPOGRAPHY SCALE
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif !important;
  color: var(--ti-heading);
  line-height: 1.1;
}

h1 {
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--ti-body);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   5. EYEBROW LABELS (Gold — used sparingly)
   ------------------------------------------------------------ */
.ti-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ti-gold);
  margin-bottom: 16px;
}

/* Override old section-title h6 badges */
.section-title h6,
.section-title-area h6 {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--ti-gold) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  margin-bottom: 14px !important;
}

/* ------------------------------------------------------------
   6. BUTTONS — Flat, institutional, no pill/icon-circle
   ------------------------------------------------------------ */

/* Reset all existing theme-btn styles */
.theme-btn,
.theme-btn::before {
  all: unset !important;
  box-sizing: border-box !important;
}

.theme-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 28px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border-radius: var(--ti-radius) !important;
  background: var(--ti-navy) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  border: 2px solid var(--ti-navy) !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  white-space: nowrap !important;
}

.theme-btn:hover {
  background: var(--ti-navy-hover) !important;
  border-color: var(--ti-navy-hover) !important;
  color: #FFFFFF !important;
}

.theme-btn i {
  font-size: 13px !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  background: none !important;
  color: inherit !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Ghost button variant */
.theme-btn.ti-ghost {
  background: transparent !important;
  color: var(--ti-navy) !important;
  border: 2px solid var(--ti-navy) !important;
}

.theme-btn.ti-ghost:hover {
  background: var(--ti-navy) !important;
  color: #FFFFFF !important;
}

.theme-btn.ti-ghost .fa-play {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--ti-navy) !important;
  color: #FFFFFF !important;
  border-radius: 50% !important;
  font-size: 9px !important;
}

.theme-btn.ti-ghost:hover .fa-play {
  background: #FFFFFF !important;
  color: var(--ti-navy) !important;
}

/* Light ghost (for dark backgrounds) */
.theme-btn.ti-ghost-light {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.theme-btn.ti-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Text link button */
.ti-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ti-navy);
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: gap 0.15s ease;
}

.ti-link-btn:hover {
  gap: 10px;
  color: var(--ti-navy);
}

.ti-link-btn i {
  font-size: 13px;
}

/* ------------------------------------------------------------
   7. INSTITUTIONAL NAVIGATION
   ------------------------------------------------------------ */
#ti-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--ti-border);
  transition: box-shadow 0.2s ease;
}

#ti-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ti-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.ti-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ti-logo img {
  height: 70px;
  width: auto;
}

.ti-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ti-nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ti-body);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.ti-nav-links a:hover {
  color: var(--ti-navy);
}

.ti-nav-links a.active {
  color: var(--ti-navy);
  font-weight: 600;
}

.ti-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ti-nav-signin {
  font-size: 15px;
  font-weight: 500;
  color: var(--ti-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ti-nav-signin:hover {
  color: var(--ti-navy);
}

.ti-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.ti-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ti-heading);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile nav drawer */
.ti-mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid var(--ti-border);
  border-bottom: 1px solid var(--ti-border);
  padding: 24px 32px 32px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ti-mobile-drawer.open {
  display: block;
}

.ti-mobile-drawer ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.ti-mobile-drawer ul li a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ti-body);
  text-decoration: none;
  border-bottom: 1px solid var(--ti-border);
  transition: color 0.15s ease;
}

.ti-mobile-drawer ul li a:hover {
  color: var(--ti-navy);
}

.ti-mobile-drawer .theme-btn {
  width: 100% !important;
  justify-content: center !important;
}

@media (max-width: 1024px) {
  .ti-nav-links {
    display: none;
  }

  .ti-nav-actions .ti-nav-signin,
  .ti-nav-actions > .theme-btn,
  .ti-nav-actions #notificationWrapper {
    display: none !important;
  }

  .ti-hamburger {
    display: flex;
  }

  .ti-nav-inner {
    padding: 0 20px;
  }
}

/* Add body padding for fixed nav */
body {
  padding-top: 68px !important;
}

/* Hide old header-top bar */
.header-top-2 {
  display: none !important;
}

/* Hide old header (will be replaced with ti-header) */
.header-1 {
  display: none !important;
}

/* Hide old mobile nav (replaced by ti-mobile-drawer) */
.mobile-menu-main {
  display: none !important;
}

/* Hide old mobile bottom nav background elements */
.mobile-bottom-nav .nav-item {
  font-family: 'Inter', sans-serif;
}

/* ------------------------------------------------------------
   8. AUTH PAGES — SPLIT SCREEN
   ------------------------------------------------------------ */
.ti-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 0 !important; /* override body padding for auth */
}

/* Override body padding on auth pages */
body:has(.ti-auth-page) {
  padding-top: 0 !important;
}

.ti-auth-left {
  background: var(--ti-navy-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  min-height: 100vh;
}

.ti-auth-left-brand {
  display: flex;
  flex-direction: column;
}

.ti-auth-left-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 48px;
  filter: brightness(0) invert(1);
}

.ti-auth-left-brand h2 {
  color: #FFFFFF;
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0 0 20px;
  line-height: 1.15;
}

.ti-auth-left-brand p {
  color: var(--ti-light-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 360px;
}

.ti-auth-image-mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  margin-top: 40px;
  border-radius: var(--ti-radius-lg);
  overflow: hidden;
  opacity: 0.85;
}

.ti-auth-image-mosaic .img-main {
  grid-row: 1 / 3;
  border-radius: var(--ti-radius-lg);
  overflow: hidden;
  aspect-ratio: 2/3;
}

.ti-auth-image-mosaic .img-sm {
  border-radius: var(--ti-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.ti-auth-image-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ti-auth-right {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
}

.ti-auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.ti-auth-form-wrap h2 {
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--ti-heading);
}

.ti-auth-form-wrap .subtitle {
  font-size: 15px;
  color: var(--ti-muted);
  margin-bottom: 36px;
}

/* Form inputs */
.ti-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ti-form-group {
  margin-bottom: 18px;
}

.ti-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ti-body);
  margin-bottom: 7px;
}

.ti-form-group input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: 1px solid #D1D5DB;
  border-radius: var(--ti-radius);
  color: var(--ti-heading);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ti-form-group input:focus {
  border-color: var(--ti-navy);
  box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.08);
}

.ti-form-group input.is-invalid {
  border-color: #EF4444;
}

.ti-auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
}

.ti-auth-actions .form-check-label {
  color: var(--ti-body);
  font-size: 14px;
}

.ti-auth-actions a {
  color: var(--ti-navy);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}

.ti-auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.ti-auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--ti-muted);
}

.ti-auth-footer a {
  color: var(--ti-navy);
  font-weight: 600;
  text-decoration: none;
}

/* Mobile auth — form only */
@media (max-width: 768px) {
  .ti-auth-page {
    grid-template-columns: 1fr;
  }

  .ti-auth-left {
    display: none;
  }

  .ti-auth-right {
    min-height: 100vh;
    padding: 40px 24px;
  }
}

/* ------------------------------------------------------------
   9. OLD HEADER-TOP BAR HIDE
       The new #ti-header replaces the legacy top bar on every
       page (not just the homepage), so this stays global.
   ------------------------------------------------------------ */
.header-top-2,
.header-top,
.header-top-section {
  display: none !important;
}

/* ------------------------------------------------------------
   10. MISCELLANEOUS OVERRIDES
   ------------------------------------------------------------ */

/* Legacy theme hides all <br> on mobile (main.css); that only merges
   words together when the break is the sole separator (e.g. "Real
   Learning.In Real Time."). Restore it for the redesigned markup. */
@media (max-width: 767px) {
  br {
    display: inline !important;
  }
}

/* Back-to-top button */
#back-top {
  background: var(--ti-navy) !important;
  border-radius: var(--ti-radius) !important;
  width: 40px !important;
  height: 40px !important;
  border: none !important;
  box-shadow: var(--ti-shadow-md) !important;
}

/* Compact breadcrumb bar (replaces the old full-width image banner) */
.ti-breadcrumb {
  background: var(--ti-bg);
  border-bottom: 1px solid var(--ti-border);
  padding: 22px 0;
}

.ti-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.ti-breadcrumb-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ti-heading);
  margin: 0;
  line-height: 1.2;
}

.ti-breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ti-muted);
  white-space: nowrap;
}

.ti-breadcrumb-trail a {
  color: var(--ti-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ti-breadcrumb-trail a:hover {
  color: var(--ti-navy);
}

.ti-breadcrumb-trail i {
  font-size: 9px;
  color: var(--ti-border);
}

.ti-breadcrumb-trail span {
  color: var(--ti-heading);
  font-weight: 600;
}

@media (max-width: 640px) {
  .ti-breadcrumb {
    padding: 16px 0;
  }

  .ti-breadcrumb-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ti-breadcrumb-title {
    font-size: 18px;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ti-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--ti-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* ------------------------------------------------------------
   11. HERO SECTION (Asymmetric with Floating Badges)
   ------------------------------------------------------------ */
.ti-hero {
  padding: 64px 0;
  background: #FFFFFF;
  position: relative;
}

.ti-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.ti-hero-content {
  max-width: 580px;
}

.ti-hero-content h1 {
  margin: 0 0 24px;
  color: var(--ti-heading);
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ti-hero-content p {
  font-size: 18px;
  color: var(--ti-body);
  margin-bottom: 28px;
  max-width: 90%;
}

.ti-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badge .badge-left,
.hero-badge .badge-right {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* Hero Metrics inside hero content */
.ti-hero-metrics {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 8px;
}

.ti-metric {
  display: flex;
  flex-direction: column;
}

.ti-metric .number {
  font-size: 24px;
  font-weight: 800;
  color: var(--ti-heading);
  margin-bottom: 4px;
}

.ti-metric .label {
  font-size: 12px;
  color: var(--ti-muted);
  font-weight: 500;
}

/* Hero Visual */
.ti-hero-visual {
  position: relative;
  width: 100%;
}

.ti-hero-image-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.ti-hero-image-crop {
  width: 100%;
  border-radius: 20px;
  background: var(--ti-bg);
  overflow: hidden;
}

.ti-hero-image-crop .main-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* Floating Badges */
.hero-badge {
  position: absolute;
  background: #FFFFFF;
  border-radius: var(--ti-radius);
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  z-index: 10;
}

.badge-left {
  top: -20px;
  left: -22px;
  width: 180px;
}

.badge-right {
  bottom: -20px;
  right: -22px;
  width: 160px;
}

.badge-left .badge-dot {
  width: 10px;
  height: 10px;
  background: #E53E3E;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.badge-content strong {
  display: inline-block;
  font-size: 12px;
  color: var(--ti-heading);
  margin-bottom: 1px;
}

.badge-content span {
  display: block;
  font-size: 10px;
  color: var(--ti-muted);
  margin-bottom: 6px;
}

.badge-avatars {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.badge-avatars .avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E2E8F0;
  border: 2px solid #FFFFFF;
  margin-left: -7px;
}
.badge-avatars .avatar:first-child { margin-left: 0; }
.badge-avatars .avatar-count {
  font-size: 9px;
  font-weight: 600;
  color: var(--ti-muted);
  margin-left: 6px;
}

.badge-btn {
  display: inline-block;
  background: var(--ti-navy);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
}

/* Progress circle badge */
.progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--ti-border);
  border-top-color: #38A169;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--ti-heading);
  margin: 0 auto 6px;
}

.progress-text {
  text-align: center;
}

/* ------------------------------------------------------------
   12. TRUST STRIP
   ------------------------------------------------------------ */
.ti-trust-strip {
  border-top: 1px solid var(--ti-border);
  border-bottom: 1px solid var(--ti-border);
  padding: 32px 0;
  background: #FAFAFA;
}

.ti-trust-strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.ti-trust-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ti-muted);
}

.ti-trust-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.6;
}

.ti-trust-logos .mock-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ti-heading);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ti-trust-strip-inner {
    flex-direction: column;
    gap: 16px;
  }
}

/* ------------------------------------------------------------
   13. CATEGORY SECTION (Split 50/50 Layout)
   ------------------------------------------------------------ */
.ti-category-section {
  padding: 72px 0;
  background: #FFFFFF;
}

.ti-category-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.ti-category-left h2 {
  margin-bottom: 24px;
  font-size: 36px;
}

.ti-category-left p {
  margin-bottom: 0;
}

.ti-category-grid-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.ti-category-slider {
  overflow: hidden;
}

.ti-category-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.ti-category-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ti-slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--ti-border);
  color: var(--ti-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ti-slider-btn:hover:not(:disabled) {
  background: var(--ti-navy);
  border-color: var(--ti-navy);
  color: #FFFFFF;
}

.ti-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ti-category-tile {
  flex: 0 0 calc((100% - 3 * 24px) / 4);
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--ti-border);
  padding: 28px 20px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ti-category-tile:hover {
  border-color: var(--ti-navy);
  box-shadow: var(--ti-shadow-md);
  transform: translateY(-4px);
}

.ti-category-tile .tile-icon {
  width: 52px;
  height: 52px;
  background: #F8FAFC;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ti-navy);
  margin-bottom: 18px;
}

/* Rotating pastel palette per tile, matching the reference mockup */
.ti-category-tile:nth-child(6n+1) .tile-icon { background: #E9F1FE; color: #2563EB; }
.ti-category-tile:nth-child(6n+2) .tile-icon { background: #FCE7F3; color: #DB2777; }
.ti-category-tile:nth-child(6n+3) .tile-icon { background: #DCFCE7; color: #16A34A; }
.ti-category-tile:nth-child(6n+4) .tile-icon { background: #FFEDD5; color: #EA580C; }
.ti-category-tile:nth-child(6n+5) .tile-icon { background: #F3E8FF; color: #9333EA; }
.ti-category-tile:nth-child(6n+6) .tile-icon { background: #E0F2FE; color: #0284C7; }

.ti-category-tile .tile-title {
  font-weight: 600;
  color: var(--ti-heading);
  font-size: 16px;
  margin-bottom: 4px;
}

.ti-category-tile .tile-count {
  font-size: 13px;
  color: var(--ti-muted);
}

/* ------------------------------------------------------------
   14. FEATURED COURSES (3 Equal Cards)
   ------------------------------------------------------------ */
.ti-courses-section {
  padding: 72px 0;
  background: #FAFAFA;
}

.ti-courses-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.ti-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.ti-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ti-course-card {
  background: #FFFFFF;
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ti-course-card:hover {
  box-shadow: var(--ti-shadow-md);
}

.ti-course-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ti-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ti-course-card:hover .ti-course-img img {
  transform: scale(1.03);
}

.ti-course-img-link {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--ti-navy);
  border-radius: 50%;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, color 0.15s ease;
}

.ti-course-img-link:hover {
  background: var(--ti-navy);
  color: #FFFFFF;
}

.ti-live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #E53E3E;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.ti-course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ti-course-body h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.ti-course-body h3 a {
  color: var(--ti-heading);
  text-decoration: none;
}

.ti-course-body p {
  font-size: 15px;
  color: var(--ti-body);
  margin-bottom: 24px;
}

.ti-course-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--ti-border);
}

.ti-course-meta .instructor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ti-course-meta .instructor img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.ti-course-meta .instructor div {
  display: flex;
  flex-direction: column;
}

.ti-course-meta .instructor strong {
  font-size: 14px;
  color: var(--ti-heading);
}

.ti-course-meta .instructor span {
  font-size: 12px;
  color: var(--ti-muted);
}

.rating-price {
  text-align: right;
}

.rating-price .rating {
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-price .rating strong { color: var(--ti-heading); }
.rating-price .rating .reviews { color: var(--ti-muted); }

.rating-price .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ti-heading);
}

/* ------------------------------------------------------------
   15. LEARNING JOURNEY (Timeline Grid)
   ------------------------------------------------------------ */
.ti-journey-section {
  padding: 72px 0;
  background: #FFFFFF;
}

.ti-journey-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: center;
}

.ti-journey-left h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.ti-journey-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ti-journey-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}

.ti-journey-step .step-icon {
  width: 64px;
  height: 64px;
  background: #F8FAFC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--ti-navy);
  margin-bottom: 20px;
}

.ti-journey-step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.ti-journey-step p {
  font-size: 14px;
  color: var(--ti-muted);
  line-height: 1.4;
  margin: 0;
}

.ti-journey-divider {
  flex-grow: 1;
  height: 2px;
  border-top: 2px dashed var(--ti-border);
  margin: -60px 24px 0;
}

/* ------------------------------------------------------------
   16. LIVE LEARNING (Split Section)
   ------------------------------------------------------------ */
.ti-live-section {
  padding: 72px 0;
  background: #FAFAFA;
}

.ti-live-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ti-live-image {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.ti-live-image img {
  width: 100%;
  height: auto;
  display: block;
}

.live-floating-badge {
  position: absolute;
  bottom: -20px;
  right: 40px;
  background: #FFFFFF;
  border-radius: var(--ti-radius-pill);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ti-shadow-md);
}

.live-floating-badge .avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.live-floating-badge .info strong {
  display: block;
  font-size: 14px;
  color: var(--ti-heading);
}

.live-floating-badge .info span {
  font-size: 12px;
  color: var(--ti-muted);
}

.ti-live-content h2 {
  font-size: 40px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.ti-live-content p {
  font-size: 18px;
  margin-bottom: 32px;
}

.ti-live-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.ti-live-features li {
  font-size: 16px;
  color: var(--ti-body);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ti-live-features li i {
  color: var(--ti-navy);
  font-size: 18px;
}

/* ------------------------------------------------------------
   17. TESTIMONIAL
   ------------------------------------------------------------ */
.ti-testimonial-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.ti-testimonial-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
}

.ti-testimonial-left h2 {
  font-size: 40px;
}

.ti-testimonial-right blockquote {
  font-size: 24px;
  font-weight: 500;
  color: var(--ti-heading);
  line-height: 1.5;
  margin: 0 0 40px;
  padding: 0;
  border: none;
}

.ti-testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ti-testimonial-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.ti-testimonial-author .info strong {
  display: block;
  font-size: 16px;
  color: var(--ti-heading);
  margin-bottom: 4px;
}

.ti-testimonial-author .info span {
  display: block;
  font-size: 14px;
  color: var(--ti-muted);
  margin-bottom: 4px;
}

.ti-testimonial-author .nav-arrows {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.ti-testimonial-author .nav-arrows button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--ti-border);
  color: var(--ti-heading);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ti-testimonial-author .nav-arrows button:hover {
  background: var(--ti-navy);
  color: #FFFFFF;
  border-color: var(--ti-navy);
}

/* ------------------------------------------------------------
   18. FINAL CTA
   ------------------------------------------------------------ */
.ti-final-cta {
  padding: 72px 0;
  background: #FFFFFF;
  color: var(--ti-body);
  border-top: 1px solid var(--ti-border);
}

.ti-final-cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

.ti-cta-content {
  max-width: 600px;
}

.ti-cta-content h2 {
  color: var(--ti-heading);
  font-size: 40px;
  margin-bottom: 16px;
}

.ti-cta-content p {
  color: var(--ti-muted);
  font-size: 18px;
  margin: 0;
}

/* ------------------------------------------------------------
   19. RESPONSIVE DESIGN (Media Queries)
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .ti-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ti-category-tile {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 1024px) {
  .ti-hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .ti-hero-content { max-width: 100%; text-align: center; }
  .ti-hero-actions, .ti-hero-metrics { justify-content: center; }
  .ti-category-inner, .ti-journey-inner, .ti-live-inner, .ti-testimonial-inner, .ti-final-cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ti-final-cta-inner { flex-direction: column; text-align: center; }
  .badge-right { right: 20px; bottom: 20px; }
  .badge-left { left: 20px; top: 20px; }
}

@media (max-width: 768px) {
  .ti-hero { padding: 48px 0; }
  .ti-hero-content h1 { font-size: 40px; }
  .ti-courses-grid { grid-template-columns: 1fr; }
  .ti-category-tile { flex-basis: 100%; }
  .ti-journey-right { flex-direction: column; gap: 40px; }
  .ti-journey-divider { display: none; }
  .ti-stats-strip-inner, .ti-hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .ti-cta-actions { flex-direction: column; }

  /* Floating hero badges: stack in normal flow instead of overlapping corners */
  .ti-hero-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hero-badge,
  .badge-left,
  .badge-right {
    position: static;
    width: 100% !important;
  }
}
/* ------------------------------------------------------------
   20. FOOTER (Dark Navy)
   ------------------------------------------------------------ */
.ti-footer {
  background: var(--ti-navy);
  color: #FFFFFF;
  padding: 64px 0 0;
  font-family: 'Inter', sans-serif;
}

.ti-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
  gap: 40px;
}

.ti-footer-brand img {
  height: 40px;
  margin-bottom: 24px;
}

.ti-footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 240px;
}

.ti-footer-social {
  display: flex;
  gap: 16px;
}

.ti-footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition: color 0.2s ease;
}

.ti-footer-social a:hover {
  color: #FFFFFF;
}

.ti-footer-col h4, .ti-footer-newsletter h4 {
  color: #FFFFFF;
  font-size: 16px;
  margin: 0 0 24px;
  font-weight: 600;
}

.ti-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ti-footer-col ul li {
  margin-bottom: 12px;
}

.ti-footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.ti-footer-col ul li a:hover {
  color: #FFFFFF;
}

.ti-footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 16px;
}

.ti-newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ti-newsletter-input-group input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
}

.ti-newsletter-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ti-newsletter-input-group button {
  background: #FFFFFF;
  border: none;
  color: var(--ti-navy);
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ti-newsletter-input-group button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.ti-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.ti-footer-bottom-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ti-footer-bottom-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .ti-footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ti-footer-inner {
    grid-template-columns: 1fr;
  }
  .ti-footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ------------------------------------------------------------
   21. COURSES LISTING PAGE — Modern, Compact Polish
   ------------------------------------------------------------ */
.ti-courses-page {
  padding: 40px 0 72px !important;
  background: #f4f6fb;
}

/* ============================================================
   COURSES INTRO STRIP — compact, modern
   ============================================================ */
.ti-courses-intro {
  background: #fff;
  border-bottom: 1px solid var(--ti-border);
  padding: 22px 0;
  position: relative;
}

/* Left navy accent bar */
.ti-courses-intro::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ti-navy);
}

.ti-courses-intro-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.ti-courses-intro-text .ti-eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

.ti-courses-intro-text h1 {
  font-size: 26px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.15;
  color: var(--ti-navy);
}

.ti-courses-intro-text p {
  font-size: 13px;
  color: var(--ti-muted);
  margin: 0;
  max-width: 480px;
}

.ti-breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ti-muted);
  flex-shrink: 0;
}

.ti-breadcrumb-trail a {
  color: var(--ti-navy);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.ti-breadcrumb-trail a:hover { opacity: 0.7; }

.ti-breadcrumb-trail i {
  font-size: 9px;
  color: var(--ti-muted);
}

.ti-breadcrumb-trail span {
  color: var(--ti-muted);
}

@media (max-width: 640px) {
  .ti-courses-intro { padding: 18px 0; }
  .ti-courses-intro-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ti-courses-intro-text h1 { font-size: 20px !important; }
  .ti-breadcrumb-trail { display: none; }
}

/* ============================================================
   COURSES LAYOUT GRID
   ============================================================ */
.ti-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mhq-courses-wrapper { padding-top: 32px; }

/* Desktop: 260px fixed sidebar + fluid results */
.ti-courses-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.ti-courses-layout > .col-lg-4,
.ti-courses-layout > .col-lg-8 {
  width: auto;
  max-width: none;
  padding: 0;
}

/* ============================================================
   FILTER SIDEBAR — polished unified card
   ============================================================ */
.ti-filter-panel {
  background: #fff !important;
  border: 1px solid #e8eaf0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(11,45,91,0.06) !important;
  overflow: hidden;
  position: sticky;
  top: 24px;
}

.ti-filter-section {
  padding: 16px 18px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #f0f2f7;
}

.ti-filter-section:last-of-type {
  border-bottom: none;
}

.ti-filter-section .wid-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
  border: none !important;
}

.ti-filter-section .wid-title i {
  font-size: 11px;
  color: var(--ti-navy);
  width: 14px;
  text-align: center;
  opacity: 0.7;
}

.ti-filter-section .wid-title h5 {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--ti-muted) !important;
  margin: 0 !important;
}

/* Search widget */
.ti-search-widget form {
  display: flex !important;
  align-items: center;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  overflow: hidden;
  padding: 0 !important;
  transition: border-color 0.2s;
}

.ti-search-widget form:focus-within {
  border-color: var(--ti-navy) !important;
  background: #fff !important;
}

.ti-search-widget input[type="text"] {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif;
  color: var(--ti-heading);
  outline: none;
}

.ti-search-widget button {
  border: none !important;
  background: var(--ti-navy) !important;
  color: #fff !important;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.ti-search-widget button:hover { background: #0d3870 !important; }

/* Checkbox items */
.ti-filter-section .courses-list-box {
  padding: 0 !important;
  border: none !important;
  margin-bottom: 10px !important;
  background: transparent !important;
}

.ti-filter-section .courses-list-box:last-child {
  margin-bottom: 0 !important;
}

.ti-filter-section .checkbox-single {
  cursor: pointer;
  gap: 10px;
  background: transparent !important;
  padding: 0 !important;
}

.ti-filter-section .checkbox-single .text-color {
  font-size: 13.5px !important;
  color: var(--ti-body) !important;
  font-weight: 500 !important;
}

.ti-filter-section .checkbox-area {
  width: 17px !important;
  height: 17px !important;
  position: relative;
  flex-shrink: 0;
}

.ti-filter-section .checkbox-area .checkmark {
  width: 17px !important;
  height: 17px !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ti-filter-section .filter-checkbox {
  position: absolute;
  opacity: 0;
  width: 17px;
  height: 17px;
  margin: 0 !important;
  cursor: pointer;
}

.ti-filter-section .filter-checkbox:checked ~ .checkmark,
.ti-filter-section .checkbox-area:has(.filter-checkbox:checked) .checkmark {
  background: var(--ti-navy) !important;
  border-color: var(--ti-navy) !important;
}

.ti-filter-section .filter-checkbox:checked ~ .checkmark::after,
.ti-filter-section .checkbox-area:has(.filter-checkbox:checked) .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 8px;
  color: #fff;
}

.ti-filter-section .star i {
  font-size: 11px !important;
}

/* Clear filters link */
.ti-clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 18px !important;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ti-muted);
  text-decoration: none;
  border: 1.5px dashed #e5e7eb;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.ti-clear-filters:hover {
  color: #ef4444;
  border-color: #fecaca;
  background: #fef2f2;
}

/* ============================================================
   RESULTS TOOLBAR
   ============================================================ */
.ti-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ti-muted);
  box-shadow: 0 1px 4px rgba(11,45,91,0.04);
}

.ti-results-toolbar > span {
  font-weight: 600;
  color: var(--ti-heading);
}

.ti-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ti-sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ti-sort-label {
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ti-muted);
}

.ti-sort-control select {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ti-heading);
  background: #f8fafc;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  appearance: none;
  outline: none;
  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='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}

.ti-sort-control select:focus-visible {
  outline: 2px solid var(--ti-navy);
  outline-offset: 2px;
}

.ti-view-toggle {
  display: flex;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  overflow: hidden;
}

.ti-view-btn {
  width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: none;
  color: var(--ti-muted);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s ease;
}

.ti-view-btn + .ti-view-btn {
  border-left: 1.5px solid #e5e7eb;
}

.ti-view-btn.active,
.ti-view-btn:hover {
  background: var(--ti-navy);
  color: #fff;
}

@media (max-width: 640px) {
  .ti-toolbar-actions { width: 100%; justify-content: space-between; }
  .ti-sort-label { display: none; }
}

/* ============================================================
   COURSE CARDS — premium compact design
   ============================================================ */
.ti-courses-results .row {
  --bs-gutter-x: 18px;
}

.ti-course-list-card {
  background: #fff !important;
  border: 1px solid #e8eaf0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.ti-course-list-card:hover {
  box-shadow: 0 6px 28px rgba(11,45,91,0.13) !important;
  transform: translateY(-3px);
  border-color: rgba(11,45,91,0.18) !important;
}

/* Thumbnail */
.ti-course-list-card .mhq-courses-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f2f7;
  position: relative;
}

.ti-course-list-card .mhq-courses-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  transition: transform 0.35s ease;
}

.ti-course-list-card:hover .mhq-courses-image img {
  transform: scale(1.04);
}

/* Price/type badge (pill) */
.ti-course-list-card .mhq-courses-image .post-box {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.ti-course-list-card .mhq-courses-image .post-box.ti-badge-free {
  background: rgba(21,128,61,0.92) !important;
}

.ti-course-list-card .mhq-courses-image .post-box.ti-badge-paid {
  background: rgba(11,45,91,0.88) !important;
}

/* Hover overlay with CTA */
.ti-course-list-card .mhq-courses-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,45,91,0.0);
  transition: background 0.25s ease;
  pointer-events: none;
}

/* Card content body */
.ti-course-list-card .mhq-courses-content {
  padding: 18px 18px 14px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Rating stars row */
.ti-course-list-card .star {
  margin-bottom: 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ti-rating-count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ti-muted);
  margin-left: 3px;
}

/* Title */
.ti-course-list-card h3 {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  line-height: 1.4 !important;
}

.ti-course-list-card h3 a {
  color: var(--ti-heading);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ti-course-list-card h3 a:hover {
  color: var(--ti-navy);
}

/* Meta info pills */
.ti-course-list-card .post-date {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

.ti-course-list-card .post-date li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ti-muted);
  font-weight: 500;
}

.ti-course-list-card .post-date .icon {
  color: var(--ti-navy);
  font-size: 12px;
  opacity: 0.7;
}

/* Instructor + price row */
.ti-course-list-card .client-info-area {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px !important;
  margin-top: auto;
  border-top: 1px solid #f0f2f7;
  margin-bottom: 12px !important;
}

.ti-course-list-card .client-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ti-body);
}

.ti-course-list-card .client-info .img {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #e5e7eb;
}

.ti-course-list-card .client-info .img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50% !important;
}

.ti-course-list-card .client-info-area h2 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ti-navy) !important;
  margin: 0 !important;
}

/* Enroll button — slim, full-width */
.ti-course-list-card .theme-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 11px 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  letter-spacing: 0.01em;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ti-courses-results .alert-info {
  background: #fff;
  border: 2px dashed #e5e7eb;
  border-radius: 14px;
  padding: 56px 24px;
  color: var(--ti-muted);
  font-size: 15px;
  text-align: center;
}

/* ============================================================
   PAGINATION — compact pill style
   ============================================================ */
.ti-pagination ul {
  display: flex !important;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0 !important;
  margin: 28px 0 0 !important;
  justify-content: center;
}

.ti-pagination .page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px !important;
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  color: var(--ti-heading) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ti-pagination li.active .page-numbers {
  background: var(--ti-navy) !important;
  border-color: var(--ti-navy) !important;
  color: #fff !important;
}

.ti-pagination .page-numbers:hover:not(.disabled) {
  background: var(--ti-navy) !important;
  border-color: var(--ti-navy) !important;
  color: #fff !important;
}

.ti-pagination .page-numbers.disabled {
  opacity: 0.3;
  cursor: default;
}

/* ============================================================
   LIST VIEW MODE — horizontal card
   ============================================================ */
.ti-view-list#coursesContainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ti-view-list .ti-course-col {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.ti-view-list .ti-course-list-card {
  flex-direction: row;
  border-radius: 12px !important;
}

.ti-view-list .ti-course-list-card .mhq-courses-image {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: auto;
  border-radius: 0 !important;
}

.ti-view-list .ti-course-list-card .mhq-courses-content {
  flex: 1;
  padding: 16px 18px !important;
}

.ti-view-list .ti-course-list-card h3 {
  font-size: 15px !important;
}

@media (max-width: 767px) {
  .ti-view-list .ti-course-list-card { flex-direction: column; }
  .ti-view-list .ti-course-list-card .mhq-courses-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   MOBILE FILTER DRAWER
   ============================================================ */
/* Mobile "Filters" trigger — hidden on desktop */
.ti-filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
  padding: 11px 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ti-heading);
  cursor: pointer;
  transition: border-color 0.15s;
}

.ti-filters-toggle:hover { border-color: var(--ti-navy); }

.ti-filter-backdrop { display: none; }
.ti-filter-sidebar-head { display: none; }

@media (max-width: 991px) {
  .ti-courses-layout { display: block; }

  .ti-filters-toggle { display: flex; }

  .ti-filter-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100%;
    width: min(320px, 88vw);
    max-width: 320px;
    background: #fff;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  }

  .ti-filter-sidebar.open { transform: translateX(0); }

  .ti-filter-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f2f7;
  }

  .ti-filter-sidebar-head h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--ti-navy);
  }

  .ti-filter-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6fb;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: var(--ti-heading);
    cursor: pointer;
    font-size: 13px;
  }

  .ti-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 1090;
    backdrop-filter: blur(2px);
  }

  body.ti-drawer-open { overflow: hidden; }
}

/* ============================================================
   ACCESSIBLE FOCUS STATES
   ============================================================ */
.ti-courses-page a:focus-visible,
.ti-courses-page button:focus-visible,
.ti-courses-page input:focus-visible,
.ti-courses-page select:focus-visible {
  outline: 2px solid var(--ti-navy);
  outline-offset: 2px;
}

.ti-filter-section .checkbox-area:focus-within .checkmark {
  outline: 2px solid var(--ti-navy);
  outline-offset: 2px;
}

.ti-courses-page {
  padding: 48px 0 72px !important;
  background: var(--ti-bg);
}

/* --- Filter sidebar: one unified panel, sections divided by rules --- */
.ti-filter-panel {
  background: #FFFFFF !important;
  border: 1px solid var(--ti-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.ti-filter-section {
  padding: 20px 22px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--ti-border);
}

.ti-filter-section:last-child {
  border-bottom: none;
}

.ti-filter-section .wid-title {
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border: none !important;
}

.ti-filter-section .wid-title h5 {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--ti-muted) !important;
  margin: 0 !important;
}

.ti-search-widget form {
  display: flex !important;
  align-items: center;
  border: 1px solid var(--ti-border) !important;
  border-radius: 8px !important;
  background: var(--ti-bg) !important;
  overflow: hidden;
  padding: 0 !important;
}

.ti-search-widget input[type="text"] {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif;
  color: var(--ti-heading);
  outline: none;
}

.ti-search-widget button {
  border: none !important;
  background: var(--ti-navy) !important;
  color: #FFFFFF !important;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.ti-filter-section .courses-list-box {
  padding: 0 !important;
  border: none !important;
  margin-bottom: 12px !important;
}

.ti-filter-section .courses-list-box:last-child {
  margin-bottom: 0 !important;
}

.ti-filter-section .checkbox-single {
  cursor: pointer;
}

.ti-filter-section .checkbox-single .text-color {
  font-size: 14px !important;
  color: var(--ti-body) !important;
  font-weight: 500 !important;
}

.ti-filter-section .checkbox-area {
  width: 18px !important;
  height: 18px !important;
  position: relative;
}

.ti-filter-section .checkbox-area .checkmark {
  width: 18px !important;
  height: 18px !important;
  border: 1.5px solid var(--ti-border) !important;
  border-radius: 5px !important;
  background: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ti-filter-section .filter-checkbox {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  cursor: pointer;
}

.ti-filter-section .filter-checkbox:checked ~ .checkmark,
.ti-filter-section .checkbox-area:has(.filter-checkbox:checked) .checkmark {
  background: var(--ti-navy) !important;
  border-color: var(--ti-navy) !important;
}

.ti-filter-section .filter-checkbox:checked ~ .checkmark::after,
.ti-filter-section .checkbox-area:has(.filter-checkbox:checked) .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  color: #FFFFFF;
}

.ti-filter-section .star i {
  font-size: 12px !important;
}

/* --- Results column --- */
.ti-results-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ti-muted);
}

.ti-courses-results .row {
  --bs-gutter-x: 20px;
}

.ti-course-list-card {
  background: #FFFFFF !important;
  border: 1px solid var(--ti-border) !important;
  border-radius: 14px !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ti-course-list-card:hover {
  box-shadow: var(--ti-shadow-md);
  transform: translateY(-3px);
}

.ti-course-list-card .mhq-courses-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ti-bg);
}

.ti-course-list-card .mhq-courses-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}

.ti-course-list-card .mhq-courses-image .post-box {
  background: var(--ti-navy) !important;
  border-radius: 100px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  top: 16px !important;
  left: 16px !important;
}

.ti-course-list-card .mhq-courses-image .post-box.ti-badge-free {
  background: #15803D !important;
}

.ti-course-list-card .mhq-courses-image .post-box.ti-badge-paid {
  background: var(--ti-navy) !important;
}

.ti-course-list-card .mhq-courses-content {
  padding: 22px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ti-course-list-card .star {
  margin-bottom: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ti-rating-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ti-muted);
}

.ti-course-list-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
}

.ti-course-list-card h3 a {
  color: var(--ti-heading);
  text-decoration: none;
}

.ti-course-list-card h3 a:hover {
  color: var(--ti-navy);
}

.ti-course-list-card .post-date {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

.ti-course-list-card .post-date li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ti-muted);
}

.ti-course-list-card .post-date .icon {
  color: var(--ti-navy);
  font-size: 13px;
}

.ti-course-list-card .client-info-area {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px !important;
  margin-top: auto;
  border-top: 1px solid var(--ti-border);
  margin-bottom: 16px;
}

.ti-course-list-card .client-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ti-body);
}

.ti-course-list-card .client-info .img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  overflow: hidden;
  flex-shrink: 0;
}

.ti-course-list-card .client-info .img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50% !important;
}

.ti-course-list-card .client-info-area h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--ti-navy) !important;
  margin: 0 !important;
}

.ti-course-list-card .theme-btn {
  width: 100%;
  justify-content: center !important;
}

@media (max-width: 991px) {
  .ti-filter-sidebar {
    margin-bottom: 8px;
  }
}

/* --- Pagination --- */
.ti-pagination ul {
  display: flex !important;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0 !important;
  margin: 32px 0 0 !important;
  justify-content: center;
}

.ti-pagination .page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 1px solid var(--ti-border) !important;
  color: var(--ti-heading) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ti-pagination li.active .page-numbers {
  background: var(--ti-navy) !important;
  border-color: var(--ti-navy) !important;
  color: #FFFFFF !important;
}

.ti-pagination .page-numbers:hover:not(.disabled) {
  background: var(--ti-navy) !important;
  border-color: var(--ti-navy) !important;
  color: #FFFFFF !important;
}

.ti-pagination .page-numbers.disabled {
  opacity: 0.35;
  cursor: default;
}

/* ------------------------------------------------------------
   22. COURSES PAGE — COMPACT INTRO
   ------------------------------------------------------------ */
.ti-courses-intro {
  background: var(--ti-bg);
  border-bottom: 1px solid var(--ti-border);
  padding: 28px 0;
}

.ti-courses-intro-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.ti-courses-intro-text .ti-eyebrow {
  margin-bottom: 6px;
}

.ti-courses-intro-text h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ti-courses-intro-text p {
  font-size: 14px;
  color: var(--ti-muted);
  margin: 0;
  max-width: 520px;
}

@media (max-width: 640px) {
  .ti-courses-intro {
    padding: 20px 0;
  }

  .ti-courses-intro-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ti-courses-intro-text h1 {
    font-size: 22px;
  }
}

/* ------------------------------------------------------------
   23. COURSES PAGE — LAYOUT, FILTER DRAWER, TOOLBAR
   ------------------------------------------------------------ */
.ti-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Two-column layout: narrow fixed sidebar + fluid results */
.ti-courses-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.ti-courses-layout > .col-lg-4,
.ti-courses-layout > .col-lg-8 {
  width: auto;
  max-width: none;
  padding: 0;
}

/* Mobile "Filters" trigger — hidden on desktop */
.ti-filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  padding: 11px 16px;
  background: #FFFFFF;
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ti-heading);
  cursor: pointer;
}

.ti-filter-backdrop {
  display: none;
}

.ti-filter-sidebar-head {
  display: none;
}

@media (max-width: 991px) {
  .ti-courses-layout {
    display: block;
  }

  .ti-filters-toggle {
    display: flex;
  }

  .ti-filter-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100%;
    width: min(340px, 88vw);
    max-width: 340px;
    background: var(--ti-bg);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 20px;
  }

  .ti-filter-sidebar.open {
    transform: translateX(0);
  }

  .ti-filter-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .ti-filter-sidebar-head h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }

  .ti-filter-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid var(--ti-border);
    border-radius: 50%;
    color: var(--ti-heading);
    cursor: pointer;
  }

  .ti-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    z-index: 1090;
  }

  body.ti-drawer-open {
    overflow: hidden;
  }
}

.ti-clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ti-muted);
  text-decoration: none;
  border: 1px dashed var(--ti-border);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.ti-clear-filters:hover {
  color: var(--ti-navy);
  border-color: var(--ti-navy);
}

/* Icons in front of each filter section label */
.ti-filter-section .wid-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ti-filter-section .wid-title i {
  font-size: 12px;
  color: var(--ti-navy);
  width: 14px;
  text-align: center;
}

/* --- Toolbar: results count + sort + view toggle --- */
.ti-results-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ti-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ti-sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ti-sort-label {
  white-space: nowrap;
}

.ti-sort-control select {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ti-heading);
  background: #FFFFFF;
  border: 1px solid var(--ti-border);
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  cursor: pointer;
  appearance: none;
  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='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.ti-sort-control select:focus-visible {
  outline: 2px solid var(--ti-navy);
  outline-offset: 2px;
}

.ti-view-toggle {
  display: flex;
  border: 1px solid var(--ti-border);
  border-radius: 8px;
  overflow: hidden;
}

.ti-view-btn {
  width: 34px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: none;
  color: var(--ti-muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.ti-view-btn + .ti-view-btn {
  border-left: 1px solid var(--ti-border);
}

.ti-view-btn.active,
.ti-view-btn:hover {
  background: var(--ti-navy);
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .ti-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .ti-sort-label {
    display: none;
  }
}

/* --- List view (client-side, purely presentational) --- */
.ti-view-list#coursesContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ti-view-list .ti-course-col {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.ti-view-list .ti-course-list-card {
  flex-direction: row;
}

.ti-view-list .ti-course-list-card .mhq-courses-image {
  width: 260px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.ti-view-list .ti-course-list-card .mhq-courses-content {
  flex: 1;
}

@media (max-width: 767px) {
  .ti-view-list .ti-course-list-card {
    flex-direction: column;
  }

  .ti-view-list .ti-course-list-card .mhq-courses-image {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

/* --- Accessible focus states within the courses page --- */
.ti-courses-page a:focus-visible,
.ti-courses-page button:focus-visible,
.ti-courses-page input:focus-visible,
.ti-courses-page select:focus-visible {
  outline: 2px solid var(--ti-navy);
  outline-offset: 2px;
}

.ti-filter-section .checkbox-area:focus-within .checkmark {
  outline: 2px solid var(--ti-navy);
  outline-offset: 2px;
}

/* ================================================================
   COURSE DETAIL PAGE  (ti-cd-*)
   ================================================================ */

/* --- Layout grid --- */
.ti-cd-section {
    padding: 48px 0 80px;
    background: #f5f7fa;
}
.ti-cd-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 991px) {
    .ti-cd-layout { grid-template-columns: 1fr; }
}

/* --- Hero image --- */
.ti-cd-hero-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 4px 24px rgba(11,45,91,.12);
}
.ti-cd-hero-img {
    width: 100%; height: auto;
    display: block;
    max-height: 440px;
    object-fit: cover;
}
.ti-cd-video-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(11,45,91,.55);
    opacity: 0; transition: opacity .3s ease;
    cursor: pointer; gap: 10px;
}
.ti-cd-video-overlay.visible { opacity: 1; }
.ti-cd-play-btn { font-size: 64px; color: #fff; line-height: 1; }
.ti-cd-play-label { color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
.ti-cd-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 4px 14px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.ti-badge-free  { background: #D4AF37; color: #0B2D5B; }
.ti-badge-paid  { background: #0B2D5B; color: #fff; }

/* --- Tabs --- */
.ti-cd-tabs { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 16px rgba(11,45,91,.07); }
.ti-cd-tab-nav {
    display: flex; flex-wrap: wrap; gap: 0;
    list-style: none; margin: 0; padding: 0;
    border-bottom: 2px solid #e8edf5;
}
.ti-cd-tab-nav li { margin: 0; }
.ti-cd-tab-link {
    display: block; padding: 14px 22px;
    color: #64748b; font-weight: 600; font-size: .9rem;
    text-decoration: none; border-bottom: 3px solid transparent;
    transition: all .2s; margin-bottom: -2px;
    white-space: nowrap;
}
.ti-cd-tab-link:hover { color: #0B2D5B; }
.ti-cd-tab-link.active, .ti-cd-tab-nav li .ti-cd-tab-link.show {
    color: #0B2D5B; border-bottom-color: #D4AF37;
}
.ti-cd-tab-content { padding: 28px 28px 32px; }
@media (max-width: 575px) {
    .ti-cd-tab-nav { gap: 0; }
    .ti-cd-tab-link { padding: 10px 14px; font-size: .8rem; }
    .ti-cd-tab-content { padding: 20px 16px; }
}

/* --- Section headings inside tabs --- */
.ti-cd-section-title {
    font-size: 1.25rem; font-weight: 700;
    color: #0B2D5B; margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8edf5;
}
.ti-cd-prose { color: #374151; line-height: 1.8; font-size: .95rem; }

/* --- Hero breadcrumb meta (rating row) --- */
.ti-cd-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px; margin-top: 8px;
}
.ti-cd-stars i { font-size: .85rem; }
.ti-cd-rating-val { font-weight: 700; color: #D4AF37; }
.ti-cd-rating-count { color: #64748b; font-size: .9rem; }
.ti-badge-live {
    background: #ef4444; color: #fff;
    padding: 2px 10px; border-radius: 20px;
    font-size: .75rem; font-weight: 700;
}

/* --- Learn box --- */
.ti-cd-learn-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf8f0 100%);
    border: 1px solid #e8edf5;
    border-radius: 12px; padding: 24px; margin: 24px 0;
}
.ti-cd-checklist {
    list-style: none; margin: 0; padding: 0;
}
.ti-cd-checklist li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 7px 0; color: #374151; font-size: .92rem;
}
.ti-cd-checklist li i { color: #D4AF37; margin-top: 3px; flex-shrink: 0; }

/* --- Requirements --- */
.ti-cd-requirements { margin-top: 24px; }
.ti-cd-requirements p { color: #374151; line-height: 1.8; font-size: .93rem; }

/* --- Curriculum accordion --- */
.ti-cd-accordion { border-radius: 10px; overflow: hidden; }
.ti-cd-acc-item { border: 1px solid #e8edf5 !important; margin-bottom: 8px !important; border-radius: 10px !important; overflow: hidden; }
.ti-cd-acc-btn {
    background: #f8faff !important;
    color: #0B2D5B !important; font-weight: 600 !important;
    font-size: .95rem !important;
    display: flex !important; align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    box-shadow: none !important;
}
.ti-cd-acc-btn:not(.collapsed) { background: #0B2D5B !important; color: #fff !important; }
.ti-cd-acc-btn::after { display: none !important; }
.ti-cd-acc-btn:not(.collapsed)::before {
    content: "\f077"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900;
    margin-left: auto; color: #D4AF37;
}
.ti-cd-acc-btn::before {
    content: "\f078"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900;
    order: 2; color: #94a3b8;
}
.ti-acc-topic-name { flex: 1; }
.ti-acc-topic-count {
    font-size: .8rem; color: #94a3b8; font-weight: 500;
    margin-right: 12px; order: 1;
}
.ti-cd-acc-btn:not(.collapsed) .ti-acc-topic-count { color: rgba(255,255,255,.7); }
.ti-cd-acc-body { padding: 0 !important; }
.ti-cd-lesson-list { list-style: none; margin: 0; padding: 0; }
.ti-cd-lesson-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .9rem; color: #374151;
    transition: background .15s;
}
.ti-cd-lesson-item:last-child { border-bottom: none; }
.ti-cd-lesson-item:hover { background: #f8faff; }
.ti-lesson-left { display: flex; align-items: center; gap: 8px; flex: 1; }
.ti-lesson-left i { color: #94a3b8; width: 16px; }
.ti-lesson-right { display: flex; align-items: center; gap: 6px; color: #94a3b8; font-size: .85rem; }
.ti-lesson-play { color: #0B2D5B; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.ti-lesson-play:hover { color: #D4AF37; }
.ti-lesson-lock { display: flex; align-items: center; gap: 5px; }

/* --- Instructor card --- */
.ti-cd-instructor-card {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 24px; background: #f8faff;
    border-radius: 12px; border: 1px solid #e8edf5;
}
.ti-cd-instr-avatar { flex-shrink: 0; }
.ti-cd-instr-avatar img {
    width: 90px; height: 90px; border-radius: 50%;
    object-fit: cover; border: 3px solid #D4AF37;
}
.ti-cd-instr-name { font-size: 1.1rem; font-weight: 700; color: #0B2D5B; margin-bottom: 4px; }
.ti-cd-instr-role { color: #D4AF37; font-size: .88rem; font-weight: 600; display: block; margin-bottom: 10px; }
.ti-cd-instr-bio { color: #64748b; font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.ti-cd-instr-social { display: flex; gap: 8px; }
.ti-cd-instr-social a {
    width: 32px; height: 32px; border-radius: 50%;
    background: #0B2D5B; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; text-decoration: none;
    transition: background .2s;
}
.ti-cd-instr-social a:hover { background: #D4AF37; }
@media (max-width: 575px) {
    .ti-cd-instructor-card { flex-direction: column; align-items: center; text-align: center; }
    .ti-cd-instr-social { justify-content: center; }
}

/* --- Review summary --- */
.ti-cd-review-summary {
    display: flex; gap: 32px; align-items: flex-start;
    padding: 24px; background: #f8faff; border-radius: 12px;
    border: 1px solid #e8edf5; margin-bottom: 28px;
}
.ti-cd-review-score { text-align: center; flex-shrink: 0; }
.ti-score-big { font-size: 3rem; font-weight: 800; color: #0B2D5B; line-height: 1; display: block; }
.ti-score-stars { margin: 6px 0; }
.ti-score-total { color: #64748b; font-size: .85rem; }
.ti-cd-review-bars { flex: 1; }
.ti-cd-rating-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 7px;
}
.ti-cd-rating-stars i { font-size: .75rem; }
.ti-cd-bar-track {
    flex: 1; height: 8px; background: #e8edf5;
    border-radius: 4px; overflow: hidden;
}
.ti-cd-bar-fill { height: 100%; background: #D4AF37; border-radius: 4px; transition: width .6s; }
.ti-cd-bar-count { color: #94a3b8; font-size: .8rem; width: 36px; text-align: right; }
@media (max-width: 575px) {
    .ti-cd-review-summary { flex-direction: column; }
}

/* --- Review form --- */
.ti-cd-review-form-wrap {
    background: #f8faff; border: 1px solid #e8edf5;
    border-radius: 12px; padding: 24px; margin-bottom: 28px;
}
.ti-cd-review-form-wrap h4 { font-size: 1.05rem; font-weight: 700; color: #0B2D5B; margin-bottom: 18px; }
.ti-cd-star-input label { font-weight: 600; color: #0B2D5B; font-size: .9rem; display: block; margin-bottom: 8px; }
.ti-cd-star-input .rating-input { display: flex; gap: 6px; margin-bottom: 6px; }
.ti-cd-star-input .rating-input .rating-star { font-size: 28px; color: #ddd; cursor: pointer; transition: color .2s; }

/* --- Review cards --- */
.ti-cd-review-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 0; border-bottom: 1px solid #e8edf5;
}
.ti-cd-review-card:last-child { border-bottom: none; }
.ti-cd-review-avatar img {
    width: 46px; height: 46px; border-radius: 50%;
    object-fit: cover; border: 2px solid #e8edf5;
    flex-shrink: 0;
}
.ti-cd-review-body { flex: 1; }
.ti-cd-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.ti-cd-review-head strong { color: #0B2D5B; font-weight: 700; }
.ti-cd-review-date { color: #94a3b8; font-size: .82rem; }
.ti-cd-review-stars i { font-size: .8rem; }
.ti-cd-review-text { color: #374151; font-size: .9rem; margin-top: 8px; line-height: 1.7; }
.ti-cd-instructor-reply {
    background: #f0f4ff; border-left: 3px solid #0B2D5B;
    border-radius: 0 8px 8px 0; padding: 12px 16px;
    margin-top: 12px;
}
.ti-cd-reply-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px; color: #0B2D5B; font-size: .85rem;
}
.ti-cd-reply-head i { color: #D4AF37; }
.ti-cd-instructor-reply p { color: #374151; font-size: .88rem; margin: 0; }

/* ================================================================
   ENROLLMENT SIDEBAR CARD
   ================================================================ */
.ti-cd-sidebar { position: sticky; top: 24px; }
.ti-cd-enroll-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 32px rgba(11,45,91,.12);
    padding: 28px; border: 1px solid #e8edf5;
}

/* Price */
.ti-cd-price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.ti-cd-price-main { font-size: 2rem; font-weight: 800; color: #0B2D5B; line-height: 1; }
.ti-cd-price-old { font-size: 1rem; color: #94a3b8; text-decoration: line-through; }

/* CTA button */
.ti-cd-enroll-btn {
    display: block; width: 100%;
    background: #0B2D5B; color: #fff;
    padding: 14px 20px; border-radius: 10px;
    text-align: center; font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: all .25s;
    border: 2px solid transparent;
    margin-bottom: 16px;
}
.ti-cd-enroll-btn:hover {
    background: #D4AF37; color: #0B2D5B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,.3);
}
.ti-enroll-btn-success { background: #16a34a; }
.ti-enroll-btn-success:hover { background: #15803d; color: #fff; }

.ti-cd-divider { border-color: #e8edf5; margin: 18px 0; }

/* Meta list */
.ti-cd-meta-list { list-style: none; margin: 0; padding: 0; }
.ti-cd-meta-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid #f1f5f9;
    font-size: .88rem;
}
.ti-cd-meta-list li:last-child { border-bottom: none; }
.ti-cd-meta-icon { color: #0B2D5B; width: 18px; text-align: center; flex-shrink: 0; }
.ti-cd-meta-label { color: #64748b; flex: 1; }
.ti-cd-meta-val { color: #0B2D5B; font-weight: 600; }

/* Countdown */
.ti-cd-countdown {
    background: #f0f4ff; border-radius: 10px;
    padding: 12px 14px; margin-top: 16px;
    font-size: .88rem; color: #0B2D5B;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ti-cd-countdown .countdown-timer { font-weight: 700; color: #D4AF37; }

/* Share */
.ti-cd-share {
    display: flex; align-items: center; gap: 10px;
    margin-top: 18px; flex-wrap: wrap;
}
.ti-cd-share span { color: #64748b; font-size: .88rem; font-weight: 600; }
.ti-cd-share-icons { display: flex; gap: 6px; }
.ti-cd-share-icons a {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f1f5f9; color: #0B2D5B;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; text-decoration: none;
    transition: all .2s;
}
.ti-cd-share-icons a:hover { background: #0B2D5B; color: #fff; }

/* Mobile stacking */
@media (max-width: 991px) {
    .ti-cd-sidebar { position: static; }
    .ti-cd-enroll-card { margin-top: 0; }
}

/* ============================================================
   MODERN AUTH PAGES
   ============================================================ */
.modern-auth-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ti-navy) 0%, #1A3C6E 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs */
.modern-auth-page::before,
.modern-auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}
.modern-auth-page::before {
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.15); /* Gold blob */
    top: -100px;
    left: -100px;
}
.modern-auth-page::after {
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.15); /* Blue blob */
    bottom: -50px;
    right: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.modern-auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}
.auth-brand img {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}
.auth-brand h2 {
    font-size: 24px;
    color: var(--ti-navy);
    margin: 0 0 8px;
    font-weight: 700;
}
.auth-brand p {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

.auth-form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    color: #111827;
    background: #F9FAFB;
    transition: all 0.3s ease;
}
.auth-input:focus {
    border-color: var(--ti-navy);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(11, 45, 91, 0.1);
    outline: none;
}

.pwd-toggle {
    position: absolute;
    right: 16px;
    top: 38px;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.3s;
}
.pwd-toggle:hover {
    color: var(--ti-navy);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13px;
}
.auth-options a {
    color: var(--ti-navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}
.auth-options a:hover {
    color: var(--ti-gold);
}

.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.auth-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #D1D5DB;
    accent-color: var(--ti-navy);
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--ti-navy);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.auth-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 45, 91, 0.2);
}
.auth-btn:hover::after {
    opacity: 1;
}
.auth-btn i {
    transition: transform 0.3s;
}
.auth-btn:hover i {
    transform: translateX(4px);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}
.auth-footer a {
    color: var(--ti-navy);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .modern-auth-card {
        padding: 32px 24px;
    }
}
