/* styles.css
   =========================================================
   TechLearna - Landing (Bootstrap 5)
   FINAL FIXES:
   - Header: Techlearna-like two bars (top wide, bottom narrower)
   - Header: NOT sticky
   - Header: NOT full-width (but wider to reduce left/right empty space)
   - Full page background: one consistent gradient
   - Collage: cutout PNGs (NO boxes)
   - Collage: correct stacking (back people higher, robot lower)
   - Collage: hover zoom + lift + bring to top
   ========================================================= */

/* ==============================
   THEME VARIABLES
============================== */
:root {
  /* Layout */
  --container-max: 1320px;

  /* Dark theme (default) */
  --bg-top: rgba(14, 35, 56, 1);
  --bg-bottom: rgba(14, 35, 56, 1);

  --nav-bg: rgba(7, 27, 44, 0.78);
  --nav-bg-2: rgba(7, 27, 44, 0.68);

  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.1);

  --text: #edf4ff;
  --muted: rgba(237, 244, 255, 0.72);
  --muted-2: rgba(237, 244, 255, 0.55);

  --accent: #37b7ff;
  --accent-2: #00e6a8;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.28);

  --radius-xl: 22px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 14px;

  /* Course card */
  --course-bg: rgba(17, 52, 83, 0.55);
  --course-border: rgba(255, 255, 255, 0.06);

  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-border: rgba(255, 255, 255, 0.08);

  --link: rgba(140, 210, 255, 0.95);
  --link-hover: rgba(190, 240, 255, 0.98);

  --free: #36a2ff;

  /* Misc */
  --focus: rgba(74, 169, 255, 0.55);

  --primary: #3b82f6;
  --primary-hover: #2563eb;
}

/* Light theme overrides */
html[data-theme='light'] {
  --bg-top: #f3f4f6;
  --bg-bottom: #f3f4f6;

  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-bg-2: rgba(255, 255, 255, 0.7);

  --border: rgba(10, 20, 40, 0.1);
  --border-2: rgba(10, 20, 40, 0.14);

  --text: rgba(12, 22, 40, 0.94);
  --muted: rgba(12, 22, 40, 0.72);
  --muted-2: rgba(12, 22, 40, 0.55);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.12);

  --course-bg: rgba(255, 255, 255, 0.7);
  --course-border: rgba(12, 22, 40, 0.1);

  --chip-bg: rgba(12, 22, 40, 0.06);
  --chip-border: rgba(12, 22, 40, 0.1);

  --link: rgba(10, 110, 255, 0.95);
  --link-hover: rgba(10, 110, 255, 1);

  --primary: #3b82f6;
  --primary-hover: #2563eb;
}

/* Theme icon swap */
.tl-theme-toggle .tl-ico-sun {
  display: none;
}
html[data-theme='dark'] .tl-theme-toggle .tl-ico-moon {
  display: inline-block;
}
html[data-theme='dark'] .tl-theme-toggle .tl-ico-sun {
  display: none;
}
html[data-theme='light'] .tl-theme-toggle .tl-ico-moon {
  display: none;
}
html[data-theme='light'] .tl-theme-toggle .tl-ico-sun {
  display: inline-block;
}

/* ==============================
   BASE / RESET
============================== */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 85%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body,
body.tl-body {
  margin: 0;
  min-height: 100%;
  font-family:
          'Inter',
          system-ui,
          -apple-system,
          Segoe UI,
          Roboto,
          Arial,
          sans-serif;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  overflow-y: visible;
  direction: ltr;
}

/* Keep everything transparent so the gradient stays 1-piece */
main.tl-main,
main,
section,
header,
footer {
  background: transparent !important;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: var(--container-max);
}

/* ==============================
   Scrollbar
============================== */
html,
body,
body.tl-body {
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, 0.58) #0e2338;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
body.tl-body::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
body.tl-body::-webkit-scrollbar-track {
    background: #0e2338;
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
body.tl-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    border: 3px solid #0e2338;
    background-clip: padding-box;
    min-height: 48px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
body.tl-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.82);
    border: 3px solid #0e2338;
    background-clip: padding-box;
}

/* Light mode */
html[data-theme='light'],
html[data-theme='light'] body,
html[data-theme='light'] body.tl-body {
    scrollbar-color: rgba(12, 22, 40, 0.34) #f3f4f6;
}

html[data-theme='light']::-webkit-scrollbar-track,
html[data-theme='light'] body::-webkit-scrollbar-track,
html[data-theme='light'] body.tl-body::-webkit-scrollbar-track {
    background: #f3f4f6;
}

html[data-theme='light']::-webkit-scrollbar-thumb,
html[data-theme='light'] body::-webkit-scrollbar-thumb,
html[data-theme='light'] body.tl-body::-webkit-scrollbar-thumb {
    background: rgba(12, 22, 40, 0.34);
    border-radius: 999px;
    border: 3px solid #f3f4f6;
    background-clip: padding-box;
    min-height: 48px;
}

html[data-theme='light']::-webkit-scrollbar-thumb:hover,
html[data-theme='light'] body::-webkit-scrollbar-thumb:hover,
html[data-theme='light'] body.tl-body::-webkit-scrollbar-thumb:hover {
    background: rgba(12, 22, 40, 0.50);
    border: 3px solid #f3f4f6;
    background-clip: padding-box;
}

/* Dark mode */
html[data-theme='dark'],
html[data-theme='dark'] body,
html[data-theme='dark'] body.tl-body {
    scrollbar-color: rgba(255, 255, 255, 0.72) #0e2338;
}

html[data-theme='dark']::-webkit-scrollbar-track,
html[data-theme='dark'] body::-webkit-scrollbar-track,
html[data-theme='dark'] body.tl-body::-webkit-scrollbar-track {
    background: #0e2338;
}

html[data-theme='dark']::-webkit-scrollbar-thumb,
html[data-theme='dark'] body::-webkit-scrollbar-thumb,
html[data-theme='dark'] body.tl-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    border: 3px solid #0e2338;
    background-clip: padding-box;
    min-height: 48px;
}

html[data-theme='dark']::-webkit-scrollbar-thumb:hover,
html[data-theme='dark'] body::-webkit-scrollbar-thumb:hover,
html[data-theme='dark'] body.tl-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid #0e2338;
    background-clip: padding-box;
}

/* ==============================
   HEADER (Techlearna-like two bars)
   - NOT sticky
   - NOT full width
============================== */

/* ==============================
   HEADER LAYER / DROPDOWN FIX
============================== */
.tl-header {
    position: relative;
    z-index: 220;
    padding-top: 14px;
    padding-bottom: 10px;
    overflow: visible !important;
}

.tl-header .container,
.tl-header .container-fluid,
.tl-nav-shell,
.tl-navbar,
.navbar {
    overflow: visible !important;
}

.tl-nav-shell {
    position: relative;
    z-index: 221;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tl-navbar {
    position: relative;
    z-index: 300;
    padding: 36px 44px;
    border-radius: 1rem;
    background: var(--nav-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ==============================
   LOGO VISIBILITY
============================== */
.tl-logo,
.tl-logo-icon {
    display: none;
}

html[data-theme='dark'] .tl-logo--dark,
html[data-theme='dark'] .tl-logo-icon--dark {
    display: block;
}

html[data-theme='light'] .tl-logo--light,
html[data-theme='light'] .tl-logo-icon--light {
    display: block;
}

@media (max-width: 991.98px) {
    .tl-logo {
        display: none !important;
    }

    html[data-theme='dark'] .tl-logo-icon--dark,
    html[data-theme='light'] .tl-logo-icon--light {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .tl-logo-icon {
        display: none !important;
    }

    html[data-theme='dark'] .tl-logo--dark,
    html[data-theme='light'] .tl-logo--light {
        display: block !important;
    }
}

/* ==============================
   BRAND
============================== */
.tl-brand {
    padding: 6px 8px;
    border-radius: 12px;
    align-items: center;
}

.tl-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.tl-brand-text {
    font-weight: 900;
    letter-spacing: 0.1em;
    font-size: 14px;
    color: var(--text);
    opacity: 0.95;
}

/* ==============================
   MOBILE TOGGLER
============================== */
.tl-toggler {
    padding: 8px 10px;
    line-height: 0;
    color: var(--text) !important;
    border: none !important;
}

.tl-toggler:focus,
.tl-toggler:focus-visible,
.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.tl-toggler svg {
    display: block;
}

/* ==============================
   SEARCH
============================== */
.tl-search {
    max-width: 560px;
    width: 100%;
}

.tl-search-group {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme='light'] .tl-search-group {
    background: rgba(12, 22, 40, 0.05);
}

.tl-search-input {
    background: transparent !important;
    border: 0 !important;
    color: var(--text) !important;
    height: 46px;
    font-size: 14px;
    box-shadow: none !important;
}

.tl-search-input::placeholder {
    color: var(--muted-2) !important;
}

.tl-search-btn {
    background: transparent !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme='light'] .tl-search-btn {
    color: rgba(12, 22, 40, 0.6) !important;
}

.tl-search-btn:hover {
    filter: brightness(1.05);
}

.tl-search-btn,
.tl-search-input,
.tl-mobile-search .tl-search-btn,
.tl-mobile-search .tl-search-input {
    border-radius: 0 !important;
}

/* ==============================
   ICON BUTTONS / GENERIC BUTTONS
============================== */
.tl-actions .btn {
    font-weight: 800;
    border-radius: 12px;
    padding: 10px 14px;
}

.tl-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme='light'] .tl-icon-btn {
    background: rgba(12, 22, 40, 0.05) !important;
}

.tl-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme='light'] .tl-icon-btn:hover {
    background: rgba(12, 22, 40, 0.08) !important;
}

.tl-btn-ghost {
    border: 1px solid var(--border-2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text) !important;
    border-radius: 6px !important;
}

html[data-theme='light'] .tl-btn-ghost {
    background: rgba(12, 22, 40, 0.04) !important;
}

.tl-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme='light'] .tl-btn-ghost:hover {
    background: rgba(12, 22, 40, 0.07) !important;
}

.tl-btn-primary,
.tl-register-btn {
    border: 0 !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 40px rgba(59, 130, 246, 0.24);
    border-radius: 6px !important;
    padding: 10px 16px !important;
    font-weight: 900 !important;
}

.tl-btn-primary:hover,
.tl-register-btn:hover {
    filter: brightness(1.03);
}

/* ==============================
   GUEST ACTIONS (Desktop + Mobile)
============================== */
.tl-guest-actions {
    display: inline-flex;
    align-items: center;
    /*gap: 10px;*/
    margin-right: 10px;
    position: relative;
    z-index: 230;
}

.tl-mobile-guest-actions {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-top: 10px;
}

.tl-mobile-guest-actions .tl-guest-action {
    flex: 1 1 50%;
    min-width: 0;
}

.tl-guest-action-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease,
        opacity 160ms ease;
}


.tl-guest-action-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease,
        opacity 160ms ease;
}

.tl-guest-action:hover {
    transform: translateY(-1px);
}

.tl-guest-action:active {
    transform: translateY(0);
}

.tl-guest-action:focus,
.tl-guest-action:focus-visible {
    outline: none;
}

.tl-guest-action__icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
    order: 1;
}

.tl-guest-action__text {
    order: 2;
    line-height: 1;
}

/* ------------------------------
   PRIMARY BUTTON
   Request Course
------------------------------ */
.tl-guest-action--primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18);
}

.tl-guest-action--primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
}

.tl-guest-action--primary:focus,
.tl-guest-action--primary:focus-visible {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow:
        0 12px 28px rgba(59, 130, 246, 0.22),
        0 0 0 3px rgba(59, 130, 246, 0.16);
}

/* ------------------------------
   LIGHT BUTTON
   Login
------------------------------ */
.tl-guest-action--light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(12, 22, 40, 0.08);
    color: #3b82f6;
    box-shadow: 0 8px 18px rgba(12, 22, 40, 0.06);
}

.tl-guest-action--light:hover {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.18);
    color: #2563eb;
    box-shadow: 0 10px 22px rgba(12, 22, 40, 0.08);
}

.tl-guest-action--light:focus,
.tl-guest-action--light:focus-visible {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.22);
    color: #2563eb;
    box-shadow:
        0 10px 22px rgba(12, 22, 40, 0.08),
        0 0 0 3px rgba(59, 130, 246, 0.14);
}

/* ------------------------------
   DARK MODE
------------------------------ */
html[data-theme='dark'] .tl-guest-action--primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.22);
}

html[data-theme='dark'] .tl-guest-action--primary:hover {
    background: #3b82f6;
    border-color: #60a5fa;
    color: #ffffff;
}

html[data-theme='dark'] .tl-guest-action--primary:focus,
html[data-theme='dark'] .tl-guest-action--primary:focus-visible {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow:
        0 12px 28px rgba(59, 130, 246, 0.28),
        0 0 0 3px rgba(59, 130, 246, 0.22);
}

html[data-theme='dark'] .tl-guest-action--light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(237, 244, 255, 0.96);
    box-shadow: none;
}

html[data-theme='dark'] .tl-guest-action--light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.24);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

html[data-theme='dark'] .tl-guest-action--light:focus,
html[data-theme='dark'] .tl-guest-action--light:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.24);
    color: #ffffff;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.16),
        0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 1199.98px) {
    .tl-guest-action {
        min-height: 38px;
        padding: 0 12px;
        font-size: 11.5px;
        gap: 7px;
    }

    .tl-guest-action__icon {
        font-size: 12.5px;
    }
}

@media (max-width: 575.98px) {
    .tl-mobile-guest-actions {
        gap: 0px;
    }

    .tl-mobile-guest-actions .tl-guest-action {
        min-height: 40px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .tl-mobile-guest-actions .tl-guest-action__icon {
        font-size: 12px;
    }
}
/* ==============================
   DESKTOP USER AVATAR + DROPDOWN
============================== */
.tl-user-menu {
    position: relative;
    z-index: 2400;
    margin-right: 10px;
}

.tl-user-trigger {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.34) !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.tl-user-trigger::after {
    display: none !important;
}

.tl-user-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.8) !important;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18) !important;
}

.tl-user-trigger:focus,
.tl-user-trigger:focus-visible {
    outline: none !important;
    box-shadow:
        0 10px 24px rgba(59, 130, 246, 0.18),
        0 0 0 3px rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.85) !important;
}

.tl-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-user-dropdown {
    position: absolute !important;
    top: calc(100%);
    right: 0;
    left: auto;
    min-width: 270px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(7, 27, 44, 0.98);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: 0 !important;
    z-index: 2600 !important;
}

html[data-theme='light'] .tl-user-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(12, 22, 40, 0.08);
    box-shadow: 0 20px 44px rgba(12, 22, 40, 0.12);
}

@media (min-width: 992px) {
    .tl-user-menu:hover > .tl-user-dropdown {
        display: block;
    }
}

.tl-user-dropdown__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 10px;
}

.tl-user-dropdown__profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.tl-user-dropdown__profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-user-dropdown__profile-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.tl-user-dropdown__profile-name {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    color: rgba(237, 244, 255, 0.96);
}

html[data-theme='light'] .tl-user-dropdown__profile-name {
    color: #142235;
}

.tl-user-dropdown__profile-email {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(237, 244, 255, 0.62);
    line-height: 1.25;
    word-break: break-word;
}

html[data-theme='light'] .tl-user-dropdown__profile-email {
    color: rgba(20, 34, 53, 0.58);
}

.tl-user-dropdown .dropdown-divider {
    margin: 8px 2px;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-user-dropdown .dropdown-divider {
    border-color: rgba(12, 22, 40, 0.08);
}

.tl-user-dropdown__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    text-decoration: none;
    color: rgba(237, 244, 255, 0.92);
    font-weight: 800;
    font-size: 13px;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

html[data-theme='light'] .tl-user-dropdown__item {
    color: #142235;
}

.tl-user-dropdown__item:hover {
    background: rgba(59, 130, 246, 0.14);
    color: #f8fbff;
    transform: translateX(2px);
}

html[data-theme='light'] .tl-user-dropdown__item:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #0f172a;
}

.tl-user-dropdown__item:focus,
.tl-user-dropdown__item:focus-visible {
    outline: none;
    background: rgba(59, 130, 246, 0.14);
}

.tl-user-dropdown__icon {
    width: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tl-user-dropdown__item--logout {
    cursor: pointer;
}

/* ==============================
   DROPDOWN THEME SEGMENT
============================== */
.tl-user-dropdown__theme {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-user-dropdown__theme {
    border-top: 1px solid rgba(12, 22, 40, 0.08);
}

.tl-user-theme-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme='light'] .tl-user-theme-switch {
    background: rgba(12, 22, 40, 0.04);
}

.tl-user-theme-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(237, 244, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
    padding: 0 10px;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

html[data-theme='light'] .tl-user-theme-btn {
    color: rgba(20, 34, 53, 0.7);
}

.tl-user-theme-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(237, 244, 255, 0.96);
}

html[data-theme='light'] .tl-user-theme-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #142235;
}

.tl-user-theme-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme='light'] .tl-user-theme-btn.is-active {
    background: #ffffff;
    color: #142235;
    box-shadow:
        0 1px 1px rgba(16, 24, 40, 0.04),
        0 8px 18px rgba(16, 24, 40, 0.06);
}

.tl-user-theme-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}

.tl-user-theme-btn__icon svg {
    display: block;
}

/* ==============================
   BOTTOM BAR (Desktop)
============================== */
.tl-nav-bottom {
    position: relative;
    z-index: 221;
    margin: 0 auto 0;
    width: calc(100% - 96px);
    padding: 20px 36px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    background: var(--nav-bg-2);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 22px;
}

.tl-nav-link {
    font-weight: 800;
    font-size: 13px;
    color: rgba(237, 244, 255, 0.88);
    padding: 10px 10px;
    border-radius: 8px;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

html[data-theme='light'] .tl-nav-link {
    color: rgba(12, 22, 40, 0.8);
}

.tl-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme='light'] .tl-nav-link:hover {
    background: rgba(12, 22, 40, 0.06);
}

/* ==============================
   DROPDOWN MENUS / MEGA MENU
============================== */
.tl-dd-menu {
    background: rgba(7, 27, 44, 0.96);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 10px;
}

html[data-theme='light'] .tl-dd-menu {
    background: rgba(255, 255, 255, 0.95);
}

.tl-dd-item {
    border-radius: 12px;
    color: rgba(237, 244, 255, 0.9);
    font-weight: 750;
    padding: 10px 10px;
}

html[data-theme='light'] .tl-dd-item {
    color: rgba(12, 22, 40, 0.86);
}

.tl-dd-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-dd-item:hover {
    background: rgba(12, 22, 40, 0.06);
}

.tl-mega {
    position: relative;
    z-index: 230;
}

.tl-mega-menu {
    width: min(720px, calc(100vw - 40px));
    border-radius: 6px;
    background: rgba(7, 27, 44, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 2400 !important;
}

html[data-theme='light'] .tl-mega-menu {
    background: rgba(255, 255, 255, 1);
}

.tl-mega-card {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 12px;
    height: 100%;
}

html[data-theme='light'] .tl-mega-card {
    background: rgba(12, 22, 40, 0.04);
}

.tl-mega-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tl-mega-dot {
    width: 10px;
    height: 10px;
    border-radius: 6px;
    display: inline-block;
}

.dot-red {
    background: rgba(255, 77, 109, 0.95);
}

.dot-blue {
    background: rgba(55, 183, 255, 0.95);
}

.dot-purple {
    background: rgba(141, 91, 255, 0.95);
}

.dot-yellow {
    background: rgba(255, 204, 0, 0.95);
}

.tl-mega-title {
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(237, 244, 255, 0.88);
}

html[data-theme='light'] .tl-mega-title {
    color: rgba(12, 22, 40, 0.85);
}

.tl-mega-link {
    display: block;
    padding: 10px 10px;
    border-radius: 6px;
    font-weight: 750;
    font-size: 13px;
    color: rgba(237, 244, 255, 0.86);
}

html[data-theme='light'] .tl-mega-link {
    color: rgba(12, 22, 40, 0.8);
}

.tl-mega-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-mega-link:hover {
    background: rgba(12, 22, 40, 0.06);
}

.tl-mega-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0 10px;
}

html[data-theme='light'] .tl-mega-divider {
    background: rgba(12, 22, 40, 0.1);
}

.tl-mega-tags-title {
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(237, 244, 255, 0.7);
    margin-bottom: 8px;
}

html[data-theme='light'] .tl-mega-tags-title {
    color: rgba(12, 22, 40, 0.65);
}

.tl-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-tag {
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 850;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(237, 244, 255, 0.86);
}

html[data-theme='light'] .tl-tag {
    background: rgba(12, 22, 40, 0.05);
    color: rgba(12, 22, 40, 0.82);
}

.tl-tag:hover {
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] .tl-tag:hover {
    background: rgba(12, 22, 40, 0.08);
}

/* ==============================
   OFFCANVAS (Mobile)
============================== */
.tl-offcanvas {
    background: rgba(7, 18, 32, 0.96);
    color: var(--text);
    border-right: 1px solid var(--border);
}

html[data-theme='light'] .tl-offcanvas {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
}

.tl-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.tl-offcanvas-header > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.tl-offcanvas-body {
    padding-top: 16px;
    padding-bottom: 24px;
}

.tl-offcanvas-close {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 0;
}

.tl-offcanvas-close svg {
    display: block;
}

