/* Estilos para Turmas - Frontend */

/* Wrapper do Carrossel */
.turmas-carousel-wrapper {
    position: relative;
    padding: 20px 0;
    max-width: 100%;
    overflow: hidden;
}

.turmas-swiper {
    width: 100%;
    padding: 20px 0 60px 0;
}

.swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Card da Turma */
.turma-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border-collapse: collapse;
}

table.turma-table tbody>tr:nth-child(odd)>td

/* Navegação do Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #2563eb;
    background: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Paginação do Swiper */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #2563eb;
    width: 24px;
    border-radius: 5px;
}

/* Cabeçalho do Card */
.turma-card-header {
    background: #0095a0;
    border: 1px solid hsla(0, 0%, 50%, .502);
    border-radius: 10px 10px 0px 0px;
    padding: 10px;
    text-align: center;
    border-bottom: 0;
}

.turma-logo {
    margin-bottom: 15px;
}

.turma-logo-img {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.turma-titulo {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

/* Corpo do Card - Tabela */
.turma-card-body {
    padding: 0;
}

.turma-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.turma-table tbody {
    display: table-row-group;
}

.turma-table-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.turma-table-row:hover {
    background-color: #f8fafc;
}

.turma-table-row:last-child {
    border-bottom: none;
}

.turma-table-dia {
    background: #0095a0 !important;
    color: #ffffff;
    padding: 8px 10px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    width: 140px;
}

/* Força fundo azul na primeira coluna, sobrescrevendo qualquer regra externa */
.turma-table tbody tr td:first-child {
    background: #0095a0 !important;
    color: #ffffff !important;
}

.turma-table-conteudo {
    padding: 8px 10px;
    color: #333333;
    background-color: #e5e5e5 !important;
    font-size: 15px;
    line-height: 1.5;
    vertical-align: middle;
}

/* Força fundo cinza na segunda coluna, sobrescrevendo qualquer regra externa */
.turma-table tbody tr td:nth-child(2) {
    background: #e5e5e5 !important;
    color: #333333 !important;
}

/* Rodapé do Card */
.turma-card-footer {
    background: #fff;
    padding: 10px 20px;
    border: 1px solid hsla(0, 0%, 50%, .502);
    border-top: none;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.turma-contato-label {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    text-align: left;
}

.turma-contato {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
}

.turma-contato .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.turma-contato-texto {
    letter-spacing: 0.3px;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .turmas-carousel-wrapper {
        padding: 15px 0;
    }

    .turmas-swiper {
        padding: 15px 0 50px 0;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    .turma-table-dia {
        white-space: normal;
        width: 100px;
        padding: 8px 10px;
    }

    .turma-titulo {
        font-size: 18px;
    }

    .turma-card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .turma-contato {
        align-self: stretch !important;
        justify-content: center !important;
    }
}

@media screen and (max-width: 480px) {
    .turma-card-header {
        padding: 20px 15px;
    }

    .turma-table-dia {
        font-size: 13px;
        padding: 10px 12px;
        width: 90px;
    }

    .turma-table-conteudo {
        padding: 10px 12px;
        font-size: 14px;
    }

    .turma-card-footer {
        padding: 15px;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .turma-contato {
        align-self: stretch !important;
        justify-content: center !important;
    }

    .turma-titulo {
        font-size: 16px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.turmas-carousel-wrapper {
    animation: fadeInUp 0.6s ease;
}
