/* 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 repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-about p {
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-menu h4,
.footer-cursos h4,
.footer-atuacao h4,
.footer-links h4,
.footer-contato h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-menu ul,
.footer-cursos ul,
.footer-atuacao ul,
.footer-links ul,
.footer-contato ul {
    list-style: none;
}

.footer-menu ul li a,
.footer-cursos ul li a,
.footer-atuacao ul li a,
.footer-links ul li a,
.footer-contato ul li a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
    display: block;
    transition: color 0.3s;
}

.footer-menu ul li a:hover,
.footer-cursos ul li a:hover,
.footer-atuacao ul li a:hover,
.footer-links ul li a:hover,
.footer-contato ul li a:hover {
    color: var(--white);
}

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

/* Responsividade do Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 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;
}

/* Imagem da seção Nossa Instituição */
.image-box img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

.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;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mvv-item .icon-box img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.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: flex-end;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.img-placeholder {
    color: #666;
    font-weight: bold;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.img-placeholder img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
}

.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;
    }
}

/* Banner de Graduação com Moodle como marca d'água */
.graduacao-banner {
    position: relative;
}

.moodle-watermark {
    position: absolute;
    bottom: 30px;
    right: 60px;
    height: 60px;
    width: auto;
    opacity: 0.25;
    z-index: 1;
}

.graduacao-banner .container {
    position: relative;
    z-index: 2;
}

/* Espaçamento melhorado para listas de curso */
.course-highlights {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.course-highlights li {
    padding: 0.5rem 0;
    margin-left: 15px;
    line-height: 1.8;
    position: relative;
}

.course-highlights li:before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.course-info p {
    margin-top: 15px;
    line-height: 1.8;
}

.course-badge-inline {
    margin-top: 15px;
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
}

/* Seção "Por que escolher a FFT?" */
.features-horizontal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature-card {
    flex: 0 1 220px;
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.feature-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1;
}

.feature-card h4 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
}

.feature-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .moodle-watermark {
        height: 45px;
        bottom: 15px;
        right: 20px;
        opacity: 0.2;
    }
    
    .features-horizontal {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
}

/* Página de Pós-Graduação */
.pos-graduacao-banner {
    position: relative;
}

/* Seção Cursos Por Área */
.cursos-por-area {
    background: #f8f8f8;
    color: var(--dark-grey);
    padding: 4rem 0;
}

.cursos-por-area .section-header h2 {
    color: var(--dark-grey);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-text {
    color: var(--primary-red);
}

.course-meta {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--dark-grey);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botões de Área */
.area-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.area-btn {
    background: transparent;
    border: 2px solid var(--light-grey);
    border-radius: 15px;
    padding: 2rem 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
}

.area-btn:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.area-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.area-btn.active .area-name {
    color: var(--white);
}

.area-icon {
    font-size: 3rem;
}

.area-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-grey);
}

/* Conteúdo dos Cursos */
.cursos-area-content {
    margin-top: 3rem;
    background: var(--light-grey);
    border-radius: 12px;
    padding: 2rem;
}

.area-section {
    display: none;
}

.area-section.active {
    display: block;
}

.area-title {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}

.cursos-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.cursos-list li {
    background: var(--white);
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--primary-red);
    border-radius: 5px;
    transition: all 0.3s;
    color: var(--dark-grey);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cursos-list li:hover {
    background: var(--white);
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Responsividade Pós-Graduação */
@media (max-width: 768px) {
    .area-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .area-btn {
        width: 100%;
    }
    
    .cursos-list {
        grid-template-columns: 1fr;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 1rem;
    }
}