
.cc-blog-post {
    margin-top: 103px;
    padding-top: 80px;
    padding-bottom: 80px;
}
body.admin-bar .cc-blog-post {
    margin-top: calc(103px - 32px);
}
.cc-blog-post > .inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-blog-post-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-blog-post-row > div:nth-child(1) {
    flex-grow: 1;
}

.main-blog-post-row > div:nth-child(2) {
    flex-basis: 300px;
    flex-grow: 0;
    flex-shrink: 0;
}

.cc-blog-post .main-blog-post-row {
    margin-top: 60px;
}

.post-item .txt {
    padding: 20px 25px 0;
}

.post-item p.date {
    color: #585858;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 5px;
}

.post-item h3 {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 30px;
    margin-bottom: 5px;
}

.post-item .post-extract {
    font-size: 21px;
    font-weight: 300;
    line-height: 120%;
}

.post-extract p {
    overflow: hidden;
    display: -webkit-box;      /* soporte Safari/Chrome */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;     /* ← 3 líneas */
            line-clamp: 3;     /* spec */
}

.post-item {
    width: 385px;
    margin-bottom: 32px;
    box-shadow: 0 4px 4px 0 #0000003b;
    background-color: #fff;
}
.back-btn {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #4788F1;
}

.back-btn::before {
    content: "";
    width: 16px;
    aspect-ratio: 1;
    background-image: url(https://ccwebsite-qa.creativecoefficient.net/wp-content/uploads/2025/06/chevron_backward.png);
    display: inline-block;
    margin-right: 7px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 7px;
}

.post-box, aside {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 5px #aeaeae57;
}

.post-box > h1, .post-content {
    max-width: 1000px;
    margin: 0 auto;
}

.post-box h1 {
    font-family: 'Lexend', sans-serif;
    font-size: 43px;
    font-weight: 500;
    line-height: 110%;
    margin-bottom: 30px!important;
    width: 100%;
}

.post-box h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem;
    line-height: 120%;
}
.post-box blockquote {
    border-inline-start: unset!important;
    position: relative;
    background-color: #F9F7F1;
    padding: 15px 20px 15px 59px!important;
    color: #4788F1;
    margin-bottom: 20px;
}

.post-box blockquote::before {
    content: "";
    height: 30px;
    aspect-ratio: 1;
    display: inline-block;
    position: absolute;
    top: 17px;
    left: 15px;
    background-image: url(https://ccwebsite-qa.creativecoefficient.net/wp-content/uploads/2025/06/quote_svgrepo.com_.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.post-box, .post-box blockquote {
    font-family: 'Inter', sans-serif!important;
    line-height: 150%;
    font-weight: 300;
    font-size: 19px;
}

.post-box img.featured-img, .post-box .wp-block-image img {
    margin: 15px auto 10px;
    width: 100%;
    max-width: 1000px;
    justify-self: anchor-center;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    object-position: center;
}
.post-box a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    color: #4788f1;
    font-weight: 400;
}
.post-box + h2 {
    margin-top: 55px;
}

.cc-blog-post .related-posts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.post-item img.wp-post-image {
    aspect-ratio: 5/3;
    object-fit: cover;
}
.post-box {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.left > h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 29px;
    font-weight: 400;
}

.cc-blog-post aside h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 110%;
    font-size: 23px;
    margin-bottom: 10px;
    width: 100%;
}

.cc-blog-post aside h4::before {
    content: "";
    display: block;
    height: 137px;
    width: 100%;
    background-color: #e5e5e5;
    margin-bottom: 15px;
}

.cc-blog-post aside p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.cc-blog-post aside .btn {
    margin: 0 auto;
    display: inline-block;
    background-color: #1c1c1c;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    padding: 5px 20px;
    border-radius: 20px;
}

.cc-blog-post aside {
    display: flex;
    flex-direction: column;
    align-items: start;
}
.post-item .author {
    color: #4788F1;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
}
.post-box .wp-block-image {
    margin-bottom: 30px;
}
@media(max-width:575px){
    .post-item{width:100%;}             /* 1 columna */
    .cc-blog-post > .inner {
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    .cc-blog-post {
        margin-top: 103px!important;
        padding-top: 40px;
    }
    html {
        margin-top: 0!important;
    }    
    .main-blog-post-row {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 30px !important;
    }
    
    .main-blog-post-row .left,
    .main-blog-post-row .right, {
        flex-basis: fit-content;
        width: 100%;
    }
    .post-item {
        width: 300px;
    }
    .posts-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    } 
    .main-blog-post-row {
        margin-top: 30px;
    }
    
    .post-item p.date, .post-item .author {
        font-size: 16px;
    }
    
    .post-item h3 {
        font-size: 25px;
    }
    
    .post-extract p {
        font-size: 18px;
    }
    .post-box h1 {
        font-size: 30px;
    }

    .post-box, .post-box blockquote {
        font-size: 17px;
    }

    .post-box, aside {
        padding: 10px;
    }

    .post-box blockquote::before {
        height: 20px;
    }

    .post-box blockquote {padding-left: 44px!important;}
    .main-blog-post-row .right {
        flex-basis: 100%!important;
        width: 100%!important;
    }
    .post-box h2 {
        font-weight: 500;
    }
    .post-box ul {
        padding-left: 25px;
    }
}