@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@300;400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    font-weight: 300; 
    line-height: 1.7;
    background-color: #0038b1;
    color: white;
}

h2 {
    font-family: 'Open Sans', 'Lato', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: rgb(125, 255, 184);
    margin-top: 0;
    margin-bottom: 25px;
    border-left: 4px solid rgb(125, 255, 184); 
    padding-left: 15px;
    line-height: 1.3;
}

h3 {
    font-family: 'Open Sans', 'Lato', sans-serif;
    font-size: 1.4rem;
    font-weight: 600; 
    color: #fff; 
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    text-align: justify; 
    font-size: 1rem;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9); 
}

.navbar ul.nav-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 40px 0 40px;
    width: 100%;
}

.navbar ul.nav-list li {
    flex: 1;
    text-align: center;
}

.navbar ul.nav-list li a {
    font-family: 'Open Sans', 'Lato', sans-serif;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    word-break: break-word; 
}

.navbar ul.nav-list li a:hover {
    color: rgb(125, 255, 184);
    background-color: rgba(125, 255, 184, 0.1);
}

.navbar ul.nav-list li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background-color: rgb(125, 255, 184);
    transition: width 0.3s ease-in-out;
}

.navbar ul.nav-list li a:hover::after {
    width: 80%;
}

.toggle-input {
    display: none;
}

.toggle-button {
    display: inline-block;
    cursor: pointer;
    background-color:  rgb(125, 255, 184);
    color: #0056b3;
    padding: 15px 25px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.toggle-button p {
    color: #0056b3;
    margin: 0; 
    font-weight: bold;
}

.toggle-button:hover {
    background-color: #ffffff;
}

.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    min-height: 400px;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: 
        radial-gradient(
            circle, 
            rgba(0, 0, 0, 0.274) 50%,
            rgba(0, 64, 241, 0.548) 100%
        ),
        linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2)
        ),
        url('./Image/back-cars.jpg');
        
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 

    z-index: -1; 
}

.menu h2, 
.menu ul li {
    color: white; 
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.grupo-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 3px solid rgb(125, 255, 184);
    display: inline-block;
    padding-bottom: 5px;
}


.menu > div:last-child ul {
    list-style: none;
    padding: 0;
}

.menu > div:last-child ul li {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 1rem;
    border-left: 5px solid rgb(125, 255, 184);
    padding-left: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.menu > div:last-child ul li:hover {
    background-color: rgba(125, 255, 183, 0.384);
}

.toggle-button {
    background-color: rgb(125, 255, 184);
    color: #0038b1;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    text-shadow: none;
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background-color: #fff;
    color: #0038b1;
}

.integrantes-list-container {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.integrantes-list-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: white;
}

.integrantes-list-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease; 
}

.toggle-input:checked ~ .integrantes-list-container {
    max-height: 300px; 
    opacity: 1;
    margin-top: 15px; 
}

section {
    max-width: 1200px;
    margin: 40px auto; 
    padding: 20px;
}

article {
    margin-bottom: 30px; 
    padding: 25px;
    border-bottom: none;
    background-color: rgba(0, 28, 85, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.biblio li a{
    color: rgb(125, 255, 184);
    text-decoration: none;
    font-weight: 600;
}

.biblio li a:hover {
    text-decoration: underline;
}

.perguntas ul {
    list-style-type: none; 
    padding-left: 0;
}

.perguntas ul li {
    
    background-color: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(125, 255, 184, 0.2); 
    font-size: 1rem;
    font-weight: normal;
    cursor: default;
    display: block;
}

.perguntas ul li strong {
    color: rgb(125, 255, 184);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.perguntas ul li:hover {
    background-color: transparent !important;
    color: inherit;
}

.info-curso {
    margin-top: 30px; 
}

.info-curso p {
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin: 6px 0; 
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    
    .menu {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-height: 600px;
    }

    .grupo-info {
        margin-bottom: 30px;
    }

    .menu > div:last-child ul {
        display: inline-block;
    }

    .perguntas ul {
        gap: 1rem;
        justify-content: center;
    }

    .navbar ul.nav-list {
        flex-direction: column;
        margin: 20px 0;
    }

    .navbar ul.nav-list li {
        width: 100%;
        margin-bottom: 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar ul.nav-list li a {
        display: block;
        padding: 15px;
        word-break: normal;
    }
}
