/* --- Seção de Vídeos CESFA 30 Anos --- */
.section-videos {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Cabeçalho da Seção */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-header .tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #b45309;
    background-color: #fffbeb;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid #fed7aa;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header h2 span {
    color: #b45309;
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: #475569;
}

/* Grid de Vídeos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 56px;
}

/* Card de Vídeo */
.video-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #e9eef2;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -12px rgba(0, 35, 70, 0.15);
    border-color: #fcd34d;
}

/* Thumbnail com imagem personalizada */
.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay escuro suave */
.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-card:hover .video-thumbnail::before {
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%);
}

/* Botão Play

/* Font Awesome icon (padrão) */
.play-button .play-icon-font {
    display: inline-block;
}

/* Emoji fallback (escondido por padrão) */
.play-button .play-icon-emoji {
    display: none;
    font-size: 40px;
    line-height: 1;
    margin-left: 5px;
}



/* Informações do Vídeo */
.video-info {
    padding: 24px 20px 20px 20px;
    background: white;
}

.video-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.video-info p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.video-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px dashed #d1d5db;
    padding-top: 14px;
}

.video-meta i {
    color: #b45309;
    margin-right: 5px;
}

/* Botão de Ação (CTA) */
.cta-videos {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    background-color: #b45309;
    color: #ffffff;
    font-weight: 600;
    padding: 14px 42px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(180, 83, 9, 0.2);
    letter-spacing: 0.01em;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background-color: #ffffff;
    color: #b45309;
    border-color: #b45309;
    box-shadow: 0 20px 25px -5px rgba(180, 83, 9, 0.3);
}

/* Rodapé com anos */
.years-badge {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.years-badge span {
    background-color: #f1f5f9;
    padding: 4px 14px;
    border-radius: 30px;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: auto; /* Mudado de 100% para auto */
    max-width: 90vw; /* Limita a largura máxima */
    background-color: transparent;
    border-radius: 16px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-button {
    position: absolute;
    top: -40px; /* Posiciona fora do vídeo */
    right: 0;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-button:hover {
    background-color: #b45309;
    color: white;
    border-color: #ffffff;
    transform: scale(1.1);
}

/* Container do vídeo */
.video-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

/* Estilo base do iframe */
.video-wrapper iframe {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Classes para diferentes proporções - AGORA COM TAMANHO LIMITADO */
.video-wrapper.landscape iframe {
    width: min(80vw, 1000px); /* Limita a largura máxima em desktop */
    aspect-ratio: 16 / 9;
}

.video-wrapper.portrait iframe {
    height: min(70vh, 600px); /* Limita a altura máxima */
    width: auto;
    aspect-ratio: 9 / 16;
}

.video-wrapper.square iframe {
    height: min(70vh, 600px);
    width: auto;
    aspect-ratio: 1 / 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .video-wrapper.portrait iframe {
        height: 70vh;
    }
    .video-wrapper.landscape iframe {
        width: 95vw;
    }
    .close-button {
        top: -45px;
    }
}

@media (max-width: 480px) {
    .video-wrapper.portrait iframe {
        height: 60vh;
    }
    
    .close-button {
        top: -40px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .section-header h2 {
        font-size: 1.9rem;
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Seção de Depoimentos */
.testimonials-section {
    background-color: #1E2158;
    padding: 60px 0;
    margin: 40px 0 0 0;
    position: relative;
    overflow: hidden;
}

/* Efeito de fundo decorativo */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    transform: rotate(-45deg);
    pointer-events: none;
}

.testimonials-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Cabeçalho */
.testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #F37277;
    background-color: rgba(243, 114, 119, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid rgba(243, 114, 119, 0.3);
}

.testimonials-tag i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.testimonials-header h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.testimonials-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F37277, #ffd25f);
    border-radius: 2px;
}

.testimonials-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Card de Depoimento */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    margin: 20px 0 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 114, 119, 0.3);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: rgba(243, 114, 119, 0.2);
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-left: 40px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F37277, #ffd25f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.author-info h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    color: #F37277;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Controles de navegação */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #F37277;
    border-color: #F37277;
    transform: scale(1.1);
}

.control-btn:disabled,
.control-btn.btn-disable {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dots-container {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #F37277;
    transform: scale(1.2);
    width: 12px;
    height: 12px;
}

/* Responsividade */
@media (max-width: 992px) {
    .testimonials-header h2 {
        font-size: 2.2rem;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-header h2 {
        font-size: 2rem;
    }
    
    .testimonials-header p {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-quote {
        font-size: 3rem;
        top: 15px;
        left: 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
        padding-left: 20px;
        margin-bottom: 20px;
    }
    
    .testimonial-author {
        gap: 12px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .author-info h4 {
        font-size: 1.1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .testimonials-section {
        padding: 30px 0;
    }
    
    .testimonials-header h2 {
        font-size: 1.8rem;
    }
    
    .testimonials-header p {
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-quote {
        font-size: 2.5rem;
        top: 10px;
        left: 15px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        padding-left: 15px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .testimonials-controls {
        gap: 15px;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 10px;
        height: 10px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 400px) {
    .testimonial-card {
        padding: 15px;
    }
    
    .testimonial-quote {
        font-size: 2rem;
        top: 8px;
        left: 10px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        padding-left: 10px;
    }
}

.icon-tag,
.icon-meta,
.icon-btn,
.icon-badge {
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

.play-button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.testimonial-quote img {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.author-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.control-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.control-btn:hover img {
    filter: none;
}

.wa-btn img {
    width: 40px;
    height: 40px;
}

/* Responsividade */
@media (max-width: 768px) {
    .play-button img {
        width: 25px;
        height: 25px;
    }
    
    .control-btn img {
        width: 18px;
        height: 18px;
    }
    
    .wa-btn img {
        width: 35px;
        height: 35px;
    }
    
    footer img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .play-button img {
        width: 22px;
        height: 22px;
    }
    
    .control-btn img {
        width: 16px;
        height: 16px;
    }
    
    .wa-btn img {
        width: 30px;
        height: 30px;
    }
}

.play-button {
    width: 68px;
    height: 68px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Desktop: acima de 1200px - Font Awesome */
@media (min-width: 1201px) {
    .desktop-play {
        display: inline-block;
        font-size: 1.8rem;
        color: #b45309;
    }
    .mobile-play, .png-play {
        display: none;
    }
}

/* Mobile/Tablet: abaixo de 1200px - Emoji */
@media (max-width: 1200px) {
    .desktop-play, .png-play {
        display: none;
    }
    .mobile-play {
        display: inline-block;
        font-size: 40px;
        color: #b45309;
        line-height: 1;
    }
}

/* Fallback para dispositivos muito antigos */
@supports not (font-family: 'Font Awesome 5 Free') {
    @media (min-width: 1201px) {
        .desktop-play, .mobile-play {
            display: none;
        }
        .png-play {
            display: inline-block;
            width: 30px;
            height: 30px;
        }
    }
}

.video-card:hover .desktop-play,
.video-card:hover .mobile-play {
    color: #ffffff;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .play-button {
        width: 55px;
        height: 55px;
    }
    .mobile-play {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 45px;
        height: 45px;
    }
    .mobile-play {
        font-size: 28px;
    }
}