/* =============================================
   Trading Knowledge Hub - Main Stylesheet
   BabyPips-inspired trading education theme
   ============================================= */

/* ---- CSS Variables ---- */
:root {
    /* Colors - Light theme inspired by BabyPips */
    --tkh-bg-primary: #f4f6f8;
    --tkh-bg-secondary: #ffffff;
    --tkh-bg-card: #ffffff;
    --tkh-bg-card-hover: #ffffff;
    --tkh-bg-input: #f9fafb;
    --tkh-bg-topbar: #152238;

    --tkh-text-primary: #152238;
    --tkh-text-secondary: #4b5563;
    --tkh-text-muted: #6b7280;
    --tkh-text-link: #00a4e4;

    --tkh-accent-green: #8cc63f;
    --tkh-accent-green-dark: #7ab332;
    --tkh-accent-blue: #00a4e4;
    --tkh-accent-purple: #9b59b6;
    --tkh-accent-orange: #f05a28;
    --tkh-accent-red: #ef4444;
    --tkh-accent-pink: #ec4899;
    --tkh-accent-cyan: #06b6d4;
    --tkh-accent-teal: #14b8a6;

    --tkh-border-color: #e5e7eb;
    --tkh-border-light: #f3f4f6;

    /* Category colors */
    --tkh-cat-analysis: #00a4e4;
    --tkh-cat-technical-analysis: #9b59b6;
    --tkh-cat-psychology: #ec4899;
    --tkh-cat-news: #f05a28;
    --tkh-cat-lessons: #8cc63f;
    --tkh-cat-premium: #f9b000;

    /* Typography */
    --tkh-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tkh-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --tkh-container-width: 1280px;
    --tkh-gap: 1.5rem;
    --tkh-radius: 16px;
    --tkh-radius-sm: 8px;
    --tkh-radius-xs: 4px;

    /* Transitions */
    --tkh-transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--tkh-font-primary);
    background-color: var(--tkh-bg-primary);
    color: var(--tkh-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--tkh-text-link);
    text-decoration: none;
    transition: color var(--tkh-transition);
}

a:hover {
    color: var(--tkh-accent-green);
}

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

/* ---- Container ---- */
.tkh-container {
    max-width: var(--tkh-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Top Bar ---- */
.tkh-topbar {
    background: var(--tkh-bg-topbar);
    border-bottom: 1px solid var(--tkh-border-color);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}

.tkh-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tkh-topbar__date {
    color: #94a3b8;
}

.tkh-topbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tkh-topbar__link {
    color: #cbd5e1;
    font-weight: 500;
}

.tkh-topbar__link:hover {
    color: #ffffff;
}

.tkh-topbar__link--signup {
    background: var(--tkh-accent-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--tkh-radius-xs);
    font-weight: 600;
}

.tkh-topbar__link--signup:hover {
    background: var(--tkh-accent-green-dark);
    color: white;
}

.tkh-topbar__premium {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--tkh-accent-orange);
    font-weight: 600;
}

.tkh-topbar__premium:hover {
    color: #fbbf24;
}

/* ---- Header ---- */
.tkh-header {
    background: var(--tkh-bg-secondary);
    border-bottom: 1px solid var(--tkh-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tkh-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    gap: 1.5rem;
}

.tkh-header__brand {
    flex-shrink: 0;
}

.tkh-header__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--tkh-text-primary);
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
}

.tkh-header__logo:hover {
    color: var(--tkh-accent-green);
}

.tkh-header__logo-icon {
    display: flex;
}

.tkh-header__site-name {
    white-space: nowrap;
}

/* Search */
.tkh-header__search {
    flex: 1;
    max-width: 480px;
}

.tkh-search-form {
    position: relative;
    display: flex;
}

.tkh-search-form__input {
    width: 100%;
    padding: 0.625rem 1rem;
    padding-right: 2.75rem;
    background: var(--tkh-bg-input);
    border: 1px solid var(--tkh-border-light);
    border-radius: var(--tkh-radius);
    color: var(--tkh-text-primary);
    font-size: 0.875rem;
    font-family: var(--tkh-font-primary);
    transition: border-color var(--tkh-transition);
}

.tkh-search-form__input::placeholder {
    color: var(--tkh-text-muted);
}

.tkh-search-form__input:focus {
    outline: none;
    border-color: var(--tkh-accent-green);
}

.tkh-search-form__btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--tkh-text-muted);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
}