.tl-mobile-search .tl-search-group {
    border-radius: 6px;
}

.tl-search-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 0 !important;
    color: rgba(237, 244, 255, 0.85) !important;
}

html[data-theme='light'] .tl-search-icon {
    background: rgba(12, 22, 40, 0.05) !important;
    color: rgba(12, 22, 40, 0.8) !important;
}

/* ==============================
   MOBILE MENU ITEMS
============================== */
.tl-mobile-hr {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 0;
}

html[data-theme='light'] .tl-mobile-hr {
    background: rgba(12, 22, 40, 0.08);
}

.tl-mobile-menu {
    display: grid;
    gap: 8px;
}

.tl-mobile-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(237, 244, 255, 0.92);
    font-weight: 850;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

html[data-theme='light'] .tl-mobile-item {
    background: rgba(12, 22, 40, 0.04);
    color: rgba(12, 22, 40, 0.86);
}

.tl-mobile-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-mobile-item:hover {
    background: rgba(12, 22, 40, 0.07);
}

.tl-mobile-left,
.tl-mobile-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tl-mobile-left svg,
.tl-mobile-right svg {
    flex-shrink: 0;
}

.tl-theme-item {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme='light'] .tl-theme-item {
    background: rgba(12, 22, 40, 0.04);
}

.tl-mobile-dropdown {
    cursor: pointer;
}

.tl-mobile-dropdown .tl-arrow {
    transition: transform 160ms ease;
}

.tl-mobile-dropdown[aria-expanded='true'] .tl-arrow {
    transform: rotate(180deg);
}

.tl-mobile-sub {
    display: grid;
    gap: 8px;
    padding-top: 6px;
}

.tl-mobile-sub-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(237, 244, 255, 0.86);
    font-weight: 850;
    text-decoration: none;
}

html[data-theme='light'] .tl-mobile-sub-link {
    background: rgba(12, 22, 40, 0.04);
    /*border: 1px solid rgba(12, 22, 40, 0.1);*/
    color: rgba(12, 22, 40, 0.8);
}

.tl-mobile-sub-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-mobile-sub-link:hover {
    background: rgba(12, 22, 40, 0.07);
}

/* ==============================
   MOBILE USER MENU
============================== */
.tl-mobile-user-menu {
    margin-top: 10px;
}

.tl-mobile-user-trigger {
    width: 100%;
    padding: 8px 10px !important;
    min-height: 60px;
    border-radius: 4px !important;
    border: 1px solid rgba(59, 130, 246, 0.24) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(237, 244, 255, 0.94) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: none !important;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

html[data-theme='light'] .tl-mobile-user-trigger {
    background: rgba(12, 22, 40, 0.04) !important;
    color: #142235 !important;
    border: 1px solid rgba(59, 130, 246, 0.18) !important;
}

.tl-mobile-user-trigger:hover {
    border-color: rgba(59, 130, 246, 0.75) !important;
    background: rgba(59, 130, 246, 0.08) !important;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.14) !important;
}

html[data-theme='light'] .tl-mobile-user-trigger:hover {
    background: rgba(59, 130, 246, 0.08) !important;
}

.tl-mobile-user-trigger:focus,
.tl-mobile-user-trigger:focus-visible {
    outline: none !important;
    box-shadow:
        0 12px 26px rgba(59, 130, 246, 0.14),
        0 0 0 3px rgba(59, 130, 246, 0.16) !important;
}

.tl-mobile-user-trigger::after {
    display: none !important;
}

.tl-mobile-user-trigger__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.34);
}

.tl-mobile-user-trigger__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-mobile-user-trigger__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

.tl-mobile-user-trigger__title {
    font-weight: 900;
    font-size: 13px;
    line-height: 1.2;
}

.tl-mobile-user-trigger__sub {
    margin-top: 2px;
    font-size: 11px;
    opacity: 0.72;
    line-height: 1.2;
    word-break: break-word;
}

.tl-mobile-user-trigger__chevron {
    flex-shrink: 0;
    font-size: 12px;
    opacity: 0.72;
}

.tl-mobile-user-dropdown {
    position: static !important;
    transform: none !important;
    float: none !important;
    width: 100%;
    min-width: 100%;
    margin-top: 8px !important;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(7, 27, 44, 0.98);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme='light'] .tl-mobile-user-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(12, 22, 40, 0.08);
    box-shadow: 0 14px 30px rgba(12, 22, 40, 0.12);
}

/* ==============================
   LEGACY / COMPAT MOBILE LINK CLASSES
============================== */
.tl-mobile-links {
    display: grid;
    gap: 10px;
}

.tl-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(237, 244, 255, 0.92);
    font-weight: 850;
}

html[data-theme='light'] .tl-mobile-link {
    background: rgba(12, 22, 40, 0.04);
    color: rgba(12, 22, 40, 0.86);
}

.tl-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-mobile-link:hover {
    background: rgba(12, 22, 40, 0.07);
}

.tl-mobile-acc .accordion-item {
    background: transparent;
    border: 0;
}

.tl-acc-item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme='light'] .tl-acc-item {
    background: rgba(12, 22, 40, 0.04);
}

.tl-acc-btn {
    background: transparent;
    color: var(--text);
    font-weight: 900;
    box-shadow: none !important;
}

.tl-acc-btn:not(.collapsed) {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme='light'] .tl-acc-btn:not(.collapsed) {
    background: rgba(12, 22, 40, 0.06);
}

.tl-acc-body {
    display: grid;
    gap: 8px;
}

.tl-sub-link {
    padding: 10px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 850;
    color: rgba(237, 244, 255, 0.86);
}

html[data-theme='light'] .tl-sub-link {
    background: rgba(12, 22, 40, 0.04);
    border: 1px solid rgba(12, 22, 40, 0.1);
    color: rgba(12, 22, 40, 0.8);
}

.tl-sub-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-sub-link:hover {
    background: rgba(12, 22, 40, 0.07);
}

/* ==========================================================
   POLISHED HEADER ICON ACTIONS
   Login / Request Course / Theme / Profile SVG controls
========================================================== */
.tl-header-quick-actions,
.tl-guest-actions,
.tl-theme-switch {
    gap: 10px;
}

.tl-header-quick-actions {
    position: relative;
    z-index: 240;
    flex-shrink: 0;
}

.tl-icon-btn,
.tl-action-icon-btn,
.tl-theme-toggle,
.tl-user-trigger,
.tl-mobile-icon-action {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: rgba(237, 244, 255, 0.96) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease !important;
}

html[data-theme='light'] .tl-icon-btn,
html[data-theme='light'] .tl-action-icon-btn,
html[data-theme='light'] .tl-theme-toggle,
html[data-theme='light'] .tl-user-trigger,
html[data-theme='light'] .tl-mobile-icon-action {
    background: rgba(12, 22, 40, 0.05) !important;
    /*border-color: rgba(12, 22, 40, 0.07) !important;*/
    color: #20364c !important;
}

.tl-icon-btn:hover,
.tl-action-icon-btn:hover,
.tl-theme-toggle:hover,
.tl-user-trigger:hover,
.tl-mobile-icon-action:hover {
    /*transform: translateY(-2px);*/
    /*background: rgba(59, 130, 246, 0.14) !important;*/
    /*border-color: rgba(59, 130, 246, 0.35) !important;*/
    color: #ffffff !important;
    /*box-shadow: 0 16px 34px rgba(59, 130, 246, 0.18) !important;*/
}

html[data-theme='light'] .tl-icon-btn:hover,
html[data-theme='light'] .tl-action-icon-btn:hover,
html[data-theme='light'] .tl-theme-toggle:hover,
html[data-theme='light'] .tl-user-trigger:hover,
html[data-theme='light'] .tl-mobile-icon-action:hover {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 16px 34px rgba(12, 22, 40, 0.12) !important;
}

.tl-icon-btn:focus,
.tl-icon-btn:focus-visible,
.tl-action-icon-btn:focus,
.tl-action-icon-btn:focus-visible,
.tl-theme-toggle:focus,
.tl-theme-toggle:focus-visible,
.tl-user-trigger:focus,
.tl-user-trigger:focus-visible,
.tl-mobile-icon-action:focus,
.tl-mobile-icon-action:focus-visible {
    outline: none !important;
    border-color: rgba(59, 130, 246, 0.72) !important;
    box-shadow:
        0 14px 30px rgba(59, 130, 246, 0.16),
        0 0 0 4px rgba(59, 130, 246, 0.16) !important;
}

.tl-action-icon-btn--course {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    /*box-shadow: 0 14px 30px rgba(59, 130, 246, 0.22) !important;*/
}

.tl-action-icon-btn--course:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.28) !important;
}

.tl-action-icon-btn--login {
    color: rgba(237, 244, 255, 0.96) !important;
}

html[data-theme='light'] .tl-action-icon-btn--login {
    background: rgba(12, 22, 40, 0.05) !important;
    /*border-color: rgba(12, 22, 40, 0.07) !important;*/
    color: #20364c !important;
}

.tl-svg-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
}

.tl-action-icon-btn .tl-svg-icon,
.tl-theme-toggle svg,
.tl-user-trigger .tl-svg-icon,
.tl-mobile-icon-action .tl-svg-icon {
    width: 23px;
    height: 23px;
}

.tl-action-icon-btn--course .tl-svg-icon {
    width: 24px;
    height: 24px;
}

/* Hide old text labels if any old markup remains cached */
.tl-action-icon-btn .tl-guest-action__text,
.tl-icon-btn .tl-guest-action__text {
    display: none !important;
}

/* SVG profile trigger */
.tl-user-trigger {
    overflow: visible !important;
}

.tl-user-avatar {
    display: none !important;
}

.tl-profile-svg-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.12) !important;
}

.tl-user-trigger .tl-svg-icon--profile {
    color: currentColor;
}

.tl-user-dropdown__profile-avatar.tl-profile-svg-avatar,
.tl-mobile-user-trigger__avatar.tl-profile-svg-avatar {
    border: 1px solid rgba(59, 130, 246, 0.26);
    border-radius: 50%;
    overflow: hidden;
}

.tl-user-dropdown__profile-avatar.tl-profile-svg-avatar .tl-svg-icon,
.tl-mobile-user-trigger__avatar.tl-profile-svg-avatar .tl-svg-icon {
    width: 22px;
    height: 22px;
}

.tl-user-dropdown__icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    color: currentColor;
}

.tl-user-dropdown__icon .tl-svg-icon {
    width: 18px;
    height: 18px;
}

.tl-user-dropdown__item--logout {
    color: #fb7185 !important;
}

.tl-user-dropdown__item--logout:hover {
    background: rgba(251, 113, 133, 0.12) !important;
    color: #fb7185 !important;
}

/* Professional pure CSS tooltip */
.tl-tooltip {
    position: relative;
}

.tl-tooltip::before,
.tl-tooltip::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
    z-index: 9999;
}

.tl-tooltip::before {
    content: attr(data-tl-tooltip);
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.tl-tooltip::after {
    content: "";
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(6px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(15, 23, 42, 0.96);
}

.tl-tooltip:hover::before,
.tl-tooltip:hover::after,
.tl-tooltip:focus-visible::before,
.tl-tooltip:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltips inside dropdown must appear to the left so they are not clipped */
.tl-user-dropdown .tl-tooltip::before,
.tl-user-dropdown .tl-tooltip::after,
.tl-mobile-user-dropdown .tl-tooltip::before,
.tl-mobile-user-dropdown .tl-tooltip::after {
    display: none;
}

/* Guest action layout: no more connected rectangular buttons */
.tl-guest-actions {
    margin-right: 10px;
}

.tl-guest-action-left,
.tl-guest-action-right,
.tl-mobile-guest-actions .tl-guest-action-left,
.tl-mobile-guest-actions .tl-guest-action-right {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.tl-guest-action-left .tl-guest-action__text,
.tl-guest-action-right .tl-guest-action__text {
    display: none !important;
}

/* Mobile compact icon row */
.tl-mobile-quick-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 2px 0 4px;
    margin: 14px 0;
}

.tl-mobile-quick-actions .tl-tooltip::before {
    bottom: auto;
    top: calc(100% + 12px);
    transform: translateX(-50%) translateY(-6px);
}

.tl-mobile-quick-actions .tl-tooltip::after {
    bottom: auto;
    top: calc(100% + 6px);
    transform: translateX(-50%) translateY(-6px) rotate(180deg);
}

.tl-mobile-quick-actions .tl-tooltip:hover::before,
.tl-mobile-quick-actions .tl-tooltip:hover::after,
.tl-mobile-quick-actions .tl-tooltip:focus-visible::before,
.tl-mobile-quick-actions .tl-tooltip:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

.tl-mobile-icon-action {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
}

.tl-mobile-icon-action .tl-svg-icon,
.tl-mobile-icon-action svg {
    width: 21px;
    height: 21px;
}

.tl-mobile-icon-action.tl-action-icon-btn--course .tl-svg-icon {
    width: 22px;
    height: 22px;
}

.tl-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1199.98px) {
    .tl-icon-btn,
    .tl-action-icon-btn,
    .tl-theme-toggle,
    .tl-user-trigger {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .tl-header-quick-actions,
    .tl-guest-actions,
    .tl-theme-switch {
        gap: 8px;
    }
}

@media (max-width: 991.98px) {
    .tl-navbar {
        padding: 22px 22px;
    }

    .tl-mobile-quick-actions {
        justify-content: center;
    }

    .tl-tooltip::before,
    .tl-tooltip::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .tl-mobile-icon-action {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .tl-mobile-quick-actions {
        gap: 8px;
    }
}


/* ==============================
   HERO SECTION
============================== */
.tl-hero {
    position: relative;
    z-index: 1;
    padding: 56px 0 16px;
}

.tl-hero-title {
    margin: 18px 0 14px;
    font-weight: 950;
    line-height: 1.05;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.02em;
}

.tl-hero-strong {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tl-hero-sub {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 520px;
}

.tl-hero-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tl-hero-btn {
    border-radius: 6px;
    padding: 12px 18px;
    border: 0;
    background: #3b82f6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 950;
    box-shadow:
        0 16px 30px rgba(59, 130, 246, 0.16),
        0 16px 30px rgba(59, 130, 246, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tl-hero-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.tl-hero-note {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.tl-note-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.tl-note-dot {
    width: 10px;
    height: 10px;
    border-radius: 6px;
    background: rgba(55, 183, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(55, 183, 255, 0.1);
}

/* ==============================
   HERO COLLAGE
============================== */
.tl-hero-media {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: visible;
    padding-top: 4px;
}

.tl-collage {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: clamp(360px, 58vh, 560px);
    margin-left: auto;
    margin-right: 0;
    isolation: isolate;
}

.tl-collage-item {
    position: absolute;
    z-index: 2;
    transform: translateZ(0);
    transition:
        transform 0.22s ease,
        z-index 0s linear;
    will-change: transform;
    cursor: pointer;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.tl-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transform-origin: center bottom;
    transition:
        transform 0.22s ease,
        filter 0.22s ease;
    will-change: transform;
    border-radius: 0 !important;
    filter: drop-shadow(0 22px 45px rgba(0, 0, 0, 0.4));
}

.tl-collage-item:hover {
    z-index: 60;
    transform: translateY(-2px);
}

.tl-collage-item:hover img {
    transform: scale(1.12);
    filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.5));
}

.tl-collage-item.item-3:hover img {
    transform: scale(1.08);
}

/* Front Left (ai0) */
.tl-collage-item.item-1 {
    left: -2%;
    bottom: -10%;
    width: 52%;
    height: 112%;
    z-index: 22;
}

/* Front Right (ai1) */
.tl-collage-item.item-2 {
    right: -2%;
    bottom: -10%;
    width: 52%;
    height: 112%;
    z-index: 21;
}

/* Robot (ai3) - LOWER */
.tl-collage-item.item-3 {
    left: 26%;
    bottom: -18%;
    width: 54%;
    height: 108%;
    z-index: 30;
}

/* Back Left (ai2) - HIGHER */
.tl-collage-item.item-4 {
    left: 20%;
    top: -16%;
    width: 34%;
    height: 70%;
    z-index: 10;
    opacity: 0.98;
}

/* Back Right (ai4) - HIGHER */
.tl-collage-item.item-5 {
    right: 22%;
    top: -16%;
    width: 34%;
    height: 70%;
    z-index: 11;
    opacity: 0.98;
}

.tl-hero-down {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    opacity: 0.9;
}
/* ==============================
   COURSES (Techlearna-LIKE) - FIXED
============================== */
.tl-courses {
  position: relative;
  padding: 26px 0 10px;
  margin-top: 40px;
}

.tl-courses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 5rem;
}

/* Title + decorative icon (icon behind the title) */
.tl-courses-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  isolation: isolate;
}

.tl-courses-title {
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 30px;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.tl-courses-title-icon {
  position: static;
  z-index: 1;
  pointer-events: none;
  color: rgba(237, 244, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme='light'] .tl-courses-title-icon {
  color: rgba(17, 24, 39, 0.22);
}

/* View all courses (simple link, no bg/border) */
.tl-courses-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(237, 244, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}

html[data-theme='light'] .tl-courses-all {
  color: rgba(12, 22, 40, 0.94);
}

.tl-courses-all:hover {
  color: var(--text);
    transform: translateY(-1px);
}

.tl-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tl-arrow-svg {
  display: block;
  width: 23px;
  height: 15px;
  color: currentColor;
}

/* Your SVG is a left arrow – flip to get RIGHT arrow */
.tl-arrow-right {
  transform: scaleX(-1);
  transform-origin: center;
}

/* ==============================
   EQUAL HEIGHT CARDS (Bootstrap Row)
   - Make each column a flex container
   - Make card stretch to full height
============================== */
.tl-courses .row.g-4 > [class*='col-'] {
  display: flex;
}

.tl-course-card {
  flex: 1 1 auto;
  width: 100%;
}

/* ==============================
   COURSE CARD
   - Thumbnail protrudes upward
   - Footer fixed (no height change)
   - Extra space grows between desc and bottom row
============================== */
.tl-course-card {
  position: relative;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  box-shadow: var(--shadow-soft);

  overflow: visible;
  display: flex;
  flex-direction: column;

  transition:
          transform 0.18s ease,
          box-shadow 0.18s ease,
          border-color 0.18s ease;
}

html[data-theme='light'] .tl-course-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
}

.tl-course-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme='light'] .tl-course-card:hover {
  border-color: rgba(17, 24, 39, 0.14);
}

/* Thumbnail (goes upward outside the card) */
.tl-course-thumb {
  position: relative;
  display: block;

  margin: -40px 16px 0;
  border-radius: 6px;
  overflow: hidden;

  background: rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

html[data-theme='light'] .tl-course-thumb {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.tl-course-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.22s ease;
}

.tl-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
  opacity: 0.65;
  pointer-events: none;
}

.tl-course-card:hover .tl-course-thumb img {
  transform: scale(1.04);
}

/* Body becomes flexible area so footer stays fixed */
.tl-course-body {
  padding: 14px 18px 12px;
  text-align: left;

  display: flex;
  flex-direction: column;
  flex: 1 1 auto;

  gap: 10px;
}

/* Status (LEFT) */
.tl-course-topline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 22px;
}

.tl-course-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 12.5px;
  color: rgba(25, 90, 200, 0.95);
}

.tl-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 6px;
  background: rgba(25, 90, 200, 0.95);
  box-shadow: 0 0 0 4px rgba(120, 190, 255, 0.12);
}

/* Live status */
.tl-course-status.tl-live {
  color: rgba(255, 120, 120, 0.95);
}

.tl-course-status.tl-live .tl-status-dot {
  background: rgba(255, 120, 120, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 120, 120, 0.12);
}

/* Title + Desc */
.tl-course-name {
  margin: 0;
  font-weight: 1000;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.01em;
}

html[data-theme='light'] .tl-course-name {
  color: rgba(17, 24, 39, 0.95);
}

.tl-course-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* Bottom row pinned to bottom of BODY
   => If title/desc is short, extra space appears above this row
   => Footer will NOT grow */
.tl-course-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
  padding-top: 14px;
}

/* Price */
.tl-course-price {
  font-weight: 1000;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text);
}

html[data-theme='light'] .tl-course-price {
  color: #111827;
}

/* Meta (no pills) */
.tl-course-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.tl-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 1000;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

html[data-theme='light'] .tl-like {
  color: rgba(17, 24, 39, 0.62);
}

.tl-like i {
  color: #ef4444;
  font-size: 14px;
  line-height: 1;
}

.tl-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 1000;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

html[data-theme='light'] .tl-time {
  color: rgba(17, 24, 39, 0.62);
}

.tl-time i {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

/* Card footer link (fixed height / no wrapping) */
.tl-course-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  min-height: 52px;
}

html[data-theme='light'] .tl-course-footer {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.tl-course-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 1000;
  font-size: 13.5px;
  color: #007aff;
  text-decoration: none;
  white-space: nowrap;
}

.tl-course-footer-link:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 575.98px) {
  .tl-courses-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tl-courses-title-icon {
    right: -44px;
    top: -10px;
  }

  .tl-course-thumb {
    margin: -56px 14px 0;
  }

  .tl-course-body {
    padding: 12px 14px 10px;
  }

  .tl-courses .row.g-4 {
    --bs-gutter-y: 4.5rem;
  }
}

