/*
Theme Name: twentytwentyfive
 Template: twentytwentyfive

Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: IT Company

Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

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

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

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;
}

/* === Layout Wrapper === */
.cbt-main-layout {
    display: flex;
        flex-direction: row;
        max-width: 1200px;
        margin-top: 30px !important;
        gap: 40px;
        align-items: flex-start;
        flex-wrap: wrap;
        margin: 0 auto;
}

/* === Left Sidebar === */
.cbt-sidebar-left {
    width: 300px;
    flex-shrink: 0;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

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

/* === Colored Content Box === */
.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-bottom: 16px;
    line-height: 1.3;
    margin-top: 15px;
}

.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: 17px;
    line-height: 1.8;
    color: #333;
    padding: 10px 25px;
}

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

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

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

.cbt-comments-section h2 {
    font-size: 24px;
    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-posts h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.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;
}

/* === Responsive === */
@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 {
        font-size: 28px;
    }
}

/* === Sidebar Container === */
.cbt-sidebar-left {
    width: 300px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* === Widget Base === */
.cbt-widget {
    background: #eff5f9;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

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

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

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

/* === 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 Carousel === */
.cbt-recent-posts-carousel {
    max-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.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;
}

.cbt-widget {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cbt-top-section {
    display: flex;
    width: 100%;
    min-height: 420px;
    margin-top: 80px;
    margin-bottom: 60px;
    overflow: hidden;
}

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

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

.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 a {
    margin-left: 10px;
    font-size: 14px;
    text-decoration: none;
    color: #0077b5;
}

@media (max-width: 1024px) {
    .cbt-top-section {
        flex-direction: column;
    }

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

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

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

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

.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;
}

.cbt-archive-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

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

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

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

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

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

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

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

.cbt-archive-container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

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

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

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

.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;
}

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

.cbt-post-content a {
    text-decoration: none;
    color: inherit;
    /* or set a color if needed */
}

.cbt-post-content a:hover {
    text-decoration: underline;
    /* optional for hover effect */
}

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

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

.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;
}

.cbt-tags-container {
    margin-top: 10px;
}

.cbt-tags-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.cbt-tags-icon {
    font-size: 16px;
}

.cbt-tags-list {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cbt-tag-link {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: color 0.3s ease;
}

.cbt-tag-link:hover {
    color: #fff00;
    text-decoration: underline;
}
