/* --- Reset Básico e Definições Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* --- Estilos do Bloco de Abertura (Hero Section) --- */
.hero-section {
    position: relative;
    /* Nova altura responsiva para desktop. Ajusta a altura com base na largura da tela */
    height: 48vw;
    min-height: 350px; /* Altura mínima para não ficar muito pequena em telas muito largas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Camada escura sobre a imagem para garantir a legibilidade do texto */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Posicionamento do botão em telas maiores */
.hero-content {
    z-index: 1;
    position: absolute;
    bottom: 20%;
    left: 13%;
}

/* Estilos do Botão */
.btn {
    text-decoration: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Botão principal com a cor azul da campanha */
.btn-primary {
    background-color: #005A9C;
    border: 2px solid #005A9C;
}

.btn-primary:hover {
    background-color: #00487d;
    transform: translateY(-3px);
}

/* --- Media Queries para Responsividade --- */
@media (max-width: 768px) {
    /* Em telas pequenas, a altura da seção se ajusta à imagem */
    .hero-section {
        height: auto;
        min-height: auto;
    }
    
    /* O banner agora se ajusta à largura e a altura da seção acompanha a imagem */
    .hero-banner-img {
        width: 100%;
        height: auto;
    }

    /* O overlay precisa cobrir a nova altura da seção */
    .hero-section::after {
        height: 100%;
    }

    /* Nova regra para o botão: Centralizado e em uma posição adequada para mobile */
    .hero-content {
        left: 50%;
        transform: translateX(-50%);
        bottom: 50px;
    }
}


/* --- Estilos do Bloco de Prova Social --- */
.proof-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.proof-item {
    padding: 20px;
}

.proof-icon {
    font-size: 3rem;
    color: #005A9C;
    margin-bottom: 15px;
}

.proof-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.proof-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.courses-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-form {
    position: relative;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 25px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #005A9C;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 50px;
    border: none;
    background-color: #005A9C;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #00487d;
}

.course-list-wrapper {
    margin-top: 50px;
    text-align: left;
}

.campus-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #005A9C;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    margin-top: 40px;
    margin-bottom: 25px;
}

.course-list {
    list-style: none;
    padding: 0;
    column-count: 3;
    column-gap: 30px;
}

@media (max-width: 992px) {
    .course-list {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .course-list {
        column-count: 1;
    }
}

.course-list li {
    margin-bottom: 15px;
    break-inside: avoid-column;
}

.course-list li a {
    text-decoration: none;
    color: #555;
    font-size: 1.1rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.course-list li a:hover {
    color: #005A9C;
    font-weight: 500;
    padding-left: 5px;
}

.hidden {
    display: none;
}

/* --- Estilos do Bloco "Nossos Diferenciais" --- */
.diferenciais-section {
    padding: 80px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.diferencial-card {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s ease;
}

.diferencial-card:hover {
    transform: scale(1.05);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.4s ease;
}

.diferencial-card:hover .card-background {
    transform: scale(1.1);
}

.diferencial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 25px;
    text-align: left;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}


/* --- Estilos do Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
}

.modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #005A9C;
    margin-bottom: 25px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.modal-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}


/* --- Estilos do Bloco de Bolsas e Sorteio --- */
.bolsas-section {
    padding: 80px 20px;
    background-color: #005A9C;
    color: #fff;
    text-align: center;
}

.bolsas-content {
    max-width: 800px;
    margin: 0 auto;
}

.bolsas-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.bolsas-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    text-decoration: none;
    background-color: #FFC107;
    color: #00487d;
    padding: 20px 40px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: #ffd042;
}

.link-regulamento {
    display: block;
    margin-top: 25px;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.link-regulamento:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .bolsas-title {
        font-size: 2.2rem;
    }
    .bolsas-text {
        font-size: 1.1rem;
    }
}

/* --- Estilos do Bloco Passo a Passo --- */
.passos-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.passos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.passo-card {
    padding: 30px;
}

.passo-icon {
    font-size: 3.5rem;
    color: #005A9C;
    margin-bottom: 20px;
}

.passo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.passo-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* --- Estilos do Rodapé --- */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 20px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: #005A9C;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a, .footer-col p a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul a:hover, .footer-col p a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-col p i {
    margin-right: 10px;
    color: #005A9C;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: #005A9C;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
    color: #888;
}