.tkh-search-form__btn:hover {
    color: var(--tkh-accent-green);
}

/* Mobile Toggle */
.tkh-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.tkh-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tkh-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--tkh-text-primary);
    transition: var(--tkh-transition);
    border-radius: 1px;
}

/* Navigation */
.tkh-nav {
    background: var(--tkh-bg-secondary);
    border-bottom: 2px solid var(--tkh-accent-green);
}

.tkh-nav__menu {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tkh-nav__menu::-webkit-scrollbar {
    display: none;
}

.tkh-nav__menu li {
    position: relative;
}

.tkh-nav__menu li a {
    display: block;
    padding: 0.75rem 1.125rem;
    color: var(--tkh-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color var(--tkh-transition), background var(--tkh-transition);
}

.tkh-nav__menu li a:hover,
.tkh-nav__menu li.current-menu-item a,
.tkh-nav__menu li.current_page_item a {
    color: var(--tkh-accent-green);
    background: rgba(16, 185, 129, 0.08);
}

.tkh-nav__menu li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tkh-bg-card);
    border: 1px solid var(--tkh-border-color);
    border-radius: 0 0 var(--tkh-radius-sm) var(--tkh-radius-sm);
    min-width: 220px;
    list-style: none;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(21, 34, 56, 0.08);
}

.tkh-nav__menu li:hover > .sub-menu {
    display: block;
}

.tkh-nav__menu li .sub-menu li a {
    padding: 0.625rem 1rem;
    text-transform: none;
    font-weight: 500;
    font-size: 0.8125rem;
}

/* ---- Hero Section ---- */
.tkh-hero-section {
    padding: 1.25rem 0 0;
}

.tkh-hero-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: var(--tkh-gap);
}

.tkh-hero-card {
    border-radius: var(--tkh-radius);
    overflow: hidden;
    background: var(--tkh-bg-card);
    border: 1px solid var(--tkh-border-color);
    box-shadow: 0 4px 12px rgba(21, 34, 56, 0.03);
    transition: transform var(--tkh-transition), box-shadow var(--tkh-transition), border-color var(--tkh-transition);
}

.tkh-hero-card:hover {
    transform: translateY(-4px);
    border-color: var(--tkh-accent-green);
    box-shadow: 0 12px 32px rgba(21, 34, 56, 0.08);
}

.tkh-hero-card__link {
    display: block;
    color: var(--tkh-text-primary);
}

.tkh-hero-card__link:hover {
    color: var(--tkh-text-primary);
}

.tkh-hero-card--main .tkh-hero-card__image {
    height: 300px;
    overflow: hidden;
}

.tkh-hero-card--main .tkh-hero-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tkh-hero-card--main:hover .tkh-hero-card__image img {
    transform: scale(1.03);
}

.tkh-hero-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tkh-bg-secondary);
}

.tkh-hero-card__content {
    padding: 0.875rem 1.25rem 1rem;
}

.tkh-hero-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.25rem 0 0.375rem;
}

.tkh-hero-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--tkh-text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
}

.tkh-hero-card__excerpt {
    color: var(--tkh-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Hero Sidebar */
.tkh-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tkh-hero-card--side {
    background: var(--tkh-bg-card);
    flex: 1;
}

.tkh-hero-card__link--horizontal {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tkh-hero-card__thumb {
    width: 130px;
    min-width: 130px;
    height: 82px;
    overflow: hidden;
    border-radius: var(--tkh-radius-sm);
}

.tkh-hero-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tkh-hero-card--side .tkh-hero-card__link--horizontal {
    padding: 0.75rem;
}

.tkh-hero-card__info {
    flex: 1;
    min-width: 0;
}

.tkh-hero-card__title--sm {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0.125rem 0 0.25rem;
}

.tkh-hero-card__time {
    color: var(--tkh-text-muted);
    font-size: 0.75rem;
}

.tkh-hero-card__author {
    color: var(--tkh-text-muted);
    font-size: 0.75rem;
}

/* ---- Badges ---- */
.tkh-badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--tkh-radius-xs);
    color: white;
    background: var(--tkh-accent-blue);
}

.tkh-badge--analysis { background: var(--tkh-cat-analysis); }
.tkh-badge--technical-analysis { background: var(--tkh-cat-technical-analysis); }
.tkh-badge--psychology { background: var(--tkh-cat-psychology); }
.tkh-badge--news { background: var(--tkh-cat-news); color: #1a1a1a; }
.tkh-badge--lessons { background: var(--tkh-cat-lessons); }
.tkh-badge--premium { background: var(--tkh-cat-premium); color: #1a1a1a; }

/* ---- Content Section ---- */
.tkh-content-section {
    padding: 2.5rem 0;
}

.tkh-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
}

.tkh-content-main {
    min-width: 0;
}

/* ---- Section Headers ---- */
.tkh-section {
    margin-bottom: 2.5rem;
}

.tkh-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.tkh-section__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--tkh-text-primary);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.tkh-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--tkh-accent-green);
    border-radius: 2px;
}

