/* blogs.css - Premium Black & Gold Theme Extensions for Blogs Module */

:root {
    --primary: var(--accent);
    --blog-card-bg: rgba(22, 22, 22, 0.7);
    --blog-card-border: rgba(255, 196, 0, 0.1);
    --blog-card-hover: rgba(255, 196, 0, 0.3);
}

/* ── Desktop Navbar Perfect Center ──────────────────────────────── */
@media (min-width: 1024px) {
    .cbt-nav-inner {
        position: relative;
    }
    .cbt-center-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Base Adjustments */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}


/* Hero Section */
.cbt-blog-hero {
    position: relative;
    padding: 150px 20px 80px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 10;
}

.cbt-blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cbt-blog-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Search Bar */
.cbt-blog-search {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.cbt-blog-search input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cbt-blog-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.2);
}

.cbt-blog-search .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Search Dropdown */
.cbt-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 196, 0, 0.1);
    backdrop-filter: blur(15px);
    text-align: left;
}

.cbt-search-dropdown::-webkit-scrollbar {
    width: 8px;
}
.cbt-search-dropdown::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}
.cbt-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,196,0,0.5);
    border-radius: 8px;
}

.cbt-search-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    align-items: flex-start;
}
.cbt-search-item:last-child {
    border-bottom: none;
}
.cbt-search-item:hover {
    background: rgba(255, 196, 0, 0.1);
}

.cbt-search-item-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cbt-search-item-info h4 {
    color: var(--text-heading);
    font-size: 1rem;
    margin-bottom: 5px;
    transition: color 0.3s;
}
.cbt-search-item:hover .cbt-search-item-info h4 {
    color: var(--primary);
}

.cbt-search-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
}
.cbt-search-item-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
}

.cbt-search-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cbt-search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Filter Chips */
.cbt-blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.cbt-filter-chip {
    background: rgba(22, 22, 22, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cbt-filter-chip:hover, .cbt-filter-chip.active {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.3);
}

/* Container */
.cbt-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Section Title */
.cbt-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}
.cbt-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.5;
}

/* Blog Grid */
.cbt-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Blog Card */
.cbt-blog-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.cbt-blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--blog-card-hover);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 196, 0, 0.1);
}

.cbt-blog-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.cbt-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cbt-blog-card:hover .cbt-blog-card-img {
    transform: scale(1.05);
}

.cbt-blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.cbt-blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cbt-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cbt-blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cbt-blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.cbt-blog-card:hover .cbt-blog-card-title {
    color: var(--primary);
}

.cbt-blog-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.cbt-blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.cbt-blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbt-blog-author-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.cbt-blog-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
}

.cbt-btn-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.cbt-btn-read-more:hover {
    gap: 8px;
}

/* ================== SINGLE BLOG PAGE ================== */
.cbt-blog-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    align-items: start;
    padding-top: 120px;
}

/* Account for article sticky navbar on desktop too */
.cbt-blog-layout {
    padding-top: 148px; /* 68px main nav + 56px article nav + 24px gap */
}

@media (max-width: 992px) {
    .cbt-blog-layout {
        grid-template-columns: 1fr;
    }
}

/* Fix CSS Grid blowout issue to maintain consistent sidebar width */
.cbt-article, .cbt-sidebar {
    min-width: 0;
}

.cbt-article-header {
    margin-bottom: 30px;
}

.cbt-article-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.cbt-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.cbt-article-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

.cbt-article-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

/* Article Content Formatting */
.cbt-article-content {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cbt-article-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 40px 0 20px;
}

.cbt-article-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.cbt-article-content p {
    margin-bottom: 20px;
}

.cbt-article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.cbt-article-content pre {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    margin: 20px 0;
}

.cbt-article-content code {
    font-family: 'Courier New', Courier, monospace;
    color: #a6e22e;
}

.cbt-article-content blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(255,196,0,0.05);
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.cbt-article-content ul, .cbt-article-content ol {
    margin: 0 0 20px 20px;
    padding-left: 20px;
}

.cbt-article-content li {
    margin-bottom: 10px;
}

