/* Home Modern Styles – extraído do mockup fornecido */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary: #6B46C1;
    --primary-dark: #553C9A;
    --primary-light: #9F7AEA;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #FCD34D;

    /* Cores de fundo */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;

    /* Cores de texto */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;

    /* Bordas e sombras */
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Sombras modernas */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 10px 40px -10px rgba(107, 70, 193, 0.3);
}

/* ===== Base, container, header, navigation etc. ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary);
    background: var(--bg-tertiary);
}

/* ===== Hero Section ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero-text h1 .highlight {
    color: var(--accent);
    position: relative;
}
.hero-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}
.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}
.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.4);
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* ===== Sections, grids, cards (popular, categories, posts) ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 40px; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-secondary); }

.popular-posts { background: var(--bg-primary); }
.popular-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }

.featured-card { background: var(--bg-primary); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); transition: all 0.3s ease; border-left: 4px solid var(--primary); }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.featured-image { width: 100%; height: 360px; object-fit: cover; }
.featured-content { padding: 32px; }
.post-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 14px; color: var(--text-tertiary); }
.post-date { display: flex; align-items: center; gap: 6px; }
.featured-title { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; line-height: 1.3; }
.featured-excerpt { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); text-decoration: none; font-weight: 600; transition: all 0.2s ease; }
.read-more:hover { gap: 12px; color: var(--primary-dark); }

.side-list { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--bg-primary); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); transition: all 0.3s ease; display: flex; gap: 16px; align-items: center; border-left: 3px solid transparent; }
.side-card:hover { box-shadow: var(--shadow-md); border-left-color: var(--accent); transform: translateX(4px); }
.side-number { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.side-content { flex: 1; }
.side-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; }
.side-meta { font-size: 13px; color: var(--text-tertiary); }
.side-image { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

.categories { background: var(--bg-secondary); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.category-card { background: var(--bg-primary); border-radius: 16px; padding: 32px; text-align: center; text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); border: 2px solid transparent; }
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.category-card:hover::before { left: 0; transform: none; }
.category-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px; font-weight: 700; color: white; box-shadow: var(--shadow-md); }
.category-name { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.category-count { font-size: 14px; color: var(--text-tertiary); }

.recent-posts { background: var(--bg-primary); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.post-card { background: var(--bg-primary); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; display: flex; flex-direction: column; border: 1px solid var(--border-light); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.post-image { width: 100%; height: 200px; object-fit: cover; }
.post-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-badge { display: inline-block; background: var(--bg-tertiary); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px; width: fit-content; }
.post-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; line-height: 1.4; flex: 1; }
.post-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.post-footer { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-tertiary); }

.view-more { text-align: center; margin-top: 48px; }
.view-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--primary); color: var(--primary); border-radius: 12px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.view-more-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: var(--shadow-colored); }

/* ===== Mobile ===== */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.2s ease; }
.mobile-menu-btn:hover { background: var(--bg-tertiary); }
.mobile-menu-btn svg { width: 24px; height: 24px; color: var(--text-primary); }

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 32px; }
    .hero-text p { font-size: 18px; }
    .hero-image { max-width: 300px; margin: 0 auto; }
    .popular-grid { grid-template-columns: 1fr; gap: 24px; }
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ==== CORREÇÕES DE ESTILO APÓS REVISÃO ====*/
/* Remove o fundo branco que o GeneratePress aplica ao .container dentro do Hero */
.hero .container {
    background: transparent !important;
}

/* Títulos das seções devem usar a cor de destaque (accent) para seguir identidade */
.section-header .section-title,
.side-list h3 {
    color: #1E293B !important;
}

/* Transparência em containers de seções sobre base colorida */
.categories .container {
    background: transparent !important;
}

/* Forçar todos os títulos de seção a cor escura */
body .section-title {
    color: #1E293B !important;
} 

.footer-widgets {
    background-color: #000000 !important;
}

/* Cores corretas para subtítulos e títulos de posts */
.section-subtitle {
    color: var(--text-secondary) !important;
}

.post-title a,
.featured-title a,
.side-title a {
    color: var(--text-primary) !important;
    text-decoration: none;
}