/* Estilo Geral Moderno */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* Cabeçalho Moderno */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img.logo {
    height: 45px;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img.logo {
    transform: rotate(5deg) scale(1.1);
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: #34495e;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Carousel Moderno */
.carousel {
    position: relative; /* <-- ADICIONADO: Define o contexto de posicionamento para as setas */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 40px;
}

.carousel-item {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.carousel-media-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.carousel-item img,
.carousel-item video,
.carousel-video-thumbnail,
.carousel-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.carousel-item:hover img,
.carousel-item:hover video,
.carousel-item:hover .carousel-video-thumbnail {
    transform: scale(1.05);
}

.carousel-video-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-video {
    cursor: pointer;
}

.carousel-image-link,
.carousel-media-link {
    display: block;
    cursor: pointer;
    position: relative;
}

/* Overlay moderno para vídeos */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-media-link:hover .video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Container do título moderno */
.carousel-title-container {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(30, 60, 114, 0.9) 100%);
    padding: 30px;
    border-radius: 0 0 15px 15px;
}

.carousel-title-content {
    max-width: 800px;
    margin: 0 auto;
}

.carousel-title-container h5 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.3;
}

.carousel-title-container h5 a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.carousel-title-container h5 a:hover {
    text-decoration: none;
    color: #64b5f6;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.carousel-title-container p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #e3f2fd;
    line-height: 1.6;
}

.carousel-title-container .d-flex small {
    color: #b3e5fc !important;
    font-size: 0.95rem;
}

.carousel-title-container .btn {
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 25px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.carousel-title-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

/* Indicadores modernos */
.carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.carousel-indicators [data-bs-target].active {
    background-color: #2196f3;
    border-color: #2196f3;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.6);
}

/* Controles de navegação modernos */
.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    top: 50%; /* <-- CORRIGIDO: Centraliza verticalmente */
    transform: translateY(-50%);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(33, 150, 243, 0.9);
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Cards de Notícias Modernos */
.noticia-card {
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.noticia-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.noticia-card img {
    height: 220px; /* Alterado para height para consistência */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.noticia-card:hover img {
    transform: scale(1.1);
}

.card-image-link {
    display: block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

/* NOVO: Estilo para Placeholder de Card sem Imagem */
.card-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e5ec 0%, #f7f9fc 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px 20px 0 0;
}

.placeholder-icon {
    font-size: 4rem;
    color: #bdc3c7;
    opacity: 0.8;
}


.card-body {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #667eea;
}

.card-text {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.categoria-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.categoria-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.categoria-badge {
    display: inline-block;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.categoria-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

/* Seções */
section h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
}

/* Indicador de vídeo para cards */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.card-image-link:hover .video-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Categorias em Destaque */
.categoria-card {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    height: 100%;
    border-bottom: 3px solid transparent; /* Preparar para o efeito hover */
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

.categoria-card.politica:hover {
    border-bottom: 5px solid #0056b3;
}

.categoria-card.esportes:hover {
    border-bottom: 5px solid #28a745;
}

.categoria-card.entretenimento:hover {
    border-bottom: 5px solid #ffc107;
}

.categoria-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0056b3;
}

.categoria-card.esportes .categoria-icon {
    color: #28a745;
}

.categoria-card h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.categoria-card p {
    color: #666;
    margin-bottom: 0;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Página de Notícia Individual */
#noticia-conteudo h1 {
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

#noticia-conteudo img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.noticia-conteudo {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.noticia-meta {
    color: #666;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.categoria-badge-large {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.video-container {
    background-color: #f0f2f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 2rem;
}

.video-container h3 {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

/* Responsividade Moderna */
@media (max-width: 768px) {
    .carousel-media-container,
    .carousel-item img,
    .carousel-video-thumbnail,
    .carousel-image,
    .carousel-video-container {
        height: 350px;
    }
    
    .carousel-title-container {
        padding: 20px;
    }
    
    .carousel-title-container h5 {
        font-size: 1.4rem;
    }
    
    .carousel-title-container p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        margin: 2px 4px;
        padding: 6px 12px !important;
    }
    
    .noticia-card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .carousel-media-container,
    .carousel-item img,
    .carousel-video-thumbnail,
    .carousel-image,
    .carousel-video-container {
        height: 280px;
    }
    
    .carousel-title-container {
        padding: 15px;
    }
    
    .carousel-title-container h5 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .carousel-title-container p {
        display: none;
    }
    
    .carousel-indicators {
        bottom: -40px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
        top: 50%; /* <-- CORRIGIDO: Garante a centralização também no mobile */
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img.logo {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        margin: 1px 2px;
        padding: 5px 10px !important;
    }
    
    .card {
        border-radius: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .categoria-tag {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}