/* ==============================
   FOOTER (Techlearna-STYLE / EN - REVERSED)
   - Logo LEFT, Social RIGHT
   - 4 columns under header
   - No separate background: inherits global gradient
============================== */
.tl-footer {
  /* padding: 34px 0 10px; */
  color: var(--muted);
}

/* Header row: Brand + line + Social */
.tl-footer-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 18px;
}

/* ==========================================
   FOOTER BRAND / LOGO
========================================== */

.tl-footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.tl-footer-brand .tl-logo {
  display: inline-block;
  width: auto;
  height: 60px;
  vertical-align: middle;
  flex-shrink: 0;
}

.tl-footer-logo {
  display: none;
}

/* ==============================
   DEFAULT THEME STATE
============================== */

.tl-footer-brand .tl-logo--dark {
  display: none;
}

.tl-footer-brand .tl-logo--light {
  display: inline-block;
}

/* ==============================
   DARK MODE
============================== */

html[data-theme='dark'] .tl-footer-brand .tl-logo--dark {
  display: inline-block;
}

html[data-theme='dark'] .tl-footer-brand .tl-logo--light {
  display: none;
}

/* ==============================
   LIGHT MODE
============================== */

html[data-theme='light'] .tl-footer-brand .tl-logo--dark {
  display: none;
}

html[data-theme='light'] .tl-footer-brand .tl-logo--light {
  display: inline-block;
}

/* ==============================
   HOVER
============================== */

.tl-footer-brand:hover {
  text-decoration: none;
}

.tl-footer-brand:hover .tl-logo {
  transform: translateY(-0.5px);
  transition: transform 0.18s ease;
}

/* ==============================
   MOBILE: HIDE FOOTER LOGO
============================== */

@media (max-width: 767.98px) {
  .tl-footer-brand {
    display: none !important;
  }
}

.tl-footer-name {
  font-weight: 950;
  color: var(--text);
  letter-spacing: 0.08em;
}

.tl-footer-headline {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
html[data-theme='light'] .tl-footer-headline {
  background: rgba(12, 22, 40, 0.12);
}

/* ==============================
   Social buttons (NEW - SVG / Theme-aware)
============================== */
.tl-footer-social {
  display: inline-flex;
  align-items: center;
}

.tl-footer-social-list {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tl-footer-social-item {
  margin: 0;
}

.tl-footer-social-link {
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: rgba(40, 110, 255, 0.1);
  box-shadow: var(--shadow-soft);

  text-decoration: none;
  transition:
          transform 160ms ease,
          background 160ms ease,
          border-color 160ms ease;
}

html[data-theme='light'] .tl-footer-social-link {
  background: rgba(40, 110, 255, 0.1);
}

.tl-footer-social-link:hover {
  transform: translateY(-1px);
  background: rgba(40, 110, 255, 0.22);
  border-color: rgba(120, 190, 255, 0.35);
}

html[data-theme='light'] .tl-footer-social-link:hover {
  background: #007aff;
  color: #fff;
}

/* Icon colors */
.tl-footer-social-link svg {
  display: block;
}

/* Fill icons default */
.tl-footer-social-ico-fill {
  fill: currentColor;
  transition: color 160ms ease;
}

/* Telegram stroke icon */
.tl-footer-social-ico-stroke {
  transition: color 160ms ease;
}

/* Default icon color */
.tl-footer-social-link {
  color: rgba(25, 90, 200, 0.95);
}

/* Light mode icon color (matches your sample: text-blue-700 vibe) */
html[data-theme='light'] .tl-footer-social-link {
  color: rgba(25, 90, 200, 0.95);
}

/* Hover icon becomes white (matches sample) */
.tl-footer-social-link:hover {
  color: #ffffff;
}

/* Grid (4 columns) */
.tl-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 44px;

  padding: 26px 0 28px;
}

/* Titles + text */
.tl-footer-title {
  font-weight: 950;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.tl-footer-text {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.9;
}

/* CTA link in about column */
.tl-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 14px;
  padding: 10px 12px;
  color: #007aff;

  font-weight: 900;
  text-decoration: none;
}

.tl-footer-cta:hover {
  color: var(--text);
}

/* Lists */
.tl-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tl-footer-list li {
  margin: 8px 0;
}

.tl-footer-link {
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.tl-footer-link:hover {
  color: var(--text);
}

/* Contact column */
.tl-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.tl-footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
}

.tl-footer-contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.tl-footer-contact-value {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.tl-footer-contact-value:hover {
  color: rgba(25, 90, 200, 0.95);
}

/* Thin bottom bar text */
.tl-footer-legal {
  margin-top: 14px;
  padding-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: var(--muted-2);
  font-weight: 750;
  font-size: 12.5px;
  line-height: 1.9;
  text-align: left;
}

html[data-theme='light'] .tl-footer-legal {
  border-top: 1px solid rgba(12, 22, 40, 0.08);
}

/* ==============================
   FOOTER RESPONSIVE
============================== */
@media (max-width: 991.98px) {
  .tl-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .tl-footer-head {
    flex-wrap: wrap;
  }

  .tl-footer-headline {
    order: 3;
    width: 100%;
    flex: none;
  }
}

@media (max-width: 575.98px) {
  .tl-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .tl-footer-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tl-footer-social {
    width: 100%;
  }

  .tl-footer-social-list {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .tl-footer-legal {
    text-align: left;
  }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1199.98px) {
  :root {
    --container-max: 1180px;
  }

  .tl-collage {
    max-width: 600px;
    height: clamp(340px, 56vh, 520px);
  }

  .tl-courses-deco {
    display: none;
  }
}

@media (max-width: 991.98px) {
  :root {
    --container-max: 960px;
  }

  .tl-navbar {
    padding: 14px 14px;
    border-radius: 6px;
  }

  /* On tablet: bottom bar becomes full width (still looks like second bar) */
  .tl-nav-bottom {
    width: 100%;
    margin-top: 10px;
    border-radius: 6px;
  }

  .tl-hero {
    padding-top: 38px;
  }

  .tl-hero-media {
    align-items: center;
    padding-top: 0;
  }

  .tl-collage {
    max-width: 560px;
    height: clamp(320px, 52vh, 480px);
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep same layering but slightly tighter */
  .tl-collage-item.item-1 {
    left: -2%;
    bottom: -10%;
    width: 54%;
    height: 112%;
  }
  .tl-collage-item.item-2 {
    right: -2%;
    bottom: -10%;
    width: 54%;
    height: 112%;
  }
  .tl-collage-item.item-3 {
    left: 24%;
    bottom: -16%;
    width: 56%;
    height: 108%;
  }
  .tl-collage-item.item-4 {
    left: 33%;
    top: -14%;
    width: 36%;
    height: 70%;
  }
  .tl-collage-item.item-5 {
    right: 25%;
    top: -14%;
    width: 36%;
    height: 70%;
  }

  .tl-navbar .tl-theme-switch {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  :root {
    --container-max: 100%;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tl-hero-title {
    font-size: 34px;
  }
  .tl-hero-sub {
    font-size: 14px;
  }

  .tl-hero-btn {
    width: 100%;
  }

  .tl-collage {
    max-width: 520px;
    height: 420px;
  }

  /* mobile collage: keep robot lower */
  .tl-collage-item.item-1 {
    left: -4%;
    bottom: -10%;
    width: 56%;
    height: 112%;
  }
  .tl-collage-item.item-2 {
    right: -4%;
    bottom: -10%;
    width: 56%;
    height: 112%;
  }
  .tl-collage-item.item-3 {
    left: 22%;
    bottom: -18%;
    width: 60%;
    height: 108%;
  }
  .tl-collage-item.item-4 {
    left: 30%;
    top: -10%;
    width: 40%;
    height: 70%;
  }
  .tl-collage-item.item-5 {
    right: 22%;
    top: -10%;
    width: 40%;
    height: 70%;
  }

  .tl-courses-title {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .tl-collage {
    height: 380px;
  }
}

/* Ensure header is above hero content */
.tl-header {
  position: relative;
  z-index: 1030;
}

/* Ensure dropdowns appear above hero images */
.tl-nav-bottom {
  position: relative;
  z-index: 100;
  overflow: visible;
}

.dropdown-menu.tl-mega-menu,
.dropdown-menu.tl-dd-menu {
  z-index: 1040;
}

.tl-hero {
  position: relative;
  z-index: 1;
}

/* ==========================================
   TECHLEARNA LOGO
   FULL LOGO + MOBILE ICON
   LIGHT / DARK MODE
========================================== */

.tl-brand {
  text-decoration: none;
  line-height: 1;
  position: relative;
  align-items: center;
}

.tl-logo,
.tl-logo-icon {
  display: inline-block;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

.tl-logo {
  height: 55px;
}

.tl-logo-icon {
  height: 40px;
}

/* DEFAULT STATE */
.tl-logo--dark,
.tl-logo-icon--dark {
  display: none;
}

.tl-logo--light,
.tl-logo-icon--light {
  display: inline-block;
}

/* DARK THEME */
html[data-theme='dark'] .tl-logo--dark,
html[data-theme='dark'] .tl-logo-icon--dark {
  display: inline-block;
}

html[data-theme='dark'] .tl-logo--light,
html[data-theme='dark'] .tl-logo-icon--light {
  display: none;
}

/* LIGHT THEME */
html[data-theme='light'] .tl-logo--dark,
html[data-theme='light'] .tl-logo-icon--dark {
  display: none;
}

html[data-theme='light'] .tl-logo--light,
html[data-theme='light'] .tl-logo-icon--light {
  display: inline-block;
}

/* RESPONSIVE:
   DESKTOP => FULL LOGO
   MOBILE  => ICON ONLY
*/
@media (max-width: 575.98px) {
  .tl-logo--dark,
  .tl-logo--light {
    display: none !important;
  }

  html[data-theme='dark'] .tl-logo-icon--dark {
    display: inline-block !important;
  }

  html[data-theme='dark'] .tl-logo-icon--light {
    display: none !important;
  }

  html[data-theme='light'] .tl-logo-icon--dark {
    display: none !important;
  }

  html[data-theme='light'] .tl-logo-icon--light {
    display: inline-block !important;
  }
}

@media (min-width: 576px) {
  .tl-logo-icon--dark,
  .tl-logo-icon--light {
    display: none !important;
  }

  html[data-theme='dark'] .tl-logo--dark {
    display: inline-block !important;
  }

  html[data-theme='dark'] .tl-logo--light {
    display: none !important;
  }

  html[data-theme='light'] .tl-logo--dark {
    display: none !important;
  }

  html[data-theme='light'] .tl-logo--light {
    display: inline-block !important;
  }
}

/* OPTIONAL FINE TUNING */
.tl-brand:hover .tl-logo,
.tl-brand:hover .tl-logo-icon {
  transform: translateY(-0.5px);
  transition: transform 0.18s ease;
}


.tl-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tl-dd-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transform: translateY(1px);
  color: rgba(237, 244, 255, 0.92);
}

html[data-theme='light'] .tl-dd-caret {
  color: rgba(12, 22, 40, 0.85);
}

.tl-nav-bottom .tl-dd-toggle::after,
.tl-nav-bottom .dropdown-toggle::after {
  display: none !important;
}

.tl-nav-bottom .tl-dd-toggle {
  padding-right: 10px;
}

.tl-dd-caret {
  margin-left: 8px;
}

.hidden {
  display: none !important;
}

.tl-theme-toggle.hidden,
[data-mode-icon].hidden {
  display: none !important;
}


/* Make all main buttons use the primary color */
.tl-btn-primary,
.tl-hero-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.tl-btn-primary:hover,
.tl-hero-btn:hover {
  background: var(--primary-hover) !important;
}

/* HERO left side styling (matches the provided layout style) */
.tl-hero-left {
  max-width: 560px;
}

.tl-hero-title--mega {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(42px, 4.4vw, 68px);
  margin: 10px 0 14px;
}

.tl-hero-sub--mega {
  font-size: 16px;
  line-height: 1.9;
  max-width: 520px;
  opacity: 0.9;
  margin: 0 0 22px;
}

.tl-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tl-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 320px;
  height: 56px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
}

.tl-hero-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tl-hero-features {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  max-width: 550px;
}

.tl-hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-hero-feature svg {
  flex: 0 0 auto;
  display: block;
}

.tl-hero-feature span {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: var(--text);
}

/* Responsive alignment similar to the reference layout */
@media (max-width: 991px) {
  .tl-hero-left {
    margin: 0 auto;
    text-align: center;
  }

  .tl-hero-sub--mega {
    margin-left: auto;
    margin-right: auto;
  }

  .tl-hero-actions {
    justify-content: center;
  }

  .tl-hero-feature {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .tl-hero-features {
    grid-template-columns: 1fr;
  }

  .tl-hero-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ==============================
   ARTICLES SECTION
   - Stagger columns
   - Fixed card height
   - Image like Techlearna tailwind:
     w-full h-full object-cover transform transition duration-200 hover:scale-110
============================== */

.tl-articles {
  position: relative;
  padding: 44px 0 18px;
}

.tl-articles-panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 44px 44px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tl-articles-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 387px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(100, 116, 139, 0.05);
  border-radius: 16px;
  z-index: 0;
}

html[data-theme='dark'] .tl-articles-panel::before {
  background: rgba(15, 30, 47, 1);
}

.tl-articles-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: stretch;

  position: relative;
  z-index: 1;
}

.tl-articles-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.tl-articles-title {
  margin: 0 0 14px;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(26px, 2.6vw, 44px);
  color: var(--text);
}

.tl-articles-desc {
  margin: 0 0 22px;
  line-height: 1.9;
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
}

.tl-articles-cta {
  margin-top: 6px;
}

.tl-articles-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  height: 52px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

/* Right side cards */
.tl-articles-cards {
  position: relative;
}

/* STAGGER CONFIG */
.tl-articles-grid {
  --stagger: 34px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;

  padding-top: var(--stagger);
  padding-bottom: var(--stagger);
}

/* Left column items go UP */
.tl-article-wrap:nth-child(odd) {
  margin-top: calc(var(--stagger) * -1.7);
}

/* Right column items go DOWN */
/*.tl-article-wrap:nth-child(even) {*/
/*  margin-top: calc(var(--stagger) * +1);*/
/*}*/

/* CARD: fixed height */
.tl-article-card {
  height: 340px;
  display: flex;
  flex-direction: column;

  padding: 14px;
  border-radius: 6px;
}

/* ==============================
   IMAGE (Techlearna-LIKE)
   Tailwind reference:
   w-full h-full object-cover transform transition duration-200 hover:scale-110
============================== */

/* The thumb is the fixed-height frame that the image fills */
.tl-article-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 12px 0;
  background: rgba(255, 255, 255, 0.04);
}

/* Image fills the thumb completely */
.tl-article-thumb img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;

  transform: scale(1);
  transition: transform 200ms ease;
  will-change: transform;
}

/* Hover zoom like hover:scale-110 */
.tl-article-thumb:hover img {
  transform: scale(1.1);
}

/* Body fills remaining area */
.tl-article-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Title clamp to keep heights consistent */
.tl-article-title {
  margin: 0;
  font-weight: 950;
  line-height: 1.35;
  font-size: 18px;
  color: var(--text);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Meta row */
.tl-article-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.tl-article-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  height: 30px;
  padding: 0 10px;

  border-radius: 10px;

  background: rgba(100, 116, 139, 0.05);
  color: var(--text);

  font-weight: 900;
  font-size: 12px;
}

html[data-theme='light'] .tl-article-pill {
  background: rgba(100, 116, 139, 0.05);
}

/* Bottom row pinned to bottom */
.tl-article-bottom {
  margin-top: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tl-article-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tl-article-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .tl-articles-panel {
    padding: 34px 26px;
  }

  .tl-articles-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .tl-articles-grid {
    padding-top: 0;
    padding-bottom: 0;
  }

  .tl-article-wrap:nth-child(odd),
  .tl-article-wrap:nth-child(even) {
    margin-top: 0;
  }

  .tl-article-thumb {
    height: 180px;
  }
}

@media (max-width: 575px) {
  .tl-articles-grid {
    grid-template-columns: 1fr;
  }

  .tl-article-card {
    height: 360px;
  }

  .tl-article-thumb {
    height: 190px;
  }

  .tl-articles-btn {
    width: 100%;
  }
}

/* ==============================
   Mobile Theme Item (Offcanvas)
   - First item after Search
   - Has title next to icon
   - Has HR before and after
============================== */

.tl-mobile-hr {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  margin: 12px 0;
}

html[data-theme='light'] .tl-mobile-hr {
  background: rgba(12, 22, 40, 0.12);
}

.tl-mobile-theme {
  display: grid;
  gap: 10px;
}

.tl-mobile-theme-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  border-radius: 6px;

  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);

  color: rgba(237, 244, 255, 0.92);
  font-weight: 850;

  box-shadow: none;
  cursor: pointer;
  text-align: left;
}

html[data-theme='light'] .tl-mobile-theme-item {
  background: rgba(12, 22, 40, 0.04);
  color: rgba(12, 22, 40, 0.86);
}

.tl-mobile-theme-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-mobile-theme-item:hover {
  background: rgba(12, 22, 40, 0.07);
}

.tl-mobile-theme-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tl-mobile-theme-title {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-mobile-theme-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tl-mobile-theme-ico {
  width: 42px;
  height: 42px;
  border-radius: 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

html[data-theme='light'] .tl-mobile-theme-ico {
  background: rgba(12, 22, 40, 0.05);
}

/* mobile styles */

/* Mobile Menu Items */
.tl-mobile-menu {
  display: grid;
  gap: 10px;
}

.tl-mobile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;

  border: transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 900;
}

html[data-theme='light'] .tl-mobile-item {
  background: rgba(12, 22, 40, 0);
}

.tl-mobile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-mobile-item svg {
  flex-shrink: 0;
}

/* Dropdown */
.tl-mobile-dropdown .tl-arrow {
  transition: transform 0.25s ease;
}

.tl-mobile-dropdown[aria-expanded='true'] .tl-arrow {
  transform: rotate(180deg);
}

/* Sub links */
.tl-mobile-sub {
  padding-left: 12px;
  display: grid;
  gap: 8px;
    background: whitesmoke;
    border-radius: 4px;
}

.tl-mobile-sub-link {
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0);
  border: transparent;
  font-weight: 800;
}

/* Theme item */
.tl-theme-item {
  width: 100%;
}

/* Request Button */
.tl-mobile-request {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* ==============================
   OFFCANVAS WIDTH (Mobile Sidebar)
   ============================== */
.tl-offcanvas.offcanvas-start {
  width: 290px !important;
  max-width: 290px !important;
}

@media (max-width: 420px) {
  .tl-offcanvas.offcanvas-start {
    width: 276px !important;
    max-width: 276px !important;
  }
}

/* ==============================
   REMOVE "TRANSPARENT" LOOK
   (make panels feel solid)
   ============================== */

.tl-offcanvas {
  background: #071b2c !important;
}

html[data-theme='light'] .tl-offcanvas {
  background: #ffffff !important;
}

.tl-mobile-item {
  background: rgba(255, 255, 255, 0) !important;
}

.tl-mobile-sub-link {
  background: rgba(255, 255, 255, 0) !important;
}

html[data-theme='light'] .tl-mobile-sub-link {
  background: rgba(12, 22, 40, 0) !important;
}

/* ==============================
   LEARNING PATHS (Carousel)
   ============================== */

.tl-learningpaths {
  position: relative;
  padding: 26px 0 10px;
  margin-top: 40px;

  /* Force English/LTR behavior even if the page is RTL */
  direction: ltr;
}

.tl-lp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

@media (max-width: 576px) {
  .tl-lp-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.tl-lp-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  isolation: auto;
}

.tl-lp-title {
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 30px;
  color: var(--text);
  position: relative;
  z-index: 2;
}

@media (max-width: 576px) {
  .tl-lp-title {
    font-size: 22px;
  }
}

.tl-lp-title-icon {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  z-index: auto;

  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme='light'] .tl-lp-title-icon {
  color: rgba(17, 24, 39, 0.22);
}

.tl-lp-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(237, 244, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}

html[data-theme='light'] .tl-lp-all {
    color: rgba(12, 22, 40, 0.94);
}


.tl-lp-all:hover {
  color: var(--text);
    transform: translateY(-1px);
}

/* Carousel core */
.tl-lp-carousel {
  /* 380px = 23.75rem | 311px = 19.4375rem | gap 26px = 1.625rem */
  --lp-card-w: clamp(18rem, 24vw, 23.75rem);
  --lp-card-h: clamp(16.5rem, 20vw, 19.4375rem);
  --lp-gap: 1.625rem;

  /* show 3.5 cards (LTR) */
  --lp-visible: 3.5;

  position: relative;
}

/* viewport shows 3.5 cards max on desktop, but still shrinks on smaller screens */
.tl-lp-viewport {
  overflow: hidden;
  border-radius: 18px;

  width: 100%;
  max-width: calc(
          (var(--lp-card-w) * var(--lp-visible)) +
          (var(--lp-gap) * (var(--lp-visible) - 1))
  );

  /* align to LEFT for English */
  margin-left: 0;
  margin-right: auto;
}

.tl-lp-track {
  display: flex;
  gap: var(--lp-gap);
  align-items: stretch;
  will-change: transform;
  transition: transform 360ms ease;

  padding-left: 0;
  padding-right: 0;
}

.tl-lp-card {
  flex: 0 0 var(--lp-card-w);
  width: var(--lp-card-w);
  height: var(--lp-card-h);

  border-radius: 6px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, 0.04);

  opacity: 1;

  transition:
          background-color 0.2s ease,
          opacity 0.2s ease,
          border-color 0.2s ease,
          box-shadow 0.2s ease;
}

html[data-theme='light'] .tl-lp-card {
  background: rgba(255, 255, 255, 1);
}

/* HOVER (Tailwind-like)
   hover:bg-white + hover:shadow-cardShadow
   dark:hover:bg-white dark:hover:bg-opacity-5
   dark:hover:border-dark-890
*/
.tl-lp-card:hover {
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
  box-shadow: none;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme='light'] .tl-lp-card:hover {
  background: rgba(255, 255, 255, 1);
  opacity: 1;
  box-shadow: var(--shadow-soft);
  transform: none !important;
  border-color: rgba(17, 24, 39, 0.22);
}

.tl-lp-card-body {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.tl-lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.tl-lp-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: #ffffff;
  user-select: none;
}

.tl-lp-icon--laravel {
  background: #ef4444;
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.25);
}
.tl-lp-icon--js {
  background: #facc15;
  color: rgba(12, 22, 40, 0.95);
  box-shadow: 0 18px 36px rgba(250, 204, 21, 0.22);
}
.tl-lp-icon--web {
  background: #22c55e;
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.22);
}
.tl-lp-icon--react {
  background: #38bdf8;
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.22);
}
.tl-lp-icon--node {
  background: #16a34a;
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.22);
}
.tl-lp-icon--devops {
  background: #6366f1;
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.22);
}

