/* Página de Vídeos */

#hero.videos-header{
    background: #1E5E91;
    background: linear-gradient(90deg,rgba(30, 94, 145, 1) 0%, rgba(91, 184, 153, 1) 80%);  
}

#hero.videos-header .hero-title,
#hero.videos-header .hero-subtitle{
    color: #FFF !important;
}

.breadcrumb{
    padding-top: 2.6rem;
    padding-bottom: 1.6em;
}

.container-fluid{
    width: 95%;
    margin: 0 auto;
}

.videos-header{
    color: #FFF;
}

/* Video Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    padding: 0;
    list-style: none;
}

.video-item {
    overflow: hidden;
}

.video-container h3{
    color: #333;
    font-weight: 600;
}

.video-thumbnail {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: .8em;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.video-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    background: #fff;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 20px;
    max-height: 40vh;
    overflow-y: auto;
}

.video-info h2 {
    margin: 0 0 15px 0;
    color: #333;
}

#lightbox-video-description {
    color: #666;
    line-height: 1.6;
}

/* Destaque do vídeo */
.video-destaque {
    width: 100%;
    margin-bottom: 40px;
    background: #fff;
    overflow: hidden;
}

.destaque-container {
    display: flex;
    flex-direction: column;
}

.destaque-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    height: 540px;
    overflow: hidden;
}

.destaque-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destaque-info {
    padding: 1.4em 0;
}

.destaque-title {
    font-size: 1.8rem;
    margin: 0 0 20px 0;
    color: #333;
}

.destaque-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Responsividade para o destaque */
@media (max-width: 768px) {
    .destaque-thumbnail {
        height: 300px;
    }
    
    .destaque-info {
        padding: 20px;
    }
    
    .destaque-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .destaque-thumbnail {
        height: 200px;
    }
    
    .destaque-title {
        font-size: 1.3rem;
    }
}

/* Ajuste no grid para não ter descrição nos vídeos normais */
.videos-grid .video-item h3 {
    margin: 15px 0 0 0;
    font-size: 1rem;
    padding: 0 15px 15px 0;
}

.videos-grid .video-description {
    display: none; /* Esconde descrição nos vídeos da grid */
}

/* Botão Exibir mais vídeos */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: #4879a6;
    color: #FFF;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.load-more-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Spinner de carregamento */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.destaque-thumbnail img {
    height: 100%;
    object-fit: cover; /* Mantém proporção para imagens personalizadas */
}

/* Ajuste para diferentes tamanhos de tela */
@media (max-width: 768px) {
    .destaque-thumbnail img {
        height: 300px;
    }
    
    .video-thumbnail img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .destaque-thumbnail img {
        height: 200px;
    }
    
    .video-thumbnail img {
        height: 100%;
    }
}

.mb-2{
    margin-bottom: 1.8em;
}

.mb-3{
    margin-bottom: 2.6em;
}

.special-title{
    font-weight: 600;
    color: #333;
}

.play-button-mini {
    position: absolute;
    top: 80%;
    left: 87%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.doe-agora-btn{
    background-color: #1a5890;
    color: #FFF;
    border-radius: 5em;
    padding: .4em 1.4em;
    font-size: 14px;
    display: flex;
    margin-left: 2em;
}

.top-box-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-box-line h2{
    color: #1a5890;
    font-size: 2.2em;
    font-weight: 300;
    padding-right: 2%;
    display: inline-flex;
    align-items: center;
}

.top-box p{
    color: #676767;
    padding-bottom: 1.4em;
}

.desktop-none-mobile-show{
    display: none;
}

.mobile-none-desktop-show{
    display: flex;
}

@media only screen and (max-width: 600px) {
    .desktop-none-mobile-show{
        display: block;
    }

    .mobile-none-desktop-show{
        display: none;
    }

    .top-box-line{
        flex-wrap: wrap;
    }

    .doe-agora-btn{
        margin-left: 0;
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .top-box-line h2 {
        font-size: 2em;
    }
}

@media only screen and (min-width: 1600px){
    .container-fluid{
        width: 80%;
        margin: 0 auto;
    }
}