.tkh-section__header .tkh-section__title {
    margin-bottom: 0;
}

.tkh-section__header .tkh-section__title::after {
    display: none;
}

.tkh-section__title--center {
    text-align: center;
}

.tkh-section__title--center::after {
    left: 50%;
    transform: translateX(-50%);
}

.tkh-section__more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tkh-accent-green);
}

.tkh-section__more:hover {
    color: var(--tkh-accent-green-dark);
}

/* ---- Articles Grid ---- */
.tkh-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tkh-gap);
}

/* ---- Card ---- */
.tkh-card {
    background: var(--tkh-bg-card);
    border-radius: var(--tkh-radius);
    overflow: hidden;
    border: 1px solid var(--tkh-border-color);
    box-shadow: 0 4px 12px rgba(21, 34, 56, 0.03);
    transition: transform var(--tkh-transition), box-shadow var(--tkh-transition), border-color var(--tkh-transition);
}

.tkh-card:hover {
    transform: translateY(-4px);
    border-color: var(--tkh-accent-green);
    box-shadow: 0 12px 32px rgba(21, 34, 56, 0.08);
}

.tkh-card__link {
    display: flex;
    flex-direction: column;
    color: var(--tkh-text-primary);
    height: 100%;
}

.tkh-card__link:hover {
    color: var(--tkh-text-primary);
}

.tkh-card__image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.tkh-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tkh-card:hover .tkh-card__image img {
    transform: scale(1.05);
}

.tkh-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tkh-bg-secondary);
}

.tkh-card__premium-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--tkh-accent-orange);
    color: #1a1a1a;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--tkh-radius-xs);
    text-transform: uppercase;
}

.tkh-card__content {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tkh-card__badges {
    margin-bottom: 0.375rem;
}

.tkh-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.tkh-card__excerpt {
    font-size: 0.875rem;
    color: var(--tkh-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tkh-card__meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: var(--tkh-text-muted);
    margin-top: auto;
}

/* ---- Sidebar Widgets ---- */
.tkh-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--tkh-gap);
}

.tkh-widget {
    background: var(--tkh-bg-card);
    border-radius: var(--tkh-radius);
    border: 1px solid var(--tkh-border-color);
    padding: 1.25rem;
}

.tkh-widget__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tkh-widget__title-date {
    background: var(--tkh-accent-green);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: var(--tkh-radius-xs);
    font-size: 0.8125rem;
}

.tkh-widget__subtitle {
    font-size: 0.8125rem;
    color: var(--tkh-text-muted);
    margin-bottom: 1rem;
}

.tkh-widget__link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.625rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--tkh-radius-sm);
    color: var(--tkh-accent-green);
    font-weight: 600;
    font-size: 0.875rem;
}

.tkh-widget__link:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Calendar Widget */
.tkh-calendar-list {
    list-style: none;
}

.tkh-calendar-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--tkh-border-color);
}

.tkh-calendar-item:last-child {
    border-bottom: none;
}

.tkh-calendar-item__time {
    display: block;
    font-size: 0.75rem;
    color: var(--tkh-text-muted);
    margin-bottom: 0.2rem;
    font-family: var(--tkh-font-mono);
}

.tkh-calendar-item__event {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tkh-text-primary);
}

.tkh-calendar-item__event:hover {
    color: var(--tkh-accent-green);
}

/* CTA Card */
.tkh-cta-card {
    text-align: center;
}

