.banner-detalhes {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.banner-image {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.3);
    z-index: 0;
}

.overlay-detalhes {
    width: 100%;
    height: 200%;
    background: linear-gradient(
        to right,
        #e4a11b 0%,
        rgba(228, 161, 27, 0.5) 50%,
        rgba(228, 161, 27, 0.5) 0%,
        rgba(228, 161, 27, 0) 100%
    );

    color: fff;
    padding-left: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.overlay-detalhes h1 {
    font-size: 36px;
    margin-bottom: 0;
    color: #fff;
}

.article-banner {
    background: rgba(0, 0, 0, 0.5);
    width: max-content;
    height: auto;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}
.overlay-detalhes p {
    font-size: 18px;
    color: #fff;
}

p i {
    margin-right: 8px;
    color: #e4a11b;
}

.overlay-detalhes .p-curso {
    font-size: 14px;
    text-decoration: underline;
    color: #fff;
}

.p-curso i {
    margin-right: 8px;
    color: #fff;
}

.section-descricao {
    display: flex;
    width: 100%;
}

.section-descricao .conteudo-descricao {
    width: 98.5%;
    align-content: center;
    font-family: "Segoe UI", sans-serif;
    justify-content: space-around;
    margin-left: 10px;
    margin-right: 12px;
    padding: 2rem 2rem 1rem 3rem;
    border-left: 4px solid #3498db; /* borda azul na esquerda */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border-radius: 10px;
    gap: 2rem;
}
.section-descricao .conteudo-descricao h3 {
    width: fit-content;
    color: #000;
    font-size: 24px;
    font-weight: bolder;
    margin-bottom: 15px;
}
.section-descricao .conteudo-descricao p {
    width: 100%;
    text-align: justify;
    color: #444;
    line-height: 30px;
}

.grelha-container {
    padding: 30px;
    width: 100%;
    margin: auto;
    padding: 2rem 8rem;
}

.grelha-container-h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.ano {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    transition: all 0.5s;
}

.ano:hover {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.ano h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-size: 24px;
}

.semestres {
    margin-top: 15px;
    display: none;
}

.semestres h3 {
    color: #000;
    font-size: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    color: #000;
}

th {
    background-color: #f0f0f0;
}

button.toggle-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s;
    font-size: 14px;
}

button.toggle-btn:hover {
    background-color: #022b57;
}

@media (max-width: 780px) {
    .banner {
        height: 350px;
    }

    .overlay-detalhes {
        padding-left: 2rem;
    }

    .overlay-detalhes h1 {
        font-size: 30px;
    }

    .article-banner {
        padding: 1rem 1rem 0.5rem 1rem;
        border-radius: 6px;
        margin-top: 1rem;
    }
    .overlay-detalhes p {
        font-size: 12px;
    }

    p i {
        margin-right: 6px;
    }

    .overlay-detalhes .p-curso {
        font-size: 10px;
    }

    .p-curso i {
        margin-right: 2px;
    }

    .section-descricao .conteudo-descricao {
        display: table;
        gap: 0;
        width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
        margin-left: 10px;
        margin-right: 12px;
    }

    .section-descricao h3 {
        font-size: 20px;
    }
    .section-descricao p {
        width: 90%;
        font-size: 14px;
    }

    .grelha-container {
        padding: 1rem;
        width: 100%;
    }

    .grelha-container-h3 {
        font-size: 16px;
        text-align: center;
        padding: 0 2rem;
    }

    .ano {
        margin-bottom: 10px;
        border-radius: 8px;
        padding: 10px 14px;
    }

    .ano h2 {
        font-size: 16px;
    }

    .semestres {
        margin-top: 15px;
    }

    .semestres h3 {
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }

    button.toggle-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 460px) {
    .banner {
        height: 300px;
    }

    .overlay-detalhes {
        padding-left: 1rem;
    }

    .overlay-detalhes h1 {
        font-size: 19px;
    }

    .article-banner {
        padding: 1rem 0.4rem 0.1rem 0.4rem;
        border-radius: 6px;
        margin-top: 1rem;
    }
    .overlay-detalhes p {
        font-size: 10px;
    }

    p i {
        margin-right: 4px;
    }

    .overlay-detalhes .p-curso {
        font-size: 8px;
    }

    .p-curso i {
        margin-right: 2px;
        margin-left: 2px;
    }

    .section-descricao .conteudo-descricao {
        display: table;
        gap: 1rem;
        width: 100%;
        padding: 1rem;
    }

    .section-descricao h3 {
        font-size: 16px;
    }
    .section-descricao p {
        width: 95%;
        font-size: 10px;
    }

    .grelha-container {
        padding: 0.6rem;
        width: 100%;
    }

    .grelha-container-h3 {
        font-size: 14px;
        text-align: center;
        padding: 0 2rem;
    }

    .ano {
        margin-bottom: 10px;
        border-radius: 8px;
        padding: 6px 10px;
    }

    .ano h2 {
        font-size: 14px;
    }

    .semestres {
        margin-top: 15px;
    }

    .semestres h3 {
        font-size: 12px;
    }

    table {
        font-size: 10px;
    }

    button.toggle-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
}