/* Tags & Share */
.cbt-article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.cbt-article-tag {
    background: rgba(255,255,255,0.05);
    color: #ccc;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.cbt-article-tag:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
}

.cbt-article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.cbt-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.cbt-share-btn:hover {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Sidebar */
.cbt-sidebar {
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 196, 0, 0.3) transparent;
}
.cbt-sidebar::-webkit-scrollbar {
    width: 4px;
}
.cbt-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.cbt-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 196, 0, 0.3);
    border-radius: 10px;
}
[data-theme="light"] .cbt-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 144, 10, 0.3);
}

.cbt-sidebar-widget {
    background: var(--blog-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.cbt-sidebar-widget h3 {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cbt-recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.cbt-recent-post img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.cbt-recent-post-info h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.cbt-recent-post-info h4 a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.cbt-recent-post-info h4 a:hover {
    color: var(--primary);
}

.cbt-recent-post-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Comments */
.cbt-comments-section {
    margin-top: 50px;
}

.cbt-comment-form {
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.cbt-form-group {
    margin-bottom: 20px;
}

.cbt-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.cbt-form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(22, 22, 22, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.cbt-form-control:focus {
    border-color: var(--primary);
}

.cbt-comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cbt-comment {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.cbt-comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.cbt-comment-body h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1rem;
}

.cbt-comment-body span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.cbt-comment-body p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Empty State */
.cbt-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* ================== MOBILE RESPONSIVENESS FIXES ================== */
@media (max-width: 768px) {
    /* ── Global: kill horizontal scroll ── */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    *, *::before, *::after {
        box-sizing: border-box;
    }

    /* ── Layout: single column, correct top padding for dual navbars ── */
    .cbt-blog-layout {
        display: block;          /* Kills grid, avoids overflow from column gaps */
        width: 100%;
        max-width: 100vw;
        padding: 136px 16px 40px; /* 68px main nav + 56px article nav + 12px breathing room */
        box-sizing: border-box;
    }

    .cbt-blog-container {
        padding: 0;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* ── Article: no overflow ── */
    .cbt-article {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* ── Heading: proper wrap, no cut ── */
    .cbt-article-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
        font-weight: 800;
        line-height: 1.25;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
        max-width: 100%;
        hyphens: auto;
        margin-bottom: 16px;
    }

    /* ── Meta: stack neatly, wrap allowed ── */
    .cbt-article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
        font-size: 0.82rem;
        padding-bottom: 16px;
        margin-bottom: 20px;
        align-items: center;
    }
    .cbt-article-meta .author {
        flex: 0 1 auto;
        white-space: nowrap;
    }
    .cbt-article-meta span {
        white-space: nowrap;
        flex: 0 1 auto;
    }

    /* ── Banner image: full width, auto height, no distortion ── */
    .cbt-article-banner {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        max-height: 220px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 24px;
        display: block;
    }

    /* ── Article content body ── */
    .cbt-article-content {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.8;
        overflow-x: hidden;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Headings inside content */
    .cbt-article-content h1,
    .cbt-article-content h2,
    .cbt-article-content h3,
    .cbt-article-content h4,
    .cbt-article-content h5 {
        word-break: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
    }
    .cbt-article-content h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin: 28px 0 14px;
    }
    .cbt-article-content h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin: 22px 0 10px;
    }

    /* Paragraphs & lists */
    .cbt-article-content p {
        margin-bottom: 16px;
        width: 100%;
        max-width: 100%;
    }
    .cbt-article-content ul,
    .cbt-article-content ol {
        padding-left: 20px;
        margin-bottom: 16px;
    }
    .cbt-article-content li {
        margin-bottom: 8px;
        word-break: break-word;
    }

    /* Images inside content */
    .cbt-article-content img {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        margin: 16px 0;
    }

    /* Code blocks: scroll horizontally inside their box, not page */
    .cbt-article-content pre {
        overflow-x: auto;
        max-width: 100%;
        font-size: 0.85rem;
        padding: 16px;
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .cbt-article-content code {
        font-size: 0.85rem;
        word-break: break-all;
    }
    .cbt-code-wrapper {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Blockquotes */
    .cbt-article-content blockquote {
        padding: 12px 16px;
        margin: 16px 0;
        font-size: 0.95rem;
    }

    /* Tables: scrollable container */
    .cbt-article-content table,
    .cbt-table-responsive {
        display: block;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    /* Learning sections */
    .cbt-learning-section {
        padding: 16px 14px;
        margin-bottom: 24px;
    }

    /* Section nav prev/next buttons */
    .cbt-section-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }
    .cbt-section-nav-btn {
        font-size: 0.82rem;
        padding: 8px 14px;
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    /* Sidebar comes below article on mobile */
    .cbt-sidebar {
        position: static;
        margin-top: 40px;
        width: 100%;
    }

    /* Comments */
    .cbt-comment {
        flex-direction: column;
        padding: 14px;
        gap: 10px;
    }
    .cbt-comment-form {
        padding: 20px 16px;
    }

    /* Share buttons */
    .cbt-article-share {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Tags */
    .cbt-article-tags {
        gap: 8px;
        margin: 24px 0;
    }
    .cbt-article-tag {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    /* Progress pill: don't float on mobile */
    .cbt-learning-progress-pill {
        float: none;
        width: fit-content;
        margin: 0 auto 16px;
        position: relative;
        top: auto;
    }
}
/* Progress Bar */
.cbt-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gold);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* TOC */
.cbt-toc {
    background: var(--blog-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.cbt-toc h3 {
    margin-top: 0;
    color: #FFFFFF;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}
.cbt-toc ul {
    list-style: none;
    padding-left: 0;
}
.cbt-toc ul ul {
    padding-left: 20px;
}
.cbt-toc li {
    margin-bottom: 8px;
}
.cbt-toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block;
}
.cbt-toc a:hover, .cbt-toc a.active {
    color: var(--accent-gold);
}

/* Code Blocks with Copy */
.cbt-code-wrapper {
    position: relative;
    margin: 25px 0;
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.cbt-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cbt-code-lang {
    color: #a9a9a9;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}
.cbt-copy-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.cbt-copy-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}
.cbt-code-wrapper pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}
.cbt-code-wrapper code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #d4d4d4;
}

/* Callouts */
.cbt-callout {
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid var(--accent-gold);
    background: rgba(255, 196, 0, 0.05);
    border-radius: 0 8px 8px 0;
}
.cbt-callout-tip {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}
.cbt-callout-note {
    border-left-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}
.cbt-callout-warning {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.05);
}

/* Quote Card */
.cbt-quote-card {
    font-style: italic;
    font-size: 1.2rem;
    color: #e0e0e0;
    padding: 25px;
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    position: relative;
}
.cbt-quote-card::before {
    content: '\"';
    font-size: 4rem;
    color: rgba(255, 196, 0, 0.2);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

/* Responsive Table */
.cbt-table-responsive {
    overflow-x: auto;
    margin: 25px 0;
}
.cbt-table-responsive table {
    width: 100%;
    border-collapse: collapse;
}
.cbt-table-responsive th, .cbt-table-responsive td {
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
.cbt-table-responsive th {
    background: rgba(255,255,255,0.05);
    color: var(--accent-gold);
    font-weight: 600;
}

/* Guided Learning Experience Styles */
.cbt-learning-section {
    background: rgba(25, 25, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.cbt-learning-section.active-section {
    border-color: rgba(255, 196, 0, 0.3);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .cbt-learning-section {
        padding: 20px 15px;
    }
}

.cbt-section-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 10px;
}
.cbt-section-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.cbt-section-nav-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}
.cbt-section-nav-btn.primary {
    background: rgba(255, 196, 0, 0.1);
    color: var(--accent-gold);
    border-color: rgba(255, 196, 0, 0.2);
}
.cbt-section-nav-btn.primary:hover {
    background: var(--accent-gold);
    color: #000;
}

.cbt-learning-progress-pill {
    position: sticky;
    top: 90px;
    float: right;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 196, 0, 0.3);
    color: var(--accent-gold);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 100;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cbt-learning-progress-pill span.perc {
    color: #fff;
    font-weight: 400;
    opacity: 0.8;
}
