/* Estilos específicos para a página de Programação e Desenvolvimento de Sistemas */

/* Ajuste para o espaçamento do topo devido ao header fixo */
body {
    padding-top: 76px;
}

/* Estilo para o menu ativo */
.nav-link.active {
    color: #4a6bdb !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    bottom: 0;
    left: 10%;
    background-color: #4a6bdb;
}

/* Seção de introdução da disciplina */
.discipline-intro {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e6f5;
}

.discipline-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.discipline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para os trimestres */
.trimester-section {
    padding: 50px 0;
    border-bottom: 1px solid #e0e6f5;
}

.trimester-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.trimester-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #4a6bdb;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Estilo para cada tópico */
.topic-container {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.topic-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.topic-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a6bdb;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e6f5;
}

.topic-description {
    color: #4a5568;
    margin-bottom: 25px;
}

/* Estilos para os exercícios */
.exercises-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.exercise-card {
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.exercise-card:hover {
    background-color: #f0f4ff;
    transform: translateY(-5px);
}

.exercise-btn {
    display: inline-block;
    background-color: #4a6bdb;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.exercise-btn:hover {
    background-color: #3451b2;
    transform: scale(1.05);
    color: white;
}

.exercise-description {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
}

/* Estilo para seções em desenvolvimento */
.coming-soon-container {
    text-align: center;
    padding: 40px 0;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.coming-soon-icon {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 20px;
}

.coming-soon-text {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    .discipline-intro {
        padding: 40px 0;
    }

    .discipline-image-container {
        width: 150px;
        height: 150px;
    }

    .exercises-container {
        flex-direction: column;
    }

    .exercise-card {
        flex: 1 1 100%;
    }

    .trimester-title {
        font-size: 1.5rem;
    }

    .topic-title {
        font-size: 1.3rem;
    }
}