* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
body { background-color: #f4f4f4; color: #333; line-height: 1.6; overflow-x: hidden; }
header { 
    background: linear-gradient(135deg, #ff6600 0%, #333 100%); 
    color: white; 
    text-align: center; 
    padding: 60px 0; 
    position: relative; 
    width: 100%; 
    top: 0;
}
header h1 { font-size: 48px; margin-bottom: 15px; }
header p { font-size: 20px; max-width: 800px; margin: 0 auto; }
#datetime { font-size: 18px; margin-top: 10px; }
.btn-edit { background: #ff6600; color: #fff; padding: 5px 10px; border-radius: 5px; text-decoration: none; font-size: 12px; margin: 5px; cursor: pointer; border: none; }
.btn-edit:hover { background: #e65c00; }
.btn-members { background-color: #ff6600; color: #fff; padding: 8px 15px; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: bold; transition: background-color 0.3s; position: absolute; top: 10px; right: 10px; }
.btn-members:hover { background-color: #e65c00; }
.btn-signup { background: #ff6600; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-size: 16px; margin: 10px; display: inline-block; }
.btn-signup:hover { background: #e65c00; }
.btn-large { display: inline-block; width: auto; padding: 15px 25px; background-color: #333; color: #fff; font-size: 18px; font-weight: bold; text-align: center; border-radius: 8px; text-decoration: none; margin: 20px auto; display: block; }
.btn-large:hover { background-color: #444; }
.container { margin: 20px auto; padding: 10px; max-width: 1200px; display: flex; flex-direction: column; align-items: center; }
h2 { text-align: center; color: #333; font-size: 28px; margin-bottom: 20px; }
.main-content { padding: 40px 20px; background-color: #f9f9f9; text-align: center; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 32px; color: #ff6600; margin-bottom: 20px; font-weight: bold; }
.section-subtitle { font-size: 18px; color: #333; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.benefit-card { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); text-align: center; }
.benefit-card .icon { display: block; margin: 0 auto 10px; width: 24px; height: 24px; }
.benefit-card h3 { color: #ff6600; font-size: 20px; margin-bottom: 10px; }
.benefit-card p { color: #333; font-size: 14px; text-align: justify; line-height: 1.5; }
.accordion { margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; overflow: hidden; position: relative; width: 100%; }
.accordion-header { background-color: #ff6600; color: #fff; padding: 7px; font-weight: bold; cursor: pointer; text-align: left; border-bottom: 1px solid #ddd; position: relative; }
.accordion-header:hover { background-color: #e65c00; }
.accordion-content { display: none; padding: 8px; font-size: 14px; color: #333; background-color: #f9f9f9; width: 100%; box-sizing: border-box; overflow: hidden; }
.accordion-content p { margin: 0 0 10px 0; width: 100%; }
.accordion-content img { max-width: 100%; height: auto; display: block; margin: 10px 0; width: 100%; }
.accordion-content ul { list-style: none; padding: 0; margin: 0; }
.accordion-content ul li { padding: 5px 0; }
#ead .accordion-header { background-color: #000000; color: #ffffff; }
#ead .accordion-header:hover { background-color: #1a1a1a; }
#ead .accordion-content { background-color: #000000; color: #ffffff; }
.sticker { position: absolute; top: -10px; right: -10px; background-color: #ffcc00; color: #000; padding: 6px 12px; font-size: 14px; font-weight: bold; border-radius: 5px; transform: rotate(15deg); box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: rotate(15deg) scale(1); } 50% { transform: rotate(15deg) scale(1.1); } 100% { transform: rotate(15deg) scale(1); } }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal-content { background: #fff; margin: 50px auto; padding: 20px; width: 90%; max-width: 500px; border-radius: 10px; }
.modal-close { float: right; cursor: pointer; font-size: 20px; }
.btn-delete { background: #ff0000; color: #fff; padding: 5px 10px; border-radius: 5px; text-decoration: none; font-size: 12px; margin: 5px; cursor: pointer; border: none; }
.btn-delete:hover { background: #cc0000; }
.video-section { padding: 40px 20px; background: #fff; text-align: center; position: relative; max-width: 1200px; margin: 0 auto; }
.video-section iframe { max-width: 100%; border-radius: 8px; }
.video-close { position: absolute; top: 10px; right: 10px; color: #fff; font-size: 30px; cursor: pointer; background: rgba(255, 102, 0, 0.8); width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; }
.video-close:hover { background: rgba(230, 92, 0, 1); }
.highlight-section { background-color: #ffcc00; padding: 40px 20px; border-radius: 8px; margin: 40px 0; display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.highlight-text { max-width: 960px; text-align: justify !important; }
.highlight-text h3 { font-size: 28px; color: #333; margin-bottom: 15px; }
.highlight-text p { font-size: 16px; color: #333; }
.highlight-image { max-width: 960px; }
.highlight-image img { width: 100%; border-radius: 8px; }

/* Bloco "Comece Hoje" ajustado */
.call-to-action {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 40px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.call-to-action h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.animated-sign {
    background-color: #ff6600;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    font-weight: bold;
    text-align: justify;
    max-width: 600px;
    margin: 0 auto 30px auto;
    position: relative;
    overflow: hidden;
    animation: signPulse 3s infinite ease-in-out;
}

@keyframes signPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
    justify-content: center;
}

.album-video {
    position: relative;
    width: 180px;
    height: 320px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-video:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.album-video::after {
    content: '\f04b';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 40px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.album-video:hover::after {
    opacity: 1;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-secondary {
    background-color: #ff6600;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #e65c00;
}

.btn-large-orange {
    display: inline-block;
    width: auto;
    padding: 15px 25px;
    background-color: #ff6600;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-large-orange:hover {
    background-color: #e65c00;
}

.admin-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Fim do bloco "Comece Hoje" ajustado */

.btn-secondary { background-color: #ff6600; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s; cursor: pointer; }
.btn-secondary:hover { background-color: #e65c00; }
.animated-sign::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%); animation: shine 4s infinite linear; }
@keyframes shine { 0% { transform: translateX(-100%) translateY(-100%); } 100% { transform: translateX(100%) translateY(100%); } }
.float-btn { position: fixed; bottom: 20px; z-index: 1000; width: 60px; height: 60px; background-color: #ff6600; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); text-decoration: none; font-size: 24px; cursor: pointer; transition: background-color 0.3s, transform 0.3s; animation: pulseBtn 2s infinite; }
.float-btn.whatsapp-float { left: 20px; }
.float-btn.back-to-top { right: 20px; bottom: 20px; display: none; }
.float-btn:hover { background-color: #e65c00; transform: scale(1.1); }
@keyframes pulseBtn { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.certificados-section { margin: 40px 0; text-align: center; max-width: 1200px; margin-left: auto; margin-right: auto; }
.certificados-title { font-size: 28px; color: #ff6600; margin-bottom: 20px; font-weight: bold; }
.certificados-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.certificado-slide { text-align: center; }
.certificado-slide img { width: 100%; height: auto; max-height: 200px; object-fit: contain; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.certificado-info { margin-top: 10px; }
.certificado-info .faixa-name { display: block; font-size: 16px; color: #333; font-weight: bold; }
.certificado-info .alunos-count { display: block; font-size: 18px; color: #ff6600; font-weight: bold; margin-top: 5px; }
.video-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; }
.video-modal-content { position: relative; width: 360px; height: 640px; background: #000; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); z-index: 1; }
.video-modal-content video { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.video-modal-close { position: absolute; top: 15px; right: 15px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; background: rgba(255, 102, 0, 0.8); width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); transition: background 0.3s ease; z-index: 10; pointer-events: auto; }
.video-modal-close:hover { background: rgba(230, 92, 0, 1); }
.contact-form-container { max-width: 600px; width: 100%; margin: 0 auto; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.contact-form label { display: block; margin: 10px 0 5px; font-weight: bold; }
.contact-form input, .contact-form textarea { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.contact-form textarea { resize: vertical; }
#contact-message { text-align: center; margin-top: 10px; }
footer { text-align: center; padding: 20px; background-color: #333; color: #fff; }
footer a { color: #ff6200; text-decoration: none; }
footer a:hover, footer a:visited, footer a:active { color: #ff6200; }

/* Ajuste para a página de manutenção */
.maintenance-header {
    background: linear-gradient(135deg, #ff6600 0%, #333 100%);
    width: 100%;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
}
.maintenance-header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.maintenance-content {
    background: linear-gradient(135deg, #ff6600 0%, #333 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}
.maintenance-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}
.maintenance-content p {
    font-size: 18px;
    max-width: 800px;
}

@media (max-width: 768px) {
    header h1 { font-size: 36px; }
    header p { font-size: 16px; }
    .container { padding: 5px; }
    h2 { font-size: 24px; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .highlight-section { flex-direction: column; text-align: justify; }
    .certificados-container { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .album-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .album-video { width: 150px; height: 267px; }
    .call-to-action { padding: 20px 10px; }
    .contact-form-container { padding: 15px; }
}

@media (max-width: 480px) {
    .album-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .album-video { width: 120px; height: 213px; }
    .video-modal-content { width: 300px; height: 533px; }
    .contact-form-container { padding: 10px; }
}

/* Bloco amarelo de destaque (admin editável) */
.bloco-destaque-padrao {
    max-width: 960px;
    margin: 60px auto;
    padding: 20px;
    background-color: #fffbea;
    border-left: 8px solid #ffd000;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.bloco-destaque-padrao img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 20px;
}

.bloco-destaque-padrao h2,
.bloco-destaque-padrao h3 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.bloco-destaque-padrao p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 0;
}

.slideshow-wrapper {
    max-width: 2560px; /* Mesma largura máxima do slideshow */
    margin: 0 auto;
    position: relative;
}

#slideshow-iframe {
    width: 100%;
    min-height: 300px; /* Altura mínima para evitar colapso */
    border: none;
    overflow: hidden;
}

/* Estilos do Slideshow Incorporados (a partir de slideshow.php) */
.slideshow-container {
    position: relative;
    max-width: 2560px;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 1440px;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.slide-content h2 {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    white-space: nowrap;
}

.slideshow-container .btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.slideshow-container .btn:hover {
    background-color: #e65c00;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    transition: 0.3s ease;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #ff6600;
}

.admin-manage-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6600;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
}

.admin-manage-btn:hover {
    background-color: #e65c00;
}

.manager-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    position: relative;
}

.form-section {
    margin-bottom: 20px;
}

.form-section h2 {
    color: #333;
    margin-bottom: 10px;
}

input, select, button {
    margin: 5px 0;
    padding: 8px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    display: block;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #ff6600;
    color: #fff;
}

th:nth-child(1), td:nth-child(1) { width: 5%; min-width: 30px; }
th:nth-child(2), td:nth-child(2) { width: 15%; min-width: 80px; }
th:nth-child(3), td:nth-child(3) { width: 20%; min-width: 80px; }
th:nth-child(4), td:nth-child(4) { width: 10%; min-width: 30px; }
th:nth-child(5), td:nth-child(5) { width: 20%; min-width: 80px; }
th:nth-child(6), td:nth-child(6) { width: 20%; min-width: 80px; }
th:nth-child(7), td:nth-child(7) { width: 10%; min-width: 60px; }

.scrollable-text {
    display: inline-block;
    width: 100%;
    max-width: 60px; /* 7 caracteres em telas pequenas */
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px;
    box-sizing: border-box;
}

.scrollable-text::-webkit-scrollbar {
    height: 4px;
}

.scrollable-text::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 2px;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.back-btn:hover {
    background-color: #555;
}

.upload-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-item {
    flex: 1 1 18%;
    min-width: 150px;
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

.edit-form {
    display: none;
}

.edit-form.active {
    display: table-row;
}

.back-to-admin {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.back-to-admin:hover {
    background-color: #555;
}

.delete-all-btn, .save-all-edits-btn {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
    margin-right: 10px;
}

.save-all-edits-btn {
    background-color: #28a745;
}

.delete-all-btn:hover {
    background-color: #c82333;
}

.save-all-edits-btn:hover {
    background-color: #218838;
}

/* Media query para telas pequenas (menores que 768px) */
@media (max-width: 768px) {
    table {
        max-width: 100%; /* Largura do botão "Excluir Todos os Slides" */
    }
    th:nth-child(1), td:nth-child(1) { min-width: 20px; }
    th:nth-child(2), td:nth-child(2) { min-width: 50px; }
    th:nth-child(3), td:nth-child(3) { min-width: 40px; }
    th:nth-child(4), td:nth-child(4) { min-width: 20px; }
    th:nth-child(5), td:nth-child(5) { min-width: 40px; }
    th:nth-child(6), td:nth-child(6) { min-width: 40px; }
    th:nth-child(7), td:nth-child(7) { min-width: 30px; }
}

/* Media query para telas grandes (maiores que 768px) */
@media (min-width: 769px) {
    .scrollable-text {
        max-width: 160px; /* Ajustado para 18-20 caracteres em telas grandes */
    }
}
/* Fim dos Estilos do Slideshow Incorporados */

/* Adição para corrigir a cor do texto no slideshow */
.slide-text {
    color: #fff; /* Cor padrão do texto (branco) */
    text-align: center;
}
.slide-text h2 {
    font-size: 24px; /* Tamanho da legenda */
    font-weight: bold;
    margin: 10px 0;
    color: inherit; /* Herda a cor do .slide-text */
}
.slide-text .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6600; /* Cor de fundo do botão */
    color: #fff; /* Cor do texto do botão */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.slide-text .btn:hover {
    background-color: #e65c00; /* Cor do botão ao passar o mouse */
}