.dc-cb {
    --cb-accent: #17468A;
    --cb-accent-light: rgba(23, 70, 138, 0.08);
    --cb-text: #4a5568;
    --cb-heading: #0f172a;
    --cb-bg: #ffffff;
    --cb-toc-bg: #f8fafc;
    --cb-toc-border: #e2e8f0;
    --cb-toc-link: #64748b;
    --cb-radius: 16px;
}

.dc-cb {
    background-color: var(--cb-bg);
    padding: 80px 20px;
    position: relative;
}

.dc-cb__wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.dc-cb--toc-left .dc-cb__wrap {
    flex-direction: row;
}

.dc-cb--toc-right .dc-cb__wrap {
    flex-direction: row-reverse;
}

.dc-cb__toc {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.dc-cb__toc-card {
    background: var(--cb-toc-bg);
    border: 1px solid var(--cb-toc-border);
    border-radius: var(--cb-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.dc-cb__toc-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dc-cb__toc-progress {
    height: 3px;
    background: var(--cb-toc-border);
    position: relative;
}

.dc-cb__toc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cb-accent), #2a7bd8);
    border-radius: 0 3px 3px 0;
    transition: width 0.25s ease-out;
}

.dc-cb__toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 0;
    margin-bottom: 16px;
}

.dc-cb__toc-icon {
    width: 18px;
    height: 18px;
    color: var(--cb-accent);
    flex-shrink: 0;
}

.dc-cb__toc-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-accent);
    margin: 0;
}

.dc-cb__toc-nav {
    padding: 0 16px 20px;
}

.dc-cb__toc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dc-cb__toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--cb-toc-link);
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.dc-cb__toc-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cb-toc-border);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.dc-cb__toc-link:hover {
    background: var(--cb-accent-light);
    color: var(--cb-accent);
}

.dc-cb__toc-link:hover::before {
    background: var(--cb-accent);
    transform: scale(1.3);
}

.dc-cb__toc-link--sub {
    padding-left: 28px;
    font-size: 13px;
}

.dc-cb__toc-link--sub::before {
    width: 4px;
    height: 4px;
}

.dc-cb__toc-link--active {
    color: var(--cb-accent);
    font-weight: 600;
    background: var(--cb-accent-light);
}

.dc-cb__toc-link--active::before {
    background: var(--cb-accent);
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(23, 70, 138, 0.15);
}

.dc-cb__article {
    flex: 1;
    min-width: 0;
    color: var(--cb-text);
    font-size: 17px;
    line-height: 1.85;
}

.dc-cb__article h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--cb-heading);
    margin: 2.5em 0 0.8em;
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 16px;
}

.dc-cb__article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cb-accent), #2a7bd8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.dc-cb__article h2:hover::after {
    width: 100px;
}

.dc-cb__article h2:first-child {
    margin-top: 0;
}

.dc-cb__article h3 {
    font-size: clamp(19px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--cb-heading);
    margin: 2em 0 0.6em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-cb__article h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cb-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.dc-cb__article h4 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    color: var(--cb-heading);
    margin: 1.5em 0 0.5em;
    line-height: 1.4;
}

.dc-cb__article p {
    margin: 0 0 1.4em;
    line-height: 1.85;
}

.dc-cb__article p:last-child {
    margin-bottom: 0;
}

.dc-cb__article h2:first-child + p::first-letter {
    float: left;
    font-size: 3.2em;
    font-weight: 800;
    line-height: 0.85;
    margin-right: 10px;
    margin-top: 6px;
    color: var(--cb-accent);
}

.dc-cb__article a {
    color: var(--cb-accent);
    text-decoration: none;
    background-image: linear-gradient(var(--cb-accent), var(--cb-accent));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
    padding-bottom: 1px;
}

.dc-cb__article a:hover {
    background-size: 100% 2px;
}

.dc-cb__article ul,
.dc-cb__article ol {
    margin: 0 0 1.6em;
    padding: 0;
    list-style: none;
}

.dc-cb__article ul li,
.dc-cb__article ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.dc-cb__article ul li:last-child,
.dc-cb__article ol li:last-child {
    margin-bottom: 0;
}

.dc-cb__article ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--cb-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-cb__article ul li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 12px;
    width: 5px;
    height: 8px;
    border: solid var(--cb-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dc-cb__article ol {
    counter-reset: ol-counter;
}

.dc-cb__article ol li {
    counter-increment: ol-counter;
}

.dc-cb__article ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    background: var(--cb-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dc-cb__article ol li::after {
    display: none;
}

.dc-cb__article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.dc-cb__article figure {
    margin: 2em 0;
}

.dc-cb__article figure img {
    margin: 0;
}

.dc-cb__article figcaption {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.dc-cb__article blockquote {
    margin: 2em 0;
    padding: 28px 32px 28px 28px;
    background: linear-gradient(135deg, var(--cb-accent-light), rgba(42, 123, 216, 0.04));
    border-left: 4px solid var(--cb-accent);
    border-radius: 0 12px 12px 0;
    position: relative;
    font-size: 16px;
    font-style: italic;
    color: #475569;
}

.dc-cb__article blockquote::before {
    content: '\201C';
    font-size: 64px;
    font-family: Georgia, serif;
    color: var(--cb-accent);
    opacity: 0.2;
    position: absolute;
    top: -8px;
    left: 20px;
    line-height: 1;
}

.dc-cb__article blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.dc-cb__article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--cb-toc-border);
}

.dc-cb__article th {
    background: var(--cb-accent);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 20px;
    font-size: 14px;
}

.dc-cb__article td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--cb-toc-border);
    font-size: 15px;
}

