/* ── BLOG LISTING — listing.css ── */
:root {
    --bl-red: #e8341a;
    --bl-red2: #c4290f;
    --bl-red-tint: #fff0ee;
    --bl-red-tint2: #ffe0db;
    --bl-navy: #1e2d8f;
    --bl-navy2: #2b50d0;
    --bl-navy3: #3a64e8;
    --bl-tint: #eef1fb;
    --bl-tint2: #dde4f6;
    --bl-tint3: #c8d4f0;
    --bl-ink: #0d1117;
    --bl-ink2: #1f2937;
    --bl-text: #374151;
    --bl-muted: #6b7280;
    --bl-muted2: #9ca3af;
    --bl-border: #e5e8f2;
    --bl-border2: #cdd4ee;
    --bl-bg: #f2f4fc;
    --bl-card: #fff;
    --bl-green: #059669;
}

/* ── LAYOUT ── */
.bl-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ── ACCORDION ── */
.bl-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bl-chapter {
    background: var(--bl-card);
    border: 1.5px solid var(--bl-border);
    border-radius: 16px;
    overflow: hidden;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.bl-chapter:hover:not(.bl-open) {
    border-color: var(--bl-tint3);
    box-shadow: 0 2px 12px rgba(30, 45, 143, 0.06);
}
.bl-chapter.bl-open {
    border-color: var(--bl-navy2);
    box-shadow: 0 6px 28px rgba(30, 45, 143, 0.12);
}

/* Chapter header */
.bl-chapter-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.bl-chapter-hd:hover {
    background: var(--bl-tint);
}
.bl-chapter.bl-open .bl-chapter-hd {
    background: linear-gradient(
        118deg,
        var(--bl-navy) 0%,
        var(--bl-navy2) 100%
    );
}

/* chapter number */
.bl-ch-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--bl-tint2);
    border: 1.5px solid var(--bl-tint3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--bl-navy);
    transition: all 0.2s;
}
.bl-chapter.bl-open .bl-ch-num {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.bl-ch-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--bl-muted2);
    margin-bottom: 2px;
    transition: color 0.2s;
}
.bl-chapter.bl-open .bl-ch-label {
    color: rgba(255, 255, 255, 0.55);
}
.bl-ch-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--bl-navy);
    line-height: 1.28;
    transition: color 0.2s;
}
.bl-chapter.bl-open .bl-ch-title {
    color: #fff;
}
.bl-ch-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

/* lesson count pill */
.bl-ch-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--bl-tint2);
    border: 1.5px solid var(--bl-tint3);
    color: var(--bl-navy2);
    padding: 3px 10px;
    border-radius: 7px;
    white-space: nowrap;
    transition: all 0.2s;
}
.bl-chapter.bl-open .bl-ch-count {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.8);
}

/* +/× toggle */
.bl-ch-toggle {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bl-tint3);
    color: var(--bl-navy2);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s;
    background: transparent;
    cursor: pointer;
}
.bl-chapter.bl-open .bl-ch-toggle {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(45deg);
}

/* chapter body */
.bl-chapter-body {
    display: none;
    padding: 10px 0 4px;
}
.bl-chapter.bl-open .bl-chapter-body {
    display: block;
}

/* closed preview tags */
.bl-chapter-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 18px 14px 66px;
}
.bl-chapter.bl-open .bl-chapter-preview {
    display: none;
}
.bl-ccp-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.bl-ccp-tag:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.bl-ccp-tag:nth-child(4n + 1) {
    color: #2b50d0;
    background: #eef1fb;
    border: 1px solid #dde4f6;
}
.bl-ccp-tag:nth-child(4n + 2) {
    color: #7c3aed;
    background: #f3f0ff;
    border: 1px solid #e9e0fd;
}
.bl-ccp-tag:nth-child(4n + 3) {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}
.bl-ccp-tag:nth-child(4n + 4) {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

/* Lesson group */
.bl-group {
    margin: 4px 14px 8px;
    background: var(--bl-tint);
    border: 1.5px solid var(--bl-tint2);
    border-radius: 12px;
    overflow: hidden;
}
.bl-group-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.bl-group-hd:hover {
    background: var(--bl-tint2);
}
.bl-group.bl-open > .bl-group-hd {
    background: var(--bl-tint2);
}
.bl-lg-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bl-navy), var(--bl-navy2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}
.bl-lg-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bl-navy);
    flex: 1;
}
.bl-lg-link {
    text-decoration: none;
}
.bl-lg-link:hover {
    text-decoration: underline;
    color: var(--bl-navy2);
}
.bl-lg-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--bl-navy2);
    background: var(--bl-tint2);
    border: 1px solid var(--bl-tint3);
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.bl-lg-toggle {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid var(--bl-border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--bl-navy2);
    flex-shrink: 0;
    transition: transform 0.2s;
    background: var(--bl-card);
}
.bl-group.bl-open > .bl-group-hd .bl-lg-toggle {
    transform: rotate(45deg);
}