.tl-lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 244, 255, 0.86);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

html[data-theme='light'] .tl-lp-badge {
   background: rgba(17, 24, 39, 0.04);
  color: rgba(17, 24, 39, 0.74);
}

.tl-lp-badge-ico {
  color: var(--primary);
}

.tl-lp-name {
  display: inline-flex;
  margin: 0;
  font-weight: 1000;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

html[data-theme='light'] .tl-lp-name {
  color: rgba(17, 24, 39, 0.95);
}

.tl-lp-name:hover {
  color: rgba(59, 130, 246, 0.95);
}

.tl-lp-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Footer pinned bottom */
.tl-lp-card-foot {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  /* English */
  text-align: right;
}

html[data-theme='light'] .tl-lp-card-foot {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.tl-lp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  color: rgba(140, 210, 255, 0.95);
}

html[data-theme='light'] .tl-lp-link {
  color: rgba(25, 90, 200, 0.95);
}

.tl-lp-link:hover {
  color: var(--text);
}

/* Responsive: keep "peek" feeling */
@media (max-width: 991.98px) {
  .tl-lp-carousel {
    --lp-visible: 2.2;
  }

  .tl-lp-viewport {
    max-width: calc(
            (var(--lp-card-w) * var(--lp-visible)) +
            (var(--lp-gap) * (var(--lp-visible) - 1))
    );
  }
}

@media (max-width: 575.98px) {
  .tl-lp-carousel {
    --lp-visible: 1.15;
  }

  .tl-lp-viewport {
    max-width: 100%;
  }

  .tl-lp-track {
    padding: 0 0 0.5rem;
  }
}

/* ==============================
   Pagination (Prev • Dots • Next)
   ============================== */

.arrow__circls {
    margin-top: 40px;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.swiper-button-prev,
.swiper-button-next {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(237, 244, 255, 0.9);
  line-height: 0;
  cursor: pointer;
  transition:
          opacity 0.15s ease,
          transform 0.15s ease;
}

html[data-theme='light'] .swiper-button-prev,
html[data-theme='light'] .swiper-button-next {
  color: rgba(17, 24, 39, 0.75);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.swiper-button-disabled,
.swiper-button-prev:disabled,
.swiper-button-next:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  transform: none;
}

.swiper-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(237, 244, 255, 0.16);
  cursor: pointer;
  transition:
          width 0.15s ease,
          height 0.15s ease,
          background 0.15s ease;
}

html[data-theme='light'] .swiper-pagination-bullet {
  background: rgba(17, 24, 39, 0.18);
}

.swiper-pagination-bullet-active {
  width: 14px;
  height: 14px;
  background: rgba(237, 244, 255, 0.72);
}

html[data-theme='light'] .swiper-pagination-bullet-active {
  background: rgba(17, 24, 39, 0.62);
}

/* ✅ Remove any hidden panel background/radius */
.tl-lp-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ✅ remove viewport rounding that can show curved edges */
.tl-lp-viewport {
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden; /* keep clipping for carousel */
}

/* =========================
     PODCAST SECTION (NO LIBRARY)
  ========================= */

.tl-podcast {
  padding: 56px 0 74px;
  color: var(--text);
}

.tl-podcast-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.tl-podcast-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tl-podcast-title-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: 0.92;
}

.tl-podcast-title-wrap {
  display: flex;
  flex-direction: column;
}

.tl-podcast-h {
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 30px;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.tl-podcast-sub {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.tl-podcast-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
    font-size: 14px;
  font-weight: 800;
  opacity: 0.92;
  padding-top: 10px;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}

html[data-theme='light'] .tl-podcast-all {
    color: rgba(12, 22, 40, 0.94);
}


.tl-podcast-all:hover {
    color: var(--text);
    transform: translateY(-1px);
}

/* Carousel */
.tl-podcast-carousel {
  position: relative;
}

.tl-podcast-viewport {
  overflow: hidden;
  border-radius: 22px;
  outline: none;
  max-width: 1396px;
  margin: 0 auto;
}

.tl-podcast-viewport:focus-visible {
  box-shadow: 0 0 0 4px var(--focus);
}

.tl-podcast-track {
  --gap: 8px;
  --per: 3;
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s ease;
  padding: 18px 0 62px;
  user-select: none;
  touch-action: pan-y;
}

/* Card */
.tl-podcast-card {
  flex: 0 0 392px;
  width: 392px;
  height: 188.8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 14px 14px 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition:
          background-color 0.2s ease,
          border-color 0.2s ease,
          box-shadow 0.2s ease;
}

.tl-podcast-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.tl-podcast-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tl-podcast-ep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--chip-border);
  /* background: var(--chip-bg); */
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  height: 34px;
  white-space: nowrap;
}

.tl-podcast-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.95;
}

.tl-podcast-btn:hover {
  opacity: 1;
}

.tl-podcast-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tl-podcast-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.tl-podcast-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  opacity: 0.95;
}

.tl-podcast-card-body {
  padding: 10px 0 0;
  flex: 1 1 auto;
  min-height: 0;
}

.tl-podcast-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--text);
}

.tl-podcast-card-title a {
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.98;
}

.tl-podcast-card-title a:hover {
  opacity: 1;
}

.tl-podcast-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
}

.tl-podcast-listen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0.95;
}

.tl-podcast-listen:hover {
  opacity: 1;
}

.tl-podcast-cover {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.08);
}

.tl-podcast-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.tl-podcast-cover:hover img {
  transform: scale(1.08);
}

/* =========================
     PODCAST PAGINATION (Learning Path Style)
  ========================= */

.tl-podcast-controls.arrow__circls {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  padding: 10px 14px;
}

.tl-podcast-controls.arrow__circls .swiper-button-prev,
.tl-podcast-controls.arrow__circls .swiper-button-next {
  width: 44px;
  height: 44px;
  color: var(--text);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0;
  border-radius: 999px;
}

.tl-podcast-controls.arrow__circls .swiper-button-prev:hover,
.tl-podcast-controls.arrow__circls .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.tl-podcast-controls.arrow__circls .swiper-button-prev:disabled,
.tl-podcast-controls.arrow__circls .swiper-button-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tl-podcast-controls.arrow__circls .swiper-button-prev svg,
.tl-podcast-controls.arrow__circls .swiper-button-next svg {
  display: block;
}

.tl-podcast-controls.arrow__circls .swiper-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-podcast-controls.arrow__circls .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0;
}

.tl-podcast-controls.arrow__circls .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.75);
}

/* =========================
     LIGHT MODE OVERRIDES
  ========================= */

html[data-theme='light'] .tl-podcast-title-icon {
  color: var(--text);
  opacity: 0.9;
}

html[data-theme='light'] .tl-podcast-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .tl-podcast-card:hover {
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

html[data-theme='light'] .tl-podcast-cover {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(12, 22, 40, 0.04);
}

html[data-theme='light']
.tl-podcast-controls.arrow__circls
.swiper-button-prev:hover,
html[data-theme='light']
.tl-podcast-controls.arrow__circls
.swiper-button-next:hover {
  background: rgba(12, 22, 40, 0.06);
}

html[data-theme='light']
.tl-podcast-controls.arrow__circls
.swiper-pagination-bullet {
  background: rgba(12, 22, 40, 0.18);
}

html[data-theme='light']
.tl-podcast-controls.arrow__circls
.swiper-pagination-bullet-active {
  background: rgba(12, 22, 40, 0.55);
}

/* Responsive */
@media (max-width: 520px) {
  .tl-podcast-viewport {
    max-width: 100%;
  }

  .tl-podcast-track {
    padding-bottom: 72px;
  }

  .tl-podcast-controls.arrow__circls {
    gap: 12px;
    padding: 9px 12px;
  }
}


/*Single course */
:root {
    --tl-page-bg: #0f2a46;
    --tl-card: #132f45;
    --tl-card-2: #10283c;
    --tl-border: rgba(255, 255, 255, 0.1);
    --tl-text: rgba(255, 255, 255, 0.92);
    --tl-muted: rgba(255, 255, 255, 0.7);
    --tl-muted-2: rgba(255, 255, 255, 0.52);
    --tl-soft: rgba(96, 165, 250, 0.12);
    --tl-soft-2: rgba(255, 255, 255, 0.06);
    --tl-primary: #60a5fa;
    --tl-primary-2: #3b82f6;
    --tl-success: #10b981;
    --tl-warning: #f97316;
    --tl-danger: #ef4444;
    --tl-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --tl-radius: 4px;
}

[data-theme='light'] {
    --tl-page-bg: #f3f6fb;
    --tl-card: #ffffff;
    --tl-card-2: #f6f8fc;
    --tl-border: rgba(16, 24, 40, 0.1);
    --tl-text: #0b1220;
    --tl-muted: rgba(11, 18, 32, 0.65);
    --tl-muted-2: rgba(11, 18, 32, 0.48);
    --tl-soft: rgba(37, 99, 235, 0.1);
    --tl-soft-2: rgba(16, 24, 40, 0.06);
    --tl-primary: #2563eb;
    --tl-primary-2: #3b82f6;
    --tl-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.tl-main {
    padding: 22px 0 60px;
    background: var(--tl-page-bg);
}

.tl-course-page {
    color: var(--tl-text);
}

.tl-course-page *,
.tl-course-page *::before,
.tl-course-page *::after {
    box-sizing: border-box;
}

.tl-course-page a {
    text-decoration: none;
}

.tl-course-page button,
.tl-course-page input,
.tl-course-page textarea,
.tl-course-page select {
    font: inherit;
}

.tl-course-page :is(
    .tl-card,
    .tl-badge,
    .tl-hero-cover,
    .tl-tabs-wrap,
    .tl-tabs .nav-link,
    .tl-course-request-btn,
    .tl-course-social-link,
    .tl-course-social-link__icon,
    .tl-course-info-item,
    .tl-course-status-chip,
    .tl-course-like-btn,
    .tl-course-read-more-btn,
    .tl-pro-session-item,
    .tl-pro-session-btn,
    .tl-pro-session-number,
    .tl-pro-session-content-card,
    .tl-pro-video-box,
    .tl-pro-video-box__count,
    .tl-pro-video-item,
    .tl-pro-video-item__index,
    .tl-pro-video-item__open,
    .tl-pro-session-join,
    .tl-pro-session-coming,
    .tl-pro-faq-item,
    .tl-pro-faq-btn,
    .tl-pro-faq-mark,
    .tl-course-toast
) {
    border-radius: 4px !important;
}

.tl-course-page .tl-card {
    background: var(--tl-card);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    box-shadow: var(--tl-shadow);
}

.tl-single-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: .75rem;
}


.tl-course-action-card {
    padding: 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, .22), transparent 38%),
        linear-gradient(135deg, rgba(16, 185, 129, .15), rgba(34, 197, 94, .08)),
        var(--tl-card);
    border-color: rgba(16, 185, 129, .26) !important;
}

.tl-course-action-card__eyebrow {
    color: var(--tl-success);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .35rem;
}

.tl-course-action-card__title {
    margin: 0;
    color: var(--tl-text);
    font-size: 1.05rem;
    font-weight: 1000;
    line-height: 1.28;
}

.tl-course-action-card__text {
    margin: .45rem 0 .85rem;
    color: var(--tl-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.tl-course-request-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .86rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(16, 185, 129, .22);
    transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.tl-course-request-btn:hover {
    transform: translateY(-1px);
    opacity: .96;
    color: #fff !important;
    box-shadow: 0 20px 42px rgba(16, 185, 129, .28);
}

.tl-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.tl-mini-stat {
    min-height: 92px;
    padding: .8rem .55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    text-align: center;
}

.tl-mini-ico {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tl-primary);
    background: var(--tl-soft);
    border-radius: 4px;
    margin-bottom: .25rem;
}

.tl-mini-label {
    font-size: .72rem;
    color: var(--tl-muted);
    font-weight: 850;
    line-height: 1.25;
}

.tl-mini-value {
    font-size: .9rem;
    color: var(--tl-text);
    font-weight: 950;
    line-height: 1.25;
    word-break: break-word;
}

.tl-course-links-card,
.tl-course-info-card,
.tl-course-taxonomy-card {
    padding: 1rem;
}

.tl-course-social-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}

.tl-course-social-link {
    min-height: 42px;
    padding: .62rem .72rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: rgba(59, 130, 246, .08);
    color: var(--tl-text) !important;
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, .16);
    font-size: .82rem;
    font-weight: 900;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.tl-course-social-link:hover {
    transform: translateY(-1px);
    background: rgba(59, 130, 246, .13);
    border-color: rgba(59, 130, 246, .25);
    color: var(--tl-text) !important;
}

.tl-course-social-link__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tl-primary);
    background: rgba(59, 130, 246, .1);
}

.tl-course-social-link__icon svg {
    display: block;
}

.tl-course-social-link--youtube .tl-course-social-link__icon {
    color: var(--tl-danger);
    background: rgba(239, 68, 68, .1);
}

.tl-course-social-link--telegram .tl-course-social-link__icon {
    color: #38bdf8;
    background: rgba(56, 189, 248, .1);
}

.tl-course-social-link--whatsapp .tl-course-social-link__icon {
    color: var(--tl-success);
    background: rgba(16, 185, 129, .1);
}

.tl-instructor-card {
    padding: 1.1rem .95rem;
    text-align: center;
}

.tl-instructor-avatar {
    display: flex;
    justify-content: center;
}

.tl-avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .14);
    border: 1px solid rgba(59, 130, 246, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .25rem;
}

.tl-avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 999px;
}

.tl-instructor-name {
    margin-top: .75rem;
    font-weight: 950;
    color: var(--tl-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.tl-instructor-name i {
    color: var(--tl-primary);
    font-size: .78rem;
}

.tl-instructor-role {
    margin-top: .35rem;
    color: var(--tl-muted);
    font-weight: 850;
    font-size: .8rem;
}

.tl-instructor-bio {
    margin: .8rem 0 0;
    color: var(--tl-muted);
    line-height: 1.85;
    font-size: .84rem;
}

.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .62rem;
    font-weight: 900;
    font-size: .72rem;
    background: var(--tl-soft-2);
    color: var(--tl-muted);
}

.tl-badge-soft {
    background: var(--tl-soft);
    color: var(--tl-text);
}

.tl-course-info-list {
    display: grid;
    gap: .5rem;
}

.tl-course-info-item {
    min-height: 42px;
    padding: .58rem .68rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    background: rgba(148, 163, 184, .08);
    border: 1px solid var(--tl-border);
}

.tl-course-info-item span {
    color: var(--tl-muted);
    font-size: .78rem;
    font-weight: 850;
}

.tl-course-info-item strong {
    color: var(--tl-text);
    font-size: .82rem;
    font-weight: 950;
    text-align: right;
}

.tl-hero-card {
    padding: 1rem;
}

.tl-course-hero-pro {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .16), transparent 38%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, .08), transparent 34%),
        var(--tl-card);
}

.tl-hero-topline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    flex-wrap: wrap;
}

.tl-hero-price {
    min-height: 34px;
    padding: .42rem .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, .11);
    color: var(--tl-primary);
    font-weight: 950;
    font-size: .9rem;
    border-radius: 4px;
}

.tl-course-status-chip {
    min-height: 34px;
    padding: .42rem .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, .1);
    color: var(--tl-success);
    font-size: .78rem;
    font-weight: 950;
    border: 1px solid rgba(16, 185, 129, .18);
}

.tl-course-like-btn {
    min-height: 34px;
    border: 0;
    padding: .42rem .7rem;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    background: rgba(239, 68, 68, .09);
    color: var(--tl-text);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 950;
    transition: transform .16s ease, background-color .16s ease, color .16s ease, opacity .16s ease;
}

.tl-course-like-btn:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, .14);
}

.tl-course-like-btn.is-liked {
    background: rgba(239, 68, 68, .16);
    color: var(--tl-danger);
}

.tl-course-like-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.tl-hero-title {
    margin: .75rem 0 0;
    font-weight: 1000;
    color: var(--tl-text);
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    line-height: 1.25;
    text-align: left;
    letter-spacing: -.025em;
}

.tl-hero-sub {
    margin: .65rem 0 0;
    color: var(--tl-muted);
    line-height: 1.9;
    font-size: .94rem;
    text-align: left;
}

.tl-hero-cover {
    width: 100%;
    max-width: 360px;
    height: 256px;
    overflow: hidden;
    border: 1px solid var(--tl-border);
    background: var(--tl-card-2);
    margin-left: auto;
}

.tl-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-content-card {
    margin-top: .75rem;
    padding: .9rem;
}

.tl-tabs-wrap {
    position: sticky;
    top: 12px;
    z-index: 5;
    padding: .4rem;
    background: var(--tl-card-2);
    border: 1px solid var(--tl-border);
}

.tl-tabs {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 0;
}

.tl-tabs .nav-link {
    border: 0;
    background: transparent;
    color: var(--tl-muted);
    font-weight: 950;
    padding: .62rem .85rem;
    font-size: .84rem;
}

.tl-tabs .nav-link.active {
    background: var(--tl-soft);
    color: var(--tl-text);
}

.tl-tab-content {
    padding: .9rem 0 0;
}

.tl-inner-card {
    padding: 1rem;
    box-shadow: none !important;
    background: var(--tl-card);
}

.tl-section-title {
    font-weight: 1000;
    color: var(--tl-text);
    font-size: 1.25rem;
    margin-bottom: .75rem;
    text-align: left;
    line-height: 1.3;
}

.tl-p {
    color: var(--tl-muted);
    line-height: 2;
    font-size: .92rem;
    margin: 0 0 .85rem;
    text-align: left;
}

.tl-mt {
    margin-top: .75rem;
}

.tl-section-block {
    scroll-margin-top: 90px;
}

.tl-course-description-wrap {
    position: relative;
    overflow: hidden;
    transition: max-height .24s ease;
}

.tl-course-description-wrap.is-collapsed {
    max-height: 260px;
}

.tl-course-description-wrap.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--tl-card));
    pointer-events: none;
}

[data-theme='dark'] .tl-course-description-wrap.is-collapsed::after {
    background: linear-gradient(180deg, rgba(19, 47, 69, 0), var(--tl-card));
}

.tl-course-description-wrap.is-expanded {
    max-height: none;
}

.tl-course-read-more-btn {
    margin-top: .85rem;
    min-height: 40px;
    border: 0;
    padding: .55rem .8rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(59, 130, 246, .1);
    color: var(--tl-primary);
    font-size: .82rem;
    font-weight: 950;
    cursor: pointer;
}

.tl-section-head-pro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 4rem;
}

.tl-section-subtitle-pro {
    margin: .28rem 0 0;
    color: var(--tl-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.tl-pro-session-list,
.tl-pro-faq-list {
    display: grid;
    gap: .7rem;
}

.tl-pro-session-item,
.tl-pro-faq-item {
    overflow: hidden;
    border: 1px solid var(--tl-border) !important;
    background: rgba(148, 163, 184, .06) !important;
}




.tl-pro-session-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, .12);
    color: var(--tl-primary);
    font-size: .86rem;
    font-weight: 1000;
}



.tl-pro-session-meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    color: var(--tl-muted);
    font-size: .76rem;
    font-weight: 800;
}

.tl-pro-session-btn,
.tl-pro-faq-btn {
    width: 100%;
    min-height: 58px;
    padding: .78rem .9rem !important;
    background: transparent !important;
    color: var(--tl-text) !important;
    box-shadow: none !important;
    border: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    text-align: left;
}

.tl-pro-session-btn::after,
.tl-pro-faq-btn::after {
    display: none !important;
}