.dc-cb__article tr:last-child td {
    border-bottom: none;
}

.dc-cb__article tr:nth-child(even) td {
    background: var(--cb-toc-bg);
}

.dc-cb__article hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cb-toc-border), transparent);
    margin: 3em 0;
}

.dc-cb__toc-fab {
    display: none; 
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cb-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(23, 70, 138, 0.35);
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dc-cb__toc-fab svg {
    width: 22px;
    height: 22px;
}

.dc-cb__toc-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(23, 70, 138, 0.45);
}

.dc-cb__toc-fab--hidden {
    transform: translateY(100px);
    pointer-events: none;
}

.dc-cb__toc-mobile-sheet {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    padding: 0 24px 32px;
}

.dc-cb__toc-mobile-sheet--open {
    transform: translateY(0);
}

.dc-cb__toc-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--cb-toc-border);
    position: sticky;
    top: 0;
    background: #fff;
}

.dc-cb__toc-mobile-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--cb-heading);
    margin: 0;
}

.dc-cb__toc-mobile-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.dc-cb__toc-mobile-close svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.dc-cb__toc-mobile-close:hover {
    background: #e2e8f0;
}

.dc-cb__toc-mobile-nav {
    padding-top: 16px;
}

.dc-cb__toc-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dc-cb__toc-mobile-nav .dc-cb__toc-link {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
}

.dc-cb__toc-mobile-nav .dc-cb__toc-link--sub {
    padding-left: 36px;
    font-size: 14px;
}

.dc-cb__toc-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dc-cb__toc-mobile-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
}

.dc-cb__toc,
.dc-cb__article {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.dc-cb--visible .dc-cb__article {
    opacity: 1;
    transform: translateY(0);
}

.dc-cb--visible .dc-cb__toc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.dc-cb__article h2 {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dc-cb__article h2.dc-cb__heading--visible {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 16px;
}

@media (max-width: 1024px) {
    .dc-cb__toc {
        display: none;
    }

    .dc-cb__toc-fab {
        display: flex;
    }

    .dc-cb__toc-mobile-sheet {
        display: block;
    }

    .dc-cb__toc-mobile-backdrop {
        display: block;
    }

    .dc-cb__wrap {
        flex-direction: column !important;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .dc-cb {
        padding: 48px 16px;
    }

    .dc-cb__article {
        font-size: 16px;
    }

    .dc-cb__article h2 {
        margin-top: 2em;
    }

    .dc-cb__article h2::after {
        width: 48px;
    }

    .dc-cb__article h3::before {
        width: 6px;
        height: 6px;
    }

    .dc-cb__article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dc-cb__article blockquote {
        padding: 20px 20px 20px 20px;
        margin: 1.5em 0;
    }

    .dc-cb__article blockquote::before {
        font-size: 48px;
        top: -4px;
        left: 12px;
    }

    .dc-cb__article img {
        border-radius: 8px;
        margin: 1.5em 0;
    }

    .dc-cb__article h2:first-child + p::first-letter {
        font-size: 2.6em;
    }

    .dc-cb__toc-fab {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .dc-cb__toc-fab svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .dc-cb {
        padding: 32px 14px;
    }

    .dc-cb__article {
        font-size: 15px;
    }

    .dc-cb__article ul li,
    .dc-cb__article ol li {
        padding-left: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dc-cb__toc,
    .dc-cb__article,
    .dc-cb__article h2 {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dc-cb__article h2::after {
        transition: none;
    }

    .dc-cb__article a {
        transition: none;
    }

    .dc-cb__toc-progress-fill {
        transition: none;
    }

    .dc-cb__toc-link,
    .dc-cb__toc-link::before {
        transition: none;
    }

    .dc-cb__toc-mobile-sheet {
        transition: none;
    }

    .dc-cb__toc-fab {
        transition: none;
    }
}

.elementor-editor-active .dc-cb__toc,
.elementor-editor-active .dc-cb__article,
.elementor-editor-active .dc-cb__article h2 {
    opacity: 1;
    transform: none;
}

.elementor-editor-active .dc-cb__toc-fab,
.elementor-editor-active .dc-cb__toc-mobile-sheet,
.elementor-editor-active .dc-cb__toc-mobile-backdrop {
    display: none !important;
}
