/* Table of Contents Styles */
.cdt-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
}

.cdt-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cdt-toc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cdt-toc-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: transform 0.3s;
}

.cdt-toc-toggle:hover {
    color: #007bff;
}

.cdt-toc.collapsed .cdt-toc-toggle {
    transform: rotate(180deg);
}

.cdt-toc.collapsed .cdt-toc-list {
    display: none;
}

.cdt-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.cdt-toc-list li {
    margin: 8px 0;
}

.cdt-toc-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s, font-weight 0.2s;
    display: flex;
    align-items: flex-start;
}

.cdt-toc-list a:hover,
.cdt-toc-list a.active {
    color: #007bff;
    font-weight: 600;
}

.cdt-toc-list a.active .toc-number {
    color: #007bff;
}

.toc-number {
    font-weight: 600;
    margin-right: 5px;
    flex-shrink: 0;
}

/* Desktop TOC - Hidden on mobile, sticky on desktop */
.cdt-toc-desktop {
    display: none;
}

@media (min-width: 769px) {
    .cdt-toc-desktop {
        display: block;
    }
    
    .cdt-toc-desktop .cdt-toc {
        max-width: 300px;
    }
}

/* Mobile TOC - Only visible on mobile */
.cdt-toc-mobile {
    display: block;
    width: 100% !important;
}

.cdt-toc-mobile .cdt-toc {
    width: 100% !important;
    max-width: 100% !important;
}

#brxe-kqbxhb {
    width: 100% !important;
}

@media (min-width: 769px) {
    .cdt-toc-mobile {
        display: none;
    }
}

/* Author Header Styles */
.cdt-author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.cdt-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.cdt-author-info {
    display: flex;
    flex-direction: column;
}

.cdt-author-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cdt-author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.cdt-author-name:hover {
    color: #007bff;
}

/* Author Card Styles */
.cdt-author-card {
    display: flex;
    gap: 20px;
    background: #e5e8eb;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    max-width: 850px;
}

.cdt-author-card-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cdt-author-card-content {
    flex: 1;
}

.cdt-author-label {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.cdt-author-card-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cdt-author-card-name a {
    color: #333;
    text-decoration: none;
}

.cdt-author-card-name a:hover {
    color: #007bff;
}

.cdt-author-linkedin-icon {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.cdt-author-linkedin-icon:hover {
    opacity: 0.8;
}

.cdt-author-linkedin-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    vertical-align: middle;
}

.cdt-author-card-bio {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.cdt-author-job-title {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.cdt-author-linkedin {
    display: none;
}

.cdt-view-bio-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.cdt-view-bio-btn:hover {
    background: #5a6268;
}

.cdt-author-full-bio {
    color: #555;
    line-height: 1.6;
    padding: 15px 0;
}

/* Post Meta Styles */
.cdt-post-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cdt-post-date,
.cdt-post-author {
    display: inline;
}

.cdt-post-author a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.cdt-post-author a:hover {
    color: #007bff;
}

.cdt-meta-separator {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .cdt-toc {
        max-width: 100% !important;
        width: 100% !important;
        margin: 5px 0;
    }
    
    .cdt-toc-list {
        font-size: 12px;
    }
    
    .cdt-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cdt-author-card-name {
        justify-content: center;
        gap: 0;
    }
    
    .cdt-author-card-name a {
        padding-left: 7%;
        padding-right: 7%;
    }
}
