/* Reset and Base Styles */
:root {
    --primary-color: #0b4f6c;
    --secondary-color: #01baef;
    --accent-color: #20bf55;
    --dark-color: #1b1b1e;
    --light-color: #f5f7fa;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

/* Flexbox Utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 300px; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

/* Typography & Helpers */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--white); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; color: var(--primary-color); }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.bg-dark .subtitle { color: #d0d0d0; }

/* Buttons & Badges */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #199944;
    color: var(--white);
}

.badge {
    display: inline-block;
    background-color: rgba(1, 186, 239, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Icons */
.icon-sm { width: 24px; height: 24px; }
.icon-md { width: 48px; height: 48px; margin-bottom: 1rem; }
.icon-lg { width: 64px; height: 64px; margin-bottom: 1rem; }

/* Header & Nav */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu ul { gap: 20px; }
.nav-menu a {
    color: var(--text-main);
    font-weight: 500;
}
.nav-menu a:hover { color: var(--secondary-color); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
}

.alert-box {
    background-color: #fff4e5;
    border-left: 4px solid #ffa000;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
}
.alert-box p { margin: 0; font-size: 0.9rem; color: #555; }

/* Features / Sobre */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Timeline / Etapas */
.timeline-step {
    position: relative;
    padding: 1rem;
}
.timeline-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: rgba(255,255,255,0.2);
    z-index: 1;
}
.timeline-step:last-child::after {
    display: none;
}
.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.1);
}
.step-icon img {
    width: 40px;
    height: 40px;
}

/* Editais Cards */
.edital-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}
.card-header {
    padding: 10px 20px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
}
.bg-blue { background-color: var(--secondary-color); }
.bg-orange { background-color: #f79256; }
.bg-green { background-color: var(--accent-color); }

.card-body {
    padding: 20px;
}
.details-list {
    margin: 1rem 0;
    font-size: 0.9rem;
}
.details-list li {
    margin-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
}
.note {
    font-size: 0.85rem;
    background: var(--light-color);
    padding: 10px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* News Cards */
.news-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.news-img {
    height: 200px;
    overflow: hidden;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .news-img img {
    transform: scale(1.05);
}
.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}
.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}
.read-more:hover {
    color: var(--primary-color);
}

/* Accordion / Glossario */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background: var(--white);
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: var(--light-color);
}
.toggle-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}
.accordion-header.active .toggle-icon {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
}
.accordion-content p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: var(--text-muted);
}

/* Sponsors */
.sponsors-grid {
    padding: 2rem 0;
}
.sponsor-logo {
    height: 60px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}
.sponsor-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #e0e0e0;
    padding: 4rem 0 2rem;
}
.footer h3, .footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
}
.logo-footer {
    height: 30px;
    filter: brightness(0) invert(1);
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links a {
    color: #b0b0b0;
}
.footer-links a:hover {
    color: var(--secondary-color);
}
.footer-disclaimer p {
    font-size: 0.85rem;
    opacity: 0.8;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline::after {
        display: none;
    }
    .timeline-step::after {
        display: none;
    }
    .timeline {
        flex-direction: column;
        align-items: center;
    }
    .timeline-step {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-content, .hero-image {
        flex: 1 1 100%;
        text-align: center;
    }
    .alert-box {
        text-align: left;
    }
    .feature-card, .edital-card, .news-card {
        flex: 1 1 100%;
    }
    .title-area {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Inner page styles */
/* Article Page Specific Styles */
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.border-top { border-top: 1px solid var(--border-color); }

.article-layout { align-items: flex-start; }
.article-main { max-width: 800px; background: var(--white); padding: 3rem; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.article-sidebar { flex: 0 0 320px; position: sticky; top: 90px; }

.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2.2rem; margin-top: 0.5rem; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding-top: 1rem; border-top: 1px solid var(--border-color); margin-top: 1.5rem; }

.article-hero-img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 2rem; object-fit: cover; aspect-ratio: 16/9; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--primary-color); font-size: 1.6rem; }
.article-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.3rem; }
.article-content p { margin-bottom: 1.2rem; font-size: 1.1rem; line-height: 1.7; color: #444; }
.article-content ul { margin-bottom: 1.5rem; padding-left: 20px; list-style-type: disc; color: #444; }
.article-content li { margin-bottom: 0.5rem; font-size: 1.1rem; }
.article-content blockquote { border-left: 4px solid var(--secondary-color); padding: 1.2rem 1.5rem; background: rgba(1, 186, 239, 0.05); font-style: italic; margin: 2rem 0; border-radius: 0 8px 8px 0; font-size: 1.15rem; color: var(--primary-color); font-weight: 500; }

/* Article Navigation */
.article-navigation {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}
.article-navigation a {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    min-width: 280px;
}
.article-navigation a:hover {
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: var(--shadow);
}
.nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.nav-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
}
.justify-end { justify-content: flex-end; }
.text-right { text-align: right; }

/* Sidebar Styles */
.sidebar-widget { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.sidebar-widget h3 { border-bottom: 2px solid var(--light-color); padding-bottom: 10px; margin-bottom: 15px; font-size: 1.1rem; color: var(--primary-color); text-transform: uppercase; font-weight: 700; }

.author-box { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--light-color); }
.author-box h4 { margin-bottom: 2px; font-size: 1.1rem; }

.mini-news { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.mini-news:last-child { margin-bottom: 0; }
.mini-news img { width: 80px; height: 70px; object-fit: cover; border-radius: 6px; }
.mini-news-text h4 { font-size: 0.95rem; line-height: 1.3; font-weight: 600; }
.mini-news-text h4 a { color: var(--text-main); }
.mini-news-text h4 a:hover { color: var(--secondary-color); }

.icon-xs { width: 14px; height: 14px; }

/* Responsive adjustments for Article Page */
@media (max-width: 992px) {
    .article-layout { flex-direction: column; }
    .article-main { max-width: 100%; padding: 2rem 1.5rem; }
    .article-sidebar { position: static; width: 100%; flex: 1 1 100%; }
}
@media (max-width: 768px) {
    .article-header h1 { font-size: 1.8rem; }
    .article-content p, .article-content li { font-size: 1rem; }
}
