/* ═══════════════════════════════════════════════════
   CG Blog Overhaul — Styles v1.0
   Colors: Navy #1B2D4F | Orange #FF6B35 | Blue #385DFF
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
.cgb-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ─── Reading Progress Bar ─── */
.cgb-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; background: transparent; pointer-events: none; }
.cgb-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #FF6B35, #385DFF); transition: width 0.1s linear; border-radius: 0 2px 2px 0; }

/* ─── Breadcrumbs ─── */
.cgb-breadcrumbs { padding: 14px 0; font-size: 13px; color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
.cgb-breadcrumbs a { color: #64748b; text-decoration: none; }
.cgb-breadcrumbs a:hover { color: #FF6B35; }
.cgb-breadcrumb-sep { margin: 0 8px; color: #cbd5e1; }
.cgb-breadcrumbs span:last-child { color: #1B2D4F; font-weight: 600; }

/* ─── Blog Hero ─── */
.cgb-hero { background: linear-gradient(135deg, #1B2D4F 0%, #0f1b33 100%); color: #fff; padding: 56px 0 48px; }
.cgb-hero-inner { max-width: 680px; }
.cgb-hero h1 { font-size: 2.5rem; font-weight: 800; margin: 0 0 10px; line-height: 1.15; }
.cgb-hero p { font-size: 1.05rem; color: #94a3b8; margin: 0 0 28px; line-height: 1.6; }
.cgb-hero-search { display: flex; gap: 0; max-width: 480px; }
.cgb-hero-search input {
    flex: 1; padding: 12px 16px; border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px 0 0 10px; background: rgba(255,255,255,0.08);
    color: #fff; font-size: 15px; outline: none; transition: border-color 0.2s;
}
.cgb-hero-search input::placeholder { color: rgba(255,255,255,0.45); }
.cgb-hero-search input:focus { border-color: #FF6B35; }
.cgb-hero-search button {
    padding: 12px 22px; background: #FF6B35; color: #fff; border: none;
    border-radius: 0 10px 10px 0; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.cgb-hero-search button:hover { background: #e55a24; }

/* ─── Category Hero (for category archive) ─── */
.cgb-cat-hero { background: linear-gradient(135deg, #1B2D4F 0%, #162544 100%); color: #fff; padding: 48px 0 40px; }
.cgb-cat-hero h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.cgb-cat-hero .cgb-cat-hero-desc { color: #94a3b8; font-size: 1rem; margin: 0 0 6px; max-width: 600px; line-height: 1.6; }
.cgb-cat-hero .cgb-cat-hero-count { color: #64748b; font-size: 13px; }

/* ─── Category Filter Bar ─── */
.cgb-category-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.cgb-category-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.cgb-category-pills::-webkit-scrollbar { display: none; }
.cgb-pill {
    display: inline-block; padding: 7px 16px; border-radius: 20px; font-size: 13px;
    font-weight: 600; color: #475569; background: #f1f5f9; text-decoration: none;
    white-space: nowrap; transition: all 0.2s; border: 1px solid transparent;
}
.cgb-pill:hover { background: #e2e8f0; color: #1B2D4F; }
.cgb-pill-active { background: #FF6B35; color: #fff !important; border-color: #FF6B35; }
.cgb-pill-active:hover { background: #e55a24; }

/* ─── Featured Post Card ─── */
.cgb-featured-section { padding: 32px 0 0; }
.cgb-card-featured {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: box-shadow 0.3s, transform 0.3s;
}
.cgb-card-featured:hover { box-shadow: 0 12px 40px rgba(27,45,79,0.12); transform: translateY(-2px); }
.cgb-card-featured .cgb-card-img { height: 100%; min-height: 280px; }
.cgb-card-featured .cgb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cgb-card-featured .cgb-card-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.cgb-card-featured .cgb-card-title { font-size: 1.5rem; line-height: 1.3; margin-bottom: 12px; }
.cgb-card-featured .cgb-card-excerpt { font-size: 15px; margin-bottom: 16px; }
.cgb-card-featured .cgb-card-link { display: contents; text-decoration: none; color: inherit; }

/* ─── Post Grid & Cards ─── */
.cgb-main { padding: 32px 0 64px; }
.cgb-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cgb-posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.cgb-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: box-shadow 0.3s, transform 0.3s;
}
.cgb-card:hover { box-shadow: 0 8px 30px rgba(27,45,79,0.1); transform: translateY(-3px); }
.cgb-card-link { display: block; text-decoration: none; color: inherit; }
.cgb-card-img { height: 180px; overflow: hidden; background: #f1f5f9; }
.cgb-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cgb-card:hover .cgb-card-img img { transform: scale(1.05); }
.cgb-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; min-height: 180px;
}
.cgb-placeholder-cat {
    font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 1.5px;
}
.cgb-card-featured .cgb-card-placeholder { min-height: 280px; }
.cgb-card-no-img.cgb-card-featured { grid-template-columns: 2fr 3fr; }
.cgb-card-body { padding: 18px 20px 20px; }
.cgb-card-cat {
    display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px;
    font-weight: 700; color: #FF6B35; background: #fff7ed; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.cgb-card-title { font-size: 1.05rem; font-weight: 700; color: #1B2D4F; line-height: 1.4; margin: 0 0 8px; }
.cgb-card:hover .cgb-card-title { color: #FF6B35; }
.cgb-card-excerpt { font-size: 13.5px; color: #64748b; line-height: 1.6; margin: 0 0 12px; }
.cgb-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }
.cgb-dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }

/* ─── Sidebar ─── */
.cgb-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 24px; }
.cgb-widget {
    background: #fff; border-radius: 14px; padding: 22px;
    border: 1px solid #e2e8f0;
}
.cgb-widget-title {
    font-size: 15px; font-weight: 700; color: #1B2D4F; margin: 0 0 16px;
    padding-bottom: 12px; border-bottom: 2px solid #f1f5f9;
}

/* Search Widget */
.cgb-widget-search { padding: 0; border: none; background: none; }
.cgb-search-wrap {
    display: flex; border: 2px solid #e2e8f0; border-radius: 10px;
    overflow: hidden; transition: border-color 0.2s;
}
.cgb-search-wrap:focus-within { border-color: #FF6B35; }
.cgb-search-wrap input {
    flex: 1; padding: 10px 14px; border: none; outline: none;
    font-size: 14px; background: #fff;
}
.cgb-search-wrap button {
    padding: 10px 14px; background: none; border: none; cursor: pointer;
    color: #94a3b8; transition: color 0.2s;
}
.cgb-search-wrap button:hover { color: #FF6B35; }

/* Popular Posts */
.cgb-popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cgb-popular-list li { display: flex; align-items: flex-start; gap: 12px; }
.cgb-popular-num {
    font-size: 22px; font-weight: 800; color: #e2e8f0; line-height: 1;
    min-width: 28px; flex-shrink: 0;
}
.cgb-popular-list a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.cgb-popular-title { font-size: 13.5px; font-weight: 600; color: #1B2D4F; line-height: 1.4; }
.cgb-popular-list a:hover .cgb-popular-title { color: #FF6B35; }
.cgb-popular-meta { font-size: 12px; color: #94a3b8; }

/* CTA Widget */
.cgb-widget-cta {
    background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
    border-color: #bfdbfe; text-align: center; position: relative; overflow: hidden;
}
.cgb-cta-badge {
    display: inline-block; padding: 3px 14px; border-radius: 12px;
    font-size: 11px; font-weight: 800; color: #fff; background: #22c55e;
    letter-spacing: 1px; margin-bottom: 10px;
}
.cgb-cta-badge-pop { background: #FF6B35; }
.cgb-cta-title { font-size: 1.15rem; font-weight: 800; color: #1B2D4F; margin: 0 0 8px; }
.cgb-cta-desc { font-size: 13px; color: #475569; line-height: 1.6; margin: 0 0 14px; }
.cgb-cta-price { margin-bottom: 14px; }
.cgb-cta-price-now { font-size: 15px; font-weight: 700; color: #1B2D4F; }
.cgb-cta-btn {
    display: inline-block; padding: 10px 28px; border-radius: 8px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    background: #385DFF; color: #fff; transition: background 0.2s;
}
.cgb-cta-btn:hover { background: #2a4cd9; color: #fff; }
.cgb-cta-btn-paid { background: #FF6B35; }

/* Internal Links Widget */
.cgb-links-list { list-style: none; margin: 0; padding: 0; }
.cgb-links-list li { border-bottom: 1px solid #f1f5f9; }
.cgb-links-list li:last-child { border-bottom: none; }
.cgb-links-list a {
    display: block; padding: 9px 0; text-decoration: none; color: #385DFF;
    font-size: 14px; font-weight: 600; transition: color 0.2s;
}
.cgb-links-list a:hover { color: #FF6B35; }
.cgb-links-list a::before { content: '\2192'; margin-right: 8px; color: #94a3b8; }
.cgb-cta-btn-paid:hover { background: #e55a24; }
.cgb-widget-cta-paid { background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%); border-color: #fcd34d; }

/* WhatsApp Widget */
.cgb-widget-wa { background: #f0fdf4; border-color: #86efac; }
.cgb-wa-desc { font-size: 13px; color: #475569; margin: 0 0 12px; line-height: 1.5; }
.cgb-wa-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
    background: #25d366; color: #fff; transition: background 0.2s;
}
.cgb-wa-btn:hover { background: #1fba59; color: #fff; }

/* Categories Widget */
.cgb-cat-list { list-style: none; margin: 0; padding: 0; }
.cgb-cat-list li { border-bottom: 1px solid #f1f5f9; }
.cgb-cat-list li:last-child { border-bottom: none; }
.cgb-cat-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; text-decoration: none; color: #334155;
    font-size: 14px; transition: color 0.2s;
}
.cgb-cat-list a:hover { color: #FF6B35; }
.cgb-cat-count {
    font-size: 12px; color: #94a3b8; background: #f1f5f9;
    padding: 2px 8px; border-radius: 10px; font-weight: 600;
}

/* ─── Pagination ─── */
.cgb-pagination, .navigation.pagination { margin-top: 40px; text-align: center; }
.cgb-pagination .nav-links,
.navigation.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.cgb-pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    color: #475569; background: #f1f5f9; transition: all 0.2s;
}
.cgb-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover { background: #e2e8f0; color: #1B2D4F; }
.cgb-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current { background: #FF6B35; color: #fff; }

/* ══════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════ */

/* ─── Post Header ─── */
.cgb-post-header { padding: 40px 0 32px; }
.cgb-post-cat-badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; color: #FF6B35; background: #fff7ed;
    text-decoration: none; margin-bottom: 14px; text-transform: uppercase;
    letter-spacing: 0.5px; transition: all 0.2s;
}
.cgb-post-cat-badge:hover { background: #FF6B35; color: #fff; }
.cgb-post-title { font-size: 2.25rem; font-weight: 800; color: #1B2D4F; line-height: 1.25; margin: 0 0 16px; }
.cgb-post-meta-bar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    font-size: 14px; color: #64748b;
}
.cgb-post-meta-bar a { color: #64748b; text-decoration: none; }
.cgb-post-meta-bar a:hover { color: #FF6B35; }
.cgb-post-author-wrap { display: flex; align-items: center; gap: 8px; }
.cgb-post-author-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cgb-post-meta-sep { color: #cbd5e1; }

/* Featured Image */
.cgb-post-featured { margin: 0 0 32px; border-radius: 16px; overflow: hidden; max-height: 480px; }
.cgb-post-featured img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Single Layout ─── */
.cgb-single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.cgb-single-content { min-width: 0; }

/* ─── Entry Content ─── */
.cgb-entry-content { font-size: 17px; line-height: 1.8; color: #1e293b; }
.cgb-entry-content h2 {
    font-size: 1.5rem; font-weight: 800; color: #1B2D4F; margin: 40px 0 16px;
    padding-top: 16px; border-top: 1px solid #f1f5f9;
}
.cgb-entry-content h3 { font-size: 1.2rem; font-weight: 700; color: #1B2D4F; margin: 32px 0 12px; }
.cgb-entry-content p { margin: 0 0 18px; }
.cgb-entry-content ul, .cgb-entry-content ol { margin: 0 0 18px; padding-left: 24px; }
.cgb-entry-content li { margin-bottom: 6px; }
.cgb-entry-content blockquote {
    border-left: 4px solid #FF6B35; background: #fffbeb; padding: 16px 20px;
    margin: 24px 0; border-radius: 0 8px 8px 0; font-style: italic; color: #475569;
}
.cgb-entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.cgb-entry-content a { color: #385DFF; text-decoration: underline; text-underline-offset: 2px; }
.cgb-entry-content a:hover { color: #FF6B35; }

/* ─── Inline CTA ─── */
.cgb-inline-cta {
    margin: 28px 0; padding: 18px 22px; border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
}
.cgb-inline-cta-inner { font-size: 14.5px; color: #334155; line-height: 1.6; }
.cgb-inline-cta a {
    display: inline-block; margin-top: 6px; color: #385DFF;
    font-weight: 700; text-decoration: none;
}
.cgb-inline-cta a:hover { color: #FF6B35; }

/* ─── TOC Widget (Sidebar) ─── */
.cgb-toc-widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.cgb-toc-title {
    font-size: 14px; font-weight: 700; color: #1B2D4F; margin: 0 0 14px;
    padding-bottom: 10px; border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.cgb-toc-list { list-style: none; margin: 0; padding: 0; }
.cgb-toc-list li { margin-bottom: 2px; }
.cgb-toc-list a {
    display: block; padding: 6px 12px; border-radius: 6px; font-size: 13px;
    color: #475569; text-decoration: none; line-height: 1.4;
    border-left: 2px solid transparent; transition: all 0.2s;
}
.cgb-toc-list a:hover { color: #FF6B35; background: #fef7f0; }
.cgb-toc-list a.cgb-toc-active {
    color: #FF6B35; background: #fff7ed; border-left-color: #FF6B35; font-weight: 600;
}
.cgb-toc-list .cgb-toc-h3 { padding-left: 24px; font-size: 12.5px; }

/* ─── Single Sidebar ─── */
.cgb-single-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 24px; }

/* ─── Tags ─── */
.cgb-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cgb-tags-label { font-size: 13px; font-weight: 600; color: #64748b; margin-right: 4px; }
.cgb-tag {
    display: inline-block; padding: 4px 12px; border-radius: 6px;
    font-size: 12px; color: #475569; background: #f1f5f9;
    text-decoration: none; transition: all 0.2s;
}
.cgb-tag:hover { background: #FF6B35; color: #fff; }

/* ─── Share Buttons ─── */
.cgb-share { margin: 28px 0; padding: 20px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.cgb-share-label { font-size: 14px; font-weight: 600; color: #475569; margin-bottom: 12px; display: block; }
.cgb-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cgb-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; text-decoration: none;
    cursor: pointer; transition: all 0.2s;
}
.cgb-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.cgb-share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.cgb-share-tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.cgb-share-tw:hover { background: #1d9bf0; color: #fff; border-color: #1d9bf0; }
.cgb-share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.cgb-share-copy:hover { background: #475569; color: #fff; border-color: #475569; }
.cgb-share-copy.cgb-copied { background: #22c55e; color: #fff; border-color: #22c55e; }

/* ─── Author Box ─── */
.cgb-author-box {
    display: flex; gap: 16px; padding: 24px; background: #f8fafc;
    border-radius: 14px; margin: 32px 0;
}
.cgb-author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cgb-author-info { flex: 1; }
.cgb-author-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.cgb-author-name {
    display: block; font-size: 1.1rem; font-weight: 700; color: #1B2D4F;
    text-decoration: none; margin: 2px 0 6px;
}
.cgb-author-name:hover { color: #FF6B35; }
.cgb-author-bio { font-size: 13.5px; color: #64748b; line-height: 1.5; margin: 0; }

/* ─── Related Posts ─── */
.cgb-related { padding: 48px 0; background: #f8fafc; }
.cgb-related-title {
    font-size: 1.5rem; font-weight: 800; color: #1B2D4F; margin: 0 0 24px;
    text-align: center;
}
.cgb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ─── End CTA ─── */
.cgb-end-cta { padding: 56px 0; background: linear-gradient(135deg, #1B2D4F 0%, #0f1b33 100%); color: #fff; }
.cgb-end-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.cgb-end-cta-text h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 12px; }
.cgb-end-cta-text p { color: #94a3b8; font-size: 15px; line-height: 1.6; margin: 0 0 24px; max-width: 560px; }
.cgb-end-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cgb-btn {
    display: inline-block; padding: 12px 28px; border-radius: 10px;
    font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.2s;
}
.cgb-btn-primary { background: #FF6B35; color: #fff; }
.cgb-btn-primary:hover { background: #e55a24; color: #fff; }
.cgb-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.cgb-btn-outline:hover { border-color: #fff; color: #fff; }
.cgb-end-cta-stats { display: flex; gap: 32px; }
.cgb-stat { text-align: center; }
.cgb-stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: #FF6B35; }
.cgb-stat-label { font-size: 12px; color: #94a3b8; white-space: nowrap; }

/* ─── Read Next Bar ─── */
.cgb-read-next {
    position: fixed; bottom: -80px; left: 0; right: 0; z-index: 999;
    background: #1B2D4F; color: #fff; padding: 14px 0;
    transition: bottom 0.4s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cgb-read-next.cgb-visible { bottom: 0; }
.cgb-read-next-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cgb-read-next-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.cgb-read-next-title { font-size: 14px; font-weight: 600; }
.cgb-read-next-title a { color: #fff; text-decoration: none; }
.cgb-read-next-title a:hover { color: #FF6B35; }
.cgb-read-next-close {
    background: none; border: none; color: #94a3b8; cursor: pointer;
    padding: 4px; font-size: 20px; line-height: 1;
}

/* ─── Back to Top ─── */
.cgb-back-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 998;
    width: 44px; height: 44px; border-radius: 50%;
    background: #FF6B35; color: #fff; border: none; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(255,107,53,0.3); transition: all 0.3s;
}
.cgb-back-top.cgb-visible { display: flex; }
.cgb-back-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }

/* ─── No Results ─── */
.cgb-no-results { text-align: center; padding: 64px 20px; }
.cgb-no-results h2 { font-size: 1.5rem; color: #1B2D4F; margin: 0 0 8px; }
.cgb-no-results p { color: #64748b; font-size: 15px; }

/* ─── Mobile TOC (Collapsible) ─── */
.cgb-toc-mobile { display: none; margin: 0 0 24px; }
.cgb-toc-mobile-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; font-size: 14px; font-weight: 600; color: #1B2D4F;
    cursor: pointer;
}
.cgb-toc-mobile-toggle svg { transition: transform 0.3s; }
.cgb-toc-mobile-toggle.cgb-open svg { transform: rotate(180deg); }
.cgb-toc-mobile-body {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    background: #f8fafc; border: 1px solid #e2e8f0; border-top: none;
    border-radius: 0 0 10px 10px;
}
.cgb-toc-mobile-body.cgb-open { max-height: 500px; }
.cgb-toc-mobile-body .cgb-toc-list { padding: 12px 16px; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
    .cgb-layout { grid-template-columns: 1fr 280px; gap: 28px; }
    .cgb-single-layout { grid-template-columns: 1fr 260px; gap: 32px; }
}

@media (max-width: 768px) {
    .cgb-hero h1 { font-size: 1.75rem; }
    .cgb-hero { padding: 36px 0 32px; }
    .cgb-hero p { font-size: 0.95rem; }

    .cgb-layout { grid-template-columns: 1fr; }
    .cgb-posts-grid { grid-template-columns: 1fr; }

    .cgb-card-featured { grid-template-columns: 1fr; }
    .cgb-card-featured .cgb-card-img { min-height: 200px; }
    .cgb-card-featured .cgb-card-body { padding: 20px; }
    .cgb-card-featured .cgb-card-title { font-size: 1.2rem; }

    .cgb-sidebar { position: static; }

    /* Single Post */
    .cgb-single-layout { grid-template-columns: 1fr; }
    .cgb-single-sidebar { display: none; }
    .cgb-toc-mobile { display: block; }
    .cgb-post-title { font-size: 1.6rem; }
    .cgb-entry-content { font-size: 16px; }

    .cgb-related-grid { grid-template-columns: 1fr; }

    .cgb-end-cta-inner { grid-template-columns: 1fr; text-align: center; }
    .cgb-end-cta-stats { justify-content: center; }
    .cgb-end-cta-btns { justify-content: center; }

    .cgb-read-next-inner { flex-direction: column; text-align: center; gap: 8px; }

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

    .cgb-back-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }

    .cgb-cat-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .cgb-container { padding: 0 16px; }
    .cgb-hero-search { flex-direction: column; gap: 8px; }
    .cgb-hero-search input { border-radius: 10px; }
    .cgb-hero-search button { border-radius: 10px; }
    .cgb-card-body { padding: 14px 16px 16px; }
    .cgb-post-meta-bar { font-size: 13px; }
}


/* ─── Previous / Next Post Navigation ─── */
.cgb-post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 32px 0 0; padding-top: 28px; border-top: 1px solid #e2e8f0;
}
.cgb-post-nav-item {
    display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    text-decoration: none; transition: all 0.25s;
}
.cgb-post-nav-item:hover {
    background: #fff; border-color: #FF6B35; box-shadow: 0 4px 16px rgba(255,107,53,0.1);
    transform: translateY(-2px);
}
.cgb-post-nav-empty { visibility: hidden; }
.cgb-post-nav-dir {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; color: #FF6B35;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.cgb-post-nav-next { text-align: right; }
.cgb-post-nav-next .cgb-post-nav-dir { justify-content: flex-end; }
.cgb-post-nav-title {
    font-size: 14px; font-weight: 600; color: #1B2D4F; line-height: 1.45;
}
.cgb-post-nav-item:hover .cgb-post-nav-title { color: #FF6B35; }

@media (max-width: 768px) {
    .cgb-post-nav { grid-template-columns: 1fr; gap: 12px; }
    .cgb-post-nav-next { text-align: left; }
    .cgb-post-nav-next .cgb-post-nav-dir { justify-content: flex-start; }
    .cgb-post-nav-empty { display: none; }
}


/* ─── Hero Heading Visibility Fix ─── */
.cgb-hero h1 { color: #ffffff !important; opacity: 1 !important; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.cgb-hero p { color: #cbd5e1 !important; opacity: 1 !important; }
.cgb-hero .cgb-hero-inner { position: relative; z-index: 2; }
