/* ==========================================================================
   Blog Page — CSS do template.
   Layout 70/30 + grid responsivo. As cores e fontes são controladas
   pelo widget "Blog Page — Completo" via painel Elementor.
   ========================================================================== */

.sm-blog-page {
    width: 100%;
    max-width: 1369px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Heading pill */
.sm-blog-page .sm-page-pill {
    margin-bottom: 30px;
    margin-top: 20px;
}
.sm-blog-page .sm-page-pill h1,
.sm-blog-page .sm-page-pill h2,
.sm-page-pill,
h1.sm-page-pill,
h2.sm-page-pill,
.tag-top-blog-post h1,
.tag-top-blog-post h2,
.elementor-widget-heading .elementor-heading-title.sm-page-pill {
    display: inline-block;
    background: #FF383C !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 7px 14px;
    border-radius: 6px;
    margin: 24px 0 12px;
    text-transform: uppercase;
    line-height: 1;
}

/* Grid row 70/30 */
.sm-blog-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.sm-blog-grid-left {
    flex: 1 1 calc(70% - 8px);
    min-width: 0;
}
.sm-blog-grid-right {
    flex: 1 1 calc(30% - 8px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Grid list below */
.sm-blog-grid-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Load more */
.sm-blog-loadmore-wrap {
    text-align: center;
    padding: 30px 0 60px;
}
.sm-blog-loadmore__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent !important;
    color: #D9006F !important;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 18px 22px;
    border: 1px solid #D9006F;
    border-radius: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}
.sm-blog-loadmore__btn:hover {
    background: #D9006F !important;
    color: #fff;
}
.sm-blog-loadmore__btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Feature card */
.sm-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    height: 100%;
    aspect-ratio: 920 / 615;
    background: #f7f9fc;
}
.sm-feature-card__link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.sm-feature-card__media {
    position: relative;
    line-height: 0;
    height: 100%;
}
.sm-feature-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sm-feature-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78) 100%);
    z-index: 1;
    pointer-events: none;
}
.sm-feature-card__terms {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sm-feature-card__terms span {
    display: inline-block;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 5px 8px;
    margin: 2px 5px 2px 0;
    border-radius: 4px;
}
.sm-feature-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 18px;
}
.sm-feature-card__title {
    margin: 0 0 6px;
    color: #181A2A;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}
.sm-feature-card__excerpt {
    margin: 0;
    color: #181A2A;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.sm-feature-card__author {
    margin: 6px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.sm-feature-card:hover .sm-feature-card__author {
    opacity: 1;
    transform: translateY(0);
}

/* List card — sidebar direita 110×147 */
.sm-blog-grid-right .sm-list-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.sm-blog-grid-right .sm-list-card__media {
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 110px;
    height: 147px;
}
.sm-blog-grid-right .sm-list-card__media img {
    width: 110px;
    height: 147px;
    object-fit: cover;
    display: block;
}

/* List card — grid abaixo 350×237 */
.sm-blog-grid-list .sm-list-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    align-items: start;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.sm-blog-grid-list .sm-list-card__media {
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 350px;
    height: 237px;
}
.sm-blog-grid-list .sm-list-card__media img {
    width: 350px;
    height: 237px;
    object-fit: cover;
    display: block;
}

/* List card — fallback geral */
.sm-list-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.sm-list-card__media {
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
}
.sm-list-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sm-list-card__body {
    min-width: 0;
}
.sm-list-card__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.sm-list-card__terms a {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 5px 8px;
    margin: 2px 5px 2px 0;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.2;
}
.sm-list-card__title {
    margin: 0 0 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}
.sm-list-card__title a {
    color: #181A2A;
    text-decoration: none;
}
.sm-list-card__title a:hover {
    color: #D9006F;
}
.sm-list-card__excerpt {
    margin: 0;
    color: #181A2A;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sm-list-card__author {
    margin: 4px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #D9006F;
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sm-list-card:hover .sm-list-card__author {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
    .sm-blog-grid-left,
    .sm-blog-grid-right {
        flex: 1 1 100%;
    }
    .sm-blog-grid-right {
        flex-direction: row;
        overflow-x: auto;
    }
    .sm-blog-grid-right .sm-list-card {
        flex: 0 0 auto;
        min-width: 280px;
    }
    .sm-blog-grid-right .sm-list-card__media,
    .sm-blog-grid-right .sm-list-card__media img {
        width: 110px;
        height: 147px;
    }
    .sm-feature-card {
        aspect-ratio: 920 / 615;
    }
    .sm-blog-grid-list .sm-list-card {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }
    .sm-blog-grid-list .sm-list-card__media,
    .sm-blog-grid-list .sm-list-card__media img {
        width: 280px;
        height: 190px;
    }
}
@media (max-width: 767px) {
    .sm-blog-page {
        padding: 0 12px;
    }
    .sm-blog-grid-right {
        flex-direction: column;
        overflow-x: visible;
    }
    .sm-blog-grid-right .sm-list-card {
        flex: none;
        min-width: 0;
    }
    .sm-feature-card {
        aspect-ratio: 16 / 11;
    }
    .sm-blog-grid-list .sm-list-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sm-blog-grid-list .sm-list-card__media,
    .sm-blog-grid-list .sm-list-card__media img {
        width: 100%;
        height: 180px;
    }
    .sm-blog-grid-right .sm-list-card {
        grid-template-columns: 72px 1fr;
        gap: 10px;
    }
    .sm-blog-grid-right .sm-list-card__media,
    .sm-blog-grid-right .sm-list-card__media img {
        width: 72px;
        height: 96px;
    }
    .sm-list-card__title {
        font-size: 15px;
    }
    .sm-list-card__excerpt {
        font-size: 13px;
    }
    .sm-feature-card__title {
        font-size: 16px;
    }
    .sm-feature-card__excerpt {
        font-size: 13px;
    }
    .sm-blog-loadmore__btn {
        font-size: 14px;
        padding: 14px 28px;
    }
}
}