.tl-pro-session-btn__main {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.tl-pro-session-copy {
    min-width: 0;
    display: block;
}

.tl-pro-session-title {
    color: var(--tl-text);
    font-size: .95rem;
    font-weight: 950;
    line-height: 1.45;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-pro-session-chevron,
.tl-pro-faq-chevron {
    color: var(--tl-muted-2);
    transition: transform .18s ease;
    flex: 0 0 auto;
}

.tl-pro-session-btn:not(.collapsed) .tl-pro-session-chevron,
.tl-pro-faq-btn:not(.collapsed) .tl-pro-faq-chevron {
    transform: rotate(180deg);
}

.tl-pro-session-body,
.tl-pro-faq-body {
    padding: 0.4rem 0.2rem .9rem 3.5rem !important;
}

.tl-pro-session-content-card {
    padding: .9rem;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .09), transparent 34%),
        rgba(59, 130, 246, .04);
    border: 1px solid rgba(59, 130, 246, .12);
}

.tl-pro-session-desc {
    color: var(--tl-muted);
    font-size: .86rem;
    line-height: 1.85;
    word-break: break-word;
}

.tl-pro-video-box {
    margin-top: .85rem;
    padding: .85rem;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--tl-border);
}

[data-theme='light'] .tl-pro-video-box {
    background: rgba(37, 99, 235, .045);
}

.tl-pro-video-box__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
    margin-bottom: .7rem;
}

.tl-pro-video-box__title {
    color: var(--tl-text);
    font-size: .92rem;
    font-weight: 1000;
    line-height: 1.3;
}

.tl-pro-video-box__text {
    margin-top: .18rem;
    color: var(--tl-muted);
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.45;
}

.tl-pro-video-box__count {
    min-width: 30px;
    height: 28px;
    padding: 0 .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tl-danger);
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .16);
    font-size: .76rem;
    font-weight: 1000;
}

.tl-pro-video-list {
    display: grid;
    gap: .55rem;
}

.tl-pro-video-item {
    min-height: 58px;
    padding: .62rem .7rem;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: .65rem;
    background: rgba(59, 130, 246, .075);
    border: 1px solid rgba(59, 130, 246, .14);
    color: var(--tl-text) !important;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.tl-pro-video-item:hover {
    transform: translateY(-1px);
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .26);
}

.tl-pro-video-item__index {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, .1);
    color: var(--tl-danger);
    font-size: .78rem;
    font-weight: 1000;
}

.tl-pro-video-item__body {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.tl-pro-video-item__title {
    color: var(--tl-text);
    font-size: .82rem;
    font-weight: 950;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-pro-video-item__duration {
    color: var(--tl-muted);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.3;
}

.tl-pro-video-item__open {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, .1);
    color: var(--tl-danger);
}

.tl-pro-session-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: .85rem;
}

.tl-pro-session-join,
.tl-pro-session-coming {
    min-height: 38px;
    border: 0;
    padding: .52rem .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 950;
    text-decoration: none;
}

.tl-pro-session-join {
    background: var(--tl-success);
    color: #fff !important;
}

.tl-pro-session-coming {
    background: rgba(148, 163, 184, .14);
    color: var(--tl-muted);
}

.tl-pro-faq-btn__left {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.tl-pro-faq-mark {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, .12);
    color: var(--tl-warning);
    font-size: .95rem;
    font-weight: 1000;
}

.tl-pro-faq-title {
    color: var(--tl-text);
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.4;
}

.tl-pro-faq-body {
    color: var(--tl-muted);
    font-size: .84rem;
    line-height: 1.75;
}

.tl-related-course-row > [class*='col-'] {
    display: flex;
}

.tl-related-course-row .tl-course-card {
    width: 100%;
    height: 100%;
}

.tl-course-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1600;
    min-width: 240px;
    max-width: min(360px, calc(100vw - 36px));
    padding: .8rem .9rem;
    background: rgba(16, 185, 129, .96);
    color: #fff;
    font-size: .84rem;
    font-weight: 900;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .22);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.tl-course-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tl-course-toast.is-error {
    background: rgba(239, 68, 68, .96);
}

@media (max-width: 1199.98px) {
    .tl-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .tl-single-sidebar {
        position: static;
    }

    .tl-tabs-wrap {
        position: static;
    }

    .tl-hero-cover {
        max-width: 100%;
        height: auto;
        aspect-ratio: 374 / 256;
    }

    .tl-section-head-pro {
        flex-direction: column;
    }

}

@media (max-width: 575.98px) {
    .tl-content-card,
    .tl-inner-card,
    .tl-hero-card {
        padding: .8rem;
    }

    .tl-course-hero-topline {
        align-items: stretch;
    }

    .tl-course-like-btn,
    .tl-course-status-chip,
    .tl-hero-price {
        width: 100%;
        justify-content: center;
    }

    .tl-pro-session-btn,
    .tl-pro-faq-btn {
        align-items: center;
    }

    .tl-pro-session-btn__main {
        align-items: center;
        min-width: 0;
    }

    .tl-pro-session-title {
        white-space: normal;
    }

    .tl-pro-video-box__head {
        flex-direction: column;
    }

    .tl-pro-video-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .tl-pro-video-item__open {
        grid-column: 1 / -1;
        width: 100%;
    }

    .tl-pro-video-item__title {
        white-space: normal;
    }

    .tl-pro-session-actions {
        justify-content: stretch;
    }

    .tl-pro-session-join,
    .tl-pro-session-coming {
        width: 100%;
    }
}

/* =========================================================
   SINGLE ARTICLE PAGE
   Add this block at the end of your current styles.css
========================================================= */

.tl-ap-page {
  padding: 24px 0 72px;
}

.tl-ap-layout {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  align-items: flex-start;
}

.tl-ap-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
}

.tl-ap-panel {
  position: relative;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(7, 27, 44, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

html[data-theme='light'] .tl-ap-panel {
  background: whitesmoke;
  border-color: rgba(12, 22, 40, 0.08);
}

/* =====================================
   SIDEBAR - FOCUS BUTTON
===================================== */
.tl-ap-focus-btn {
  width: 100%;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 6px;
  border: 2px solid var(--primary-hover);
  background: transparent;
  color: var(--primary-hover);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  transition:
          background 0.18s ease,
          color 0.18s ease,
          border-color 0.18s ease,
          transform 0.18s ease,
          box-shadow 0.18s ease;
}

.tl-ap-focus-btn:hover {
  background: var(--primary-hover);
  color: whitesmoke;
  border-color: var(--primary-hover);
}

html[data-theme='light'] .tl-ap-focus-btn {
  background: rgba(255, 255, 255);
  color: var(--primary-hover) !important;
}

html[data-theme='light'] .tl-ap-focus-btn:hover {
var(--primary-hover);
  color: whitesmoke !important;
  border-color: var(--primary-hover);
    background: var(--primary-hover);
}

.tl-ap-focus-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* =====================================
   SIDEBAR - AUTHOR CARD
===================================== */
.tl-ap-author-card {
  padding: 24px 22px 20px;
  min-height: 180px;
}

.tl-ap-author-avatar-wrap {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(
          135deg,
          rgba(55, 183, 255, 0.95),
          rgba(0, 230, 168, 0.85)
  );
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.tl-ap-author-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.06);
}

.tl-ap-author-copy {
  text-align: center;
  padding-top: 4px;
}

.tl-ap-author-name {
  margin: 0 0 8px;
  padding-right: 60px;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.35;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-author-name {
  color: rgba(12, 22, 40, 0.96);
}

.tl-ap-author-role {
  margin: 0 auto;
  max-width: 240px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.tl-ap-author-btn {
  margin-top: 18px;
  min-width: 120px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px !important;
  border: 0 !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  padding: 0 18px !important;
}

.tl-ap-author-btn:hover {
  background: var(--primary-hover) !important;
}

/* =====================================
   SIDEBAR - RECENT ARTICLES
===================================== */
.tl-ap-recent-card {
  padding: 10px 12px 8px;
}

.tl-ap-recent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tl-ap-side-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-side-title {
  color: rgba(12, 22, 40, 0.96);
}

.tl-ap-side-subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.tl-ap-side-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

html[data-theme='light'] .tl-ap-side-icon {
  background: rgba(12, 22, 40, 0.05);
}

.tl-ap-recent-list {
  display: grid;
  gap: 12px;
}

.tl-ap-recent-item {
  display: block;
  padding: 16px 16px 14px;
  border-radius: 6px;
  background: rgba(3, 18, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition:
          transform 0.18s ease,
          border-color 0.18s ease,
          box-shadow 0.18s ease,
          background 0.18s ease;
}

.tl-ap-recent-item:hover {
  background: rgba(3, 18, 32, 0.76);
}

html[data-theme='light'] .tl-ap-recent-item {
  background: white;
  border-color: whitesmoke;
}


.tl-ap-recent-title {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 900;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-recent-title {
  color: rgba(12, 22, 40, 0.94);
}

.tl-ap-recent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.tl-ap-recent-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* =====================================
   MAIN ARTICLE PANEL
===================================== */
.tl-ap-article {
  border-radius: 6px;
}

.tl-ap-cover {
  position: relative;
  min-height: 520px;
  background:
          linear-gradient(180deg, rgba(8, 20, 33, 0.06), rgba(8, 20, 33, 0.18)),
          linear-gradient(135deg, rgba(18, 49, 77, 0.95), rgba(11, 34, 56, 0.98));
  overflow: hidden;
}

html[data-theme='light'] .tl-ap-cover {
  background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(12, 22, 40, 0.06)),
          linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(239, 246, 255, 0.96));
}

.tl-ap-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-ap-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
          180deg,
          rgba(6, 16, 27, 0.1) 0%,
          rgba(6, 16, 27, 0.22) 62%,
          rgba(6, 16, 27, 0.46) 100%
  );
  pointer-events: none;
}

html[data-theme='light'] .tl-ap-cover::after {
  background: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.02) 0%,
          rgba(255, 255, 255, 0.06) 62%,
          rgba(12, 22, 40, 0.12) 100%
  );
}

.tl-ap-content {
  padding: 32px 40px 42px;
}

.tl-ap-head {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.tl-ap-meta {
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.tl-ap-category,
.tl-ap-readtime {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tl-ap-category {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(37, 99, 235, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.tl-ap-category:hover {
  color: rgba(10, 110, 255, 1);
}

html[data-theme='light'] .tl-ap-category {
  background: rgba(10, 110, 255, 0.08);
  color: rgba(10, 110, 255, 1);
  box-shadow: none;
}

.tl-ap-readtime {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

html[data-theme='light'] .tl-ap-readtime {
  background: rgba(12, 22, 40, 0.05);
  color: rgba(12, 22, 40, 0.85);
}

.tl-ap-title {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 1000;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-title {
  color: rgba(12, 22, 40, 0.96);
}

.tl-ap-lead {
  margin: 0 auto;
  max-width: 920px;
  font-size: 18px;
  line-height: 2;
  color: var(--muted);
}

.tl-ap-body {
  max-width: 920px;
  margin: 34px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .tl-ap-body {
  border-top-color: rgba(12, 22, 40, 0.08);
}

.tl-ap-body h2 {
  margin: 34px 0 14px;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 950;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-body h2 {
  color: rgba(12, 22, 40, 0.96);
}

.tl-ap-body h3 {
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-body h3 {
  color: rgba(12, 22, 40, 0.94);
}

.tl-ap-body p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
}

.tl-ap-body ul,
.tl-ap-body ol {
  margin: 0 0 20px 0;
  padding-left: 22px;
  color: var(--muted);
}

.tl-ap-body li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.9;
}

.tl-ap-body strong {
  color: var(--text);
}

html[data-theme='light'] .tl-ap-body strong {
  color: rgba(12, 22, 40, 0.96);
}

.tl-ap-callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid rgba(55, 183, 255, 0.18);
  background: linear-gradient(
          135deg,
          rgba(55, 183, 255, 0.12),
          rgba(0, 230, 168, 0.08)
  );
  color: var(--text);
}

html[data-theme='light'] .tl-ap-callout {
  border-color: rgba(10, 110, 255, 0.12);
  background: linear-gradient(
          135deg,
          rgba(10, 110, 255, 0.06),
          rgba(16, 185, 129, 0.05)
  );
}

.tl-ap-callout-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 950;
  font-size: 15px;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-callout-title {
  color: rgba(12, 22, 40, 0.96);
}

.tl-ap-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}

.tl-ap-mini-card {
  padding: 18px 18px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme='light'] .tl-ap-mini-card {
  background: rgba(12, 22, 40, 0.03);
  border-color: rgba(12, 22, 40, 0.06);
}

.tl-ap-mini-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
}

.tl-ap-mini-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

html[data-theme='light'] .tl-ap-mini-card strong {
  color: rgba(12, 22, 40, 0.94);
}

.tl-ap-body blockquote {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid rgba(59, 130, 246, 0.72);
  border-radius: 0 4px 4px 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 700;
}

html[data-theme='light'] .tl-ap-body blockquote {
  background: rgba(12, 22, 40, 0.03);
  color: rgba(12, 22, 40, 0.9);
  border-left-color: rgba(10, 110, 255, 0.7);
}

.tl-ap-body pre {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 6px;
  overflow-x: auto;
  background: rgba(3, 18, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(237, 244, 255, 0.9);
}

html[data-theme='light'] .tl-ap-body pre {
  background: rgba(12, 22, 40, 0.04);
  border-color: rgba(12, 22, 40, 0.06);
  color: rgba(12, 22, 40, 0.88);
}

.tl-ap-body code {
  font-family:
          ui-monospace,
          SFMono-Regular,
          Menlo,
          Monaco,
          Consolas,
          'Liberation Mono',
          'Courier New',
          monospace;
  font-size: 14px;
  line-height: 1.8;
}

.tl-ap-article-footer {
  max-width: 920px;
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

html[data-theme='light'] .tl-ap-article-footer {
  border-top-color: rgba(12, 22, 40, 0.08);
}

.tl-ap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tl-ap-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

html[data-theme='light'] .tl-ap-tag {
  background: rgba(12, 22, 40, 0.05);
  color: rgba(12, 22, 40, 0.86);
}

.tl-ap-tag:hover {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] .tl-ap-tag:hover {
  background: rgba(12, 22, 40, 0.08);
}

.tl-ap-share {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 850;
}

.tl-ap-share-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tl-ap-share-link {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition:
          transform 0.18s ease,
          background 0.18s ease,
          color 0.18s ease;
}

.tl-ap-share-link:hover {
  transform: translateY(-1px);
  background: rgba(55, 183, 255, 0.18);
  color: #8cccff;
}

html[data-theme='light'] .tl-ap-share-link {
  background: rgba(12, 22, 40, 0.05);
  color: rgba(12, 22, 40, 0.86);
}

html[data-theme='light'] .tl-ap-share-link:hover {
  background: rgba(10, 110, 255, 0.1);
  color: rgba(10, 110, 255, 1);
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1199.98px) {
  .tl-ap-author-name {
    font-size: 18px;
  }

  .tl-ap-cover {
    min-height: 460px;
  }

  .tl-ap-content {
    padding: 28px 30px 36px;
  }
}

@media (max-width: 991.98px) {
  .tl-ap-page {
    padding-top: 18px;
  }

  .tl-ap-sidebar {
    position: static;
  }

  .tl-ap-cover {
    min-height: 340px;
  }

  .tl-ap-title {
    font-size: clamp(25px, 5vw, 35px);
  }

  .tl-ap-lead {
    font-size: 17px;
  }

  .tl-ap-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .tl-ap-content {
    padding: 24px 20px 30px;
  }

  .tl-ap-cover {
    min-height: 260px;
  }

  .tl-ap-meta {
    justify-content: center;
  }

  .tl-ap-lead,
  .tl-ap-body p,
  .tl-ap-body li {
    font-size: 15px;
  }

  .tl-ap-body blockquote {
    font-size: 16px;
  }

  .tl-ap-article-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .tl-ap-focus-btn {
    font-size: 16px;
    min-height: 62px;
  }

  .tl-ap-author-card,
  .tl-ap-recent-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tl-ap-author-avatar-wrap {
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .tl-ap-author-name {
    padding-right: 54px;
    font-size: 17px;
  }

  .tl-ap-side-title {
    font-size: 22px;
  }

  .tl-ap-cover {
    min-height: 220px;
  }

  .tl-ap-content {
    padding: 20px 16px 26px;
  }

  .tl-ap-title {
    font-size: 20px;
  }

  .tl-ap-meta {
    gap: 10px;
  }

  .tl-ap-category,
  .tl-ap-readtime {
    width: 100%;
  }
}


/* ==============================
   THEME TOGGLE VISIBILITY
============================== */
.tl-theme-toggle.hidden,
[data-mode-icon].hidden {
  display: none !important;
}

/* =========================================================
   SINGLE PODCAST PAGE
   Add this block at the end of your current styles.css
========================================================= */

html[data-theme='light'] {
  --tl-pd-page-bg: #eef4fb;
  --tl-pd-surface: #ffffff;
  --tl-pd-surface-2: #f3f7fc;
  --tl-pd-surface-3: #e9f0f8;
  --tl-pd-card: #f4f7fb;
  --tl-pd-card-2: #edf3fa;
  --tl-pd-border: rgba(12, 22, 40, 0.08);
  --tl-pd-border-strong: rgba(12, 22, 40, 0.12);
  --tl-pd-text: #0c1628;
  --tl-pd-text-soft: #334155;
  --tl-pd-muted: #637789;
  --tl-pd-accent: #2563eb;
  --tl-pd-accent-2: #0ea5e9;
  --tl-pd-danger: #e81c4d;
  --tl-pd-success: #10b981;
  --tl-pd-track: #d8e1ec;
  --tl-pd-thumb: #536b8c;
  --tl-pd-shadow: 0 24px 70px rgba(12, 22, 40, 0.08);
  --tl-pd-btn-dark: #0f2744;
  --tl-pd-btn-dark-hover: #123357;
  --tl-pd-btn-soft: rgba(37, 99, 235, 0.08);
}

html[data-theme='dark'] {
  --tl-pd-page-bg: #0f2744;
  --tl-pd-surface: #173453;
  --tl-pd-surface-2: #102947;
  --tl-pd-surface-3: #0c223b;
  --tl-pd-card: #09233f;
  --tl-pd-card-2: #0c2846;
  --tl-pd-border: rgba(255, 255, 255, 0.06);
  --tl-pd-border-strong: rgba(255, 255, 255, 0.1);
  --tl-pd-text: #ffffff;
  --tl-pd-text-soft: rgba(255, 255, 255, 0.88);
  --tl-pd-muted: #b6c5d7;
  --tl-pd-accent: #5aa8ff;
  --tl-pd-accent-2: #60a5fa;
  --tl-pd-danger: #ff4b78;
  --tl-pd-success: #34d399;
  --tl-pd-track: rgba(255, 255, 255, 0.16);
  --tl-pd-thumb: #5c7393;
  --tl-pd-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --tl-pd-btn-dark: #071f38;
  --tl-pd-btn-dark-hover: #0b2a49;
  --tl-pd-btn-soft: rgba(90, 168, 255, 0.12);
}

/* Base */
.tl-pd-main {
  background: transparent;
}

.tl-pd-page {
  padding: 28px 0 72px;
}

.tl-pd-shell {
  border-radius: 6px;
  overflow: hidden;
  background: var(--tl-pd-surface);
  border: 1px solid var(--tl-pd-border);
  box-shadow: var(--tl-pd-shadow);
}

.tl-pd-inner {
  padding: 34px 34px 28px;
  background: var(--tl-pd-surface);
}

.tl-pd-content {
  min-height: 100%;
}

.tl-pd-cover {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--tl-pd-surface-3);
  border: 1px solid var(--tl-pd-border);
}

.tl-pd-cover img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  object-fit: cover;
}

/* Meta */
.tl-pd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.tl-pd-episode {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--tl-pd-text-soft);
}

.tl-pd-episode-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.72;
}

.tl-pd-meta-divider {
  width: 1px;
  height: 24px;
  background: var(--tl-pd-border-strong);
  flex-shrink: 0;
}

.tl-pd-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-pd-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--tl-pd-card-2);
  border: 1px solid transparent;
  color: var(--tl-pd-text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
          background 0.18s ease,
          color 0.18s ease,
          border-color 0.18s ease,
          transform 0.18s ease;
}

.tl-pd-tag:hover {
  background: var(--tl-pd-accent);
  color: #ffffff;
  border-color: var(--tl-pd-accent);
  transform: translateY(-1px);
}

/* Title */
.tl-pd-title {
  margin: 0 0 32px;
  color: var(--tl-pd-text);
  font-size: clamp(20px, 3vw, 35px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.03em;
  max-width: 940px;
}

/* Toolbar */
.tl-pd-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
}

.tl-pd-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-pd-toolbar-group--center {
  justify-content: center;
  gap: 24px;
}

.tl-pd-toolbar-group--right {
  justify-content: flex-end;
}

.tl-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition:
          transform 0.18s ease,
          background 0.18s ease,
          color 0.18s ease,
          border-color 0.18s ease,
          box-shadow 0.18s ease;
}

.tl-pd-btn:hover {
  transform: translateY(-1px);
}

.tl-pd-btn--solid {
  background: var(--tl-pd-btn-dark);
  color: #ffffff;
}

.tl-pd-btn--solid:hover {
  background: var(--tl-pd-btn-dark-hover);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.tl-pd-btn--ghost {
  background: var(--tl-pd-btn-dark);
  color: #ffffff;
}

.tl-pd-btn--ghost:hover {
  background: var(--tl-pd-btn-dark-hover);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.tl-pd-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tl-pd-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tl-pd-btn-soft);
  color: var(--tl-pd-accent);
  cursor: pointer;
  transition:
          transform 0.18s ease,
          background 0.18s ease,
          color 0.18s ease,
          border-color 0.18s ease;
}

.tl-pd-icon-btn:hover {
  transform: translateY(-1px);
}

.tl-pd-icon-btn--bookmark:hover {
  background: var(--tl-pd-accent);
  color: #ffffff;
}

.tl-pd-icon-btn--like {
  color: var(--tl-pd-danger);
  background: rgba(232, 28, 77, 0.1);
}

.tl-pd-icon-btn--like:hover {
  background: var(--tl-pd-danger);
  color: #ffffff;
}

/* Player buttons */
.tl-pd-player-btn {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tl-pd-text);
  cursor: pointer;
  transition:
          transform 0.18s ease,
          color 0.18s ease,
          opacity 0.18s ease;
}

.tl-pd-player-btn:hover {
  transform: translateY(-1px);
}

.tl-pd-player-btn--seek {
  opacity: 0.92;
}

.tl-pd-player-btn--seek:hover {
  color: var(--tl-pd-accent);
}

.tl-pd-player-btn--play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--tl-pd-text);
}