.tkh-cta-card__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--tkh-accent-orange), #f97316);
    color: #1a1a1a;
    padding: 0.25rem 0.875rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.tkh-cta-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tkh-cta-card__text {
    font-size: 0.8125rem;
    color: var(--tkh-text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Learn Card */
.tkh-learn-card {
    text-align: center;
    padding: 0.5rem;
}

.tkh-learn-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tkh-learn-card__text {
    font-size: 0.8125rem;
    color: var(--tkh-text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.tkh-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: var(--tkh-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--tkh-transition);
    font-family: var(--tkh-font-primary);
}

.tkh-btn--primary {
    background: var(--tkh-accent-blue);
    color: white;
}

.tkh-btn--primary:hover {
    background: #2563eb;
    color: white;
}

.tkh-btn--success {
    background: var(--tkh-accent-green);
    color: white;
}

.tkh-btn--success:hover {
    background: var(--tkh-accent-green-dark);
    color: white;
}

/* ---- Trading Tools Section ---- */
.tkh-tools-section {
    padding: 3rem 0;
    background: var(--tkh-bg-primary);
}

.tkh-tools-section__subtitle {
    text-align: center;
    color: var(--tkh-text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.tkh-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tkh-gap);
}

.tkh-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--tkh-bg-card);
    border: 1px solid var(--tkh-border-color);
    border-radius: var(--tkh-radius);
    color: var(--tkh-text-primary);
    transition: transform var(--tkh-transition), box-shadow var(--tkh-transition), border-color var(--tkh-transition);
}

.tkh-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--tkh-accent-green);
    box-shadow: 0 12px 32px rgba(21, 34, 56, 0.08);
    color: var(--tkh-text-primary);
}

.tkh-tool-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.tkh-tool-card__icon--green {
    background: rgba(140, 198, 63, 0.12);
    color: var(--tkh-accent-green);
}

.tkh-tool-card__icon--blue {
    background: rgba(0, 164, 228, 0.12);
    color: var(--tkh-accent-blue);
}

.tkh-tool-card__icon--purple {
    background: rgba(155, 89, 182, 0.12);
    color: var(--tkh-accent-purple);
}

.tkh-tool-card__icon--orange {
    background: rgba(240, 90, 40, 0.12);
    color: var(--tkh-accent-orange);
}

.tkh-tool-card__icon--pink {
    background: rgba(236, 72, 153, 0.12);
    color: var(--tkh-accent-pink);
}

.tkh-tool-card__icon--cyan {
    background: rgba(6, 182, 212, 0.12);
    color: var(--tkh-accent-cyan);
}

.tkh-tool-card:hover .tkh-tool-card__icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.tkh-tool-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.tkh-tool-card__desc {
    font-size: 0.8125rem;
    color: var(--tkh-text-secondary);
    line-height: 1.5;
}

/* ---- Featured Lessons Section ---- */
.tkh-lessons-section {
    padding: 3rem 0;
    background: var(--tkh-bg-secondary);
    border-top: 1px solid var(--tkh-border-color);
    border-bottom: 1px solid var(--tkh-border-color);
}

.tkh-lessons-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tkh-gap);
    margin-top: 1.5rem;
}

.tkh-lesson-card {
    background: var(--tkh-bg-card);
    border-radius: var(--tkh-radius);
    overflow: hidden;
    border: 1px solid var(--tkh-border-color);
    box-shadow: 0 4px 12px rgba(21, 34, 56, 0.03);
    transition: transform var(--tkh-transition), box-shadow var(--tkh-transition), border-color var(--tkh-transition);
}

.tkh-lesson-card:hover {
    transform: translateY(-4px);
    border-color: var(--tkh-border-light);
    box-shadow: 0 12px 32px rgba(21, 34, 56, 0.08);
}

.tkh-lesson-card__link {
    display: block;
    color: var(--tkh-text-primary);
    height: 100%;
}

.tkh-lesson-card__link:hover {
    color: var(--tkh-text-primary);
}

.tkh-lesson-card__image {
    height: 150px;
    overflow: hidden;
}

.tkh-lesson-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tkh-lesson-card:hover .tkh-lesson-card__image img {
    transform: scale(1.05);
}

.tkh-lesson-card__content {
    padding: 1rem;
}

.tkh-lesson-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

.tkh-lesson-card__excerpt {
    font-size: 0.8125rem;
    color: var(--tkh-text-secondary);
    line-height: 1.5;
}

.tkh-lessons-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tkh-lessons-nav__btn {
    width: 40px;
    height: 40px;
    background: var(--tkh-bg-card);
    border: 1px solid var(--tkh-border-color);
    border-radius: 50%;
    color: var(--tkh-text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tkh-transition);
}

.tkh-lessons-nav__btn:hover {
    background: var(--tkh-accent-green);
    border-color: var(--tkh-accent-green);
}

