/* Configurações Globais */
:root {
    --primary-red: #8B0000; /* Bordô do logo */
    --secondary-red: #B22222;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --silver: #C0C0C0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    /* overflow: hidden;  <-- REMOVA OU COMENTE ESTA LINHA se ela estiver aqui */
}

/* Header */
header {
    background: var(--white);
    color: var(--dark-grey);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    overflow: visible !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 80px;
    width: auto;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li a {
    color: var(--dark-grey);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-red);
}


.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px; /* Espaço entre a imagem e o texto */
}

/* Estilização do texto ao lado do logo */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B0000; /* Vermelho bordô idêntico ao logo */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Botões */
.btn-primary {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-red);
}

/* Seções */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 10px auto;
}

.bg-light {
    background: var(--light-grey);
}

/* Grids e Cards */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.btn-card {
    display: block;
    margin-top: 1rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    background: #993131;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-about img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 1rem;
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .services-wrapper {
        flex-direction: column; /* Empilha as colunas verticalmente */
    }
    
    .services-column {
        width: 100%;
        min-width: unset;
    }
}


/* Ajuste para mobile (opcional: diminui o texto em telas pequenas) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    header .logo img {
        height: 45px;
    }
}

/* Estilos Específicos da Página Quem Somos */

.page-banner {
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1; /* Valor baixo para ficar atrás do menu */
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.underline-left {
    width: 50px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px 0 25px 0;
}

/* Grid Missão, Visão e Valores */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mvv-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mvv-item .icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mvv-item ul {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.mvv-item ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

/* Seção do Reitor */
.reitor-card {
    display: flex;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
}

.reitor-img {
    flex: 1;
    background: var(--silver);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder {
    color: #666;
    font-weight: bold;
    text-align: center;
}

.reitor-text {
    flex: 2;
    padding: 3rem;
}

.reitor-text blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    border-left: 4px solid var(--primary-red);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.reitor-name {
    margin-top: 2rem;
}

/* Navegação Ativa */
nav ul li a.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

/* Responsividade Reitor */
@media (max-width: 768px) {
    .reitor-card {
        flex-direction: column;
    }
    .reitor-img {
        width: 100%;
        height: 250px;
    }
    .contact-info {
        padding-right: 0;
        margin-bottom: 3rem;
    }
}

/* Container principal dos serviços */
.services-wrapper {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    gap: 2rem;
}

/* Cada coluna ocupa 50% da largura menos o espaço do gap */
.services-column {
    flex: 1;
    min-width: 300px; /* Força a quebra para uma coluna quando o espaço for menor que isso */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-top: 4px solid var(--primary-red);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 0 0 8px 8px;
    height: 100%; /* Garante que os cards preencham a altura da coluna */
}

/* Estilos para a Página de Contato */

.contact-info {
    padding-right: 2rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    color: var(--primary-red);
    display: block;
    margin-bottom: 5px;
}

.contact-form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

button[type="submit"] {
    width: 100%;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}


/* Estilos para a Página de Atuações */

.reverse {
    display: flex;
    flex-direction: row-reverse;
    gap: 4rem;
    align-items: center;
}

.stats-box-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--primary-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
}

.stat-card h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Responsividade Atuações */
@media (max-width: 900px) {
    .reverse {
        flex-direction: column;
    }
}

/* Estilização do Menu Dropdown */

/* Garante que o item pai tenha posição relativa */
nav ul li {
    position: relative;
    display: inline-block;
}

/* Esconde o menu de sub-itens inicialmente */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 10000;
    list-style: none;
    padding: 10px 0; /* Espaçamento no topo e base do menu */
    top: 100%; /* Posiciona logo abaixo do item pai */
    left: 0;
    border-top: 3px solid var(--primary-red);
}

/* Estilo dos links dentro do dropdown */
.dropdown-menu li {
    padding: 12px 20px; /* Mais espaço para o clique */
    line-height: 1.4;   /* Melhora a leitura de itens longos */
    white-space: nowrap; /* Impede que o texto quebre em duas linhas */
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    color: var(--dark-grey);
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: none; /* Mantém leitura natural */
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

/* Efeito Hover nos sub-itens */
.dropdown-menu li a:hover {
    background-color: var(--light-grey);
    color: var(--primary-red);
}

/* MOSTRAR o menu ao passar o mouse no item pai */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Ajuste para o ícone de seta (opcional se usar FontAwesome) */
.fa-caret-down {
    margin-left: 5px;
    font-size: 0.8rem;
}


/* Ajustes da Graduacao */
.course-detail-grid {
    display: flex;
    align-items: center; /* Centraliza verticalmente o texto com a imagem */
    justify-content: space-between;
    gap: 4rem; /* Espaço entre o texto e a imagem */
    margin-bottom: 2rem;
}

.course-info {
    flex: 1; /* Faz o texto ocupar metade do espaço */
}

.course-image {
    flex: 1; /* Faz a imagem ocupar a outra metade */
    position: relative;
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* IMPORTANTE: Ajuste para que em celulares eles fiquem um abaixo do outro */
@media (max-width: 900px) {
    .course-detail-grid {
        flex-direction: column; /* Empilha no celular */
        gap: 2rem;
    }
}