/* lesson items */
.bl-lesson-list {
    display: none;
    padding: 4px 0 8px;
}
.bl-group.bl-open > .bl-lesson-list {
    display: block;
}
.bl-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px 9px 52px;
    border-top: 1px solid var(--bl-tint2);
    text-decoration: none;
    transition: background 0.15s;
    position: relative;
}
.bl-lesson-item:hover {
    background: rgba(30, 45, 143, 0.04);
}

/* red left bar on hover */
.bl-lesson-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bl-red);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.bl-lesson-item:hover::before {
    opacity: 1;
}
.bl-lesson-item:hover .bl-li-title {
    color: var(--bl-navy);
}

.bl-li-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bl-tint3);
    flex-shrink: 0;
    transition: background 0.15s;
}
.bl-lesson-item:hover .bl-li-dot {
    background: var(--bl-red);
}
.bl-li-title {
    font-size: 13.5px;
    color: var(--bl-text);
    line-height: 1.45;
    flex: 1;
    transition: color 0.15s;
    font-weight: 400;
}
.bl-li-cta {
    font-size: 11px;
    font-weight: 700;
    color: var(--bl-red);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bl-lesson-item:hover .bl-li-cta {
    opacity: 1;
}

/* progressive disclosure: hide blogs beyond the first batch + view-more button */
.bl-lesson-item.bl-li-more.is-hidden {
    display: none;
}
.bl-view-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 8px 14px 4px 52px;
    padding: 7px 16px;
    border: 1.5px solid var(--bl-tint3);
    border-radius: 999px;
    background: var(--bl-tint);
    color: var(--bl-navy2);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}
.bl-view-more:hover {
    background: var(--bl-tint2);
    border-color: var(--bl-navy2);
    color: var(--bl-navy);
}
.bl-view-more i {
    font-size: 12px;
}
.bl-vm-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: var(--bl-navy2);
    border-radius: 999px;
}

/* ═══ SIDEBAR ═══ */
.bl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.bl-sidebar-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--bl-navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}
.bl-sidebar-title .bl-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bl-sidebar-title .bl-bar1 {
    width: 20px;
    height: 3px;
    background: var(--bl-red);
    border-radius: 2px;
}
.bl-sidebar-title .bl-bar2 {
    width: 13px;
    height: 3px;
    background: var(--bl-navy2);
    border-radius: 2px;
}

/* Hero article */
.bl-art-hero {
    background: var(--bl-card);
    border: 1.5px solid var(--bl-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(30, 45, 143, 0.07);
    text-decoration: none;
    display: block;
    transition:
        transform 0.22s,
        box-shadow 0.22s;
}
.bl-art-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 45, 143, 0.14);
}
.bl-art-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #1a2566;
}
.bl-art-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.bl-art-hero:hover .bl-art-hero-img img {
    transform: scale(1.04);
}
.bl-art-hero-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 20, 80, 0.75) 0%,
        rgba(0, 0, 0, 0.05) 55%,
        transparent 100%
    );
}
.bl-art-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 14px 16px;
}
.bl-art-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bl-red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.bl-art-hero-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.28;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.bl-art-hero-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--bl-border);
}
.bl-art-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bl-art-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bl-navy), var(--bl-navy2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}
.bl-art-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bl-art-aname {
    font-size: 12px;
    font-weight: 700;
    color: var(--bl-navy);
    display: flex;
    align-items: center;
    gap: 4px;
}
.bl-art-aname i {
    color: var(--bl-navy2);
    font-size: 11px;
}
.bl-art-date {
    font-size: 11.5px;
    color: var(--bl-muted2);
    font-weight: 500;
}