/* ---- Quote Section ---- */
.tkh-quote-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--tkh-bg-topbar), #202530);
    text-align: center;
}

.tkh-quote {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.tkh-quote::before {
    content: '\201C';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    line-height: 1;
    color: var(--tkh-accent-green);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.tkh-quote p {
    font-size: 1.375rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1rem;
}

.tkh-quote cite {
    font-size: 0.9375rem;
    color: var(--tkh-accent-green);
    font-style: normal;
    font-weight: 600;
}

/* ---- Footer ---- */
.tkh-footer {
    background: var(--tkh-bg-topbar);
    padding: 3.5rem 0 0;
    border-top: 3px solid var(--tkh-accent-green);
}

.tkh-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.tkh-footer__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid rgba(140, 198, 63, 0.3);
}

.tkh-footer__menu {
    list-style: none;
}

.tkh-footer__menu li {
    margin-bottom: 0.5rem;
}

.tkh-footer__menu li a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color var(--tkh-transition), padding-left var(--tkh-transition);
}

.tkh-footer__menu li a:hover {
    color: var(--tkh-accent-green);
    padding-left: 0.25rem;
}

.tkh-footer__logo {
    font-size: 1.375rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.tkh-footer__logo:hover {
    color: var(--tkh-accent-green);
}

.tkh-footer__desc {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0.75rem 0 1rem;
}

.tkh-footer__social {
    display: flex;
    gap: 0.75rem;
}

.tkh-social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #94a3b8;
    transition: all var(--tkh-transition);
}

.tkh-social-icon:hover {
    background: var(--tkh-accent-green);
    color: white;
    transform: translateY(-2px);
}

.tkh-footer__bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tkh-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tkh-footer__copyright {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.tkh-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.tkh-footer__legal a {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.tkh-footer__legal a:hover {
    color: #ffffff;
}

/* ---- Single Article ---- */
.tkh-breadcrumbs-wrap {
    padding-top: 0.75rem;
}

.tkh-article {
    max-width: 100%;
}

.tkh-article__header {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.tkh-article__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tkh-article__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.tkh-article__subtitle {
    font-size: 1.125rem;
    color: var(--tkh-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.tkh-article__meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 0;
    border-top: 1px solid var(--tkh-border-color);
    border-bottom: 1px solid var(--tkh-border-color);
}

.tkh-article__author-avatar img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.tkh-article__meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tkh-article__author {
    font-size: 0.875rem;
    color: var(--tkh-text-secondary);
}

.tkh-article__author a {
    color: var(--tkh-text-primary);
    font-weight: 600;
}

.tkh-article__author a:hover {
    color: var(--tkh-accent-green);
}

.tkh-article__date {
    font-size: 0.8125rem;
    color: var(--tkh-text-muted);
}

.tkh-article__featured-image {
    border-radius: var(--tkh-radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.tkh-article__featured-image img {
    width: 100%;
    display: block;
}

.tkh-article__image-caption {
    font-size: 0.8125rem;
    color: var(--tkh-text-muted);
    text-align: center;
    padding: 0.625rem 1rem;
    background: var(--tkh-bg-primary);
    border-bottom-left-radius: var(--tkh-radius);
    border-bottom-right-radius: var(--tkh-radius);
}

/* Article Content */
.tkh-article__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--tkh-text-primary);
}

.tkh-article__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tkh-border-color);
}

.tkh-article__content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.tkh-article__content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 1.5rem 0 0.625rem;
}

.tkh-article__content p {
    margin-bottom: 1.25rem;
}

.tkh-article__content ul,
.tkh-article__content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.tkh-article__content li {
    margin-bottom: 0.5rem;
}

.tkh-article__content li::marker {
    color: var(--tkh-accent-green);
}

.tkh-article__content blockquote {
    border-left: 4px solid var(--tkh-accent-green);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(140, 198, 63, 0.05), rgba(0, 164, 228, 0.03));
    border-radius: 0 var(--tkh-radius-sm) var(--tkh-radius-sm) 0;
    font-style: italic;
    color: var(--tkh-text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.tkh-article__content blockquote p:last-child {
    margin-bottom: 0;
}

.tkh-article__content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--tkh-radius-sm);
    overflow-x: auto;
    margin: 1.75rem 0;
    font-family: var(--tkh-font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    border: 1px solid #334155;
}

.tkh-article__content code {
    font-family: var(--tkh-font-mono);
    background: rgba(0, 164, 228, 0.08);
    color: var(--tkh-accent-blue);
    padding: 0.15rem 0.4rem;
    border-radius: var(--tkh-radius-xs);
    font-size: 0.85em;
}

.tkh-article__content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.tkh-article__content img {
    border-radius: var(--tkh-radius-sm);
    margin: 1.75rem 0;
}

.tkh-article__content a {
    color: var(--tkh-accent-green);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(140, 198, 63, 0.4);
    transition: text-decoration-color var(--tkh-transition);
}

.tkh-article__content a:hover {
    text-decoration-color: var(--tkh-accent-green);
}

.tkh-article__content hr {
    border: none;
    border-top: 2px solid var(--tkh-border-color);
    margin: 2.5rem 0;
}

.tkh-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    border-radius: var(--tkh-radius-sm);
    overflow: hidden;
    border: 1px solid var(--tkh-border-color);
}

