/* -------------------------------------------------------
   Sem scroll horizontal em nenhum dispositivo
------------------------------------------------------- */
html, body {
    overflow-x: clip;
    max-width: 100%;
}

/* -------------------------------------------------------
   Navbar mobile: logo à esquerda, hamburguer fixo à direita centrado
------------------------------------------------------- */
@media (max-width: 991px) {
    .navbar-toggler {
        position: fixed;
        right: 15px;
        z-index: 10000;
    }

    /* Remove o fundo branco forçado pelo tema no mobile */
    .navbar.bg-transparent,
    .navbar-modern-inner.bg-transparent,
    .navbar-full-screen-menu-inner.bg-transparent {
        background-color: transparent !important;
    }

    /* Linhas do hamburger: invertem automaticamente conforme o conteúdo por baixo */
    .navbar-toggler .navbar-toggler-line {
        background: #fff;
        mix-blend-mode: difference;
    }

    /* 3 traços iguais */
    .navbar-toggler-line:nth-child(1) { top: 0;    width: 22px; }
    .navbar-toggler-line:nth-child(2) { top: 6px;  width: 22px; }
    .navbar-toggler-line:nth-child(3) { top: 12px; width: 22px; transform: rotate(0deg); }

    /* Animação X ao abrir */
    .navbar-collapse-show .navbar-toggler-line:nth-child(1) { top: 6px; transform: rotate(45deg);  width: 22px; }
    .navbar-collapse-show .navbar-toggler-line:nth-child(2) { width: 0; opacity: 0; }
    .navbar-collapse-show .navbar-toggler-line:nth-child(3) { top: 6px; transform: rotate(-45deg); width: 22px; }
}

/* -------------------------------------------------------
   Categories Grid
------------------------------------------------------- */
.cat-grid-item {
    height: 90vh;
}
@media (max-width: 767px) {
    .cat-grid-item {
        height: 120vw;
    }
}

/* -------------------------------------------------------
   News Mobile Slider
------------------------------------------------------- */
.news-mobile-wrap {
    overflow: hidden;
}
.news-mobile-track {
    display: flex;
    will-change: transform;
    padding: 20px 0 28px 20px;
    gap: 10px;
    user-select: none;
}
.news-mobile-track.is-animating {
    transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1);
}
.news-mobile-slide {
    flex: 0 0 82%;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}
.news-mobile-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.news-mobile-slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.news-mobile-slide-category {
    color: rgba(255,255,255,0.75);
    font-size: 10px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px;
    display: block; margin-bottom: 6px;
}
.news-mobile-slide-title {
    color: #fff; font-size: 18px; font-weight: 700; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; margin: 0;
}
.news-mobile-dots {
    display: flex; justify-content: center; gap: 6px; padding-bottom: 4px;
}
.news-mobile-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(0,0,0,0.2);
    transition: background 250ms ease, width 250ms cubic-bezier(0.23,1,0.32,1);
    flex-shrink: 0;
}
.news-mobile-dot.active {
    background: rgba(0,0,0,0.75); width: 18px; border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .news-mobile-track.is-animating { transition: none; }
    .news-mobile-dot { transition: none; }
}
