/**
 * CSS Customizado - Portal de Notícias Interativa FM
 */

/* Variáveis CSS */
:root {
    --primary-color: #31455A;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Variáveis Bootstrap Override */
    --bs-primary: #31455A;
    --bs-primary-rgb: 49, 69, 90;
    --bs-primary-bg-subtle: #e8eaed;
    --bs-primary-border-subtle: #c1c7cd;
    --bs-primary-text-emphasis: #1e2a35;
}

/* Reset e configurações gerais */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

/* Header customizado */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-weight: 700;
}

/* Navegação */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Navbar Toggler - Ícone branco */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.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, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Cards de notícias */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* Badges customizados */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Indicador de cor das categorias */
.category-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Botões customizados */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 0.5rem 1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.9);
    color: var(--primary-color);
}

/* Formulário de busca */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alertas customizados */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #0dcaf0;
    background-color: #e7f6ff;
}

.alert-primary {
    border-left-color: var(--primary-color);
    background-color: #e7f1ff;
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: #fff8e1;
}

/* Paginação */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Conteúdo do artigo */
.content-article {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.content-article p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-article h2,
.content-article h3,
.content-article h4 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content-article blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* List group customizado */
.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .content-article {
        font-size: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Utilitários */
.text-justify {
    text-align: justify;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilo para imagens responsivas */
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Estilo para vídeos responsivos */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Estilo para tabelas */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
}

.table td {
    border-color: #eee;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

/* Footer Styles */
.footer-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-brand .footer-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-description {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-contact p {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    width: 16px;
    margin-right: 10px;
    color: #007bff;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #007bff;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333333;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #007bff;
    transform: translateY(-2px);
    color: #ffffff;
}

.footer-section-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #007bff;
}

.footer-posts {
    margin-top: 20px;
}

.footer-post-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333333;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-post-item:hover {
    opacity: 0.8;
}

.footer-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-post-thumb {
    width: 80px;
    height: 60px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-post-content h6 {
    margin-bottom: 8px;
}

.footer-post-content h6 a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.footer-post-content h6 a:hover {
    color: #007bff;
}

.footer-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #b0b0b0;
}

.footer-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.newsletter-description {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-input-group {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: #333333;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #999999;
}

.newsletter-btn {
    padding: 12px 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: #0056b3;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #007bff;
}

.footer-bottom p a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom p a:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .footer-dark {
        padding: 40px 0 20px;
    }
    
    .footer-post-item {
        flex-direction: column;
    }
    
    .footer-post-thumb {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-btn {
        border-radius: 0 0 6px 6px;
    }
    
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 10px;
    }
}



/* Notificação de Live Ativa */
.live-notification {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.live-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

.live-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-text {
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}

.live-info {
    flex: 1;
    min-width: 0;
}

.live-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-description {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.live-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-watch-live {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-watch-live:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.btn-close-notification:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* Animações */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsividade da notificação */
@media (max-width: 768px) {
    .live-notification-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .live-info {
        order: 1;
    }
    
    .live-indicator {
        order: 2;
        justify-content: center;
    }
    
    .live-actions {
        order: 3;
        justify-content: center;
        width: 100%;
    }
    
    .live-title {
        white-space: normal;
        font-size: 16px;
    }
    
    .btn-watch-live {
        flex: 1;
        justify-content: center;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .live-notification {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .live-title {
        font-size: 15px;
    }
    
    .live-description {
        font-size: 13px;
    }
    
    .btn-watch-live {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Category Sections Layout */
.jcs-category-section {
    margin-bottom: 1rem;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid rgba(51 72 92);
    transition: all 0.3s ease;
}

.jcs-category-section:hover {
    background: rgb(255, 255, 255);
    border-left-color: rgba(0 123 255);
}

.jcs-category-section:last-child {
    margin-bottom: 2rem;
}

/* Ad Section Styles */
.jcs-ad-section {
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    flex: 1 1 100%; /* evita encolhimento em layouts flex */
}

.jcs-ad-section ins {
    display: block;
    margin: 0 auto;
    width: 100% !important;
    min-height: 250px;
}

.jcs-ad-section .adsbygoogle {
    display: block;
    margin: 0 auto;
    width: 100% !important;
    min-height: 250px;
}

/* Ad containers: ensure non-zero width to avoid 0x0 requests */
.jcs-ad-container,
.jcs-ad-section,
.anuncios-live,
.adsbygoogle {
  min-width: 120px;
}
.jcs-ad-container ins,
.jcs-ad-container .adsbygoogle,
.jcs-ad-section ins,
.jcs-ad-section .adsbygoogle,
.anuncios-live .adsbygoogle,
.anuncios-live ins {
  display: block;
  width: 100% !important;
  min-height: 250px;
}
@media (max-width: 480px) {
  .jcs-ad-container ins,
  .jcs-ad-container .adsbygoogle,
  .jcs-ad-section ins,
  .jcs-ad-section .adsbygoogle,
  .anuncios-live .adsbygoogle,
  .anuncios-live ins {
    min-height: 200px;
  }
}


.jcs-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jcs-category-count {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 400;
    margin-left: 0.3rem;
}

.jcs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.jcs-section-header .jcs-section-line {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #314559, #32465a3b);
    border-radius: 2px;
}

/* Customização do carrossel - controles na linha dos indicadores */
#heroCarousel .carousel-control-prev {
    top: auto;
    bottom: 20px;
    left: 20px;
    transform: none;
    width: 40px;
    height: 40px;
}

#heroCarousel .carousel-control-next {
    top: auto;
    bottom: 20px;
    right: 20px;
    transform: none;
    width: 40px;
    height: 40px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    transform: scale(1.1);
}

#heroCarousel .carousel-indicators {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

.jcs-view-all {
    color: white;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border: 1px solid linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem;
    white-space: nowrap;
}

.jcs-view-all:hover {
    color: white;
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}



/* News Grid Layout */
.jcs-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.jcs-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.jcs-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.jcs-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.jcs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jcs-news-card:hover .jcs-card-image img {
    transform: scale(1.05);
}

.jcs-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcs-card-content {
    padding: 1.5rem;
}

.jcs-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.jcs-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jcs-card-title a:hover {
    color: #1e3c72;
}

.jcs-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jcs-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.jcs-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.jcs-card-meta i {
    color: #1e3c72;
}

/* Filtered News Styles */
.jcs-filtered-news .jcs-section-title {
    color: #33475b;
}

.jcs-filtered-news {
    margin-bottom: 2rem;
}

/* Category Page Styles */
.jcs-category-page .jcs-section-title {
    font-size: 1.3rem; /* 30% maior que 1rem */
}

/* Responsive Design */
@media (max-width: 768px) {
    .jcs-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    

    
    .jcs-card-image {
        height: 180px;
    }
    
    .jcs-card-content {
        padding: 1rem;
    }
    
    .jcs-card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .jcs-news-grid {
        padding: 0.5rem;
    }
    
    .jcs-card-image {
        height: 160px;
    }
    
    .jcs-card-title {
        font-size: 1rem;
    }
    
    .jcs-card-excerpt {
        font-size: 0.85rem;
    }
}

/* Posicionamento da categoria no topo do thumbnail */
#heroCarousel .jcs-carousel-category {
    position: absolute;
    top: 20px;
    left: 20px;
    margin-bottom: 0;
    z-index: 10;
}

/* Sponsor slide clicável */
.sponsor-slide {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sponsor-slide:hover {
    transform: scale(1.02);
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .btn,
    .sidebar,
    .live-notification,
    .jcs-view-all {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card,
    .jcs-news-card,
    .jcs-category-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .jcs-news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Layout Exato da Imagem */
.jcs-news-layout-exact {
    margin-top: 30px;
}

/* Linha das duas notícias principais grandes */
.jcs-featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.jcs-featured-card-large {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.jcs-featured-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.jcs-featured-image-large {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
}

.jcs-featured-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jcs-featured-card-large:hover .jcs-featured-image-large img {
    transform: scale(1.05);
}

.jcs-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.jcs-featured-content-large {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jcs-featured-title-large {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jcs-featured-title-large a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jcs-featured-title-large a:hover {
    color: #007bff;
}

.jcs-featured-meta-large {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color: #666;
    margin-top: auto;
}

.jcs-featured-meta-large span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jcs-featured-meta-large i {
    font-size: 11px;
    color: #999;
}

/* Grid das 6 notícias pequenas horizontais */
.jcs-small-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.jcs-small-card-horizontal {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
}

.jcs-small-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.jcs-small-image-horizontal {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.jcs-small-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jcs-small-card-horizontal:hover .jcs-small-image-horizontal img {
    transform: scale(1.05);
}

.jcs-small-content-horizontal {
    flex: 1;
    min-width: 0;
}

.jcs-small-title-horizontal {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jcs-small-title-horizontal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jcs-small-title-horizontal a:hover {
    color: #007bff;
}

.jcs-small-meta-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    color: #666;
}

.jcs-small-meta-horizontal span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.jcs-small-meta-horizontal i {
    font-size: 9px;
    color: #999;
}

/* Responsividade */
@media (max-width: 1024px) {
    .jcs-featured-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .jcs-small-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .jcs-featured-row {
        gap: 12px;
    }
    
    .jcs-small-news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .jcs-featured-image-large {
        height: 200px;
    }
    
    .jcs-featured-content-large {
        padding: 15px;
    }
    
    .jcs-featured-title-large {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .jcs-small-card-horizontal {
        padding: 10px;
        gap: 10px;
    }
    
    .jcs-small-image-horizontal {
        width: 70px;
        height: 50px;
    }
    
    .jcs-small-title-horizontal {
        font-size: 13px;
    }
    
    .jcs-small-meta-horizontal {
        font-size: 9px;
        gap: 6px;
    }
}

/* Facebook Video Fixes */
.fb-video {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.fb-video iframe {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
}

/* Remove ratio container for Facebook videos specifically */
.ratio.ratio-16x9:has(.fb-video) {
    position: static !important;
    padding-bottom: 0 !important;
    height: auto !important;
}

/* Remove the ::before pseudo-element from ratio containers with Facebook videos */
.ratio.ratio-16x9:has(.fb-video)::before {
    display: none !important;
}

/* Remove ::before for containers with Facebook iframes */
.ratio.ratio-16x9:has(iframe[src*="facebook.com"])::before {
    display: none !important;
}

/* Fallback for browsers that don't support :has() */
.ratio.ratio-16x9 .fb-video {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
}

/* Fix Facebook iframes within article content */
.article-content iframe[src*="facebook.com"] {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Ensure proper spacing around Facebook iframes in content */
.article-content iframe[src*="facebook.com"] {
    margin-bottom: 20px !important;
}

/* Remove any extra spacing from content containers with Facebook iframes */
.article-content .content-head__subtitle iframe[src*="facebook.com"] {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fallback: Remove ::before from ratio containers that contain Facebook content */
.ratio.ratio-16x9 .fb-video::before,
.ratio.ratio-16x9 iframe[src*="facebook.com"]::before {
    display: none !important;
}

/* Additional fallback: Target the ratio container directly when it contains Facebook content */
.article-content .ratio.ratio-16x9::before {
    display: none !important;
}

/* Vertical Facebook Videos - Much Smaller and Perfectly Centered */
.article-content iframe[src*="facebook.com"][width="267"][height="476"],
.article-content iframe[src*="facebook.com"][style*="width: 267px"],
.article-content iframe[src*="facebook.com"][style*="width:267px"],
body .article-content iframe[src*="facebook.com"][width="267"],
html body .article-content iframe[src*="facebook.com"][width="267"] {
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 12px !important;
    transform: scale(1) !important;
}

/* Container for vertical Facebook videos - Force centering */
.article-content p:has(iframe[src*="facebook.com"][width="267"]),
.article-content div:has(iframe[src*="facebook.com"][width="267"]),
.article-content .content-head__subtitle,
.article-content h5.content-head__subtitle {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

/* Additional aggressive rules for vertical Facebook videos */
iframe[src*="facebook.com"][width="267"] {
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Override any Bootstrap or other framework styles */
.container iframe[src*="facebook.com"][width="267"],
.row iframe[src*="facebook.com"][width="267"],
.col iframe[src*="facebook.com"][width="267"],
.main-content iframe[src*="facebook.com"][width="267"] {
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Specific centering for main-content area - only for Facebook videos */
.main-content .article-content {
    text-align: left; /* Keep normal text alignment */
}

/* Proper spacing for paragraphs in article-content */
.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Estilos específicos para conteúdo do Summernote */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }
.article-content h5 { font-size: 1.1rem; }
.article-content h6 { font-size: 1rem; }

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
}

.article-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.article-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.article-content strong {
    font-weight: 600;
}

.article-content em {
    font-style: italic;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content a {
    color: #007bff;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.main-content .article-content iframe[src*="facebook.com"][width="267"] {
    margin: 20px auto !important;
    display: block !important;
    text-align: center !important;
}

/* Force centering for any container holding Facebook videos in main-content */
.main-content h5:has(iframe[src*="facebook.com"][width="267"]),
.main-content p:has(iframe[src*="facebook.com"][width="267"]),
.main-content div:has(iframe[src*="facebook.com"][width="267"]) {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Centralizar especificamente o div.mb-4 que contém vídeos do Facebook */
.main-content div.mb-4:has(iframe[src*="facebook.com"]) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.main-content div.mb-4 iframe[src*="facebook.com"] {
    margin: 0 auto !important;
    display: block !important;
}

.article-content .content-head__subtitle iframe[src*="facebook.com"][width="267"] {
    max-width: 220px !important;
    width: 220px !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Additional centering for ratio containers with vertical videos */
.article-content .ratio:has(iframe[src*="facebook.com"][width="267"]) {
    max-width: 220px !important;
    width: 220px !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Responsive behavior for vertical Facebook videos */
@media (max-width: 768px) {
    .article-content iframe[src*="facebook.com"][width="267"][height="476"],
    .article-content .content-head__subtitle iframe[src*="facebook.com"][width="267"],
    .article-content .ratio:has(iframe[src*="facebook.com"][width="267"]) {
        max-width: 180px !important;
        width: 180px !important;
        margin: 15px auto !important;
    }
}

@media (max-width: 480px) {
    .article-content iframe[src*="facebook.com"][width="267"][height="476"],
    .article-content .content-head__subtitle iframe[src*="facebook.com"][width="267"],
    .article-content .ratio:has(iframe[src*="facebook.com"][width="267"]) {
        max-width: 160px !important;
        width: 160px !important;
        margin: 10px auto !important;
    }
}

/* ========================================
   ESTILOS PARA COMENTÁRIOS
   ======================================== */

.comments-section {
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

.comments-section h4 {
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.comment-form h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
}

.comment-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.comment-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.comment-form .form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.comment-form .btn {
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Lista de comentários */
.comments-list h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
}

.comment-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar .avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-meta h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
}

.comment-meta small {
    color: #6c757d;
    font-size: 12px;
}

.comment-content {
    margin-left: 60px;
}

.comment-content p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 14px;
}

/* Estado vazio */
.no-comments {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.no-comments i {
    color: #adb5bd;
    margin-bottom: 15px;
}

.no-comments p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 0;
}

/* Alertas de feedback */
.comments-section .alert {
    border-radius: 6px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.comments-section .alert-success {
    background-color: #d1edff;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.comments-section .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsividade */
@media (max-width: 768px) {  
    .comment-item {
        padding: 15px;
    }
    
    .comment-content {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .comment-avatar {
        margin-bottom: 10px;
        align-self: center;
    }
    
    .comment-meta {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .comments-section h4 {
        font-size: 1.3rem;
    }
    
    .comment-form h5 {
        font-size: 1.1rem;
    }
    
    .comments-list h5 {
        font-size: 1.1rem;
    }
    
    .no-comments {
        padding: 30px 15px;
    }
    
    .no-comments i {
        font-size: 2rem;
    }
}