* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:       #064e3b;
    --primary-dark:  #022c22;
    --accent:        #059669;
    --accent-light:  #10b981;
    --accent-pale:   #ecfdf5;
    --gray:          #6b7280;
    --gray-dark:     #374151;
    --light-gray:    #f0fdf4;
    --border:        #d1fae5;
    --border-soft:   #e5e7eb;
    --white:         #ffffff;
    --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:     0 10px 32px rgba(0,0,0,0.10);
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-xl:     24px;
}

body {
    font-family: 'Inter', sans-serif;
    color: #111827;
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
nav {
    border-bottom: 1px solid var(--border-soft);
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 66px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links > li > a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.2s;
}
.nav-links > li > a:hover { color: var(--primary); }
.nav-links > li > a.active {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.nav-btn {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}
.nav-btn:hover { background: var(--primary) !important; }

/* ── TIL ALMASHTIRUVCHI ── */
.lang-switcher { position: relative; }

.lang-current {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    user-select: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}
.lang-current:hover { border-color: var(--accent); color: var(--primary); }

.lang-drop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    list-style: none;
    padding: 0.4rem 0;
    min-width: 148px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}
.lang-drop.open { display: block; }
.lang-drop li form { margin: 0; }
.lang-drop li button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.55rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: background 0.15s;
}
.lang-drop li button:hover { background: var(--accent-pale); color: var(--primary); }

/* ── LOGIN / USER NAV ── */
.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.38rem 0.85rem;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-login:hover { border-color: var(--accent); color: var(--accent); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-user-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-dark);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-logout {
    font-size: 0.78rem;
    font-weight: 500;
    color: #ef4444;
    transition: color 0.2s;
}
.nav-logout:hover { color: #b91c1c; }

/* ── AUTH PAGE ── */
.auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, var(--accent-pale) 0%, #fff 60%);
}
.auth-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.auth-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.auth-logo span { color: var(--accent); }
.auth-card h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}
.auth-card > p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 2rem;
}
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #fff;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
}
.btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 2px 12px rgba(66,133,244,0.15);
    background: #f8faff;
    color: #1a1a2e;
}
.auth-note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 1.5rem;
    line-height: 1.6;
}
.auth-note a { color: var(--accent); }

/* ── BURGER & MOBILE NAV ── */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0.25rem;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    list-style: none;
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
}

.lang-switcher-mobile {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-soft);
    margin-top: 0.2rem;
}
.lang-switcher-mobile form { margin: 0; }
.lang-switcher-mobile button {
    background: var(--accent-pale);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary);
    transition: background 0.2s;
}
.lang-switcher-mobile button:hover { background: var(--border); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    max-width: 820px;
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-pale);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.8rem;
    border: 1px solid var(--border);
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.3rem;
    letter-spacing: -1px;
    color: #0a0a0a;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1.5px solid var(--border-soft);
    color: var(--gray-dark);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
    display: inline-block;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ── DIVIDER ── */
.divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 0 2.5rem;
}

/* ═══════════════════════════════════════
   STATS
═══════════════════════════════════════ */
.stats {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 3rem 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 3rem;
    border-right: 1px solid var(--border-soft);
}
.stat-item:last-child { border-right: none; }

.stat-item h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-item p {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1140px;
    margin: 0 auto 2rem;
    padding: 0 2.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.section-header a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s;
}
.section-header a:hover { color: var(--primary); }

/* ═══════════════════════════════════════
   COURSES GRID
═══════════════════════════════════════ */
.courses {
    padding: 5rem 2.5rem;
    background: #f9fafb;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.course-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    box-shadow: 0 12px 36px rgba(5,150,105,0.12);
    transform: translateY(-4px);
}

.card-top {
    padding: 2rem 2rem 1.2rem;
    border-bottom: 1px solid #f3f4f6;
    flex: 1;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
    background: var(--accent-pale);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.card-top h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
}

.card-top p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.card-middle {
    padding: 1.2rem 2rem;
}

.card-middle ul { list-style: none; }

