/* Estilos Globais */
:root {
    --bs-primary: #02203E;
    --primary-color: #02203E;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

/* Botão de rolagem (thumb) */
::-webkit-scrollbar-thumb {
    background: #02203E; /* Cor do botão de rolagem */
    border-radius: 5px;
}

/* Ao passar o mouse no botão de rolagem */
::-webkit-scrollbar-thumb:hover {
    background: #003d82;
}

/* Reset de espaçamento */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 70px !important;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Seções */
.section-title {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: none !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.destaque-principal .card-img-top {
    height: 400px;
}


.posts-populares .card {
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.posts-populares .card:hover {
    transform: translateX(5px);
}

.posts-populares .card-body {
    padding: 0.8rem;
}

.posts-populares img {
    height: 80px;
    object-fit: cover;
}

/* Newsletter */
.newsletter .card {
    background-color: var(--light-bg);
}

.newsletter .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.newsletter .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #02203E, #033461);
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 5rem;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #02203E, #3498db, #02203E);
}

footer h5 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

footer p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

footer .list-unstyled a {
    color: #ffffff;
    opacity: 0.9;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

footer .list-unstyled a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

footer .list-unstyled a:hover {
    color: #ffffff;
    opacity: 1;
    transform: translateX(5px);
}

footer .list-unstyled a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-bottom small {
    color: #ffffff;
    opacity: 0.9;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer h5 {
        margin-top: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    footer .col-md-4:first-child h5 {
        margin-top: 0;
    }
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
}

/* Botões */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Página de Notícia */
.noticia-completa {
    max-width: 800px;
    margin: 0 auto;
}

.noticia-completa .display-4 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.noticia-completa .meta-info {
    color: #6c757d;
    font-size: 0.95rem;
}

.noticia-completa .meta-info i {
    color: var(--secondary-color);
}

.noticia-imagem img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Estilos para o conteúdo do post */
.noticia-conteudo {
    position: relative;
    z-index: 1;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.noticia-conteudo strong,
.noticia-conteudo b {
    font-weight: 600;
    color: #000;
}

.noticia-conteudo p {
    margin-bottom: 1.5rem;
}

.compartilhamento .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.comentarios .card {
    transform: none;
}

.comentarios .card:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comentario {
    transition: background-color 0.3s ease;
}

.comentario:hover {
    background-color: var(--light-bg);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* Página de Contato */
.contato-section {
    max-width: 900px;
    margin: 0 auto;
}

.contato-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contato-info {
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.contato-info:hover {
    transform: translateY(-5px);
}

.contato-info i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contato-info:hover i {
    color: var(--secondary-color);
}

.contato-form .form-control {
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.contato-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contato-form .form-label {
    color: var(--primary-color);
    font-weight: 500;
}

.contato-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contato-form .btn-primary {
    padding: 0.8rem 2.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contato-form .card {
    border: none;
    box-shadow: none !important;
}

.contato-form .card:hover {
    transform: none;
    box-shadow: none !important;
}

/* Página Por que nos escolher */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.05), rgba(52, 152, 219, 0.05));
    border-radius: 1rem;
}

.hero-section .display-4 {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-section .lead {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.beneficios-section .card {
    border-radius: 1rem;
    overflow: hidden;
}

.beneficios-section .card-body {
    position: relative;
    z-index: 1;
}

.beneficios-section .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.02), rgba(52, 152, 219, 0.02));
    z-index: -1;
}

.beneficios-section i {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recursos-section img {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.recursos-section img:hover {
    transform: scale(1.02);
}

.planos-section .card {
    border-radius: 1rem;
    overflow: hidden;
}

.planos-section .card.border-primary {
    position: relative;
}

.planos-section .ribbon {
    position: absolute;
    top: 1.5rem;
    right: -2rem;
    transform: rotate(45deg);
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 3rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.planos-section .price {
    color: var(--primary-color);
}

.planos-section .price .h2 {
    font-weight: 700;
}

.cta-section .cta-content {
    border-radius: 1rem;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.05), rgba(52, 152, 219, 0.05));
}

/* Responsividade */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .destaque-principal .card-img-top {
        height: 250px;
    }
    
    .card-img-top {
        height: 150px;
    }

    .noticia-completa .display-4 {
        font-size: 2rem;
    }

    .noticia-imagem img {
        max-height: 300px;
    }

    .compartilhamento .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .contato-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .contato-form .btn-primary {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .planos-section .ribbon {
        font-size: 0.7rem;
        padding: 0.4rem 2rem;
    }
    
    /* Alterações para manter blocos em vertical */
    .row > [class*="col-md"] {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Destaques em vertical */
    .destaques .destaque-principal .card {
        height: 300px;
    }
    
    .destaques .card-title {
        font-size: 1.2rem;
    }
    
    .destaques .destaque-principal .card-title {
        font-size: 1.6rem;
    }
    
    .destaques .card-text {
        font-size: 1rem;
    }
    
    .destaques .destaque-principal .card-text {
        font-size: 1.1rem;
    }
    
    .destaques .post-meta {
        padding: 0.875rem 1rem;
    }
    
    /* Conteúdo adicional em vertical */
    .destaques .posts-populares,
    .destaques .anuncios,
    .destaques .newsletter {
        margin-top: 2rem;
    }
    
    /* Ajustes para notícias em vertical */
    .ultimas-noticias .card {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .ultimas-noticias .card-title {
        font-size: 1.2rem;
    }
    
    .ultimas-noticias .card-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .ultimas-noticias .post-meta {
        padding: 10px;
    }
    
    /* Ajustes para colunistas */
    .foto-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .colunista-nome {
        font-size: 1rem;
    }
    
    .ultimo-post {
        font-size: 0.8rem;
    }
    
    /* Ajustes para stories */
    .stories-container {
        height: 100px;
        padding: 0 40px;
    }
    
    .stories-scroll-indicator {
        width: 36px;
        height: 36px;
    }
    
    .stories-scroll-indicator i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }

    .noticia-completa .display-4 {
        font-size: 1.8rem;
    }

    .noticia-conteudo {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contato-section .section-title {
        font-size: 1.8rem;
    }

    .hero-section .display-4 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .planos-section .ribbon {
        font-size: 0.7rem;
        padding: 0.4rem 2rem;
    }

    .ultimas-noticias .card {
        height: 250px;
    }
    
    .ultimas-noticias .card-title {
        font-size: 1.2rem;
    }
    
    .ultimas-noticias .card-text {
        font-size: 1rem;
    }
    
    .ultimas-noticias .post-meta {
        padding: 0.875rem 1rem;
    }

    .story-side-buttons {
        padding: 8px;
        gap: 6px;
    }
    
    .story-side-buttons .side-button-group {
        gap: 6px;
    }
    
    .story-side-buttons.expanded .side-button-group {
        margin-top: 6px;
    }
    
    .story-side-buttons .main-button,
    .story-side-buttons .close-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .story-side-buttons.left {
        left: 10px;
        bottom: 70px;
    }
    
    .story-side-buttons.right {
        right: 10px;
        bottom: 70px;
    }
    
    .views-indicator {
        bottom: 115px;
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .side-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .story-nav {
        width: 35px;
        height: 35px;
        bottom: 15px;
    }
    
    .story-prev {
        left: 10px;
    }
    
    .story-next {
        right: 10px;
    }
    
    .story-wrapper {
        width: 90%;
        max-width: 350px;
        height: 75vh;
    }
    
    .story-header {
        padding: 10px;
    }
    
    .story-body {
        padding: 15px;
        padding-bottom: 60px;
    }
    
    .story-text {
        max-width: 280px;
    }
    
    .story-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .story-description {
        font-size: 14px;
    }
    
    .story-comment-field {
        max-width: 90%;
        bottom: -50px;
    }
    
    .story-modal {
        padding-bottom: 60px;
    }
    
    .share-options {
        max-width: 200px;
    }
}

.ultimas-noticias .card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px 12px 0 0;
    height: 280px;
    margin-bottom: 0;
    box-shadow: none !important;
}

.ultimas-noticias .card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.ultimas-noticias .card:hover .card-background {
    transform: scale(1.05);
}

.ultimas-noticias .card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    height: 100%;
    position: relative;
    z-index: 1;
}

.ultimas-noticias .post-meta {
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 1rem 1.25rem;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: none !important;
}

.ultimas-noticias .post-wrapper {
    margin-bottom: 2.5rem;
}

.ultimas-noticias .card-body {
    position: relative;
    z-index: 1;
    color: white;
}

.ultimas-noticias .card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ultimas-noticias .card-title a {
    color: white !important;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.ultimas-noticias .card-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.ultimas-noticias .badge {
    background-color: #02203E;
    font-size: 0.9rem;
    padding: 0.5em 1em;
    font-weight: 500;
    box-shadow: none !important;
    margin-bottom: 1rem;
}

.ultimas-noticias .post-meta small {
    font-size: 0.9rem;
}

.ultimas-noticias .post-meta small:first-child {
    color: var(--primary-color);
    font-weight: 600;
}

.ultimas-noticias .post-meta small:last-child {
    color: #6c757d;
}

/* Destaques */
.destaques .card {
    position: relative;
    overflow: hidden;
    border: none;
    margin-top: 1em;
    margin-bottom: 0;
    box-shadow: none !important;
}

.destaques .destaque-principal .card {
    height: 400px;
}

.destaques .card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.destaques .card:hover .card-background {
    transform: scale(1.05);
}

.destaques .card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    height: 100%;
    position: relative;
    z-index: 1;
}

.destaques .post-meta {
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 1rem 1.25rem;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: none !important;
}

.destaques .post-wrapper {
    margin-bottom: 2.5rem;
}

.destaques .card-body {
    position: relative;
    z-index: 1;
}

.destaques .card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
}

.destaques .destaque-principal .card-title {
    font-size: 2rem;
}

.destaques .card-title a {
    text-decoration: none;
}

.destaques .card-text {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.destaques .destaque-principal .card-text {
    font-size: 1.2rem;
}

.bg-blue {
    background-color: #02203E;
}

.destaques .badge {
    background-color: #02203E;
    font-size: 0.9rem;
    padding: 0.5em 1em;
    font-weight: 500;
    box-shadow: none !important;
    margin-bottom: 1rem;
}

.destaques .post-meta small {
    font-size: 0.9rem;
}

.destaques .post-meta small:first-child {
    color: var(--primary-color);
    font-weight: 600;
}

.destaques .post-meta small:last-child {
    color: #6c757d;
}

.destaques .posts-populares .card {
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
    margin-bottom: 0.75rem;
}

.destaques .posts-populares .card:hover {
    transform: translateX(5px);
}

.destaques .posts-populares .card-body {
    padding: 0.75rem;
}

.destaques .posts-populares .col-4 {
    width: 85px;
    padding-right: 0;
}

.destaques .posts-populares img {
    width: 85px;
    object-fit: cover;
}

.destaques .posts-populares .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    max-height: 2.6em;  /* Aproximadamente 2 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #02203E;
}

.destaques .posts-populares .card-title a {
    color: #02203E;
    text-decoration: none;
}

.destaques .posts-populares .card-title a:hover {
    color: #0056b3;
}

.destaques .posts-populares .visualizacoes {
    font-size: 0.85rem;
    color: #6c757d;
}

.destaques .posts-populares .visualizacoes i {
    margin-right: 0.25rem;
}

/* .destaques .anuncios .card,
.destaques .newsletter .card {
    border: 1px solid var(--border-color);
} */

.destaques .newsletter .form-control-sm {
    padding: 0.4rem 0.75rem;
}

.destaques .newsletter .btn-sm {
    padding: 0.4rem 1rem;
}

.navbar {
    position: relative;
    z-index: 1000;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Adicionar padding ao body quando a navbar está fixa */
body.has-fixed-nav {
    padding-top: 72px;
}

.destaques .carousel {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.destaques .carousel-item {
    transition: transform .6s ease-in-out;
}

.destaques .carousel-indicators {
    margin-bottom: 2rem;
}

.destaques .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 4px;
}

.destaques .carousel-indicators button.active {
    background-color: white;
}

.destaques .carousel-control-prev,
.destaques .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.destaques .carousel:hover .carousel-control-prev,
.destaques .carousel:hover .carousel-control-next {
    opacity: 1;
}

.destaques .carousel-control-prev-icon,
.destaques .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50%;
}

.destaques .post-meta {
    border-radius: 0 0 12px 12px;
}

/* Animação suave para transição dos slides */
.carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

/* Carrossel de Colunistas */
.colunistas {
    position: relative;
    margin-bottom: 2rem;
}

.colunistas .container {
    max-width: 100%;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .colunistas .container {
        max-width: 960px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .colunistas .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .colunistas .container {
        max-width: 1320px;
    }
}

#carrosselColunistas {
    width: 100%;
    margin: 0 auto;
}

#carrosselColunistas .carousel-inner {
    width: 100%;
    margin: 0 auto;
}

.colunista-card {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.colunista-card:hover {
    transform: translateY(-5px);
}

.foto-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.foto-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.colunista-nome {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.ultimo-post {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.colunistas .carousel-control-prev,
.colunistas .carousel-control-next {
    width: 40px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 50%;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.colunistas .carousel-control-prev {
    left: 0;
}

.colunistas .carousel-control-next {
    right: 0;
}

@media (max-width: 768px) {
    .foto-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .colunista-nome {
        font-size: 1rem;
    }
    
    .ultimo-post {
        font-size: 0.8rem;
    }
}

/* Estilos para o Ticker de Cotações */
.ticker-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    height: 20px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ticker-static {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #e9ecef;
    min-width: 400px;
    background-color: #fff;
    gap: 20px;
}

.ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    opacity: 1;
}

.ticker-item:hover {
    background-color: rgba(2, 32, 62, 0.05);
    transform: translateY(-1px);
}

.ticker-item .currency {
    font-weight: bold;
    margin-right: 8px;
    color: #000;
}

.ticker-item .value {
    margin-right: 8px;
    color: #666;
    transition: color 0.3s;
}

.ticker-item .trend {
    display: flex;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ticker-item .trend.up {
    color: #28a745;
}

.ticker-item .trend.down {
    color: #dc3545;
}

.ticker-item .trend i {
    margin-right: 2px;
    font-size: 12px;
}

.currency-icon {
    width: 24px;
    height: 24px;
    background: #02203E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 8px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsividade */
@media (max-width: 991px) {
    .ticker-static {
        min-width: 100%;
        padding: 10px;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .ticker-item {
        font-size: 13px;
        padding: 6px 10px;
        background: rgba(248, 249, 250, 0.7);
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        min-width: 170px;
        margin: 2px;
    }

    .ticker-item .currency {
        margin-right: 8px;
        min-width: 40px;
        font-size: 12px;
    }
    
    .ticker-item .value {
        margin-right: 8px;
        font-size: 12px;
        min-width: 75px;
    }

    .ticker-item .trend {
        font-size: 11px;
        padding: 3px 6px;
        border-radius: 4px;
    }
    
    .ticker-item .trend.up {
        background: rgba(40, 167, 69, 0.1);
    }
    
    .ticker-item .trend.down {
        background: rgba(220, 53, 69, 0.1);
    }
    
    .currency-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .ticker-track {
        animation: ticker 45s linear infinite;
        padding: 10px 0;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .ticker-wrapper {
        flex-direction: column;
    }
    
    .ticker-static {
        padding: 8px;
        gap: 10px;
        justify-content: center;
    }
    
    .ticker-item {
        padding: 5px 8px;
        margin: 2px;
        min-width: 150px;
        border-radius: 4px;
    }
    
    .ticker-item .currency {
        margin-right: 6px;
        min-width: 35px;
        font-size: 11px;
    }
    
    .ticker-item .value {
        margin-right: 6px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .ticker-item .trend {
        min-width: 45px;
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .ticker-item .trend i {
        font-size: 9px;
    }
    
    .currency-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
        margin-right: 5px;
    }

    .ticker-track {
        animation: ticker 60s linear infinite;
        justify-content: center;
    }
    
    .ticker-container {
        padding: 5px 0;
    }
}

/* Estilos para o Popup de Notificações */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
}

.notification-content {
    padding: 20px;
}

.notification-content h5 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.notification-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.95rem;
}

.notification-buttons {
    display: flex;
    gap: 10px;
}

.notification-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-accept {
    background: var(--primary-color);
    color: white;
}

.btn-accept:hover {
    background: var(--secondary-color);
}

.btn-deny {
    background: #f8f9fa;
    color: #666;
}

.btn-deny:hover {
    background: #e9ecef;
}

.notification-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.notification-message .close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .notification-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Estilos do Navbar */
.navbar {
    background-color: #02203E !important;
}

.navbar-brand, 
.navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar .btn-outline-primary {
    color: #fff;
    border-color: #fff;
}

.navbar .btn-outline-primary:hover {
    background-color: #fff;
    color: #02203E;
}

.navbar .form-control {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.navbar .form-control:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.1);
}

/* Estilos do Menu Mobile Customizado */
@media (max-width: 1245px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #02203E;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .d-flex.ms-3 {
        width: 100%;
        margin: 0 !important;
    }

    #login-link {
        display: inline-block;
        width: auto;
        margin-top: 0.5rem;
    }
}

@media (min-width: 1246px) {
    .navbar-expand-custom {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }
    
    .navbar-expand-custom .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    
    .navbar-expand-custom .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-expand-custom .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

/* Breaking News Styles */
.breaking-news-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 10px;
    scrollbar-width: thin;
}

.breaking-news-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: none !important;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.breaking-news-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.breaking-news-close:hover {
    background-color: rgba(0,0,0,0.1);
}

.breaking-news-badge {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.breaking-news-title {
    font-size: 1.1rem;
    margin: 10px 0;
}

.breaking-news-title a {
    color: #333;
    text-decoration: none;
}

.breaking-news-title a:hover {
    color: #0056b3;
}

.breaking-news-meta {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.show-news-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #f00;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.show-news-button:hover {
    background-color: #003d82;
    animation: none;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .breaking-news-container {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
    }

    .show-news-button {
        right: 10px;
        bottom: 10px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* Scrollbar styles */
.breaking-news-container::-webkit-scrollbar {
    width: 6px;
}

.breaking-news-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.breaking-news-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.breaking-news-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para o campo de expiração de notícia urgente */
.breaking-news-expira {
    width: 100%;
    margin-top: 1rem;
}

.breaking-news-expira input[type="datetime-local"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: #fff;
}

.breaking-news-expira label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

@media (min-width: 768px) {
    .breaking-news-expira {
        min-width: 300px;
    }
}

/* Remover box-shadow dos blocos */
.card,
.news-card,
.sidebar-block,
.weather-card,
.lottery-card,
.currency-section .card,
.quote-section .card,
.events-section .card,
.pharmacy-section .card,
.bus-section .card,
.phones-section .card,
.air-quality-section .card,
.breaking-news,
.featured-posts .card,
.latest-posts .card,
.category-posts .card,
.poll-card,
.social-feed,
.newsletter-block {
    box-shadow: none !important;
}

/* Posts Mais Lidos */
.posts-populares {
    background-color: #fff;
}

.posts-populares .card {
    transition: all 0.3s ease;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.posts-populares .card:last-child {
    border-bottom: none;
}

.posts-populares .card:hover {
    background-color: rgba(2, 32, 62, 0.02);
    transform: translateX(5px);
}

.posts-populares .card-body {
    padding: 12px;
}

.posts-populares .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    max-height: 2.6em;  /* Aproximadamente 2 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #02203E;
}

.posts-populares .card-title a {
    color: inherit;
    text-decoration: none;
}

.posts-populares .card-title a:hover {
    color: #3498db;
}

.posts-populares .visualizacoes {
    font-size: 0.8rem;
    color: #6c757d;
}

.posts-populares .visualizacoes i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.posts-populares .numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: #02203E;
    margin-right: 1rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.posts-populares .media {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.posts-populares img {
    height: 85px;
    width: 85px;
    object-fit: cover;
    border-radius: 5px;
}

.card-header.bg-blue {
    padding: 1rem;
}

.card-header.bg-blue h5 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header.bg-blue h5 i {
    font-size: 1.2rem;
}

/* Estilo para links de títulos em geral */
.card-title a {
    text-decoration: none;
    position: relative;
    display: inline-block; /* Garante que o sublinhado fique contido dentro do link */
}

.card-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
    z-index: 2; /* Garante que o sublinhado fique por cima da truncamento */
}

.card-title a:hover::after {
    width: 100%;
}

/* Ajuste específico para títulos em cards com fundo escuro */
.card.text-white .card-title a::after {
    background-color: #fff;
}

/* Stories Styles */
.stories-wrapper {
    overflow: hidden;
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
}

/* Indicadores de arrastar */
.stories-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    color: #fff;
    opacity: 1;
}

.stories-scroll-indicator.left {
    left: 5px;
}

.stories-scroll-indicator.right {
    right: 5px;
}

.stories-scroll-indicator:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.1);
}

.stories-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.stories-scroll-indicator i {
    font-size: 14px;
}

/* Container dos stories */
.stories-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Quando houver muitos stories, permitir arrastar */
@media (min-width: 992px) {
    .stories-container {
        justify-content: flex-start;
        margin: 0 auto;
        max-width: 850px;
        padding: 0 50px;
    }
}

@media (max-width: 991px) {
    .stories-container {
        padding: 0 35px;
        gap: 12px;
    }
    
    .stories-scroll-indicator {
        width: 28px;
        height: 28px;
    }
    
    .stories-scroll-indicator i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .stories-container {
        padding: 0 30px;
        gap: 10px;
    }
    
    .stories-scroll-indicator {
        width: 24px;
        height: 24px;
    }
}

.story-item {
    flex: 0 0 auto;
    width: 80px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-avatar-border {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #02203E, #3498db);
    padding: 3px;
    margin-bottom: 8px;
    position: relative;
}

.story-avatar-border.multiple-stories {
    background: linear-gradient(45deg, #00c853, #4CAF50);
}

.story-avatar-border.multiple-stories::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00c853;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.story-author {
    font-size: 12px;
    color: #333;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Story Modal - Container Principal */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    padding-bottom: 80px;
}

.story-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper do Story para posicionar elementos externos */
.story-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 80vh;
    margin: 0 auto;
    margin-top: -40px;
}

/* O modal em si */
.story-view {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.story-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Sobreposição escura */
.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.6));
    z-index: 2;
}

/* Cabeçalho com foto do usuário e controles */
.story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 4;
}

.story-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.story-info {
    flex: 1;
}

.story-author-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.story-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.story-category {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-top: 4px;
}

.story-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.story-pause,
.story-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 4;
}

.story-pause:hover,
.story-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.story-nav {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1231;
    bottom: 20px;
    top: auto;
    transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.story-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.story-prev {
    left: 20px;
}

.story-next {
    right: 20px;
}

/* Conteúdo central */
.story-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 20px;
    z-index: 3;
    text-align: center;
}

.story-text {
    max-width: 320px;
    margin: 0 auto;
}

.story-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.story-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Barra de Progresso */
.story-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 5;
}

.story-progress-bar {
    height: 100%;
    background: #fff;
    width: 0;
    animation: progress 10s linear forwards;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

/* Contador de views */
.views-indicator {
    position: absolute;
    bottom: 115px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Botões laterais */
.story-side-buttons {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    transform: none;
    top: auto;
    bottom: 70px;
}

.story-side-buttons.left {
    left: 20px;
}

.story-side-buttons.right {
    right: 20px;
}

.story-side-buttons .side-button-group {
    display: none;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.story-side-buttons.expanded .side-button-group {
    display: flex;
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.story-side-buttons .main-button {
    display: flex;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.story-side-buttons .close-button {
    display: none;
    font-size: 16px;
    background: rgba(255, 0, 0, 0.25);
}

.story-side-buttons.expanded .main-button {
    display: none;
}

.story-side-buttons.expanded .close-button {
    display: flex;
}

.story-side-buttons.left .main-button {
    background: rgba(52, 152, 219, 0.7);
}

.story-side-buttons.right .main-button {
    background: rgba(231, 76, 60, 0.7);
}

.story-side-buttons .whatsapp-share {
    background: rgba(37, 211, 102, 0.8);
}

.story-side-buttons .telegram-share {
    background: rgba(0, 136, 204, 0.8);
}

.story-side-buttons .facebook-share {
    background: rgba(59, 89, 152, 0.8);
}

.story-side-buttons .twitter-share {
    background: rgba(29, 161, 242, 0.8);
}

.story-side-buttons .copy-share {
    background: rgba(108, 117, 125, 0.8);
}

.story-side-buttons .reaction-button[title="Curtir"] {
    background: rgba(52, 152, 219, 0.8);
}

.story-side-buttons .reaction-button[title="Amei"] {
    background: rgba(231, 76, 60, 0.8);
}

.story-side-buttons .reaction-button[title="Uau"] {
    background: rgba(241, 196, 15, 0.8);
}

.story-side-buttons .reaction-button[title="Triste"] {
    background: rgba(142, 142, 142, 0.8);
}

.story-side-buttons .reaction-button[title="Grr"] {
    background: rgba(230, 126, 34, 0.8);
}

/* Media query for smaller screens */
@media (max-width: 992px) {
    .story-side-buttons {
        padding: 10px;
        gap: 10px;
        border-radius: 15px;
    }
    
    .story-side-buttons.left {
        left: 5px;
    }
    
    .story-side-buttons.right {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .side-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .story-side-buttons {
        gap: 8px;
    }
    
    .story-side-buttons.left {
        left: 15px;
        bottom: 70px;
    }
    
    .story-side-buttons.right {
        right: 15px;
        bottom: 70px;
    }
    
    .views-indicator {
        bottom: 115px;
    }
}

@media (max-width: 576px) {
    .story-side-buttons {
        padding: 8px;
        gap: 6px;
    }
    
    .story-side-buttons .side-button-group {
        gap: 6px;
    }
    
    .story-side-buttons.expanded .side-button-group {
        margin-top: 6px;
    }
    
    .story-side-buttons .main-button,
    .story-side-buttons .close-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .story-side-buttons.left {
        left: 10px;
        bottom: 70px;
    }
    
    .story-side-buttons.right {
        right: 10px;
        bottom: 70px;
    }
    
    .views-indicator {
        bottom: 115px;
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .side-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .story-nav {
        width: 35px;
        height: 35px;
        bottom: 15px;
    }
    
    .story-prev {
        left: 10px;
    }
    
    .story-next {
        right: 10px;
    }
    
    .story-wrapper {
        width: 90%;
        max-width: 350px;
        height: 75vh;
        margin-top: -20px;
    }
    
    .story-header {
        padding: 10px;
    }
    
    .story-body {
        padding: 15px;
        padding-bottom: 60px;
    }
    
    .story-text {
        max-width: 280px;
    }
    
    .story-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .story-description {
        font-size: 14px;
    }
    
    .story-comment-field {
        max-width: 90%;
        bottom: -50px;
    }
    
    .story-modal {
        padding-bottom: 60px;
    }
    
    .share-options {
        max-width: 200px;
    }
}

/* Campo de comentário */
.story-comment-field {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
}

.comment-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.comment-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2374e1;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.comment-send:hover {
    transform: scale(1.1);
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 240px;
    margin: 10px auto 0;
}

.share-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .side-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .story-side-buttons {
        gap: 8px;
    }
    
    .story-comment-field {
        bottom: -60px;
    }
}

@media (max-width: 576px) {
    .side-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .story-wrapper {
        width: 90%;
        max-width: 350px;
        height: 75vh;
    }
    
    .story-header {
        padding: 10px;
    }
    
    .story-comment-field {
        max-width: 90%;
        bottom: -50px;
    }
    
    .story-modal {
        padding-bottom: 60px;
    }
    
    .share-options {
        max-width: 200px;
    }
}

/* Botões e elementos interativos */
.side-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.side-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.side-button.active {
    background: #2374e1;
}

.story-nav {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1231;
    bottom: 20px;
    top: auto;
    transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.story-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.story-prev {
    left: 20px;
}

.story-next {
    right: 20px;
}

.story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 4;
}

.story-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.story-info {
    flex: 1;
}

.story-author-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.story-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.story-category {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-top: 4px;
}

.story-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.story-pause,
.story-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 4;
}

.story-pause:hover,
.story-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.story-side-buttons .main-button:hover {
    transform: scale(1.15);
}

.story-side-buttons.expanded {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
} 

/* Garantir altura fixa para os títulos dos cards */
.card-title {
    height: auto;
    max-height: 4.2em;  /* Aproximadamente 3 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Garantir altura fixa para os títulos dos cards de destaques */
.destaques .card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    height: auto;
    max-height: 4.2em;  /* Aproximadamente 3 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Garantir altura fixa para os títulos dos cards de últimas notícias */
.ultimas-noticias .card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    height: auto;
    max-height: 4.2em;  /* Aproximadamente 3 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Em telas menores, reduzir ainda mais o tamanho dos títulos */
@media (max-width: 991px) {
    .destaques .card-title {
        font-size: 1.2rem;
        line-height: 1.3;
        max-height: 3.9em;
        -webkit-line-clamp: 3;
    }
    
    .destaques .destaque-principal .card-title {
        font-size: 1.6rem;
        line-height: 1.3;
        max-height: 3.9em;
        -webkit-line-clamp: 3;
    }

    .ultimas-noticias .card-title {
        font-size: 1.2rem;
        line-height: 1.3;
        max-height: 3.9em;
        -webkit-line-clamp: 3;
    }
}

/* Ajustes para os posts populares */
.posts-populares .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #02203E;
    height: auto;
    max-height: 2.6em;  /* Aproximadamente 2 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Ajustes específicos para layouts responsivos */
@media (max-width: 991px) {
    /* Ajustar altura e truncamento de títulos para mobile */
    .card-title {
        max-height: 3.9em;
        -webkit-line-clamp: 3;
    }
    
    /* Garantir que a categoria fique acima do título */
    .ultimas-noticias .badge,
    .destaques .badge {
        position: relative;
        z-index: 2;
        display: inline-block;
        margin-bottom: 0.75rem;
    }
    
    /* Ajuste específico para alinhamento vertical de cards em mobile */
    .ultimas-noticias .card-img-overlay,
    .destaques .card-img-overlay {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 991px) {
    /* Ajustes para melhorar posicionamento da categoria */
    .ultimas-noticias .badge,
    .destaques .badge {
        position: relative;
        z-index: 2;
        display: inline-block;
        margin-bottom: 0.75rem;
    }
    
    /* Garantir que os títulos não ocupem espaço excessivo */
    .ultimas-noticias .card-title,
    .destaques .card-title {
        font-size: 1.2rem;
        line-height: 1.3;
        height: auto;
        max-height: 3.9em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
    
    /* Ajuste específico para alinhamento vertical de cards */
    .ultimas-noticias .card-img-overlay,
    .destaques .card-img-overlay {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.5rem;
    }
    
    /* Ajuste de espaçamento entre componentes nos cards */
    .ultimas-noticias .card-body,
    .destaques .card-body {
        padding: 1.25rem;
    }
}

/* Garante que a animação de sublinhado funcione em títulos truncados */
.card-title {
    height: auto;
    max-height: 4.2em;  /* Aproximadamente 3 linhas de texto */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    position: relative; /* Importante para posicionamento do pseudo-elemento */
}

/* Ajustes específicos para diferentes tipos de cards */
.destaques .card-title a,
.ultimas-noticias .card-title a,
.posts-populares .card-title a {
    display: inline; /* Permite que o link siga o fluxo do truncamento */
    background-image: linear-gradient(currentColor, currentColor); /* Alternativa ao ::after para casos de truncamento */
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px; /* Inicialmente sem sublinhado */
    transition: background-size 0.3s ease;
    text-decoration: none;
    padding-bottom: 2px;
}

.destaques .card-title a:hover,
.ultimas-noticias .card-title a:hover,
.posts-populares .card-title a:hover {
    background-size: 100% 2px; /* Expande o sublinhado ao fazer hover */
}

/* Garantir que o link dos posts populares tenha a mesma cor ao fazer hover */
.posts-populares .card-title a:hover {
    color: #3498db;
}