/* Sombra apenas na parte inferior e direita do card de destaque de notícias */
.shadow-news-destaque {
    box-shadow: 0 8px 16px -8px rgba(0,0,0,0.18), 8px 0 16px -8px rgba(0,0,0,0.18);
}
/* Personalização da cor primary - Laranja Escuro */
:root {
    --primary: #0072ba;
    --primary-100: #B8591A;
    --primary-200: #A04F17;
    --primary-300: #8A4513;
    --primary--100: #DC7332;
    --primary--200: #E67E47;
    --primary--300: #F0895C;
    /* --primary-rgba-0: rgba(210, 105, 30, 0);
    --primary-rgba-10: rgba(210, 105, 30, 0.1);
    --primary-rgba-20: rgba(210, 105, 30, 0.2);
    --primary-rgba-30: rgba(210, 105, 30, 0.3);
    --primary-rgba-40: rgba(210, 105, 30, 0.4);
    --primary-rgba-50: rgba(210, 105, 30, 0.5);
    --primary-rgba-60: rgba(210, 105, 30, 0.6);
    --primary-rgba-70: rgba(210, 105, 30, 0.7);
    --primary-rgba-80: rgba(210, 105, 30, 0.8);
    --primary-rgba-90: rgba(210, 105, 30, 0.9);
    --primary-inverse: #FFFFFF; */
}

/* Sobrescrevendo os botões para usar a cor primary do sistema */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--primary-100) !important;
    border-color: var(--primary-100) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}


.sinceti-btn {
    border-radius: 0.5rem !important;
    background-color: var(--primary) !important;
    color: #fff !important;
    transition: background 0.2s;
    border: 3px solid #fff !important;
}
.sinceti-btn:hover {
    background-color: #fff !important;
    color: var(--primary) !important;
    border: 3px solid var(--primary) !important;
}

/* Floating WhatsApp Icon */
.whatsapp-float {
    position: fixed;
    right: 40px;
    bottom: 64px;
    z-index: 9999;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    font-size: 2rem;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
}
.whatsapp-float:hover {
    background: #128c7e;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.20);
}
.whatsapp-float:active,
.whatsapp-float:focus {
    outline: none !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35) !important;
    border: none !important;
    color: #fff !important;
    background: #128c7e !important;
}

.eouv-btn {
    display: inline-block;
    padding: 0.25rem 1rem;
    border: 3px solid #fff !important;
    border-radius: 2rem !important;
    background: transparent !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
}
.eouv-btn:hover, .eouv-btn:focus {
    background: #fff !important;
    color: #0d6efd !important;
    outline: none !important;
}

.header-container {
    border-top: none;
}

.border-bottom-primary {
    border-bottom: none;
}

.text-orange {
    color: #f58634 !important;
}

/* Reduzir espaçamento horizontal entre itens do menu */
#mainNav.nav-pills {
    gap: 0.25rem !important; /* Reduz o espaço entre os itens */
}

#mainNav.nav-pills > li {
    margin: 0 !important; /* Remove todas as margens */
}

/* Ajustar padding dos links do menu para economizar espaço */
#mainNav.nav-pills > li > a {
    padding: 0.5rem 0.75rem !important; /* Reduz padding vertical e horizontal */
    font-size: 0.9rem !important; /* Ligeiramente menor */
}

/* Para os dropdowns */
#mainNav.nav-pills > li.dropdown > a {
    padding: 0.5rem 0.75rem !important;
}

/* =================================
   VIDEOS SECTION STYLES
   Grid layout para vídeos na página home
   ================================= */

#videos-section .video-thumbnail {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#videos-section .video-thumbnail:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3) !important;
}

#videos-section .video-thumbnail .card-img-top {
    transition: transform 0.4s ease;
}

#videos-section .video-thumbnail:hover .card-img-top {
    transform: scale(1.05);
}

#videos-section .badge {
    font-size: 0.7rem;
    padding: 0.4em 0.8em;
    border-radius: 15px;
    font-weight: 600;
}

#videos-section h4.text-white-75 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for videos section */
@media (max-width: 768px) {
    #videos-section .card-img-top {
        height: 160px !important;
    }
    
    #videos-section h4.text-white-75 {
        font-size: 1.3rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    #videos-section .card-img-top {
        height: 200px !important;
    }
    
    #videos-section h4.text-white-75 {
        font-size: 1.2rem;
    }
}

/* Swiper Customizations */
.videos-carousel {
    padding: 3px 0; /* Even more minimal vertical padding for 5 columns */
    overflow: visible;
}

.videos-carousel .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    width: auto !important; /* Force auto width */
    flex-shrink: 0;
}

/* Force 5 columns layout on desktop */
@media (min-width: 992px) {
    .videos-carousel .swiper-slide {
        width: calc(20% - 12px) !important; /* 20% = 5 columns, minus space for gaps */
        max-width: calc(20% - 12px) !important;
    }
}

.videos-carousel .swiper-slide .card {
    width: 100%;
    margin: 0;
}

/* Custom pagination */
.videos-carousel-pagination {
    text-align: center;
    margin-top: 5px; /* Minimal pagination spacing */
}

.videos-carousel-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.videos-carousel-pagination .swiper-pagination-bullet-active {
    background: #007bff;
    transform: scale(1.2);
}