.card-middle ul li {
    font-size: 0.875rem;
    color: var(--gray-dark);
    padding: 0.4rem 0;
    border-bottom: 1px solid #f9fafb;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.card-middle ul li:last-child { border-bottom: none; }

.card-middle ul li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.card-bottom {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.btn-card {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-card:hover { background: var(--primary); }

/* ═══════════════════════════════════════
   WHY US
═══════════════════════════════════════ */
.why-us {
    padding: 6rem 2.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    padding: 2rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.feature-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(5,150,105,0.08);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.65;
}

/* ═══════════════════════════════════════
   CTA
═══════════════════════════════════════ */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #065f46 100%);
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -100px;
    right: -100px;
}

.cta h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cta p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.cta .btn-primary {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1rem;
}
.cta .btn-primary:hover {
    background: var(--accent-pale);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   MESSAGES
═══════════════════════════════════════ */
.messages {
    max-width: 600px;
    margin: 1rem auto;
    padding: 0 1rem;
}
.message {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    background: var(--accent-pale);
    color: #065f46;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 3.5rem 2rem 2rem;
    background: #f9fafb;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
}
.footer-logo span { color: var(--accent); }

.footer-inner > p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ═══════════════════════════════════════
   BLOG HEADER
═══════════════════════════════════════ */
.blog-header {
    text-align: center;
    padding: 5rem 2rem 2.5rem;
    background: linear-gradient(180deg, var(--accent-pale) 0%, #fff 100%);
}

.blog-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.blog-header p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.search-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.search-form button {
    padding: 0.75rem 1.1rem;
    background: var(--accent);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.search-form button:hover { background: var(--primary); }

/* ── CATEGORIES BAR ── */
.categories-bar {
    display: flex;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
}

.cat-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    border: 1.5px solid var(--border-soft);
    color: var(--gray);
    transition: all 0.2s;
    background: #fff;
    cursor: pointer;
}
.cat-tag:hover, .cat-tag.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ═══════════════════════════════════════
   BLOG LAYOUT (sidebar + main)
═══════════════════════════════════════ */
.blog-layout {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem 5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ══════════════════════════════════════
   LEX.UZ USLUBIDA FILTER PANEL
══════════════════════════════════════ */
.lx-panel {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1rem;
    position: sticky;
    top: 76px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Qidiruv */
.lx-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}
.lx-search svg { color: var(--gray); flex-shrink: 0; }
.lx-search input {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--dark);
    outline: none;
    flex: 1;
    min-width: 0;
}
.lx-search input::placeholder { color: #b0b8c1; }
.lx-clear {
    color: #b0b8c1;
    font-size: 0.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.lx-clear:hover { color: #ef4444; }

/* Barchasi linki */
.lx-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    transition: background 0.15s, color 0.15s;
    margin-bottom: 0.25rem;
}
.lx-all:hover { background: var(--accent-pale); color: var(--accent); }
.lx-all.active { background: var(--accent-pale); color: var(--accent); font-weight: 600; }

/* Ajratuvchi */
.lx-divider {
    height: 1px;
    background: var(--border-soft);
    margin: 0.6rem 0 0.5rem;
}
.lx-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #b0b8c1;
    padding: 0 0.4rem;
    margin-bottom: 0.4rem;
}

/* Accordion guruh */
.lx-group { margin-bottom: 0.15rem; }

.lx-group-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.lx-group-head:hover { background: #f8fafc; }

.lx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lx-group-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.15s;
    min-width: 0;
}
.lx-group-name:hover, .lx-group-name.active { color: var(--accent); }
.lx-group-name.active { font-weight: 600; }

/* Ok (arrow) tugmasi */
.lx-arrow {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #b0b8c1;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.15s, transform 0.25s;
    flex-shrink: 0;
}
.lx-arrow:hover { color: var(--accent); background: var(--accent-pale); }
.lx-group.open .lx-arrow { transform: rotate(180deg); color: var(--accent); }

/* Badge */
.lx-badge {
    font-size: 0.72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.lx-badge.active, .lx-all.active .lx-badge { background: var(--accent); color: #fff; }
.lx-badge.sm { font-size: 0.68rem; padding: 0.08rem 0.35rem; }

/* Ichki (sub) ro'yxat */
.lx-sublist {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-left: 1.4rem;
    border-left: 2px solid var(--border-soft);
    padding-left: 0.75rem;
    margin-top: 0.2rem;
    margin-bottom: 0.3rem;
    overflow: hidden;
}
.lx-group.open .lx-sublist { display: flex; }

.lx-subitem {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.5rem;
    border-radius: 6px;
    font-size: 0.83rem;
    color: var(--gray);
    font-weight: 400;
    transition: background 0.12s, color 0.12s;
}
.lx-subitem:hover { background: var(--accent-pale); color: var(--accent); }
.lx-subitem.active { color: var(--accent); font-weight: 600; background: var(--accent-pale); }
.lx-subitem.active .lx-badge { background: var(--accent); color: #fff; }

.lx-sub-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Faol qidiruv ko'rsatkichi */
.lx-active-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: #fef9c3;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #92400e;
    border: 1px solid #fde68a;
}
.lx-active-filter svg { color: #d97706; flex-shrink: 0; }
.lx-active-filter span { flex: 1; font-weight: 500; }
.lx-active-filter a { color: #d97706; font-weight: 700; }
.lx-active-filter a:hover { color: #ef4444; }

.blog-main { min-width: 0; }

/* ═══════════════════════════════════════
   BLOG CONTAINER (legacy, keep for category.html)
═══════════════════════════════════════ */
.blog-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.5rem 2.5rem 5rem;
}

/* ── FEATURED POST ── */
.post-featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
    background: linear-gradient(135deg, var(--accent-pale) 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.post-featured-emoji {
    font-size: 4rem;
    line-height: 1;
    background: #fff;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.post-featured-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0.5rem 0 0.8rem;
    letter-spacing: -0.3px;
    color: var(--primary-dark);
    line-height: 1.3;
}
.post-featured-body h2 a:hover { color: var(--accent); }

.post-featured-body p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.2rem;
    line-height: 1.65;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s, gap 0.2s;
}
.read-more:hover { color: var(--primary); gap: 0.5rem; }

/* ── POST META ── */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.post-cat {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── POSTS GRID ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 10px 30px rgba(5,150,105,0.1);
    transform: translateY(-4px);
}

.post-card-emoji {
    background: linear-gradient(135deg, var(--accent-pale), #f0fdf4);
    text-align: center;
    font-size: 2.5rem;
    padding: 1.8rem;
}

.post-card-body {
    padding: 1.3rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.4rem 0 0.6rem;
    line-height: 1.4;
    color: var(--primary-dark);
}
.post-card-body h3 a:hover { color: var(--accent); }

.post-card-body > p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.8rem;
    margin-top: auto;
}
.post-author { color: var(--gray); font-weight: 500; }

/* ═══════════════════════════════════════
   POST DETAIL
═══════════════════════════════════════ */
.post-detail-wrap {
    max-width: 780px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.post-detail-header { margin-bottom: 2rem; }

.post-detail-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0.8rem 0;
    letter-spacing: -0.5px;
    color: #0a0a0a;
}

.post-excerpt {
    font-size: 1.1rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.post-author-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray);
    padding: 0.8rem 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    font-weight: 500;
}
.author-avatar { font-size: 1.3rem; }

.post-cover-emoji {
    text-align: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--accent-pale), #f0fdf4);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin: 2rem 0;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #1f2937;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 0.8rem;
    color: var(--primary);
}
.post-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2rem 0 0.6rem;
    color: var(--primary-dark);
}
.post-content code:not(pre code) {
    background: var(--accent-pale);
    color: #065f46;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    border: 1px solid var(--border);
}
.post-content pre code {
    border: none;
    border-radius: 0;
    font-size: inherit;
}
.post-content pre {
    background: #0d1117;
    color: #c9d1d9;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.65;
}

.post-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
}

/* ── RELATED ── */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
}
.related-posts h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    margin-bottom: 0.8rem;
    transition: border-color 0.2s, background 0.2s;
}
.related-card:hover {
    border-color: var(--accent);
    background: var(--accent-pale);
}
.related-emoji { font-size: 1.6rem; }
.related-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--primary-dark); }
.related-meta { font-size: 0.8rem; color: var(--gray); }

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--gray);
    grid-column: 1 / -1;
    font-size: 1rem;
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .stats { gap: 0; }
    .stat-item { padding: 1rem 2rem; }
}

