:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --accent-purple: #6366f1;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --logo-view-color: #000000;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-light: #94a3b8;
    --secondary-color: #344256;
    --logo-view-color: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky;
    top: 0; z-index: 100;
    padding: 15px 0;
}

.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 1.2rem; font-weight: 800; color: var(--primary-color); 
    text-decoration: none; text-transform: uppercase; 
}
.logo span { color: var(--logo-view-color); transition: var(--transition); }

.nav-controls { display: flex; align-items: center; gap: 15px; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-main);
    font-weight: 600; font-size: 0.95rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-color); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

.theme-toggle-btn { background: none; border: none; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.icon-center { width: 16px; height: 16px; border-radius: 50%; background: #f1c40f; position: relative; transition: var(--transition); box-shadow: 0 0 10px #f1c40f; }
.icon-center::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2px; height: 2px; border-radius: 50%; box-shadow: 0 -12px 0 #f1c40f, 0 12px 0 #f1c40f, 12px 0 0 #f1c40f, -12px 0 0 #f1c40f, 8px -8px 0 #f1c40f, -8px 8px 0 #f1c40f, 8px 8px 0 #f1c40f, -8px -8px 0 #f1c40f; }
.icon-center::before { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-card); top: -4px; right: -4px; transition: var(--transition); opacity: 0; }
[data-theme="dark"] .icon-center { background: #f1f5f9; box-shadow: 0 0 15px #f1f5f9; transform: rotate(-20deg); }
[data-theme="dark"] .icon-center::after { opacity: 0; }
[data-theme="dark"] .icon-center::before { opacity: 1; transform: translate(-2px, 0); }

main { padding: 40px 0; flex: 1; }

.intro { text-align: center; margin-bottom: 40px; }
.intro h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.intro p { color: var(--text-light); font-size: 1.1rem; }

.hub-grid, .highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.outros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

main { padding: 30px 0; }
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 25px; }

.featured-post {
    display: flex; 
    background-color: var(--bg-card);
    border-radius: var(--border-radius); 
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    margin-bottom: 30px;
    text-decoration: none; 
    color: inherit; 
    min-height: 350px;
    transition: var(--transition);
}

.featured-image { 
    flex: 0.8;
    background-size: cover; 
    background-position: center; 
    min-height: 200px;
}

.featured-content { 
    flex: 1; 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.featured-content h2 { font-size: 1.8rem; margin-bottom: 15px; line-height: 1.2; }
.featured-content p { font-size: 1rem; color: var(--text-light); line-height: 1.6; }

.tag, .tag1 {
    background-color: #e0e7ff; color: var(--primary-color);
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem;
    font-weight: 600; align-self: flex-start; margin-bottom: 12px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding-bottom: 50px;
}

.back-btn-header {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.back-btn-header:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.hub-card {
    position: relative;
    height: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    transform: translateZ(0); 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hub-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease;
}

.hub-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.hub-content {
    position: absolute; bottom: 0; left: 0; padding: 25px;
    z-index: 2; width: 100%;
}

.hub-icon { font-size: 2rem; display: block; margin-bottom: 5px; }
.hub-content h2 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; }
.hub-content p { font-size: 0.95rem; opacity: 0.9; }

.hub-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 30px rgba(0,0,0,0.15); 
}

.hub-card:hover .hub-bg { transform: scale(1.1); }

.highlights-section { margin-bottom: 60px; }
.section-header { margin-bottom: 25px; border-left: 5px solid var(--primary-color); padding-left: 15px; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; }

.highlight-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

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

.highlight-card1 {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    align-items: stretch;
    min-height: 180px;
}

.h-card-img1 {
    width: 35%;
    min-width: 150px;
    background-size: cover;
    background-position: center;
}

.h-card-content, .h-card-content1 { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.h-tag, .h-tag1 {
    display: inline-block;
    background-color: var(--accent-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.h-card-content h3, .h-card-content1 h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.h-card-content p, .h-card-content1 p { color: var(--text-light); font-size: 0.9rem; line-height: 1.4; }

.highlight-card:hover, .highlight-card1:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }

.about-section { width: 100%; margin-bottom: 60px; }
.faq-title { text-align: left; margin-bottom: 25px; font-size: 1.8rem; font-weight: 800; border-left: 5px solid var(--primary-color); padding-left: 15px; }
.faq-item { background-color: var(--bg-card); margin-bottom: 8px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.faq-question { width: 100%; padding: 22px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; color: var(--text-main); font-size: 1.1rem; font-weight: 700; cursor: pointer; text-align: left; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 22px 22px; color: var(--text-light); }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.hero-banner {
    display: flex;
    width: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-main-card {
    flex: 1;
    position: relative;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-main-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.hero-main-content {
    position: relative;
    z-index: 3;
    padding: 40px;
}

.hero-main-content h2 {
    font-size: clamp(1rem, 2.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.hero-main-content p {
    font-size: 0.90rem;
    color: #e2e8f0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-card:hover .hero-main-bg {
    transform: scale(1.05);
}

.hero-sidebar {
    width: 350px;
    background-color: var(--bg-card);
    color: var(--text-main); 
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
    transition: transform 0.2s;
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item:hover {
    transform: translateX(5px);
}

.sidebar-number {
    background-color: #0000eb;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-category {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.sidebar-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-section-split {
    display: flex;
    width: 100%;
    min-height: 400px;
    gap: 25px;
    margin-bottom: 40px;
}

.hero-main-card-split {
    flex: 1; 
    position: relative;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.hero-bg-split {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

.hero-overlay-split {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.hero-content-split {
    position: relative;
    z-index: 3;
    padding: 40px;
}

.hero-content-split h2 {
    font-size: clamp(1rem, 2.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.hero-content-split p {
    font-size: 0.90rem;
    color: #e2e8f0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-card-split:hover .hero-bg-split {
    transform: scale(1.05); 
}

.hero-sidebar-split {
    width: 350px;
    background-color: var(--bg-card); 
    color: var(--text-main); 
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-title-split {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.sidebar-list-split {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-item-split {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
    transition: transform 0.2s;
}

.sidebar-item-split:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item-split:hover {
    transform: translateX(5px); 
}

.sidebar-number-split {
    background-color: #0000eb; 
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-category-split {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.sidebar-text-split h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 850px) {
    .hero-banner {
        flex-direction: column;
    }
    
    .hero-main-card {
        min-height: 350px;
    }
    
    .hero-sidebar {
        width: 100%;
    }

    .hero-section-split {
        flex-direction: column; 
    }
    
    .hero-main-card-split {
        min-height: 350px;
    }
    
    .hero-sidebar-split {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hub-grid, .highlights-grid { grid-template-columns: 1fr; }
    
    .menu-toggle { display: block; order: 2; }
    .theme-toggle-btn { order: 2; }

    .logo { font-size: 1.2rem; font-weight: 800; color: var(--primary-color); text-decoration: none; text-transform: uppercase;}
    .logo span { color: var(--logo-view-color); transition: var(--transition); }

    .featured-post { flex-direction: column; min-height: auto; }
    .featured-image { height: 200px; flex: none; }
    .featured-content { padding: 20px; flex: auto; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px; right: 20px;
        background: var(--bg-card);
        flex-direction: column;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        z-index: 1000;
        min-width: 150px;
        gap: 15px;
    }

    .nav-links.active { display: flex; }

    .hub-card { height: 220px; }
    .h-card-img { height: 180px; }
    
    .highlight-card1 {
        min-height: 140px;
    }
    .h-card-img1 {
        width: 130px;
        min-width: 130px;
    }
    .h-card-content1 { padding: 15px; }
    .h-card-content1 h3 { font-size: 1rem; }
    .h-card-content1 p { font-size: 0.8rem; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

    .intro h1 { font-size: 1.8rem; }
}