/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d8f;
    --secondary-color: #2c5f9e;
    --accent-color: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
}

.nav-main ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-main a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-main a:hover,
.nav-main a.active {
    background: rgba(255,255,255,0.2);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    color: var(--text-dark);
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

/* Main Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar-content {
    padding: 1.5rem;
}

.profile-card {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.sidebar-content h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.social-section,
.contact-quick,
.projects-section,
.partners-section {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--bg-light);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link.facebook {
    color: #1877f2;
}

.social-link.instagram {
    color: #e4405f;
}

.social-link.twitter {
    color: #1da1f2;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-light);
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.project-card img {
    max-height: 80px;
    object-fit: contain;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-badges img {
    max-height: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.app-badges img:hover {
    transform: scale(1.05);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.partners-grid a {
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.partners-grid a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.partners-grid img {
    max-height: 50px;
    object-fit: contain;
}

/* Content Area */
.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

/* Slideshow */
.slideshow-section {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.slideshow {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 77, 143, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slide-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.slide-indicators button.active {
    background: white;
}

/* Presentation */
.presentation-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.presentation-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.presentation-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.presentation-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.presentation-text .signature {
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    margin-top: 1.5rem;
}

/* News Section */
.news-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

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

.news-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.news-tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.news-card.featured .news-tag {
    background: rgba(255,255,255,0.3);
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: inherit;
}

.news-card img {
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.news-card p {
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
}

.news-card.featured .btn-read-more {
    background: white;
    color: var(--primary-color);
}

.btn-read-more:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/* Publications */
.publications-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.publication-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.publication-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.publication-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.publication-info {
    padding: 1.5rem;
}

.publication-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.publication-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-download:hover {
    background: #c19d2d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-download svg {
    width: 20px;
    height: 20px;
}

/* Programs */
.programs-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.program-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.program-item svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.program-info {
    flex: 1;
}

.program-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.btn-download-sm {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-download-sm:hover {
    background: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-info a {
    color: var(--accent-color);
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .presentation-content {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-main {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition);
    }
    
    .nav-main.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-main ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-main a {
        display: block;
        padding: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }
    
    .slideshow {
        height: 250px;
    }
    
    .news-grid,
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
}