@media (max-width: 768px) {
    nav { padding: 0 1.2rem; }
    .hero { padding: 4rem 1.5rem 3.5rem; }
    .hero h1 { font-size: 2.2rem; letter-spacing: -0.5px; }
    .nav-links { display: none; }
    .burger { display: block; }
    .divider { margin: 0 1.2rem; }
    .stats { flex-direction: column; align-items: center; gap: 0; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border-soft); width: 100%; max-width: 300px; }
    .stat-item:last-child { border-bottom: none; }
    .courses { padding: 3rem 1.2rem; }
    .courses-grid { grid-template-columns: 1fr; }
    .why-us { padding: 3rem 1.2rem; }
    .blog-header h1 { font-size: 2rem; }
    .blog-container { padding: 0.5rem 1.2rem 3rem; }
    .categories-bar { padding: 1rem 1.2rem; }
    .blog-layout {
        grid-template-columns: 1fr;
        padding: 1rem 1.2rem 3rem;
        gap: 1rem;
    }
    .lx-panel { position: static; }
    .lx-sublist { display: flex; }
    .lx-arrow { display: none; }
    .post-featured { grid-template-columns: 1fr; }
    .post-featured-emoji { width: 64px; height: 64px; font-size: 2.5rem; }
    .post-detail-wrap { padding: 0 1.2rem; }
    .post-detail-header h1 { font-size: 1.8rem; }
    .section-header { padding: 0 1.2rem; flex-direction: column; gap: 0.4rem; }
    .cta { padding: 4rem 1.5rem; }
    .cta h2 { font-size: 1.8rem; }
    footer { padding: 2.5rem 1.2rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .btn-primary, .btn-outline { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}
