/* HERO SECTION */

.cbl-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.cbl-hero-image img {
    width: 100%;
    height: 420px !important;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.cbl-category {
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: #FBF9F0;
    padding: 10px;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid;
    margin-right: 10px;
}

.cbl-hero h2 {
    margin: 0 0 20px;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
}

.cbl-hero h2 a {
    color: #111;
    text-decoration: none;
}

.cbl-hero p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.cbl-btn {
    background-color: #7F8935;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF !important;
    border-radius: 100px;
    padding: 16px 24px;
    display: inline-block;
    margin-top: 15px;
}

.cbl-btn:hover {
    opacity: 0.9;
}

/* CATEGORY FILTER */

.cbl-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.cbl-filter button:hover,
.cbl-filter button.active {
    background: #111;
    color: #fff;
}

/* BLOG GRID */

.cbl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cbl-related-card,
.cbl-card {
    overflow: hidden;
    border: 1px solid #E5E5E0;
    border-radius: 15px;
    padding: 15px;
    background: #FBF9F0;
}

#cbl-posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.cbl-image-wrap {
    position: relative;
}

.cbl-card-categories {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 99;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cbl-card-category {
    background: #7F8935;
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

#cbl-posts-wrapper .cbl-card {
    width: 31%;
}

#cbl-posts-wrapper .cbl-grid .cbl-card {
    width: 100%;
}

.cbl-card img {
    width: 100%;
    height: 260px !important;
    object-fit: cover;
    border-radius: 15px !important;
    display: block;
}

.cbl-content {
    padding-top: 15px;
}

.cbl-meta-row,
.cbl-meta {
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cbl-meta-row span,
.cbl-meta span {
    padding: 7px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #bdb3b3;
}

.cbl-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.4;
}

.cbl-card h3 a {
    color: #111;
    text-decoration: none;
}

/* AUTHOR */

.cbl-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbl-author img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
}

/* LOAD MORE */

.cbl-load-more-wrap {
    text-align: center;
    margin-top: 50px;
}

#cbl-load-more {
    padding: 14px 35px;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-size: 16px;
    transition: .3s;
}

#cbl-load-more:hover {
    transform: translateY(-2px);
}

.cbl-related-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.cbl-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cbl-related-card a img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.cbl-related-content {
    padding-top: 15px;
}

/*TABLET*/

@media (max-width: 1024px) {

    .cbl-hero {
        grid-template-columns: 1fr;
    }

    .cbl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cbl-hero h2 {
        font-size: 34px;
    }

    #cbl-posts-wrapper .cbl-card {
        width: 48%;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .cbl-grid {
        grid-template-columns: 1fr;
    }

    .cbl-hero-image img {
        height: 250px !important;
    }

    .cbl-hero h2 {
        font-size: 28px;
    }

    .cbl-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .cbl-related-grid {
        grid-template-columns: 1fr;
    }

    #cbl-posts-wrapper .cbl-card {
        width: 100%;
    }
}