.tl-pd-player-btn--play:hover {
  color: var(--tl-pd-accent);
}

/* Audio area */
.tl-pd-player {
  margin-top: 10px;
}

.tl-pd-audio {
  display: none;
}


.tl-pd-progress-wrap {
    --tl-pd-range-progress: 0%;
    position: relative;
    padding-top: 18px;
    width: 100%;
}

.tl-pd-time-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    min-width: 146px;
    height: 44px;
    border-radius: 999px;
    background: var(--tl-pd-thumb);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.tl-pd-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(
        90deg,
        #ff4b78 0%,
        #ff4b78 var(--tl-pd-range-progress),
        var(--tl-pd-track) var(--tl-pd-range-progress),
        var(--tl-pd-track) 100%
    );
}

.tl-pd-range:focus {
  outline: none;
}

.tl-pd-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.tl-pd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff4b78;
  border: 4px solid #ffffff;
  margin-top: -7px;
  box-shadow: 0 6px 18px rgba(255, 75, 120, 0.28);
}

html[data-theme='dark'] .tl-pd-range::-webkit-slider-thumb {
  border-color: #163250;
}

.tl-pd-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.tl-pd-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #ff4b78;
}

.tl-pd-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff4b78;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(255, 75, 120, 0.28);
}

html[data-theme='dark'] .tl-pd-range::-moz-range-thumb {
  border-color: #163250;
}

/* Description */
.tl-pd-description {
  margin-top: 38px;
  padding: 34px;
  border-radius: 6px;
  background: var(--tl-pd-card);
  border: 1px solid var(--tl-pd-border);
}

.tl-pd-description p {
  margin: 0 0 22px;
  color: var(--tl-pd-text-soft);
  font-size: 17px;
  line-height: 2;
  font-weight: 500;
}

.tl-pd-description p:last-child {
  margin-bottom: 0;
}

/* Bottom bar */
.tl-pd-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 34px 26px;
  border-top: 1px solid var(--tl-pd-border);
  background: var(--tl-pd-surface);
}

.tl-pd-bottom-left,
.tl-pd-bottom-right {
  display: flex;
  align-items: center;
}

.tl-pd-comments-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tl-pd-text-soft);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  transition: color 0.18s ease;
}

.tl-pd-comments-link:hover {
  color: var(--tl-pd-success);
}

.tl-pd-comments-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.tl-pd-share-label {
  margin-right: 14px;
  color: var(--tl-pd-muted);
  font-size: 15px;
  font-weight: 600;
}

.tl-pd-share-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tl-pd-share-link {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tl-pd-muted);
  background: transparent;
  text-decoration: none;
  transition:
          transform 0.18s ease,
          color 0.18s ease,
          background 0.18s ease;
}

.tl-pd-share-link:hover {
  transform: translateY(-1px);
  background: var(--tl-pd-btn-soft);
  color: var(--tl-pd-accent);
}

/* Responsive */
@media (max-width: 1399.98px) {
  .tl-pd-title {
    font-size: clamp(18px, 3vw, 30px);
  }
}

@media (max-width: 1199.98px) {
  .tl-pd-toolbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .tl-pd-toolbar-group--center {
    width: 100%;
    justify-content: center;
  }

  .tl-pd-toolbar-group--right {
    justify-content: flex-start;
  }

  .tl-pd-cover,
  .tl-pd-cover img {
    min-height: 260px;
  }
}

@media (max-width: 991.98px) {
  .tl-pd-page {
    padding-top: 18px;
  }

  .tl-pd-inner {
    padding: 24px 24px 22px;
  }

  .tl-pd-title {
    margin-bottom: 24px;
    font-size: clamp(14px, 4vw, 30px);
    line-height: 1.22;
  }

  .tl-pd-description {
    margin-top: 28px;
    padding: 24px;
  }

  .tl-pd-bottom {
    padding: 20px 24px 24px;
  }
}

@media (max-width: 767.98px) {
  .tl-pd-meta {
    align-items: flex-start;
    gap: 12px;
  }

  .tl-pd-meta-divider {
    display: none;
  }

  .tl-pd-toolbar-group--left {
    flex-wrap: wrap;
  }

  .tl-pd-toolbar-group--center {
    gap: 18px;
  }

  .tl-pd-player-btn--play {
    width: 58px;
    height: 58px;
  }

  .tl-pd-progress-wrap {
    padding-top: 14px;
  }

  .tl-pd-time-pill {
    min-width: 118px;
    height: 38px;
    font-size: 12px;
    padding: 0 12px;
  }

  .tl-pd-title {
    font-size: clamp(14px, 5vw, 25px);
    line-height: 1.24;
  }

  .tl-pd-description p {
    font-size: 16px;
    line-height: 1.95;
  }

  .tl-pd-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .tl-pd-share-label {
    margin-right: 10px;
  }
}

@media (max-width: 575.98px) {
  .tl-pd-inner {
    padding: 18px 16px 18px;
  }

  .tl-pd-cover,
  .tl-pd-cover img {
    min-height: 220px;
  }

  .tl-pd-title {
    font-size: clamp(14px, 6vw, 20px);
    line-height: 1.26;
  }

  .tl-pd-btn {
    width: 100%;
    justify-content: center;
  }

  .tl-pd-toolbar-group {
    width: 100%;
  }

  .tl-pd-toolbar-group--left,
  .tl-pd-toolbar-group--right {
    flex-wrap: wrap;
  }

  .tl-pd-icon-btn {
    width: 46px;
    height: 46px;
  }

  .tl-pd-toolbar-group--center {
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .tl-pd-description {
    padding: 20px 16px;
    border-radius: 6px;
  }

  .tl-pd-description p {
    font-size: 15px;
  }

  .tl-pd-bottom {
    padding: 18px 16px 20px;
  }

  .tl-pd-share-links {
    gap: 10px;
    flex-wrap: wrap;
  }

  .tl-pd-progress-wrap {
    padding-top: 12px;
  }

  .tl-pd-time-pill {
    min-width: 108px;
    height: 36px;
    font-size: 11px;
    padding: 0 10px;
  }
}


/* =========================================
   EXPANDABLE INFO CARD
   - Dark mode is the default theme
   - Light mode overrides only with html[data-theme='light']
   - Full width inside .container like the other sections
   - Left blue accent block
   - Collapsed content with fade effect
   - Expand / collapse button
========================================= */

.tl-expandable-info {
    position: relative;
    padding: 44px 0 88px;
    direction: ltr;
}

.tl-expandable-info-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-top: 24px;
}

/* Left blue block under the main card */
.tl-expandable-info-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 158px;
    height: 158px;
    border-radius: 4px;
    background: #3b82f6;
    z-index: 0;
}

/* Main card - DARK FIRST */
.tl-expandable-info-card {
    position: relative;
    z-index: 1;
    width: calc(100% - 18px);
    margin-left: 18px;
    border-radius: 4px;
    overflow: visible;
    background: #071b2c;
    box-shadow: var(--shadow);
}

.tl-expandable-info-inner {
    position: relative;
    padding: 42px 52px 78px;
    border-radius: 4px;
}

/* Title */
.tl-expandable-info-title {
    margin: 0 0 24px;
    font-weight: 1000;
    letter-spacing: -0.03em;
    line-height: 1.18;
    font-size: clamp(20px, 2vw, 30px);
    color: var(--text);
    text-align: left;
}

/* Content */
.tl-expandable-info-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.42s ease;
}

.tl-expandable-info-content p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 2.05;
    color: var(--muted);
    text-align: left;
}

.tl-expandable-info-content p:last-child {
    margin-bottom: 0;
}

/* Collapsed state */
.tl-expandable-info-content.is-collapsed {
    max-height: 168px;
}

/* Fade effect in dark mode */
.tl-expandable-info-content.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(7, 27, 44, 0) 0%,
        rgba(7, 27, 44, 0.35) 35%,
        rgba(7, 27, 44, 0.68) 58%,
        rgba(7, 27, 44, 0.9) 82%,
        rgba(7, 27, 44, 1) 100%
    );
}

/* Expanded state */
.tl-expandable-info-content.is-expanded {
    max-height: 1200px;
}

.tl-expandable-info-content.is-expanded::after {
    display: none;
}

/* Toggle button */
.tl-expandable-info-toggle {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);

    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: #0b2235;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    box-shadow: var(--shadow-soft);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.tl-expandable-info-toggle:hover {
    transform: translateX(-50%) translateY(-1px);
    background: #10283d;
    border-color: rgba(255, 255, 255, 0.16);
}

.tl-expandable-info-toggle:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.16),
        var(--shadow-soft);
}

/* Plus / close icon */
.tl-expandable-info-toggle-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
}

.tl-expandable-info-toggle-icon::before,
.tl-expandable-info-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: all 0.24s ease;
}

.tl-expandable-info-toggle-icon::before {
    width: 14px;
    height: 2px;
}

.tl-expandable-info-toggle-icon::after {
    width: 2px;
    height: 14px;
}

/* Expanded icon => X */
.tl-expandable-info-toggle[aria-expanded='true'] .tl-expandable-info-toggle-icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.tl-expandable-info-toggle[aria-expanded='true'] .tl-expandable-info-toggle-icon::after {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================================
   LIGHT MODE OVERRIDES
========================================= */

html[data-theme='light'] .tl-expandable-info-card {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .tl-expandable-info-content.is-collapsed::after {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.34) 35%,
        rgba(255, 255, 255, 0.66) 58%,
        rgba(255, 255, 255, 0.9) 82%,
        rgba(255, 255, 255, 1) 100%
    );
}

html[data-theme='light'] .tl-expandable-info-toggle {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.1);
    color: rgba(12, 22, 40, 0.94);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .tl-expandable-info-toggle:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1199.98px) {
    .tl-expandable-info-inner {
        padding: 36px 34px 72px;
    }

    .tl-expandable-info-accent {
        width: 138px;
        height: 138px;
    }
}

@media (max-width: 991.98px) {
    .tl-expandable-info {
        padding: 36px 0 80px;
    }

    .tl-expandable-info-wrap {
        padding-top: 20px;
    }

    .tl-expandable-info-accent {
        width: 116px;
        height: 116px;
    }

    .tl-expandable-info-card {
        width: calc(100% - 14px);
        margin-left: 14px;
    }

    .tl-expandable-info-inner {
        padding: 30px 24px 66px;
    }

    .tl-expandable-info-title {
        font-size: 30px;
        margin-bottom: 18px;
    }

    .tl-expandable-info-content p {
        font-size: 15px;
        line-height: 1.95;
        margin-bottom: 16px;
    }

    .tl-expandable-info-content.is-collapsed {
        max-height: 154px;
    }

    .tl-expandable-info-content.is-collapsed::after {
        height: 100px;
    }
}

@media (max-width: 575.98px) {
    .tl-expandable-info {
        padding: 28px 0 72px;
    }

    .tl-expandable-info-wrap {
        padding-top: 16px;
    }

    .tl-expandable-info-accent {
        width: 92px;
        height: 92px;
    }

    .tl-expandable-info-card {
        width: calc(100% - 10px);
        margin-left: 10px;
    }

    .tl-expandable-info-inner {
        padding: 22px 18px 58px;
    }

    .tl-expandable-info-title {
        font-size: 22px;
        line-height: 1.32;
        margin-bottom: 14px;
    }

    .tl-expandable-info-content p {
        font-size: 14px;
        line-height: 1.9;
        margin-bottom: 14px;
    }

    .tl-expandable-info-content.is-collapsed {
        max-height: 138px;
    }

    .tl-expandable-info-content.is-collapsed::after {
        height: 88px;
    }

    .tl-expandable-info-toggle {
        width: 40px;
        height: 40px;
        bottom: -20px;
    }
}



/* =========================================================
   STUDENT PROFILE DASHBOARD - AJAX TABS
========================================================= */

.tl-student-dashboard-page {
    padding: 28px 0 72px;
}

.tl-student-dashboard-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tl-sp-sidebar {
    position: sticky;
    top: 18px;
}

.tl-sp-sidebar-card,
.tl-sp-card,
.tl-sp-settings-card,
.tl-sp-stat-card,
.tl-sp-course-card,
.tl-sp-request-card {
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html[data-theme='dark'] .tl-sp-sidebar-card,
html[data-theme='dark'] .tl-sp-card,
html[data-theme='dark'] .tl-sp-settings-card,
html[data-theme='dark'] .tl-sp-stat-card,
html[data-theme='dark'] .tl-sp-course-card,
html[data-theme='dark'] .tl-sp-request-card {
    background: rgba(8, 15, 28, 0.86);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.tl-sp-sidebar-card {
    padding: 18px;
}

.tl-sp-sidebar-profile {
    text-align: center;
}

.tl-sp-sidebar-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    padding: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
}

.tl-sp-sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.tl-sp-sidebar-profile__name {
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

html[data-theme='dark'] .tl-sp-sidebar-profile__name {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-sidebar-profile__email {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

html[data-theme='dark'] .tl-sp-sidebar-profile__email {
    color: rgba(226, 232, 240, 0.7);
}

.tl-sp-sidebar-profile__chips {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tl-sp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-theme='dark'] .tl-sp-chip {
    color: rgba(248, 250, 252, 0.94);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.tl-sp-chip--soft {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.16);
}

html[data-theme='dark'] .tl-sp-chip--soft {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.18);
}

.tl-sp-sidebar-divider {
    height: 1px;
    margin: 18px 0;
    background: rgba(148, 163, 184, 0.18);
}

html[data-theme='dark'] .tl-sp-sidebar-divider {
    background: rgba(255, 255, 255, 0.08);
}

.tl-sp-side-group + .tl-sp-side-group {
    margin-top: 16px;
}

.tl-sp-side-group__title {
    margin-bottom: 10px;
    padding: 0 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-theme='dark'] .tl-sp-side-group__title {
    color: rgba(226, 232, 240, 0.45);
}

.tl-sp-side-group__items {
    display: grid;
    gap: 8px;
}

.tl-sp-side-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

html[data-theme='dark'] .tl-sp-side-link {
    color: rgba(226, 232, 240, 0.72);
}

.tl-sp-side-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

html[data-theme='dark'] .tl-sp-side-link:hover {
    color: rgba(248, 250, 252, 0.95);
    background: rgba(59, 130, 246, 0.14);
}

.tl-sp-side-link.is-active {
    background: rgba(59, 130, 246, 0.1);
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.26);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.12);
}

html[data-theme='dark'] .tl-sp-side-link.is-active {
    color: rgba(248, 250, 252, 0.96);
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.24);
}

.tl-sp-side-link__left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tl-sp-side-link__icon {
    width: 18px;
    text-align: center;
    color: #3b82f6;
    flex: 0 0 auto;
}

.tl-sp-side-link__label {
    min-width: 0;
}

.tl-sp-side-link__count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

html[data-theme='dark'] .tl-sp-side-link__count {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-side-mini-meta {
    display: grid;
    gap: 10px;
}

.tl-sp-side-mini-meta__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 4px;
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

html[data-theme='dark'] .tl-sp-side-mini-meta__item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.tl-sp-side-mini-meta__item span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

html[data-theme='dark'] .tl-sp-side-mini-meta__item span {
    color: rgba(226, 232, 240, 0.6);
}

.tl-sp-side-mini-meta__item strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    word-break: break-word;
}

html[data-theme='dark'] .tl-sp-side-mini-meta__item strong {
    color: rgba(248, 250, 252, 0.95);
}

.tl-sp-sidebar-cta {
    margin-top: 18px;
}

.tl-sp-main {
    min-width: 0;
}

.tl-sp-main-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tl-sp-main-header__eyebrow {
    color: #3b82f6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tl-sp-main-header__title {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 950;
    line-height: 1.1;
}

