.cbb-container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.cbb-single-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cbb-main-content {
    flex: 1 1 auto;
    min-width: 0;
}

.cbb-sidebar {
    width: 300px;
    flex: 0 0 300px;
}

.cbb-sidebar-box {
    background: #f7f7f7;
    border: 1px solid #ececec;
    padding: 24px;
    border-radius: 10px;
    position: sticky;
    top: 30px;
}

.cbb-layout-full .cbb-sidebar {
    display: none;
}

.cbb-single-header {
    margin-bottom: 30px;
}

.cbb-title {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.2;
}

.cbb-subtitle {
    margin: 0 0 16px;
    font-size: 20px;
    color: #666;
}

.cbb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.cbb-featured-image {
    margin: 25px 0 35px;
}

.cbb-featured-image img,
.cbb-section-image img,
.cbb-text-image-media img,
.cbb-gallery-grid img,
.cbb-card-thumb img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.cbb-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.cbb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-section {
    margin-bottom: 34px;
}

.cbb-section p {
    line-height: 1.8;
    margin: 0 0 16px;
}

.cbb-image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.cbb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cbb-gallery-grid > div {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f2f2;
}

.cbb-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cbb-text-image-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

.cbb-text-image-media,
.cbb-text-image-content {
    flex: 1 1 420px;
}

.cbb-quote {
    padding: 24px;
    border-left: 4px solid #222;
    background: #f7f7f7;
}

.cbb-quote blockquote {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.6;
}

.cbb-quote-author {
    font-weight: 600;
}

.cbb-cta {
    padding: 32px 24px;
    text-align: center;
    background: #f2f2f2;
    border-radius: 8px;
}

.cbb-button {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s ease;
}

.cbb-button:hover {
    opacity: 0.9;
    color: #fff;
}

.cbb-video iframe {
    width: 100%;
    min-height: 420px;
}

.cbb-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cbb-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.cbb-card-content {
    padding: 20px;
}

.cbb-card-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.cbb-card-title a {
    text-decoration: none;
    color: inherit;
}

.cbb-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.cbb-read-more {
    font-weight: 600;
    text-decoration: none;
}

.cbb-pagination {
    margin-top: 30px;
}

.cbb-filter-form {
    margin-top: 16px;
}

.cbb-filter-form select {
    min-width: 220px;
    padding: 10px 12px;
}

.cbb-related-posts {
    margin-top: 60px;
}

.cbb-related-title {
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .cbb-single-wrap {
        flex-direction: column;
    }

    .cbb-sidebar {
        width: 100%;
        flex: 1 1 auto;
    }

    .cbb-gallery-grid,
    .cbb-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cbb-title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .cbb-gallery-grid,
    .cbb-archive-grid {
        grid-template-columns: 1fr;
    }

    .cbb-title {
        font-size: 28px;
    }

    .cbb-video iframe {
        min-height: 240px;
    }
}