/* Enhanced hover effects for carousel items */
.videos-carousel .card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2px; /* Minimal card spacing */
}

.videos-carousel .card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Compact video thumbnails for 5 per row */
.videos-carousel .card-img-top {
    height: 120px !important;
    object-fit: cover !important;
}

/* Smaller play button */
.videos-carousel .fa-play-circle {
    font-size: 2.2rem !important;
}

/* Compact card body */
.videos-carousel .card-body {
    padding: 6px !important;
}

/* Smaller card title */
.videos-carousel .card-title {
    font-size: 0.8rem !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
}

/* Loading animation for carousel */
.videos-carousel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.videos-carousel-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: video-carousel-spin 1s linear infinite;
}

/* Smooth fade-in animation */
.videos-carousel-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

/* Responsive adjustments for video carousel */
@media (min-width: 992px) {
    /* Optimize for 5 cards per row on larger screens */
    .videos-carousel .card-img-top {
        height: 115px !important;
    }
    
    .videos-carousel .card-title {
        font-size: 0.75rem !important;
    }
    
    .videos-carousel .card-body {
        padding: 5px !important;
    }
}

@media (max-width: 768px) {
    .videos-carousel-container {
        padding: 0 30px;
    }
    
    .carousel-nav-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .carousel-nav-prev {
        left: 5px;
    }
    
    .carousel-nav-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .videos-carousel-container {
        padding: 0 25px;
    }
    
    .carousel-nav-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    
    .carousel-nav-prev {
        left: 0;
    }
    
    .carousel-nav-next {
        right: 0;
    }
}

/* =================================
   YOUTUBE THUMBNAIL FALLBACK STYLES
   Sistema de fallback para thumbnails do YouTube
   Carrega diferentes resoluções automaticamente
   ================================= */

.thumbnail-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.thumbnail-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #ccc;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

.thumbnail-loaded {
    animation: fade-in 0.3s ease-in;
}

/* Placeholder para quando nenhuma thumbnail é encontrada */
.thumbnail-placeholder {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92S19.61 16.08 18 16.08z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* Animations for video carousel and thumbnails */
@keyframes video-carousel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes loading-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =================================
   PUBLICAÇÕES SECTION STYLES
   Cards de publicações na home page
   ================================= */

#publicacoes .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#publicacoes .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15) !important;
}

#publicacoes .card-img-top {
    transition: transform 0.4s ease;
}

#publicacoes .card:hover .card-img-top {
    transform: scale(1.05);
}

#publicacoes .badge {
    font-size: 0.7rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

#publicacoes .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#publicacoes .btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), #0056b3);
    border: none;
}

#publicacoes .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--bs-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#publicacoes .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
}

#publicacoes .btn-outline-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(25, 135, 84, 0.2);
}



/* Animation delays for cards */
#publicacoes .appear-animation:nth-child(1) { animation-delay: 0.2s; }
#publicacoes .appear-animation:nth-child(2) { animation-delay: 0.3s; }
#publicacoes .appear-animation:nth-child(3) { animation-delay: 0.4s; }
#publicacoes .appear-animation:nth-child(4) { animation-delay: 0.5s; }

/* =================================
   MULTIPLE POPUPS STYLES
   Estilos para popups múltiplos lado a lado
   ================================= */

#popupsModal .modal-dialog.modal-xl {
    max-width: 900px;
    width: 90%;
}

#popupsModal .modal-body {
    max-height: 75vh;
    background: transparent !important;
}

#popupsModal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#popupsModal .popup-item {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

#popupsModal .popup-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

#popupsModal .popup-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

#popupsModal .popup-item:hover img {
    transform: scale(1.02);
}

#popupsModal .popup-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

#popupsModal .popup-item a:hover {
    text-decoration: underline !important;
}

/* Responsive adjustments for multiple popups */
@media (max-width: 768px) {
    #popupsModal .modal-dialog.modal-xl {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
    }
    
    #popupsModal .modal-body {
        max-height: 70vh;
    }
    
    #popupsModal .popup-item {
        margin-bottom: 1rem;
    }
    
    #popupsModal .popup-item img {
        width: 100%;
        height: auto;
        max-height: 380px;
    }
    
    #popupsModal .popup-item h5 {
        font-size: 1rem;
    }
}

/* =================================
   CARDS IMPORTANTES SECTION STYLES
   Cards importantes na home page
   ================================= */

#cardsImportantes {
    margin-bottom: 2rem;
}

.card-importante {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.card-importante:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-importante-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.card-importante:hover .card-importante-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Efeito de overlay em cards com link */
.card-importante a {
    position: relative;
    display: block;
    text-decoration: none;
}

.card-importante a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,123,255,0.1), rgba(220,53,69,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-importante a:hover::before {
    opacity: 1;
}

/* Link indicator */
.card-importante a::after {
    content: '\f35d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    color: #007bff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 2;
}

.card-importante a:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Loading animation */
.card-importante-img[src=""], 
.card-importante-img:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

/* Responsive adjustments for cards importantes */
@media (max-width: 768px) {
    #cardsImportantes {
        margin-bottom: 1rem;
    }
    
    .card-importante {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-importante a::after {
        width: 30px;
        height: 30px;
        font-size: 12px;
        top: 10px;
        right: 10px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #publicacoes .card {
        margin-bottom: 1.5rem;
    }
}


