/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOPO */
.topo {
    background-color: white;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.topo .container-topo {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topo .logo {
    height: 60px;
}

.topo .usuario a {
    background-color: #ff6600;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: 0.3s ease;
}

.topo .usuario a:hover {
    background-color: #e55a00;
}

/* BANNER */
.banner-unico {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.banner-unico img.banner-img-full {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* CATEGORIAS */
.categorias {
    position: relative;
    z-index: 1;
    margin-top: -40px;
    background-color: white;
    padding: 25px 0 15px;
    text-align: center;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.categorias-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.categorias button {
    background-color: #f2f2f2;
    border: none;
    border-radius: 12px;
    width: 95px;
    height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.categorias button img {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
}

.categorias button.ativo {
    background-color: #ff6600;
    color: white;
}

.categorias button.ativo img {
    filter: brightness(0) invert(1);
}

/* BUSCA */
.busca {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 25px 20px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.form-container {
    width: 100%;
}

.form-busca {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form-busca button {
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    height: 42px;
    align-self: end;
}

.form-busca button:hover {
    background-color: #e55a00;
}

/* CURSOS EM DESTAQUE */
.cursos {
    padding: 40px 20px;
    text-align: center;
}

.cursos h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #003366;
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    width: 260px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

.card img {
    max-width: 100px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.card p {
    color: #2e7d32;
    font-weight: bold;
}

/* SOBRE */
.sobre {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 40px auto;
}

.container-sobre {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
}

.texto-sobre {
    flex: 1;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.texto-sobre h2 {
    font-size: 32px;
    color: #5c4dff;
    margin-bottom: 24px;
}

.texto-sobre p {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 16px;
}

.texto-sobre strong {
    font-weight: 600;
}

.imagem-sobre {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagem-sobre img {
    max-width: 290px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.imagem-sobre.desktop {
    display: flex;
}

.imagem-sobre.mobile {
    display: none;
}

/* MOBILE RESPONSIVO */
@media (max-width: 768px) {
    .banner-unico img.banner-img-full {
        content: url("assets/img/banner-mobile.png");
    }

    .categorias {
        margin-top: -60px;
        padding: 20px 10px 10px;
    }

    .categorias-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 10px;
        gap: 12px;
        justify-content: flex-start;
    }

    .categorias-container::-webkit-scrollbar {
        display: none;
    }

    .categorias button {
        min-width: 80px;
        height: 70px;
        font-size: 12px;
    }

    .form-busca {
        grid-template-columns: 1fr;
    }

    .form-busca button {
        width: 100%;
        margin-top: 10px;
    }

    .seta-esquerda,
    .seta-direita {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: white;
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
        font-size: 16px;
        padding: 6px 10px;
        cursor: pointer;
        z-index: 3;
    }

    .seta-esquerda {
        right: 5px;
    }

    .seta-direita {
        left: 5px;
    }

    .container-sobre {
        flex-direction: column;
        text-align: center;
    }

    .imagem-sobre.desktop {
        display: none !important;
    }

    .imagem-sobre.mobile {
        display: flex !important;
        margin-top: 20px;
    }

    .imagem-sobre.mobile img {
        width: 100%;
        height: auto;
    }

    .texto-sobre {
        max-width: 100%;
        text-align: left;
    }

    .texto-sobre h2 {
        font-size: 26px;
        text-align: center;
    }

    .texto-sobre p {
        font-size: 16px;
    }
}
