

/* ===============================
   SEÇÃO HERO DO BLOG – LAYOUT
   =============================== */
/* Container geral da seção */
/* layout básico: 2 cards lado a lado dentro do "herói" */
.home-blog-hero {
    background-image: linear-gradient(to top, #f5f8ff, transparent 18%), var(--fundo-conheca);
    background-size: contain;
    background-color: rgb(255 255 255 / 20%);
    background-blend-mode: overlay;
    margin-top: 50px;
    padding: 130px 0 40px;
}

.all-box:has(.space150) .home-blog-hero {
    padding: 40px 0 40px;
}

/* Container geral */
.home-blog-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cabeçalho */
.home-blog-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.home-blog-hero-heading {
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cor-primaria);
}

/* Navegação desktop */
.home-blog-hero-counter-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-nav {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #1a237e;
}

.hero-counter-text {
    font-weight: 600;
    color: #1a237e;
}

/* Grid imagem + texto */
.home-blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
}

/* Slides de imagem */
.hero-img-slide {
    opacity: 0;
    transform: translateX(40px);
    transition: transform .8s ease, opacity .8s ease;
}

.hero-img-slide.is-enter-img {
    opacity: 1;
    transform: translateX(0);
}

.hero-img-slide.is-leave-img {
    opacity: 0;
    transform: translateX(-40px);
}

/* Slides de texto */
.hero-text-slide {
    opacity: 0;
    transform: translateY(24px);
    transition: transform .8s ease, opacity .8s ease;
}

.hero-text-slide.is-enter-text {
    opacity: 1;
    transform: translateY(0);
}

.hero-text-slide.is-leave-text {
    opacity: 0;
    transform: translateY(24px);
}

/* Conteúdo do texto */
.hero-text-inner {
    max-width: 420px;
}

.home-blog-hero-badge a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--cor-primaria);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-blog-hero-title {
    margin-top: 18px;
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1.1;
}

.home-blog-hero-title a {
    color: #111827;
    text-decoration: none;
}

.home-blog-hero-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #263238;
    margin-bottom: 24px;
}

/* Botão "Leia mais" */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--cor-primaria);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.btn-hero-primary i {
    font-size: 14px;
}

/* Dots (apenas mobile) */
.home-blog-hero-dots {
    display: none;
    /* some no desktop */
    justify-content: center;
    margin-top: 24px;
    justify-content: center;
}

.slick-dots {
    display: flex !important;
    gap: 8px;
    justify-content: center;
}

.slick-dots li {
    list-style: none;
}

.slick-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.65);
    font-size: 0;
}

.slick-dots .slick-active button {
    background: var(--cor-primaria);
    opacity: 1;
}

/* ---------- Responsivo ---------- */

/* container dos dots do mobile – pode ser um <div class="home-blog-hero-dots"></div> */
/* Esconde dots padrão do slick (vamos estilizar se quiser) */
.home-blog-hero-dots .slick-dots li button:before {
    font-size: 10px;
}

/* MOBILE */
@media (max-width: 768px) {

    .home-blog-hero-inner {
        padding-inline: 0;
        box-sizing: border-box;
    }

    .home-blog-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .home-blog-hero-media-slider,
    .home-blog-hero-content-slider {
        width: 100%;
    }

    /* contador com setas some no mobile */
    .home-blog-hero-counter-nav {
        display: none;
    }

    /* dots aparecem no mobile */
    .home-blog-hero-dots {
        display: flex;
        position: relative;
        margin-top: 0;
    }

    /* ajusta polaroid para caber bem em tela menor */
    .hero-img-slide .polaroid {
        
    }

    .home-blog-hero-title {
        font-size: 1.3rem;
    }

    .home-blog-hero-title,
    .home-blog-hero-excerpt {
        text-align: left;
        padding-inline: 16px;
    }

    .home-blog-hero-excerpt{
        display: -webkit-box; 
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3; 
        overflow: hidden; 
    }

    .home-blog-hero-link {
        display: flex;
        justify-content: center;
        padding-inline: 16px;
    }

    .home-blog-hero {
        margin-top: 0;
        padding: 29px 0 40px;
    }

    .hero-text-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .home-blog-hero-head{
        margin-bottom: 5px;
        justify-content: center;
    }
    .home-blog-hero-heading{
        font-size: 5.1vw;
    }
}

@media screen and (min-width: 500px) and (max-width: 989px) {
    .home-blog-hero{
        margin-top: 0;
    }
}