.tkh-article__content th,
.tkh-article__content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--tkh-border-color);
}

.tkh-article__content th {
    background: var(--tkh-bg-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tkh-text-secondary);
}

.tkh-article__content tr:last-child td {
    border-bottom: none;
}

/* Article Footer */
.tkh-article__footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tkh-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tkh-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tkh-tag {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    background: var(--tkh-bg-primary);
    border: 1px solid var(--tkh-border-color);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--tkh-text-secondary);
    font-weight: 500;
    transition: all var(--tkh-transition);
}
    color: var(--tkh-text-secondary);
}

.tkh-tag:hover {
    border-color: var(--tkh-accent-green);
    color: var(--tkh-accent-green);
}

.tkh-article__share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tkh-article__share-label {
    font-size: 0.8125rem;
    color: var(--tkh-text-muted);
    font-weight: 600;
}

.tkh-share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--tkh-transition);
}

.tkh-share-btn--twitter {
    background: #1d9bf0;
    color: white;
}

.tkh-share-btn--twitter:hover {
    background: #0c8de4;
    color: white;
}

.tkh-share-btn--facebook {
    background: #1877f2;
    color: white;
}

.tkh-share-btn--facebook:hover {
    background: #0d65d9;
    color: white;
}

/* Author Box */
.tkh-author-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--tkh-bg-primary);
    border-radius: var(--tkh-radius);
    margin-top: 2.5rem;
    border: 1px solid var(--tkh-border-color);
}

.tkh-author-box__avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.tkh-author-box__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tkh-accent-green);
    margin-bottom: 0.25rem;
}

.tkh-author-box__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tkh-author-box__name a {
    color: var(--tkh-text-primary);
}

.tkh-author-box__name a:hover {
    color: var(--tkh-accent-green);
}

.tkh-author-box__bio {
    font-size: 0.875rem;
    color: var(--tkh-text-secondary);
    line-height: 1.6;
}

/* Related Articles */
.tkh-related {
    margin-top: 3rem;
}

.tkh-related__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tkh-accent-green);
}

/* ---- Page ---- */
.tkh-page {
    padding: 2rem 0;
}

.tkh-page__header {
    margin-bottom: 2rem;
}

.tkh-page__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.tkh-page__featured-image {
    border-radius: var(--tkh-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tkh-page__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    max-width: 780px;
}

/* ---- Archive Header ---- */
.tkh-archive-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--tkh-border-color);
    margin-bottom: 2rem;
}

.tkh-archive-header__title {
    font-size: 1.75rem;
    font-weight: 800;
}

.tkh-archive-header__title span {
    color: var(--tkh-accent-green);
}

.tkh-archive-header__desc {
    margin-top: 0.5rem;
    color: var(--tkh-text-secondary);
    font-size: 1rem;
}

/* ---- 404 ---- */
.tkh-404 {
    text-align: center;
    padding: 5rem 0;
}

.tkh-404__icon {
    color: var(--tkh-text-muted);
    margin-bottom: 1rem;
}

.tkh-404__title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--tkh-accent-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tkh-404__subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tkh-404__text {
    color: var(--tkh-text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.tkh-404__search {
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* ---- No Results ---- */
.tkh-no-results {
    text-align: center;
    padding: 3rem 0;
}

.tkh-no-results h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tkh-no-results p {
    color: var(--tkh-text-secondary);
    margin-bottom: 1.5rem;
}

/* ---- Comments ---- */
.tkh-comments {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--tkh-border-color);
}

.tkh-comments__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tkh-comments__list {
    list-style: none;
}

.tkh-comments__list .comment {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--tkh-bg-card);
    border-radius: var(--tkh-radius-sm);
}

.tkh-comments__list .comment .children {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--tkh-border-color);
}

