@layer features {
.rotina-ad-container,
.widget_ad_rotina {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 30px auto;
    position: relative;
    z-index: 5;
    background: transparent; 
    box-sizing: border-box;
}

.widget_ad_rotina {
    padding: 20px 0 !important; 
    overflow: hidden;
    margin-bottom: 30px;
}

.rotina-ad-home_topo,
.rotina-ad-home_meio,
.rotina-ad-single_topo,
.rotina-ad-single_bottom,
.rotina-ad-blog_top,
.rotina-ad-blog_bottom {
    min-height: 90px;
}

.rotina-ad-single_content,
.rotina-ad-blog_infeed {
    min-height: 250px;
}

.rotina-ad-sidebar_top {
    min-height: 250px;
}

.rotina-ad-sidebar_mid {
    min-height: 250px;
}

.adsense-code {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden; 
    text-align: center;
}

.ad-link-wrapper {
    display: block;
    line-height: 0;
    transition: transform 0.2s ease;
    max-width: 100%;
}

.ad-link-wrapper:hover {
    transform: translateY(-2px);
}

.rotina-ad-container img,
.widget_ad_rotina img {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ad-label,
.ad-label-sidebar {
    display: block;
    font-size: 10px; 
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0.8;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .rotina-ad-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .rotina-ad-home_topo,
.rotina-ad-single_topo {
        min-height: 100px;
    }

    .adsense-code,
.rotina-ad-container img {
        max-width: 100%;
    }
}

.bento-hero {
    margin-top: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

.bento-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    
    
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
}

.bento-link {
    display: block; width: 100%; height: 100%;
}

.bento-media {
    width: 100%; height: 100%;
}

.bento-media img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

.bento-content,
.bento-mini-content {
    position: absolute; bottom: 0; left: 0; width: 100%; 
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.6) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.bento-tag {
    background: var(--azul-principal); color: white;
    padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; 
    font-weight: bold; text-transform: uppercase; margin-bottom: 8px; display: inline-block;
}

.bento-title-hero {
    font-size: clamp(1.2rem, 2vw, 2.5rem); 
    color: white; line-height: 1.1; margin: 0; 
    font-family: 'Poppins', sans-serif;
}

.bento-mini-content h3 {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: white; margin: 0;
}

.bento-card-title {
    margin: 0;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

@media (max-width: 992px) {
    .bento-hero {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 0;
    }

    .bento-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        overflow-x: auto;
        padding: 10px 20px 10px 20px; 
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bento-grid::-webkit-scrollbar {
        display: none;
    }

    .bento-item {
        flex: 0 0 90%; 
        scroll-snap-align: center;
        aspect-ratio: 16 / 9 !important; 
        height: auto !important;
    }
}

@media (min-width: 992px) {
    .bento-hero {
        max-width: 1200px;
        margin: 20px auto 15px;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto; 
        gap: 15px;
        
        
        grid-template-areas: 
            "main main main"
            "sys cta stat";
    }

    .area-main {
        grid-area: main; aspect-ratio: auto !important; height: clamp(250px, 36vh, 480px) !important;
    }

    .area-sys {
        grid-area: sys;
    }

    .area-cta {
        grid-area: cta;
    }

    .area-stat {
        grid-area: stat;
    }

    .bento-item {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .bento-item:hover {
        transform: translateY(-5px); 
        box-shadow: 0 15px 35px rgba(4, 65, 245, 0.2);
        border-color: var(--azul-neon);
    }

    .bento-media img {
        transition: transform 0.6s ease;
    }

    .bento-item:hover .bento-media img {
        transform: scale(1.05);
    }
}

@media (min-width: 1440px) {
    .area-main {
        height: clamp(350px, 42vh, 520px) !important;
    }
}

@media (max-width: 992px) {
    .social-icons.desktop-only,
.desktop-trigger,
.navegacao-desktop {
        display: none !important;
    }

    .mobile-controls {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .mobile-controls {
        display: none !important;
    }

    .social-icons.desktop-only {
        display: flex !important;
    }
}

@media (max-width: 992px) {
    .tools-group,
.social-links-group {
        display: none !important;
    }
}

.btn-ler-mais {
    color: var(--azul-principal);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ler-mais:hover {
    text-decoration: underline;
}

.newsletter-section-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.newsletter-rpg-container {
    position: relative;
    background: linear-gradient(145deg, #13151a 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; 
    padding: 40px 30px; 
    max-width: 800px; 
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); 
    isolation: isolate;
}

.newsletter-rpg-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(4, 65, 245, 0.1) 0%, transparent 60%); 
    z-index: -1;
    animation: rotateGlow 25s linear infinite;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.newsletter-icon {
    font-size: 2.5rem; 
    color: var(--azul-neon);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(89, 196, 249, 0.3));
}

.newsletter-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem); 
    color: white;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.newsletter-desc {
    font-size: 1rem;
    color: #bbb;
    max-width: 600px;
    margin: 0 auto 25px auto;
    line-height: 1.5;
}

.newsletter-form-wrapper {
    max-width: 600px; 
    margin: 0 auto;
    position: relative; z-index: 2;
}

.rpg-form-simulated {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
    align-items: center;
}

.rpg-form-simulated input[type="email"] {
    flex: 2; 
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px; 
    padding: 10px 20px; 
    height: 45px; 
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.rpg-form-simulated input[type="email"]:focus {
    border-color: var(--azul-neon);
    background: rgba(4, 65, 245, 0.08);
    box-shadow: 0 0 10px rgba(4, 65, 245, 0.15);
}

.btn-rpg-submit {
    flex: 1;
    background: var(--azul-principal);
    color: white;
    border: none;
    height: 45px; 
    padding: 0 25px;
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(4, 65, 245, 0.3);
    white-space: nowrap;
}

.btn-rpg-submit:hover {
    background: var(--azul-neon);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 196, 249, 0.4);
}

.rpg-human-check {
    justify-content: center; 
    margin-top: 15px !important;
}

.newsletter-security {
    margin-top: 15px;
    font-size: 0.75rem; 
    color: #ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

@media (max-width: 600px) {
    .newsletter-section-wrapper {
        margin: 30px 0; padding: 0 15px;
    }

    .newsletter-rpg-container {
        padding: 30px 20px;
    }

    .rpg-form-simulated {
        flex-direction: column; 
        gap: 12px;
    }

    .rpg-form-simulated input[type="email"] {
        width: 100%;
        flex: none;
    }

    .btn-rpg-submit {
        width: 100%;
        flex: none;
    }
}

.author-box-modern {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 25px;
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden; 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.author-box-modern:hover {
    transform: translateY(-3px);
    border-color: var(--azul-neon);
    box-shadow: 0 15px 35px rgba(4, 65, 245, 0.1);
}

.author-box-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--azul-principal), var(--azul-neon));
}

.author-header {
    display: flex;
    align-items: center; 
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.author-avatar-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-identity {
    display: flex;
    flex-direction: column;
}

.author-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--azul-principal);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.author-name {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 700;
}

.author-name a {
    color: var(--cor-texto);
    text-decoration: none;
    transition: color 0.2s;
}

.author-name a:hover {
    color: var(--azul-principal);
}

.author-social-mini a {
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
}

.author-social-mini a:hover {
    color: var(--azul-neon);
    text-decoration: underline;
}

.author-bio-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    text-align: left;
}

@media (max-width: 600px) {
    .author-box-modern {
        padding: 20px;
    }

    .author-header {
        gap: 15px; 
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .author-avatar-wrapper img {
        width: 65px;  
        height: 65px;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .author-bio-content p {
        font-size: 0.9rem;
    }
}

html.dark-mode .author-box-modern {
    background: var(--surface-nav);
    border-color: #333;
    box-shadow: none;
}

html.dark-mode .author-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

html.dark-mode .author-name a {
    color: white;
}

html.dark-mode .author-bio-content p {
    color: #ccc;
}

html.dark-mode .author-avatar-wrapper img {
    border-color: #333;
}

.sidebar-sticky-wrapper {
    position: -webkit-sticky; 
    position: sticky;
    top: 100px; 
    z-index: 5;
    margin-top: 40px;
}

.card-youtube-sticky {
    background: var(--preto-profundo); 
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.card-youtube-sticky:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.15); 
    border-color: #FF0000;
}

.card-youtube-sticky::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: #FF0000;
    z-index: 2;
}

.yt-sticky-bg {
    position: absolute;
    top: -20px; right: -30px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    transform: rotate(-15deg);
    pointer-events: none;
}

.yt-sticky-bg::after {
    content: '\f167'; 
    font-family: "Font Awesome 5 Brands";
}

.yt-sticky-content {
    position: relative; z-index: 2;
    padding: 30px;
    text-align: center;
}

.yt-header-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    background: rgba(255, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255,0,0,0.2);
}