html[data-theme='dark'] .tl-sp-main-header__title {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-main-header__desc {
    margin: 10px 0 0;
    max-width: 760px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}

html[data-theme='dark'] .tl-sp-main-header__desc {
    color: rgba(226, 232, 240, 0.68);
}

.tl-sp-main-header__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.tl-sp-form-actions {
    margin-top: 18px;
}
.tl-sp-primary-btn,
.tl-sp-soft-btn,
.tl-sp-outline-btn,
.tl-sp-edit-btn,
.tl-sp-text-btn,
.tl-sp-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.tl-sp-primary-btn {
    border: 0;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(59, 130, 246, 0.2);
}

.tl-sp-primary-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.tl-sp-primary-btn--sm {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 4px;
}

.tl-sp-soft-btn {
    border: 1px solid rgba(59, 130, 246, 0.14);
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.tl-sp-soft-btn:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

html[data-theme='dark'] .tl-sp-soft-btn {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.tl-sp-soft-btn--full {
    width: 100%;
}

.tl-sp-outline-btn {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: transparent;
    color: #0f172a;
}

.tl-sp-outline-btn:hover {
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.24);
    background: rgba(59, 130, 246, 0.06);
}

html[data-theme='dark'] .tl-sp-outline-btn {
    color: rgba(248, 250, 252, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .tl-sp-outline-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-outline-btn--sm {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 4px;
}

.tl-sp-edit-btn {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.7);
    color: #0f172a;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 4px;;
}

html[data-theme='dark'] .tl-sp-edit-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-text-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    min-height: 38px;
    padding: 0;
}

html[data-theme='dark'] .tl-sp-text-btn {
    color: rgba(226, 232, 240, 0.65);
}

.tl-sp-danger-btn {
    width: 100%;
    border: 1px solid rgba(239, 68, 68, 0.16);
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.tl-sp-danger-card {
    border-color: rgba(239, 68, 68, 0.14);
}

.tl-sp-ajax-wrap {
    min-height: 320px;
    position: relative;
    transition: opacity 160ms ease;
}

.tl-sp-ajax-wrap.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.tl-sp-tab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
    align-items: start;
}

.tl-sp-tab-grid__main,
.tl-sp-tab-grid__aside {
    display: grid;
    gap: 18px;
}

.tl-sp-card {
    padding: 18px;
}

.tl-sp-card__head {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tl-sp-card__title {
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

html[data-theme='dark'] .tl-sp-card__title {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-profile-cover-card {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 170px;
}

.tl-sp-profile-cover-card__avatar {
    width: 104px;
    height: 104px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #facc15;
}

.tl-sp-profile-cover-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-sp-profile-cover-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.tl-sp-profile-cover-card__hint {
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

html[data-theme='dark'] .tl-sp-profile-cover-card__hint {
    color: rgba(226, 232, 240, 0.66);
}

.tl-sp-inline-info-grid {
    display: grid;
    gap: 14px;
}

.tl-sp-inline-info-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tl-sp-inline-info {
    min-width: 0;
}

.tl-sp-inline-info__label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

html[data-theme='dark'] .tl-sp-inline-info__label {
    color: rgba(226, 232, 240, 0.62);
}

.tl-sp-inline-info__value {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    word-break: break-word;
}

html[data-theme='dark'] .tl-sp-inline-info__value {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-form-card {
    background: rgba(248, 250, 252, 0.86);
}

html[data-theme='dark'] .tl-sp-form-card {
    background: rgba(255, 255, 255, 0.05);
}

.tl-sp-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.tl-sp-input-wrap {
    position: relative;
}

.tl-sp-input-wrap__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.tl-sp-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: none;
}

.tl-sp-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

html[data-theme='dark'] .tl-sp-input {
    background: rgba(15, 23, 42, 0.8);
    color: rgba(248, 250, 252, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
}

.tl-sp-paragraph-block {
    color: #334155;
    font-size: 15px;
    line-height: 2;
    white-space: pre-line;
}

html[data-theme='dark'] .tl-sp-paragraph-block {
    color: rgba(226, 232, 240, 0.8);
}

.tl-sp-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tl-sp-info-item {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 4px;
    background: rgba(248, 250, 252, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

html[data-theme='dark'] .tl-sp-info-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.tl-sp-info-item__label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

html[data-theme='dark'] .tl-sp-info-item__label {
    color: rgba(226, 232, 240, 0.62);
}

.tl-sp-info-item__value {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.6;
    word-break: break-word;
}

html[data-theme='dark'] .tl-sp-info-item__value {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-progress-card__title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
}

html[data-theme='dark'] .tl-sp-progress-card__title {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-progress-ring {
    --size: 132px;
    width: var(--size);
    height: var(--size);
    margin: 18px auto 20px;
    padding: 14px;
    border-radius: 999px;
    background:
        conic-gradient(#22c55e calc(var(--progress-value) * 1%), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme='dark'] .tl-sp-progress-ring {
    background:
        conic-gradient(#22c55e calc(var(--progress-value) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.tl-sp-progress-ring__inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme='dark'] .tl-sp-progress-ring__inner {
    background: rgba(8, 15, 28, 0.96);
}

.tl-sp-progress-ring__inner strong {
    color: #0f172a;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

html[data-theme='dark'] .tl-sp-progress-ring__inner strong {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-progress-list {
    display: grid;
    gap: 10px;
}

.tl-sp-progress-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.tl-sp-progress-list__left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tl-sp-progress-list__mark {
    width: 18px;
    text-align: center;
    flex: 0 0 auto;
}

.tl-sp-progress-list__item.is-done .tl-sp-progress-list__mark {
    color: #16a34a;
}

.tl-sp-progress-list__item.is-pending .tl-sp-progress-list__mark {
    color: #94a3b8;
}

.tl-sp-progress-list__label {
    color: #0f172a;
    font-weight: 700;
}

html[data-theme='dark'] .tl-sp-progress-list__label {
    color: rgba(248, 250, 252, 0.92);
}

.tl-sp-progress-list__reward {
    color: #94a3b8;
    font-weight: 800;
    white-space: nowrap;
}

.tl-sp-progress-list__item.is-done .tl-sp-progress-list__reward {
    color: #22c55e;
}

.tl-sp-mini-list {
    display: grid;
    gap: 12px;
}

.tl-sp-mini-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.tl-sp-mini-list__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.tl-sp-mini-list__item span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

html[data-theme='dark'] .tl-sp-mini-list__item span {
    color: rgba(226, 232, 240, 0.62);
}

.tl-sp-mini-list__item strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

html[data-theme='dark'] .tl-sp-mini-list__item strong {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tl-sp-stat-card {
    padding: 18px;
}

.tl-sp-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tl-sp-stat-card__label {
    display: block;
    margin-top: 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

html[data-theme='dark'] .tl-sp-stat-card__label {
    color: rgba(226, 232, 240, 0.58);
}

.tl-sp-stat-card__value {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.1;
}

html[data-theme='dark'] .tl-sp-stat-card__value {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-activity-list {
    display: grid;
    gap: 14px;
}

.tl-sp-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 4px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .tl-sp-activity-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.tl-sp-activity-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tl-sp-activity-item__title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
}

html[data-theme='dark'] .tl-sp-activity-item__title {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-activity-item__text {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

html[data-theme='dark'] .tl-sp-activity-item__text {
    color: rgba(226, 232, 240, 0.68);
}

.tl-sp-course-list,
.tl-sp-request-list,
.tl-sp-settings-stack {
    display: grid;
    gap: 16px;
}

.tl-sp-course-card,
.tl-sp-request-card,
.tl-sp-settings-card {
    padding: 16px;
}

.tl-sp-course-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
}

.tl-sp-course-card__thumb {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.05);
}

.tl-sp-course-card__thumb img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.tl-sp-course-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tl-sp-course-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tl-sp-course-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-sp-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.tl-sp-text-link:hover {
    color: #1d4ed8;
}

.tl-sp-course-card__title,
.tl-sp-request-card__title,
.tl-sp-settings-card__title {
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.35;
}

html[data-theme='dark'] .tl-sp-course-card__title,
html[data-theme='dark'] .tl-sp-request-card__title,
html[data-theme='dark'] .tl-sp-settings-card__title {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-course-card__title {
    margin: 14px 0 0;
}

.tl-sp-course-card__desc,
.tl-sp-settings-card__desc,
.tl-sp-muted-text,
.tl-sp-empty-state__text,
.tl-sp-error-card__text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}

html[data-theme='dark'] .tl-sp-course-card__desc,
html[data-theme='dark'] .tl-sp-settings-card__desc,
html[data-theme='dark'] .tl-sp-muted-text,
html[data-theme='dark'] .tl-sp-empty-state__text,
html[data-theme='dark'] .tl-sp-error-card__text {
    color: rgba(226, 232, 240, 0.68);
}

.tl-sp-course-card__desc {
    margin: 10px 0 0;
}

.tl-sp-course-card__meta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tl-sp-course-meta-box {
    padding: 12px;
    border-radius: 4px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .tl-sp-course-meta-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.tl-sp-course-meta-box span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

html[data-theme='dark'] .tl-sp-course-meta-box span {
    color: rgba(226, 232, 240, 0.56);
}

.tl-sp-course-meta-box strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.6;
}

html[data-theme='dark'] .tl-sp-course-meta-box strong {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-request-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tl-sp-request-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 20px;
}

.tl-sp-request-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.tl-sp-request-card__meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-sp-highlight-number {
    color: #0f172a;
    font-size: 44px;
    font-weight: 950;
    line-height: 1;
}

html[data-theme='dark'] .tl-sp-highlight-number {
    color: rgba(248, 250, 252, 0.96);
}

/*.tl-sp-setting-field + .tl-sp-setting-field {*/
/*    margin-top: 14px;*/
/*}*/

.tl-sp-setting-field__label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

html[data-theme='dark'] .tl-sp-setting-field__label {
    color: rgba(226, 232, 240, 0.62);
}

.tl-sp-toggle-list {
    display: grid;
    gap: 12px;
}

.tl-sp-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.tl-sp-toggle-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.tl-sp-toggle-item__copy strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

html[data-theme='dark'] .tl-sp-toggle-item__copy strong {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-toggle-item__copy span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

html[data-theme='dark'] .tl-sp-toggle-item__copy span {
    color: rgba(226, 232, 240, 0.68);
}

.tl-sp-toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.28);
    flex: 0 0 auto;
}

.tl-sp-toggle-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
    transition: transform 160ms ease;
}

.tl-sp-toggle-switch.is-on {
    background: rgba(34, 197, 94, 0.5);
}

.tl-sp-toggle-switch.is-on::after {
    transform: translateX(20px);
}

.tl-sp-empty-state,
.tl-sp-error-card {
    padding: 34px 20px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.26);
    border-radius: 4px;
    background: rgba(248, 250, 252, 0.55);
}

html[data-theme='dark'] .tl-sp-empty-state,
html[data-theme='dark'] .tl-sp-error-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.tl-sp-empty-state__icon,
.tl-sp-error-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tl-sp-empty-state__title,
.tl-sp-error-card__title {
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.4;
}

html[data-theme='dark'] .tl-sp-empty-state__title,
html[data-theme='dark'] .tl-sp-error-card__title {
    color: rgba(248, 250, 252, 0.96);
}

.tl-sp-empty-state__actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1399.98px) {
    .tl-sp-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tl-sp-course-card__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .tl-student-dashboard-layout {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .tl-sp-tab-grid {
        grid-template-columns: 1fr;
    }

    .tl-sp-tab-grid__aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tl-sp-inline-info-grid--three {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991.98px) {
    .tl-student-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .tl-sp-sidebar {
        position: static;
    }

    .tl-sp-main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tl-sp-main-header__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .tl-sp-profile-cover-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tl-sp-inline-info-grid--three,
    .tl-sp-info-grid,
    .tl-sp-tab-grid__aside {
        grid-template-columns: 1fr;
    }

    .tl-sp-course-card {
        grid-template-columns: 1fr;
    }

    .tl-sp-course-card__thumb img {
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .tl-student-dashboard-page {
        padding: 18px 0 48px;
    }

    .tl-sp-sidebar-card,
    .tl-sp-card,
    .tl-sp-settings-card,
    .tl-sp-stat-card,
    .tl-sp-course-card,
    .tl-sp-request-card {
        border-radius: 4px;
    }

    .tl-sp-main-header__title {
        font-size: 26px;
    }

    .tl-sp-main-header__actions,
    .tl-sp-form-row {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .tl-sp-main-header__actions > *,
    .tl-sp-primary-btn,
    .tl-sp-soft-btn,
    .tl-sp-outline-btn,
    .tl-sp-edit-btn,
    .tl-sp-danger-btn {
        width: 100%;
    }

    .tl-sp-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tl-sp-stat-grid,
    .tl-sp-inline-info-grid--three,
    .tl-sp-course-card__meta {
        grid-template-columns: 1fr;
    }

    .tl-sp-course-card__top {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   ICON INTEGRATIONS MARQUEE
========================================================= */

.tl-integrations {
    position: relative;
    padding: 34px 0 28px;
    margin-top: 34px;
    overflow: hidden;
    direction: ltr;
}

.tl-integrations-shell {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 16px 0;
}

.tl-integrations-row {
    --tl-integrations-gap: 20px;
    --tl-integrations-card-size: 82px;
    --tl-integrations-card-radius: 12px;
    --tl-integrations-icon-size: 40px;
    --tl-integrations-hover-safe-space: 12px;
    --tl-integrations-fade-size: clamp(180px, 20vw, 340px);
    --tl-integrations-duration: 68s;

    position: relative;
    width: 100%;
    overflow: visible;
}

.tl-integrations-row + .tl-integrations-row {
    margin-top: 10px;
}

.tl-integrations-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-block: var(--tl-integrations-hover-safe-space);
    margin-block: calc(var(--tl-integrations-hover-safe-space) * -1);

    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, 0.15) calc(var(--tl-integrations-fade-size) * 0.25),
        rgba(0, 0, 0, 0.45) calc(var(--tl-integrations-fade-size) * 0.5),
        #000 var(--tl-integrations-fade-size),
        #000 calc(100% - var(--tl-integrations-fade-size)),
        rgba(0, 0, 0, 0.45) calc(100% - (var(--tl-integrations-fade-size) * 0.5)),
        rgba(0, 0, 0, 0.15) calc(100% - (var(--tl-integrations-fade-size) * 0.25)),
        transparent 100%
    );

    mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, 0.15) calc(var(--tl-integrations-fade-size) * 0.25),
        rgba(0, 0, 0, 0.45) calc(var(--tl-integrations-fade-size) * 0.5),
        #000 var(--tl-integrations-fade-size),
        #000 calc(100% - var(--tl-integrations-fade-size)),
        rgba(0, 0, 0, 0.45) calc(100% - (var(--tl-integrations-fade-size) * 0.5)),
        rgba(0, 0, 0, 0.15) calc(100% - (var(--tl-integrations-fade-size) * 0.25)),
        transparent 100%
    );
}

.tl-integrations-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation-duration: var(--tl-integrations-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    overflow: visible;
}

.tl-integrations-row--top .tl-integrations-track,
.tl-integrations-row[data-direction='left'] .tl-integrations-track {
    animation-name: tlIntegrationsMoveLeft;
}

.tl-integrations-row--bottom .tl-integrations-track,
.tl-integrations-row[data-direction='right'] .tl-integrations-track {
    animation-name: tlIntegrationsMoveRight;
}

.tl-integrations-group {
    display: flex;
    align-items: center;
    gap: var(--tl-integrations-gap);
    padding-right: var(--tl-integrations-gap);
    flex: 0 0 auto;
    overflow: visible;
}

.tl-integrations-card {
    width: var(--tl-integrations-card-size);
    height: var(--tl-integrations-card-size);
    flex: 0 0 var(--tl-integrations-card-size);

    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    border-radius: var(--tl-integrations-card-radius);
    border: 1px solid rgba(255, 255, 255, 0.09);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow: none;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transform: scale(1);
    transform-origin: center;


    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;

    cursor: default;
}

.tl-integrations-card:hover {
    z-index: 10;

    transform: scale(1.035);

    border-color: rgba(96, 165, 250, 0.24);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.045)
        );

    box-shadow: none;
}

.tl-integrations-card img {
    width: var(--tl-integrations-icon-size);
    height: var(--tl-integrations-icon-size);
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Light mode */
html[data-theme='light'] .tl-integrations-card {
    border-color: rgba(12, 22, 40, 0.09);
    cursor: pointer;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.96),
            rgba(255, 255, 255, 0.78)
        );

    box-shadow: none;
}

html[data-theme='light'] .tl-integrations-card:hover {
    border-color: rgba(59, 130, 246, 0.18);
    background: #ffffff;
    box-shadow: none;
}

/* Dark mode */
html[data-theme='dark'] .tl-integrations-card {
    border-color: rgba(255, 255, 255, 0.09);
    cursor: pointer;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow: none;
}

html[data-theme='dark'] .tl-integrations-card:hover {
    border-color: rgba(96, 165, 250, 0.24);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.045)
        );

    box-shadow: none;
}

/* Infinite movement */
@keyframes tlIntegrationsMoveLeft {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes tlIntegrationsMoveRight {
    from {
        transform: translate3d(-50%, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive */
@media (max-width: 1199.98px) {
    .tl-integrations-row {
        --tl-integrations-card-size: 78px;
        --tl-integrations-icon-size: 38px;
        --tl-integrations-gap: 18px;
        --tl-integrations-hover-safe-space: 12px;
        --tl-integrations-fade-size: clamp(160px, 20vw, 300px);
    }
}

@media (max-width: 991.98px) {
    .tl-integrations {
        padding: 30px 0 24px;
        margin-top: 30px;
    }

    .tl-integrations-row {
        --tl-integrations-card-size: 72px;
        --tl-integrations-icon-size: 36px;
        --tl-integrations-gap: 16px;
        --tl-integrations-hover-safe-space: 11px;
        --tl-integrations-fade-size: clamp(130px, 19vw, 240px);
    }

    .tl-integrations-row + .tl-integrations-row {
        margin-top: 18px;
    }
}

@media (max-width: 767.98px) {
    .tl-integrations-row {
        --tl-integrations-card-size: 66px;
        --tl-integrations-icon-size: 32px;
        --tl-integrations-gap: 14px;
        --tl-integrations-hover-safe-space: 10px;
        --tl-integrations-fade-size: clamp(90px, 18vw, 180px);
    }
}

@media (max-width: 575.98px) {
    .tl-integrations {
        padding: 24px 0 20px;
        margin-top: 24px;
    }

    .tl-integrations-row {
        --tl-integrations-card-size: 58px;
        --tl-integrations-icon-size: 28px;
        --tl-integrations-gap: 12px;
        --tl-integrations-hover-safe-space: 9px;
        --tl-integrations-fade-size: clamp(58px, 17vw, 120px);
    }

    .tl-integrations-row + .tl-integrations-row {
        margin-top: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tl-integrations-track {
        animation-play-state: paused;
    }

    .tl-integrations-card {
        transition: none;
        cursor: pointer;
    }
}


/* =========================================================
   HOME YOUTUBE PLAYER
   - Static YouTube iframe player
   - Exact desktop size: 744px × 418.5px
   - Border radius: 1rem
   - No header
   - Dark / Light mode support
========================================================= */

.tl-home-youtube-player {
    position: relative;
    padding: 48px 0 38px;
    margin-top: 18px;
    direction: ltr;
}

.tl-home-youtube-player__inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tl-home-youtube-player__frame {
    position: relative;

    width: 100%;
    max-width: 744px;

    /*
       744 × 418.5 is exactly 16:9.
       This keeps the player responsive while preserving the requested ratio.
    */
    aspect-ratio: 16 / 9;

    border-radius: 1rem;
    overflow: hidden;

    background: rgba(7, 27, 44, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.1);

    /*
       Soft outer border feeling like the reference.
       Not too strong, not card-heavy.
    */
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.045),
        0 20px 54px rgba(0, 0, 0, 0.18);
}

.tl-home-youtube-player__iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    border: 0;
    border-radius: 1rem;

    background: #000000;
}

/* Dark mode */
html[data-theme='dark'] .tl-home-youtube-player__frame {
    background: rgba(7, 27, 44, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.045),
        0 20px 54px rgba(0, 0, 0, 0.18);
}

/* Light mode */
html[data-theme='light'] .tl-home-youtube-player__frame {
    background: #ffffff;
    border-color: rgba(12, 22, 40, 0.08);
    box-shadow:
        0 0 0 7px rgba(12, 22, 40, 0.045),
        0 20px 54px rgba(12, 22, 40, 0.1);
}

/* Responsive */
@media (max-width: 991.98px) {
    .tl-home-youtube-player {
        padding: 42px 0 34px;
        margin-top: 14px;
    }

    .tl-home-youtube-player__frame {
        max-width: 744px;
        border-radius: 14px;
    }

    .tl-home-youtube-player__iframe {
        border-radius: 14px;
    }
}

@media (max-width: 767.98px) {
    .tl-home-youtube-player {
        padding: 36px 0 30px;
        margin-top: 10px;
    }

    .tl-home-youtube-player__frame {
        border-radius: 12px;
        box-shadow:
            0 0 0 5px rgba(255, 255, 255, 0.04),
            0 16px 40px rgba(0, 0, 0, 0.14);
    }

    .tl-home-youtube-player__iframe {
        border-radius: 12px;
    }

    html[data-theme='light'] .tl-home-youtube-player__frame {
        box-shadow:
            0 0 0 5px rgba(12, 22, 40, 0.04),
            0 16px 40px rgba(12, 22, 40, 0.08);
    }
}

@media (max-width: 575.98px) {
    .tl-home-youtube-player {
        padding: 30px 0 26px;
    }

    .tl-home-youtube-player__frame {
        border-radius: 10px;
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.035),
            0 14px 32px rgba(0, 0, 0, 0.12);
    }

    .tl-home-youtube-player__iframe {
        border-radius: 10px;
    }

    html[data-theme='light'] .tl-home-youtube-player__frame {
        box-shadow:
            0 0 0 4px rgba(12, 22, 40, 0.035),
            0 14px 32px rgba(12, 22, 40, 0.07);
    }
}


/* =========================================================
   MOTIVATIONAL BANNER
   - Professional slim RTL motivational banner
   - Smooth animated gradient without sudden jumps
   - Vazirmatn only for this feature
   - Right text, left professional CTA button
========================================================= */

.tl-motivation-strip {
    position: relative;
    z-index: 1045;
    padding: 16px 0 0;
    direction: rtl;
    font-family:
        'Vazirmatn',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}

.tl-motivation-strip,
.tl-motivation-strip * {
    font-family:
        'Vazirmatn',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}

.tl-motivation-card {
    position: relative;

    width: 1186px;
    max-width: 100%;
    height: 66px;
    min-height: 66px;

    margin-inline: auto;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    direction: rtl;
    text-align: right;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;

    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 82% 30%, rgba(45, 212, 191, 0.42) 0, rgba(45, 212, 191, 0) 30%),
        radial-gradient(circle at 52% 120%, rgba(251, 191, 36, 0.36) 0, rgba(251, 191, 36, 0) 34%),
        linear-gradient(
            115deg,
            #2563eb 0%,
            #7c3aed 24%,
            #db2777 48%,
            #f97316 68%,
            #0ea5e9 86%,
            #2563eb 100%
        );

    background-size:
        160% 160%,
        180% 180%,
        180% 180%,
        420% 420%;

    background-position:
        0% 20%,
        100% 20%,
        50% 100%,
        0% 50%;

    color: #ffffff;

    overflow: hidden;
    isolation: isolate;

    box-shadow:
        0 14px 36px rgba(37, 99, 235, 0.22),
        0 5px 16px rgba(15, 23, 42, 0.08);

    animation:
        tlMotivationGradientDance 15s ease-in-out infinite,
        tlMotivationSoftHue 28s linear infinite;
}

.tl-motivation-card::before {
    content: '';

    position: absolute;
    inset: -2px;

    z-index: -2;

    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.28),
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.22)
        );

    opacity: 0.62;
    pointer-events: none;

    animation: tlMotivationLightSweep 9s ease-in-out infinite;
}

.tl-motivation-card::after {
    content: '';

    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 0,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0) 80%,
            rgba(255, 255, 255, 0.12) 100%
        );

    opacity: 0.64;
    pointer-events: none;
}

.tl-motivation-ambient {
    position: absolute;

    display: block;

    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.72;

    pointer-events: none;
    z-index: -1;

    transform: translate3d(0, 0, 0);
}

.tl-motivation-ambient-one {
    width: 118px;
    height: 118px;

    top: -72px;
    right: 10%;

    background: rgba(255, 255, 255, 0.34);

    animation: tlMotivationAmbientOne 11s ease-in-out infinite;
}

.tl-motivation-ambient-two {
    width: 132px;
    height: 132px;

    bottom: -86px;
    left: 15%;

    background: rgba(45, 212, 191, 0.38);

    animation: tlMotivationAmbientTwo 13s ease-in-out infinite;
}

.tl-motivation-ambient-three {
    width: 98px;
    height: 98px;

    top: -56px;
    left: 38%;

    background: rgba(251, 191, 36, 0.34);

    animation: tlMotivationAmbientThree 12s ease-in-out infinite;
}

.tl-motivation-main {
    position: relative;
    z-index: 1;

    flex: 1 1 auto;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    direction: rtl;
    text-align: right;
    color: #ffffff;
}

.tl-motivation-icon {
    position: relative;

    width: 34px;
    height: 34px;
    min-width: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.30),
            rgba(255, 255, 255, 0.12)
        );

    color: #ffffff;

    line-height: 0;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 8px 18px rgba(15, 23, 42, 0.16);

    overflow: hidden;
}

.tl-motivation-icon::before {
    content: '';

    position: absolute;
    inset: -40%;

    background:
        conic-gradient(
            from 0deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.58),
            rgba(255, 255, 255, 0)
        );

    opacity: 0.52;

    animation: tlMotivationIconGlow 5.5s linear infinite;
}

.tl-motivation-icon-svg {
    position: relative;
    z-index: 1;

    display: block;

    width: 21px;
    height: 21px;
}

.tl-motivation-text-shell {
    --tl-motivation-text-width: auto;

    position: relative;

    width: var(--tl-motivation-text-width);
    max-width: 100%;
    min-width: 0;

    display: inline-grid;
    align-items: center;
    justify-items: start;

    overflow: hidden;
    white-space: nowrap;

    direction: rtl;
    text-align: right;

    transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tl-motivation-text {
    grid-area: 1 / 1;

    display: inline-block;
    max-width: 100%;

    color: #ffffff;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);

    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 190ms ease,
        transform 190ms ease;
}

.tl-motivation-measurer {
    position: absolute;
    inset-inline-start: 0;
    top: 0;

    visibility: hidden;
    pointer-events: none;
    user-select: none;

    white-space: nowrap;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0;
}

.tl-motivation-card.is-changing .tl-motivation-text {
    opacity: 0;
    transform: translateY(6px);
}

.tl-motivation-link {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    min-height: 34px;
    padding: 4px 7px 4px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    direction: rtl;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.96),
            rgba(255, 255, 255, 0.84)
        );

    color: #1e293b;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.tl-motivation-link:hover {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 1),
            rgba(248, 250, 252, 0.94)
        );

    color: #0f172a;
    border-color: rgba(255, 255, 255, 0.86);
    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 11px 24px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tl-motivation-link:active {
    transform: translateY(0);
}

