/* ===== VARIÁVEIS DE CORES ===== */
:root {
    --primary-blue: #1a4b8c;
    --primary-dark: #0d2b5a;
    --secondary-red: #e63946;
    --accent-orange: #f4a261;
    --accent-yellow: #ffd166;
    --light-color: #f8f9fa;
    --dark-color: #2d3748;
    --text-color: #333333;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== RESET E ESTILOS GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.text-center {
    text-align: center;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-red);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 180px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== LAYOUTS DE SEÇÃO ===== */
.about-preview {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.about-text { 
    flex: 1; 
}

.about-image { 
    flex: 1;
    min-width: 300px;
}

.about-image-right .about-text { order: 1; }
.about-image-right .about-image { order: 2; }
.about-image-left .about-text { order: 2; }
.about-image-left .about-image { order: 1; }

/* ===== COMPONENTES DE CARDS ===== */
.highlights-grid,
.professors-grid,
.features-grid,
.projects-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-card,
.professor-card,
.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.highlight-card:hover,
.professor-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.highlight-card i,
.feature-card .feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.feature-card .feature-icon i {
    font-size: 3rem;
}

.professor-card {
    border-top: 5px solid var(--primary-blue);
    padding: 20px;
}

.professor-card .photo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 4px solid var(--secondary-red);
}

.professor-card .photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== NOTÍCIAS E GALERIA ===== */
.news-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card,
.gallery-item,
.project-card,
.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover,
.gallery-item:hover,
.project-card:hover,
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image,
.gallery-image,
.project-image {
    height: 200px;
    overflow: hidden;
}

.news-card .news-image img,
.gallery-item img,
.project-card .project-image img,
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img,
.gallery-item:hover img,
.project-card:hover .project-image img,
.video-card:hover img {
    transform: scale(1.05);
}

.news-content,
.project-content,
.video-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--secondary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

/* ===== FORMULÁRIOS ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 40px auto;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===== COMPONENTES ESPECIAIS ===== */
.course-features,
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.course-features li,
.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.course-features li i,
.feature-list li i {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-right: 10px;
    line-height: 1.5;
    flex-shrink: 0;
}

.stats-card {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--gray-light);
    border-left: 5px solid var(--secondary-red);
    border-radius: 6px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-medium);
    font-weight: 600;
}

/* ===== DEPOIMENTOS ===== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--white);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-red);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--primary-blue);
}

.author-info p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.control-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ===== VÍDEOS ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.video-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.video-card p {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin: 0;
}

/* ===== PROJETOS ===== */
.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tech-tag {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== ANIMAÇÕES ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
    .about-preview,
    .contact-grid,
    .location-content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .about-image-right .about-text,
    .about-image-right .about-image,
    .about-image-left .about-text,
    .about-image-left .about-image {
        order: initial;
    }
    
    .about-image {
        min-width: 100%;
        margin-top: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    .hero {
        padding: 80px 0;
        background-attachment: scroll;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    .about-preview { gap: 2rem; }
    .about-image { order: -1; }
    
    .btn { padding: 10px 25px; font-size: 0.9rem; }
    .highlight-card, .news-card, .feature-card { padding: 1.5rem; }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .stats-grid,
    .features-grid,
    .projects-grid,
    .highlights-grid,
    .news-grid,
    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}