.tkh-comment-form {
    margin-top: 2rem;
}

.tkh-comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--tkh-text-secondary);
}

.tkh-comment-form input[type="text"],
.tkh-comment-form input[type="email"],
.tkh-comment-form input[type="url"],
.tkh-comment-form textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--tkh-bg-input);
    border: 1px solid var(--tkh-border-light);
    border-radius: var(--tkh-radius-sm);
    color: var(--tkh-text-primary);
    font-family: var(--tkh-font-primary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.tkh-comment-form input:focus,
.tkh-comment-form textarea:focus {
    outline: none;
    border-color: var(--tkh-accent-green);
}

.tkh-comment-form input[type="submit"] {
    background: var(--tkh-accent-green);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--tkh-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: var(--tkh-font-primary);
    transition: background var(--tkh-transition);
}

.tkh-comment-form input[type="submit"]:hover {
    background: var(--tkh-accent-green-dark);
}

/* ---- Pagination ---- */
.tkh-pagination {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.tkh-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.tkh-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    background: var(--tkh-bg-card);
    border: 1px solid var(--tkh-border-color);
    border-radius: var(--tkh-radius-sm);
    color: var(--tkh-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--tkh-transition);
    box-shadow: 0 2px 4px rgba(21, 34, 56, 0.04);
}

.tkh-pagination .page-numbers:hover {
    border-color: var(--tkh-accent-green);
    color: var(--tkh-accent-green);
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.15);
}

.tkh-pagination .page-numbers.current {
    background: var(--tkh-accent-green);
    border-color: var(--tkh-accent-green);
    color: white;
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.3);
}

.tkh-pagination .page-numbers.dots {
    border: none;
    background: none;
    box-shadow: none;
    min-width: auto;
    padding: 0 0.25rem;
    color: var(--tkh-text-muted);
}

/* ---- Fallback Menu ---- */
.tkh-fallback-menu {
    display: flex;
    list-style: none;
}

.tkh-fallback-menu li a {
    display: block;
    padding: 0.75rem 1.125rem;
    color: var(--tkh-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tkh-fallback-menu li a:hover {
    color: var(--tkh-accent-green);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .tkh-hero-grid {
        grid-template-columns: 1fr;
    }

    .tkh-hero-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .tkh-content-grid {
        grid-template-columns: 1fr;
    }

    .tkh-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tkh-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tkh-lessons-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .tkh-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tkh-header__search {
        display: none;
    }

    .tkh-header__toggle {
        display: block;
    }

    .tkh-nav {
        display: none;
    }

    .tkh-nav.tkh-nav--open {
        display: block;
    }

    .tkh-nav__menu {
        flex-direction: column;
    }

    .tkh-nav__menu li .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.1);
    }

    .tkh-hero-card--main .tkh-hero-card__image {
        height: 200px;
    }

    .tkh-hero-sidebar {
        grid-template-columns: 1fr;
    }

    .tkh-articles-grid {
        grid-template-columns: 1fr;
    }

    .tkh-tools-grid {
        grid-template-columns: 1fr;
    }

    .tkh-lessons-carousel {
        grid-template-columns: 1fr;
    }

    .tkh-footer__grid {
        grid-template-columns: 1fr;
    }

    .tkh-article__title {
        font-size: 1.625rem;
    }

    .tkh-article__subtitle {
        font-size: 1rem;
    }

    .tkh-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .tkh-post-nav {
        grid-template-columns: 1fr;
    }

    .tkh-topbar__right {
        gap: 0.5rem;
    }

    .tkh-topbar__date {
        display: none;
    }

    .tkh-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .tkh-footer__legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tkh-container {
        padding: 0 1rem;
    }

    .tkh-hero-card__title {
        font-size: 1.25rem;
    }

    .tkh-404__title {
        font-size: 3.5rem;
    }
}

/* ---- WordPress Core Styles ---- */
.alignnone {
    margin: 1rem 0;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.wp-caption {
    max-width: 100%;
    border-radius: var(--tkh-radius-sm);
    overflow: hidden;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--tkh-text-muted);
    padding: 0.5rem 0;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--tkh-radius-sm);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sticky .tkh-card__content::before {
    content: 'Featured';
    display: inline-block;
    background: var(--tkh-accent-green);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: var(--tkh-radius-xs);
    margin-bottom: 0.375rem;
}