.yt-header-icon i {
    color: #FF0000; font-size: 1.2rem;
}

.yt-header-icon span {
    color: white; font-size: 0.75rem; 
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}

.card-youtube-sticky h3 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-youtube-sticky p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-yt-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FF0000;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.btn-yt-sticky::before {
    content: '\f04b'; 
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.btn-yt-sticky:hover {
    background: white;
    color: #FF0000;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .sidebar-sticky-wrapper {
        position: static;
        margin-top: 30px;
    }
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.3s;
    user-select: none;
}

.ai-summary-header:hover {
    background: rgba(255, 255, 255, 0.9);
}

.ai-icon-area {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--azul-neon) 0%, var(--azul-principal) 100%);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.9rem;
}

.ai-title-area {
    flex-grow: 1;
    display: flex; align-items: center;
}

.ai-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #3364F6;
}

.ai-arrow i {
    color: var(--azul-principal);
    transition: transform 0.3s ease;
}

.ai-summary-content {
    display: block;
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2c3e50;
    background: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(137, 196, 244, 0.2);
    
    max-height: 3000px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.ai-summary-collapsed .ai-summary-content {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.ai-summary-box .ai-arrow i {
    transform: rotate(180deg);
}

.ai-summary-collapsed .ai-arrow i {
    transform: rotate(0deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .ai-summary-box {
        margin: 20px 0;
    }

    .ai-summary-header {
        gap: 10px;
        padding: 12px 14px;
    }

    .ai-icon-area {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        font-size: 0.8rem;
    }

    .ai-label {
        font-size: 0.8rem;
    }

    .ai-summary-content {
        padding: 14px 14px;
        font-size: 0.88rem;
        line-height: 1.55;
    }
}

.missao-box p {
    color: #555555 !important;
}

.faq-body > div {
    color: #333333 !important;
}

.faq-body a {
    color: var(--azul-principal);
}

html.dark-mode .missao-box p,
html.dark-mode .faq-body > div {
    color: #e0e0e0 !important;
}

@media (max-width: 992px) {
    .container-fluid-mobile {
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .bento-hero .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
        padding: 0;
    }

    .area-main {
        width: 100%;
        flex: none;
        aspect-ratio: 4 / 3 !important; 
        border-radius: 0;
    }

    .bento-scroll-mobile {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 15px 15px 15px; 
        margin: 0;
        scrollbar-width: none;
    }

    .bento-scroll-mobile::-webkit-scrollbar {
        display: none;
    }

    .bento-scroll-mobile .bento-item {
        flex: 0 0 88%; 
        aspect-ratio: 16 / 9 !important; 
        scroll-snap-align: center;
        border-radius: 12px;
    }

    .bento-scroll-mobile .bento-mini-content h3 {
        font-size: 1rem;
    }

    .pill-sys-mobile {
        padding: 6px 16px; font-size: 0.8rem;
    }
}

@media (min-width: 992px) {
    .container-fluid-mobile {
        padding-left: 15px; padding-right: 15px;
    }

    .bento-scroll-mobile {
        display: contents;
    }

    .mobile-filter-sys {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-compact-mt {
        margin-top: 30px !important;
    }

    .secao-destaque-blog {
        margin-bottom: 25px !important;
    }

    .titulo-linha,
.shorts-wrapper-compact .cabecalho-secao {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px !important;
        flex-wrap: nowrap;
    }

    .titulo-linha h2,
.shorts-wrapper-compact h2 {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.2;
    }

    .titulo-linha a,
.shorts-wrapper-compact a {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .linha-decorativa {
        display: none;
    }

    .post-card-moderno.destaque-principal .post-thumb {
        height: 160px;
    }

    .post-card-moderno.destaque-principal .post-infos p {
        display: none;
    }

    .lista-posts-grid {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }

    .card-horizontal-mobile {
        display: flex;
        flex-direction: row; 
        height: 100px; 
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .card-horizontal-mobile .post-thumb {
        width: 38%; 
        height: 100%;
        border-radius: 0;
    }

    .card-horizontal-mobile .post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-horizontal-mobile .post-infos {
        width: 62%;
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .cat-destaque-mobile {
        align-self: flex-start;
        background: #fff, var(--azul-principal);
        color: #fff;
        padding: 2px 6px;
        font-size: 0.55rem;
        font-weight: 800;
        border-radius: 4px;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .card-horizontal-mobile h3 {
        font-size: 0.85rem !important; 
        line-height: 1.2 !important;
        margin: 0 0 4px 0 !important; 
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden;
    }

    .card-horizontal-mobile h3 a {
        font-size: #00beff !important;
        line-height: #00beff !important;
    }

    .meta-bot-linha {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .data-mobile {
        font-size: 0.65rem;
        color: #777;
    }

    .card-horizontal-mobile .ler-mais {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: bold;
        text-transform: uppercase;
        color: var(--azul-principal);
        margin: 0;
    }

    .card-horizontal-mobile .meta-dados,
.card-horizontal-mobile p {
        display: none !important;
    }
}

.lista-posts-categoria {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-cat-horizontal {
    display: flex;
    background: var(--surface-nav, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 220px;
}

.card-cat-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(4, 65, 245, 0.12);
    border-color: var(--azul-neon);
}

.card-cat-thumb {
    width: 40%;
    position: relative;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

.card-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.card-cat-horizontal:hover .card-cat-thumb img {
    transform: scale(1.08);
}

.cat-badge-float {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--azul-principal);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-cat-content {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-cat-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    text-transform: uppercase;
}

.card-cat-meta i {
    color: var(--azul-principal);
}

.card-cat-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.card-cat-title a {
    color: var(--cor-texto);
    text-decoration: none;
    transition: color 0.3s;
}

.card-cat-title a:hover {
    color: var(--azul-principal);
}

.card-cat-excerpt {
    font-size: 0.95rem;
    color: var(--cor-texto-suave, #555);
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-cat-content .btn-ler-mais {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--azul-principal);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.card-cat-content .btn-ler-mais:hover {
    color: var(--azul-neon);
}

html.dark-mode .card-cat-horizontal {
    background: var(--surface-nav, #1a1b26);
    border-color: #333;
}

html.dark-mode .card-cat-title a {
    color: #fff;
}

html.dark-mode .card-cat-excerpt {
    color: #ccc;
}

html.dark-mode .card-cat-meta {
    color: #aaa;
}

@media (max-width: 768px) {
    .card-cat-horizontal {
        flex-direction: column;
    }

    .card-cat-thumb {
        width: 100%;
        height: 220px;
    }

    .card-cat-content {
        width: 100%;
        padding: 20px;
    }

    .card-cat-title {
        font-size: 1.2rem;
    }

    .card-cat-excerpt {
        -webkit-line-clamp: 4; 
        line-clamp: 4;
        margin-bottom: 15px;
    }

    .card-cat-meta {
        gap: 10px;
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .lista-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; 
        gap: 20px !important;
    }

    .post-card-moderno:not(.destaque-principal) .post-thumb {
        height: 170px !important;
    }

    .post-card-moderno:not(.destaque-principal) .post-infos {
        padding: 20px !important;
    }

    .post-card-moderno:not(.destaque-principal) .post-infos h3 {
        font-size: 1.15rem !important;
        margin-bottom: 8px !important;
    }

    /* r58.6: resumo maior no desktop para puxar a leitura (era 0.85rem, ~14 palavras, 2 linhas) */
    .post-card-moderno:not(.destaque-principal) .excerpt-desk {
        font-size: 0.95rem !important;
        line-height: 1.55;
        color: #4d5560;
        /* não estica com o cartão (senão a 5ª linha aparece): no máximo 4 linhas; o "Ler" segue no pé (margin-top:auto) */
        flex-grow: 0 !important;
        max-height: 6.2em;
        margin-bottom: 15px !important;
        -webkit-line-clamp: 4 !important; 
        line-clamp: 4 !important; 
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.post-thumb-sm {
    height: 140px !important;
}

.post-infos-sm {
    padding: 15px !important;
}

.botao-gigante-home {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 22px 30px;
    background: linear-gradient(45deg, var(--azul-principal), #0073ff);
    color: white !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(4, 65, 245, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
}

.botao-gigante-home i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.botao-gigante-home:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(89, 196, 249, 0.5);
    background: linear-gradient(45deg, #0073ff, var(--azul-neon));
    color: var(--preto-profundo) !important;
}

html.dark-mode .botao-gigante-home {
    box-shadow: 0 10px 30px rgba(4, 65, 245, 0.2);
}

.ver-mais-btn {
    background: var(--azul-principal);
    color: white !important;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(4, 65, 245, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    border: 2px solid transparent;
}

.ver-mais-btn i {
    transition: transform 0.3s ease;
}

.ver-mais-btn:hover {
    background: var(--azul-neon);
    color: var(--preto-profundo) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(89, 196, 249, 0.4);
}

.ver-mais-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .ver-mais-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .titulo-linha {
        display: flex !important;
        flex-wrap: nowrap !important; 
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .titulo-linha h2 {
        font-size: 1.1rem !important;
        overflow: hidden;
        text-overflow: ellipsis; 
        white-space: nowrap;
        flex: 1;
    }
}

html.dark-mode .post-infos p,
html.dark-mode .excerpt-desk {
    color: #e0e0e0 !important;
}
}
