/* ==========================
   GLOBAL STYLES
========================== */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

.more-link {
    display: block;
}

.post .entry-title a {
    text-decoration: none;
    color: black;
}

a:where(:not(.wp-element-button)) {
    text-decoration: none;
}

/* ==========================
   CONTAINER STRUCTURE
========================== */
.cbt-blog-section {
    width: 100%;
    background-color: #fffefc;
}

.cbt-featured-image-full img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 480px;
    border-radius: 0 90px;
}

/* ==========================
   MAIN LAYOUT
========================== */
.cbt-main-layout {
    display: flex !important;
    flex-direction: row;
    gap: 40px;
    max-width: 85% !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    margin: 100px auto !important;
}

/* ==========================
   SIDEBAR
========================== */
.cbt-sidebar-left {
    width: 350px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    display: block !important;
    /* not flex-restricted */
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    flex-direction: column;
    gap: 32px;
}

/* Sidebar widgets */
.cbt-widget {
    background: #eff5f9;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: auto !important;
    min-height: auto !important;
}

.cbt-widget:hover {
    transform: translateY(-2px);
}

/* Widget Titles */
.cbt-widget-title,
.cbt-widget-title-dark {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
    padding-left: 20px;
}

.cbt-widget-title {
    color: #333;
}

.cbt-widget-title-dark {
    color: #fff;
}

/* Categories Widget */
.cbt-widget-categories {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cbt-category-menu {
    display: flex;
    flex-direction: column;
}

.cbt-category-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cbt-category-item:hover,
.cbt-category-item.active {
    background-color: #337ab7;
    color: #fff;
}

.cbt-category-icon {
    margin-right: 10px;
    font-size: 16px;
}

.cbt-category-name {
    flex-grow: 1;
}

/* Tag Cloud */
.cbt-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cbt-tag-cloud a {
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cbt-tag-cloud a:hover {
    background: #ff7c5b;
    color: #fff;
    border-color: #ff7c5b;
}

/* Recent Posts */
.cbt-recent-posts-carousel {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0px;
}

.cbt-recent-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: background 0.2s ease;
}

.cbt-recent-post-item:hover {
    background: #f5faff;
}

.cbt-recent-post-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.cbt-recent-post-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    margin-left: 20px;
}

.cbt-recent-post-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* ==========================
   CONTENT AREA
========================== */
.cbt-content-area {
    flex: 1;
    min-width: 0;
}

.cbt-post-content {
    padding: 30px 50px;
}

.cbt-colored-box {
    background-color: #eff5f9;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Post Header */
.cbt-post-header h1.cbt-post-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 15px 0 16px;
    line-height: 1.3;
}

.cbt-post-category {
    background-color: #fff;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.cbt-post-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

/* Entry Content */
.cbt-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    padding: 10px 25px;
}

.cbt-entry-content p {
    margin-bottom: 1.2em;
    font-weight: 400;
}

.cbt-entry-content h2,
.cbt-entry-content h3 {
    margin-top: 30px;
    color: #222;
    font-size: 18px;
    text-transform: capitalize;
}

.cbt-entry-content a {
    color: #0073e6;
    font-weight: 600;
    text-decoration: none;
}

.cbt-entry-content a * {
    color: inherit !important;
    font-weight: inherit !important;
    text-decoration: inherit !important;
}

.cbt-entry-content a:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* ==========================
   COMMENTS
========================== */
.cbt-comments-section {
    margin-top: 60px;
}

.cbt-comments-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.cbt-comment-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* ==========================
   RELATED POSTS
========================== */
.cbt-related-posts {
    margin-top: 80px;
}

.cbt-related-post-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    text-align: center;
}

.cbt-related-post-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cbt-related-post-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cbt-read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #ff7c5b;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
}

/* ==========================
   TOP SECTION
========================== */
.cbt-top-section {
    display: flex;
    width: 100%;
    min-height: 420px;
    margin: 80px 0 60px;
    overflow: hidden;
}

.cbt-top-image {
    width: 45%;
    height: 100%;
}

.cbt-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cbt-top-meta {
    width: 55%;
    background: #303437;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: left;
    flex-direction: column;
}

.cbt-top-meta .cbt-post-header {
    max-width: 600px;
    width: 100%;
}

.cbt-top-meta .cbt-post-title {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 800;
    color: #333;
    margin-top: 20px;
}

.cbt-top-meta .cbt-post-category {
    background-color: #fff;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 13px;
    letter-spacing: 1.5px;
    display: inline-block;
}

.cbt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.cbt-social-share {
    display: flex;
    align-items: center;
}

.cbt-share-label {
    margin-right: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.cbt-social-share a {
    margin-left: 10px;
    color: #fff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.cbt-social-share a:hover {
    color: #f7fcfe;
}

/* ==========================
   ARCHIVES / GRID POSTS
========================== */
.cbt-archive-container {
    max-width: 1200px;
    margin: auto;    
  margin: 0px auto;
    padding: 0 20px;
}

.cbt-archive-title {
    font-size: 36px;
    font-weight: 700;
    padding-top: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.cbt-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cbt-archive-post {
    background-color: #d8eafc;
    padding: 20px;
    border-radius: 12px;
    transition: box-shadow 0.3s;
    text-align: left;
}

.cbt-archive-post:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cbt-archive-thumb img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cbt-archive-post h2 {
    font-size: 20px;
    color: #333;
    margin: 10px 0;
}

.cbt-archive-post p {
    font-size: 14px;
    color: #666;
}

.cbt-pagination {
    margin-top: 50px;
    text-align: center;
}

.cbt-pagination .page-numbers {
    display: inline-block;
    margin: 0 8px;
    padding: 8px 14px;
    border-radius: 5px;
    background: #e3f4ff;
    color: #0077b6;
    text-decoration: none;
}

.cbt-pagination .current {
    background: #0077b6;
    color: white;
    font-weight: bold;
}

/* ==========================
   MEDIA QUERIES
========================== */
@media (max-width: 1024px) {
    .cbt-main-layout {
        flex-direction: column;
        padding: 40px 20px;
    }

    .cbt-sidebar-left {
        width: 100%;
        margin-bottom: 40px;
    }

    .cbt-content-area {
        width: 100%;
    }

    .cbt-post-header h1.cbt-post-title,
    .cbt-top-meta .cbt-post-title {
        font-size: 28px;
    }

    .cbt-top-section {
        flex-direction: column;
    }

    .cbt-top-image,
    .cbt-top-meta {
        width: 100%;
    }

    .cbt-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cbt-social-share {
        margin-top: 10px;
    }

    .cbt-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cbt-post-grid {
        grid-template-columns: 1fr;
    }
}

/* Search-only quick tweaks (optional) */
body.search .cbt-archive-title { margin-top: 20px; }
body.search .cbt-archive-post h2 { line-height: 1.35; }