/* ---- Lesson Filter ---- */
.tkh-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tkh-filter__btn {
    padding: 0.5rem 1rem;
    background: var(--tkh-bg-card);
    border: 1px solid var(--tkh-border-color);
    border-radius: 999px;
    color: var(--tkh-text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--tkh-transition);
}

.tkh-filter__btn:hover,
.tkh-filter__btn--active {
    background: var(--tkh-accent-green);
    border-color: var(--tkh-accent-green);
    color: white;
}

/* ---- Lessons Grid (archive) ---- */
.tkh-lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tkh-gap);
}

@media (max-width: 1024px) {
    .tkh-lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tkh-lessons-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Lesson Navigation (prev/next) ---- */
.tkh-lesson-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tkh-border-color);
}

.tkh-lesson-nav__link {
    display: block;
    padding: 1rem;
    background: var(--tkh-bg-card);
    border-radius: var(--tkh-radius-sm);
    transition: all var(--tkh-transition);
    color: var(--tkh-text-primary);
}

.tkh-lesson-nav__link:hover {
    background: var(--tkh-bg-card-hover);
    color: var(--tkh-text-primary);
}

.tkh-lesson-nav__link--next {
    text-align: right;
}

.tkh-lesson-nav__label {
    display: block;
    font-size: 0.75rem;
    color: var(--tkh-accent-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.tkh-lesson-nav__title {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* ---- TOC Widget ---- */
.tkh-widget--toc {
    border: 1px solid var(--tkh-accent-green);
}

.tkh-toc-list {
    list-style: none;
    counter-reset: toc-counter;
}

.tkh-toc-item {
    border-bottom: 1px solid var(--tkh-border-color);
}

.tkh-toc-item:last-child {
    border-bottom: none;
}

.tkh-toc-item a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.5rem;
    color: var(--tkh-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--tkh-transition);
    border-radius: var(--tkh-radius-xs);
}

.tkh-toc-item a:hover {
    color: var(--tkh-accent-green);
    background: rgba(16, 185, 129, 0.05);
}

.tkh-toc-item--active a {
    color: var(--tkh-accent-green);
    background: rgba(16, 185, 129, 0.1);
    font-weight: 600;
}

.tkh-toc-item__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--tkh-bg-secondary);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tkh-toc-item--active .tkh-toc-item__num {
    background: var(--tkh-accent-green);
    color: white;
}

/* ---- Post Navigation ---- */
.tkh-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tkh-border-color);
}

.tkh-post-nav__link {
    display: block;
    padding: 1.25rem;
    background: var(--tkh-bg-card);
    border: 1px solid var(--tkh-border-color);
    border-radius: var(--tkh-radius-sm);
    color: var(--tkh-text-primary);
    transition: all var(--tkh-transition);
}

.tkh-post-nav__link:hover {
    border-color: var(--tkh-accent-green);
    box-shadow: 0 4px 12px rgba(21, 34, 56, 0.06);
    color: var(--tkh-text-primary);
}

.tkh-post-nav__link--next {
    text-align: right;
}

.tkh-post-nav__label {
    display: block;
    font-size: 0.75rem;
    color: var(--tkh-accent-green);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tkh-post-nav__title {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* ---- Breadcrumbs ---- */
.tkh-breadcrumbs {
    padding: 1rem 0;
    font-size: 0.8125rem;
    color: var(--tkh-text-muted);
}

.tkh-breadcrumbs a {
    color: var(--tkh-text-secondary);
}

.tkh-breadcrumbs a:hover {
    color: var(--tkh-accent-green);
}

.tkh-breadcrumbs__sep {
    margin: 0 0.375rem;
    color: var(--tkh-text-muted);
}

/* ---- Header Scrolled ---- */
.tkh-header--scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ---- Card Animations ---- */
.tkh-card,
.tkh-lesson-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--tkh-transition), border-color var(--tkh-transition);
}

/* Infinite scroll loading */
.tkh-loading {
    text-align: center;
    padding: 2rem;
    color: var(--tkh-text-muted);
}

.tkh-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--tkh-border-color);
    border-top-color: var(--tkh-accent-green);
    border-radius: 50%;
    animation: tkh-spin 0.6s linear infinite;
}

@keyframes tkh-spin {
    to { transform: rotate(360deg); }
}