.tl-motivation-link:focus,
.tl-motivation-link:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.30),
        0 10px 24px rgba(15, 23, 42, 0.18);
}

.tl-motivation-link-text {
    display: inline-flex;
    align-items: center;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;

    white-space: nowrap;
}

.tl-motivation-link-icon-wrap {
    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            rgba(219, 39, 119, 0.12)
        );

    color: #2563eb;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.tl-motivation-link:hover .tl-motivation-link-icon-wrap {
    color: #7c3aed;
    transform: translateX(-2px);
}

.tl-motivation-link-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

/* Light mode */
html[data-theme='light'] .tl-motivation-card {
    color: #ffffff;
}

/* Dark mode */
html[data-theme='dark'] .tl-motivation-card {
    color: #ffffff;

    box-shadow:
        0 16px 38px rgba(2, 6, 23, 0.26),
        0 7px 18px rgba(14, 165, 233, 0.12);
}

/* Animations */
@keyframes tlMotivationGradientDance {
    0% {
        background-position:
            0% 20%,
            100% 20%,
            50% 100%,
            0% 50%;
    }

    25% {
        background-position:
            34% 42%,
            78% 36%,
            42% 84%,
            38% 52%;
    }

    50% {
        background-position:
            62% 54%,
            44% 62%,
            70% 72%,
            82% 48%;
    }

    75% {
        background-position:
            82% 28%,
            18% 42%,
            36% 92%,
            42% 54%;
    }

    100% {
        background-position:
            0% 20%,
            100% 20%,
            50% 100%,
            0% 50%;
    }
}

@keyframes tlMotivationSoftHue {
    0% {
        filter: hue-rotate(0deg) saturate(1.04);
    }

    50% {
        filter: hue-rotate(16deg) saturate(1.10);
    }

    100% {
        filter: hue-rotate(0deg) saturate(1.04);
    }
}

@keyframes tlMotivationLightSweep {
    0% {
        opacity: 0.46;
        transform: translateX(18%) skewX(-12deg);
    }

    50% {
        opacity: 0.70;
        transform: translateX(-18%) skewX(-12deg);
    }

    100% {
        opacity: 0.46;
        transform: translateX(18%) skewX(-12deg);
    }
}

@keyframes tlMotivationAmbientOne {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-26px, 10px, 0) scale(1.16);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes tlMotivationAmbientTwo {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(32px, -8px, 0) scale(1.12);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes tlMotivationAmbientThree {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, 14px, 0) scale(1.20);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes tlMotivationIconGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1199.98px) {
    .tl-motivation-card {
        width: 100%;
        height: 64px;
        min-height: 64px;
        padding: 0 20px;
    }
}

@media (max-width: 991.98px) {
    .tl-motivation-strip {
        padding-top: 14px;
    }

    .tl-motivation-card {
        height: 62px;
        min-height: 62px;
        padding: 0 17px;
        gap: 16px;
        border-radius: 13px;
    }

    .tl-motivation-main {
        gap: 11px;
    }

    .tl-motivation-text,
    .tl-motivation-measurer {
        font-size: 15.5px;
        font-weight: 500;
        line-height: 1.7;
    }

    .tl-motivation-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 11px;
    }

    .tl-motivation-icon-svg {
        width: 20px;
        height: 20px;
    }

    .tl-motivation-link {
        min-height: 32px;
        padding: 4px 7px 4px 11px;
        font-size: 14.5px;
        font-weight: 600;
    }

    .tl-motivation-link-text {
        font-size: 14.5px;
        font-weight: 600;
    }

    .tl-motivation-link-icon-wrap {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 767.98px) {
    .tl-motivation-card {
        height: auto;
        min-height: 70px;
        padding: 11px 13px;

        align-items: stretch;
        flex-direction: column;
        justify-content: center;
        gap: 10px;

        border-radius: 13px;
    }

    .tl-motivation-main {
        width: 100%;
        justify-content: flex-start;
    }

    .tl-motivation-link {
        align-self: flex-start;
    }

    .tl-motivation-text-shell {
        width: auto !important;
        max-width: 100%;
    }

    .tl-motivation-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

@media (max-width: 575.98px) {
    .tl-motivation-strip {
        padding-top: 12px;
    }

    .tl-motivation-card {
        min-height: 68px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .tl-motivation-main {
        gap: 9px;
    }

    .tl-motivation-icon {
        width: 31px;
        height: 31px;
        min-width: 31px;
        border-radius: 10px;
    }

    .tl-motivation-icon-svg {
        width: 19px;
        height: 19px;
    }

    .tl-motivation-text,
    .tl-motivation-measurer {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.8;
    }

    .tl-motivation-link {
        min-height: 31px;
        padding: 3px 6px 3px 10px;
        border-radius: 999px;
        font-size: 13.5px;
        font-weight: 600;
    }

    .tl-motivation-link-text {
        font-size: 13.5px;
        font-weight: 600;
    }

    .tl-motivation-link-icon-wrap {
        width: 23px;
        height: 23px;
    }

    .tl-motivation-link-icon {
        width: 17px;
        height: 17px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tl-motivation-card,
    .tl-motivation-card::before,
    .tl-motivation-ambient,
    .tl-motivation-icon::before {
        animation: none !important;
    }

    .tl-motivation-text-shell,
    .tl-motivation-text,
    .tl-motivation-link,
    .tl-motivation-link-icon-wrap {
        transition: none !important;
    }

    .tl-motivation-card.is-changing .tl-motivation-text {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   HERO RIGHT SIDE - Instructor + AI Learning Ecosystem
   V4 responsive layout:
   - Desktop and laptop keep the same compact professional size.
   - Robot is larger.
   - Floating cards sit around the figures, not on top of faces/body.
   - Extra laptop mockup remains hidden.
   Paste-safe override: old collage CSS can remain above.
========================================================= */

.tl-hero-media {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: visible;
    padding-top: 0;
}

.tl-hero-ecosystem {
    position: relative;
    width: min(100%, 640px);
    max-width: 640px;
    height: 570px;
    margin-left: auto;
    margin-right: 0;
    isolation: isolate;
    overflow: visible;
    transform-origin: center right;
}

.tl-hero-ecosystem::before {
    content: "";
    position: absolute;
    inset: 12% 7% 7% 15%;
    border-radius: 46% 54% 50% 52%;
    background:
        radial-gradient(circle at 67% 38%, rgba(59, 130, 246, 0.20), transparent 31%),
        radial-gradient(circle at 46% 68%, rgba(144, 24, 238, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(144, 24, 238, 0.08));
    filter: blur(0.2px);
    z-index: 0;
    pointer-events: none;
}

.tl-eco-glow {
    position: absolute;
    width: 66%;
    height: 62%;
    right: 6%;
    bottom: 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 55%),
        radial-gradient(circle, rgba(59, 130, 246, 0.17), transparent 72%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.tl-eco-orbit {
    position: absolute;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.tl-eco-orbit--one {
    width: 68%;
    height: 60%;
    right: 10%;
    top: 17%;
    transform: rotate(-18deg);
}

.tl-eco-orbit--two {
    width: 52%;
    height: 46%;
    right: 19%;
    top: 27%;
    transform: rotate(24deg);
    border-color: rgba(144, 24, 238, 0.15);
}

.tl-eco-dots {
    position: absolute;
    left: 14%;
    top: 24%;
    width: 66%;
    height: 54%;
    opacity: 0.46;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(96, 165, 250, 0.44) 1px, transparent 1px);
    background-size: 16px 16px;
    mask-image: radial-gradient(circle at 58% 48%, #000 0 52%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 58% 48%, #000 0 52%, transparent 72%);
}

.tl-ecosystem-figure {
    position: absolute;
    margin: 0;
    pointer-events: none;
}

.tl-ecosystem-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.36));
}

/* The figures stay above all cards. If any card comes close on small
   laptop screens, the instructor and robot remain visible. */
.tl-ecosystem-figure--instructor {
    right: 7%;
    bottom: 2%;
    width: 43%;
    height: 78%;
    z-index: 32;
}

.tl-ecosystem-figure--robot {
    left: 32%;
    bottom: -5%;
    width: 45%;
    height: 65%;
    z-index: 34;
}

.tl-floating-card,
.tl-mini-card,
.tl-code-editor-chip {
    position: absolute;
    z-index: 36;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html[data-theme='dark'] .tl-floating-card,
html[data-theme='dark'] .tl-mini-card,
html[data-theme='dark'] .tl-code-editor-chip {
    background: rgba(14, 35, 56, 0.86);
    border-color: rgba(255, 255, 255, 0.11);
    color: rgba(237, 244, 255, 0.96);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.30);
}

/* Progress: above the characters, but not over the face. */
.tl-progress-card {
    top: 2%;
    left: 28%;
    width: 205px;
    padding: 15px 16px 16px;
    border-radius: 14px;
}

.tl-progress-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
}

.tl-progress-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.11);
}

.tl-progress-card__icon svg {
    width: 20px;
    height: 20px;
}

.tl-progress-card__value {
    margin-top: 10px;
    font-size: 30px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.tl-progress-card__label {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(100, 116, 139, 0.92);
    font-weight: 800;
}

html[data-theme='dark'] .tl-progress-card__label {
    color: rgba(237, 244, 255, 0.62);
}

.tl-progress-bar {
    margin-top: 12px;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

.tl-progress-bar span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6, #7c3aed);
}

/* Skills: pushed to the right side and kept outside the instructor face. */
.tl-skills-card {
    top: 4%;
    right: -4%;
    width: 174px;
    padding: 10px;
    border-radius: 14px;
    display: grid;
    gap: 8px;
}

.tl-skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.78);
    font-size: 12px;
    line-height: 1;
    font-weight: 1000;
}

html[data-theme='dark'] .tl-skill-item {
    background: rgba(255, 255, 255, 0.06);
}

.tl-skill-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tl-skill-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* AI card: left side middle, away from the robot face. */
.tl-ai-card {
    top: 30%;
    left: 8%;
    width: 166px;
    min-height: 120px;
    padding: 15px 16px;
    border-radius: 14px;
}

.tl-ai-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.10);
}

.tl-ai-card__icon svg {
    width: 22px;
    height: 22px;
}

.tl-ai-card strong,
.tl-ai-card span:last-child {
    display: block;
}

.tl-ai-card strong {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 1000;
}

.tl-ai-card span:last-child {
    margin-top: 6px;
    max-width: 108px;
    color: rgba(100, 116, 139, 0.94);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 750;
}

html[data-theme='dark'] .tl-ai-card span:last-child {
    color: rgba(237, 244, 255, 0.62);
}

/* Certificate: lower-left, partially balanced with the robot but not covering it. */
.tl-certificate-card {
    left: 2%;
    bottom: 21%;
    width: 212px;
    min-height: 122px;
    padding: 15px 16px;
    border-radius: 14px;
}

.tl-certificate-card__eyebrow {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 1000;
    color: #6d28d9;
}

.tl-certificate-card strong {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 1000;
}

.tl-certificate-line {
    display: block;
    width: 74px;
    height: 2px;
    margin-top: 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.25), transparent);
}

html[data-theme='dark'] .tl-certificate-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent);
}

.tl-certificate-seal {
    position: absolute;
    right: 15px;
    bottom: 13px;
    width: 42px;
    height: 42px;
    color: #8b5cf6;
}

.tl-certificate-seal svg {
    width: 100%;
    height: 100%;
}

/* Laptop mockup removed. Keep hidden as protection in case an old Blade
   file still outputs laptop markup from the previous design. */
.tl-laptop-mockup,
.tl-laptop-screen,
.tl-laptop-toolbar,
.tl-laptop-editor,
.tl-laptop-base,
.tl-line {
    display: none !important;
}

/* Code Editor chip: small accent on the lower-left, not in front of robot. */
.tl-code-editor-chip {
    left: 16%;
    bottom: 9%;
    min-width: 136px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    border: 0;
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.24);
}

html[data-theme='dark'] .tl-code-editor-chip {
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    border: 0;
    color: #ffffff;
}

.tl-code-editor-chip span,
.tl-code-editor-chip strong {
    font-size: 12px;
    line-height: 1;
    font-weight: 1000;
}

/* Projects and Quizzes: pushed to the right side, away from the instructor face. */
.tl-mini-card {
    right: -4%;
    width: 148px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tl-mini-card--projects {
    bottom: 43%;
}

.tl-mini-card--quizzes {
    bottom: 31%;
}

.tl-mini-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tl-mini-card__icon svg {
    width: 23px;
    height: 23px;
}

.tl-mini-card--projects .tl-mini-card__icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.tl-mini-card--quizzes .tl-mini-card__icon {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.12);
}

.tl-mini-card strong {
    font-size: 12px;
    font-weight: 1000;
}

@media (prefers-reduced-motion: no-preference) {
    .tl-progress-card,
    .tl-ai-card,
    .tl-certificate-card,
    .tl-skills-card,
    .tl-mini-card,
    .tl-code-editor-chip {
        animation: tlHeroFloat 6s ease-in-out infinite;
    }

    .tl-ai-card,
    .tl-mini-card--projects {
        animation-delay: -1.4s;
    }

    .tl-certificate-card,
    .tl-code-editor-chip {
        animation-delay: -2.2s;
    }

    .tl-skills-card,
    .tl-mini-card--quizzes {
        animation-delay: -3s;
    }
}

@keyframes tlHeroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -7px, 0); }
}

/* Large desktops: keep the hero visual close to the laptop reference size. */
@media (min-width: 1400px) {
    .tl-hero-ecosystem {
        width: min(100%, 640px);
        max-width: 640px;
        height: 570px;
    }
}

/* Common laptop range: compact, readable, and no overlap. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .tl-hero-ecosystem {
        width: min(100%, 628px);
        max-width: 628px;
        height: 560px;
    }

    .tl-ecosystem-figure--instructor {
        right: 7%;
        width: 43%;
        height: 78%;
    }

    .tl-ecosystem-figure--robot {
        left: 31%;
        bottom: -5%;
        width: 46%;
        height: 66%;
    }

    .tl-progress-card {
        top: 1%;
        left: 27%;
        width: 202px;
    }

    .tl-skills-card {
        top: 4%;
        right: -4%;
        width: 170px;
    }

    .tl-ai-card {
        top: 30%;
        left: 7%;
    }

    .tl-certificate-card {
        left: 1%;
        bottom: 22%;
    }

    .tl-code-editor-chip {
        left: 16%;
        bottom: 8%;
    }

    .tl-mini-card {
        right: -4%;
    }
}

/* Smaller laptops / tablets in landscape. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .tl-hero-ecosystem {
        width: min(100%, 595px);
        max-width: 595px;
        height: 545px;
    }

    .tl-ecosystem-figure--instructor {
        right: 5%;
        bottom: 3%;
        width: 44%;
        height: 76%;
    }

    .tl-ecosystem-figure--robot {
        left: 29%;
        bottom: -3%;
        width: 48%;
        height: 64%;
    }

    .tl-progress-card {
        top: 1%;
        left: 26%;
        width: 194px;
        padding: 14px 15px 15px;
    }

    .tl-skills-card {
        top: 4%;
        right: -2%;
        width: 162px;
    }

    .tl-skill-item {
        min-height: 32px;
        padding: 5px 7px;
        font-size: 11.5px;
    }

    .tl-skill-icon,
    .tl-skill-icon svg {
        width: 22px;
        height: 22px;
    }

    .tl-ai-card {
        top: 31%;
        left: 5%;
        width: 154px;
    }

    .tl-certificate-card {
        left: 0;
        bottom: 22%;
        width: 198px;
    }

    .tl-code-editor-chip {
        left: 12%;
        bottom: 8%;
        min-width: 130px;
    }

    .tl-mini-card {
        right: -2%;
        width: 138px;
    }

    .tl-mini-card--projects {
        bottom: 30%;
    }

    .tl-mini-card--quizzes {
        bottom: 18%;
    }
}

@media (max-width: 991.98px) {
    .tl-hero-media {
        justify-content: center;
        align-items: center;
        padding-top: 16px;
    }

    .tl-hero-ecosystem {
        margin: 18px auto 0;
        width: min(100%, 620px);
        max-width: 620px;
        height: 600px;
    }

    .tl-hero-ecosystem::before {
        inset: 13% 2% 7% 5%;
    }

    .tl-ecosystem-figure--instructor {
        right: 6%;
        bottom: 4%;
        width: 46%;
        height: 76%;
    }

    .tl-ecosystem-figure--robot {
        left: 27%;
        bottom: -2%;
        width: 49%;
        height: 62%;
    }

    .tl-progress-card {
        top: 4%;
        left: 21%;
        width: 198px;
    }

    .tl-skills-card {
        top: 7%;
        right: 0;
        width: 164px;
    }

    .tl-ai-card {
        top: 30%;
        left: 2%;
        width: 154px;
    }

    .tl-certificate-card {
        left: 1%;
        bottom: 24%;
        width: 190px;
    }

    .tl-code-editor-chip {
        left: 8%;
        bottom: 7%;
    }

    .tl-mini-card {
        right: 0;
        width: 136px;
    }

    .tl-mini-card--projects {
        bottom: 30%;
    }

    .tl-mini-card--quizzes {
        bottom: 19%;
    }
}

@media (max-width: 767.98px) {
    .tl-hero-ecosystem {
        height: 640px;
        max-width: 540px;
    }

    .tl-ecosystem-figure--instructor {
        right: 2%;
        width: 56%;
        height: 74%;
        bottom: 9%;
    }

    .tl-ecosystem-figure--robot {
        left: 18%;
        width: 55%;
        height: 58%;
        bottom: 1%;
    }

    .tl-progress-card {
        top: 4%;
        left: 4%;
        width: 188px;
    }

    .tl-skills-card {
        top: 7%;
        right: 0;
        width: 164px;
    }

    .tl-ai-card {
        top: 31%;
        left: 0;
        width: 150px;
    }

    .tl-certificate-card {
        left: 0;
        bottom: 25%;
        width: 182px;
    }

    .tl-code-editor-chip {
        left: 3%;
        bottom: 10%;
    }

    .tl-mini-card {
        right: 0;
        width: 132px;
    }
}

@media (max-width: 575.98px) {
    .tl-hero-ecosystem {
        height: 690px;
        width: 100%;
        max-width: 430px;
    }

    .tl-hero-ecosystem::before {
        inset: 18% -12% 7% -8%;
    }

    .tl-ecosystem-figure--instructor {
        width: 64%;
        height: 55%;
        right: -4%;
        bottom: 15%;
    }

    .tl-ecosystem-figure--robot {
        width: 60%;
        height: 45%;
        left: 7%;
        bottom: 8%;
    }

    .tl-progress-card {
        top: 0;
        left: 0;
        width: 176px;
    }

    .tl-progress-card__value {
        font-size: 28px;
    }

    .tl-skills-card {
        top: 2%;
        right: 0;
        width: 155px;
        gap: 6px;
    }

    .tl-skill-item {
        min-height: 31px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .tl-skill-icon,
    .tl-skill-icon svg {
        width: 21px;
        height: 21px;
    }

    .tl-ai-card {
        top: 26%;
        left: 0;
        width: 145px;
    }

    .tl-certificate-card {
        left: 0;
        bottom: 32%;
        width: 170px;
        min-height: 106px;
    }

    .tl-code-editor-chip {
        left: 0;
        bottom: 14%;
        min-width: 122px;
        min-height: 40px;
    }

    .tl-mini-card {
        width: 126px;
        min-height: 50px;
        padding: 8px 10px;
    }

    .tl-mini-card--projects {
        right: 0;
        bottom: 28%;
    }

    .tl-mini-card--quizzes {
        right: 0;
        bottom: 20%;
    }
}

@media (max-width: 420px) {
    .tl-hero-ecosystem {
        height: 660px;
    }

    .tl-progress-card {
        width: 164px;
        padding: 13px;
    }

    .tl-skills-card {
        width: 146px;
    }

    .tl-skill-item {
        gap: 7px;
        font-size: 10.5px;
    }

    .tl-ai-card {
        top: 25%;
    }

    .tl-certificate-card {
        bottom: 32%;
    }
}