/* Mini article rows */
.bl-art-mini {
    display: flex;
    gap: 13px;
    background: var(--bl-card);
    border: 1.5px solid var(--bl-border);
    border-radius: 13px;
    padding: 13px 14px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(30, 45, 143, 0.05);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.bl-art-mini::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--bl-red), var(--bl-red2));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s;
}
.bl-art-mini:hover {
    border-color: var(--bl-navy2);
    box-shadow: 0 4px 18px rgba(30, 45, 143, 0.1);
    transform: translateX(4px);
}
.bl-art-mini:hover::before {
    opacity: 1;
}
.bl-art-mini-img {
    width: 76px;
    height: 68px;
    border-radius: 9px;
    flex-shrink: 0;
    overflow: hidden;
    background: #cdd4ec;
    position: relative;
}
.bl-art-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.bl-art-mini:hover .bl-art-mini-img img {
    transform: scale(1.06);
}
.bl-art-mini-cat {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--bl-red);
    margin-bottom: 4px;
}
.bl-art-mini-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--bl-navy);
    line-height: 1.4;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.bl-art-mini:hover .bl-art-mini-title {
    color: var(--bl-red);
}
.bl-art-mini-foot {
    display: flex;
    align-items: center;
    gap: 7px;
}
.bl-art-mini-av {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bl-navy), var(--bl-navy2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}
.bl-art-mini-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bl-art-mini-aname {
    font-size: 11px;
    font-weight: 600;
    color: var(--bl-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}
.bl-art-mini-aname i {
    color: var(--bl-navy2);
    font-size: 10px;
}
.bl-art-mini-date {
    font-size: 10.5px;
    color: var(--bl-muted2);
    margin-left: auto;
}

/* see all */
.bl-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px;
    border-radius: 11px;
    border: 1.5px solid var(--bl-tint3);
    background: var(--bl-tint);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--bl-navy2);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.bl-see-all:hover {
    background: var(--bl-navy);
    border-color: var(--bl-navy);
    color: #fff;
}

/* animations */
@keyframes blFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.bl-fi {
    animation: blFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bl-fi:nth-child(1) {
    animation-delay: 0.04s;
}
.bl-fi:nth-child(2) {
    animation-delay: 0.1s;
}
.bl-fi:nth-child(3) {
    animation-delay: 0.16s;
}
.bl-fi:nth-child(4) {
    animation-delay: 0.22s;
}
.bl-fi:nth-child(5) {
    animation-delay: 0.28s;
}
.bl-fi:nth-child(6) {
    animation-delay: 0.34s;
}

/* ═══ BLOG CARDS (category listing) ═══ */
.bl-card {
    background: var(--bl-card);
    border: 1px solid var(--bl-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(30, 45, 143, 0.06);
    transition:
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.24s;
}
.bl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30, 45, 143, 0.14);
}
.bl-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #050c30, var(--bl-navy));
}
.bl-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.bl-card:hover .bl-card__thumb img {
    transform: scale(1.04);
}
.bl-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 18, 70, 0.55) 0%,
        rgba(0, 0, 0, 0.05) 55%,
        transparent 100%
    );
}
.bl-card__badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 5px;
}
.bl-card__body {
    padding: 14px 16px 17px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bl-card__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bl-navy);
    line-height: 1.44;
    margin-bottom: 9px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.bl-card:hover .bl-card__title {
    color: var(--bl-red);
}
.bl-card__desc {
    font-size: 12px;
    color: var(--bl-text);
    line-height: 1.65;
    margin-bottom: 0;
}
.bl-card__author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
}
.bl-card__av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bl-navy), var(--bl-navy2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}
.bl-card__av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bl-card__aname {
    font-size: 11px;
    font-weight: 500;
    color: var(--bl-muted);
}
.bl-card__verified {
    color: var(--bl-navy2);
    font-size: 13px;
    flex-shrink: 0;
}
.bl-card__date {
    font-size: 10.5px;
    color: var(--bl-muted2);
    margin-left: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .bl-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bl-sidebar {
        position: static;
    }
}
@media (max-width: 575px) {
    .bl-chapter-hd {
        padding: 12px 14px;
        gap: 10px;
    }
    .bl-ch-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .bl-ch-title {
        font-size: 13px;
    }
    .bl-ch-count {
        font-size: 10px;
        padding: 2px 8px;
    }
    .bl-chapter-preview {
        padding-left: 52px;
    }
    .bl-lesson-item {
        padding-left: 36px;
    }
    .bl-art-hero-title {
        font-size: 15px;
    }
}
