/* =========================================================
   ARTIGO BLOG
   ========================================================= */

.article-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.article-header {
    padding: 75px 0 70px;

    background: #f5f6fa;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 45px;

    color: var(--worten-green);

    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.article-category {
    display: block;

    margin-bottom: 15px;

    color: var(--worten-blue-2);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.article-header h1 {
    max-width: 900px;

    margin: 0 0 25px;

    color: #151515;

    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
}

.article-lead {
    max-width: 760px;

    margin: 0 0 25px;

    color: #6c7078;

    font-size: 19px;
    line-height: 1.65;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;

    color: #6c7078;

    font-size: 13px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   IMAGEM DE CAPA
   ========================================================= */

.article-cover {
    width: min(1280px, calc(100% - 40px));

    height: 540px;

    margin: -25px auto 0;

    position: relative;
    z-index: 2;

    overflow: hidden;

    border-radius: 16px;
}

.article-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.article-main {
    padding: 90px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 280px;

    justify-content: center;

    gap: 80px;
}

.article-content {
    min-width: 0;
}

.article-content p {
    margin: 0 0 22px;

    color: #454950;

    font-size: 17px;
    line-height: 1.8;
}

.article-content .article-introduction {
    margin-bottom: 45px;

    color: #151515;

    font-size: 21px;
    line-height: 1.7;
    font-weight: 500;
}

.article-content h2 {
    margin: 55px 0 18px;

    color: #151515;

    font-size: 31px;
    line-height: 1.2;
    font-weight: 900;
}

.article-content h2:first-of-type {
    margin-top: 0;
}


/* =========================================================
   DICA
   ========================================================= */

.article-tip {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin: 35px 0;
    padding: 25px;

    border-left: 4px solid var(--worten-green);

    background: #f5f6fa;
}

.article-tip-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--worten-green);
    color: #151515;

    font-size: 21px;
}

.article-tip strong {
    display: block;

    margin-bottom: 5px;

    font-size: 16px;
}

.article-tip p {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   CTA DENTRO DO ARTIGO
   ========================================================= */

.article-cta {
    margin: 55px 0;

    padding: 38px;

    border-radius: 14px;

    background: #0636d8;

    color: #fff;
}

.article-cta span {
    display: block;

    margin-bottom: 10px;

    color: #fff500;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.article-cta h3 {
    margin: 0 0 12px;

    font-size: 27px;
    line-height: 1.2;
    font-weight: 900;
}

.article-cta p {
    margin: 0 0 25px;

    color: rgba(255,255,255,0.82);

    font-size: 15px;
}

.article-cta a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 13px 20px;

    border-radius: 5px;

    background: #fff;

    color: #0636d8;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.article-sidebar {
    align-self: start;

    position: sticky;
    top: 30px;
}

.sidebar-box {
    padding: 25px;

    margin-bottom: 25px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #fff;
}

.sidebar-box h3 {
    margin: 0 0 18px;

    font-size: 18px;
    font-weight: 900;
}

.sidebar-box a {
    display: block;

    padding: 10px 0;

    border-top: 1px solid #e5e7eb;

    color: #6c7078;

    font-size: 13px;
    line-height: 1.4;

    text-decoration: none;
}

.sidebar-box a:hover {
    color: #0636d8;
}

.sidebar-service {
    padding: 28px;

    border-radius: 12px;

    background: #f5f6fa;
}

.sidebar-service-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 10px;

    background: #0636d8;
    color: #fff;

    font-size: 22px;
}

.sidebar-service h3 {
    margin: 0 0 10px;

    font-size: 19px;
    font-weight: 900;
}

.sidebar-service p {
    margin: 0 0 20px;

    color: #6c7078;

    font-size: 14px;
    line-height: 1.6;
}

.sidebar-service a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #0636d8;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;
}


/* =========================================================
   ARTIGOS RELACIONADOS
   ========================================================= */

.related-articles {
    padding: 90px 0;

    background: #f5f6fa;
}

.related-heading {
    margin-bottom: 40px;
}

.related-heading span {
    display: block;

    margin-bottom: 10px;

    color: var(--worten-green);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.related-heading h2 {
    margin: 0;

    font-size: 38px;
    font-weight: 900;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.related-card {
    overflow: hidden;

    border-radius: 12px;

    background: #fff;

    border: 1px solid #e5e7eb;
}

.related-card > a {
    display: block;

    height: 200px;

    overflow: hidden;
}

.related-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

.related-card > div {
    padding: 25px;
}

.related-card span {
    display: block;

    margin-bottom: 10px;

    color: var(--worten-green);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.related-card h3 {
    margin: 0 0 20px;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.related-card div > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--worten-blue-2);

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .article-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .article-sidebar {
        position: static;

        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 20px;
    }

    .sidebar-box {
        margin-bottom: 0;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 767px) {

    .article-container {
        width: min(100% - 30px, 1120px);
    }

    .article-header {
        padding: 60px 0 65px;
    }

    .article-back {
        margin-bottom: 35px;
    }

    .article-header h1 {
        font-size: 42px;
    }

    .article-lead {
        font-size: 17px;
    }

    .article-cover {
        width: calc(100% - 30px);
        height: 330px;
    }

    .article-main {
        padding: 65px 0;
    }

    .article-content p {
        font-size: 16px;
    }

    .article-content .article-introduction {
        font-size: 18px;
    }

    .article-content h2 {
        font-size: 27px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .related-articles {
        padding: 65px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 575px) {

    .article-header h1 {
        font-size: 36px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .article-cover {
        height: 260px;
    }

    .article-tip {
        padding: 20px;
    }

    .article-cta {
        padding: 28px;
    }

}

