/*
 * MoneyAgora Main Stylesheet - Professional Polish Version
 */

:root {
    --green-primary: #00a86b;
    --green-dark: #007a4d;
    --blue-trust: #0f172a;
    --bg-finance: #f5f7fb;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-sec: #64748b;
    --border-soft: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
}

body {
    background-color: var(--bg-finance);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 180px; /* Ticker(~40) + Header(~80) + News(~40) + Extra */
}

@media (max-width: 767px) {
    body {
        padding-top: 240px;
    }
}

/* Fixed Header Stack */
.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.fixed-header-wrapper > * {
    pointer-events: auto;
    width: 100%;
    position: relative;
    flex-shrink: 0;
}

.admin-bar .fixed-header-wrapper {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fixed-header-wrapper {
        top: 46px;
    }
}

/* Financial Top Bar (Ticker) */
.top-ticker-bar {
    background: var(--blue-trust);
    color: white;
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block !important;
    visibility: visible !important;
}

.ticker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.ticker-container::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    flex-shrink: 0;
}

.ticker-item span {
    color: var(--green-primary);
    margin-left: 4px;
}

.ticker-up { color: #10b981; }
.ticker-down { color: #ef4444; }

/* Sticky Header adjustment */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 100;
}

.header-container {
    padding: 12px 0;
}

/* Novo Hero Financeiro: 1+4 Layout */
.finance-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .finance-hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-main-featured {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 500px;
    background: var(--blue-trust);
    transition: transform 0.3s;
}

.hero-main-featured:hover { transform: scale(1.005); }

.hero-main-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    width: 100%;
}

.hero-main-content .cat-badge {
    background: var(--green-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.mini-card-finance {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.mini-card-finance:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-primary);
}

.mini-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 168, 107, 0.1);
    color: var(--green-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.mini-card-title {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
}

/* Finance Widgets */
.finance-widget {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-soft);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.widget-title-finance {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--blue-trust);
}

.calendar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.calendar-row:last-child { border: 0; }

.calendar-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-date {
    background: rgba(0, 168, 107, 0.1);
    color: var(--green-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
}

/* Finance Card Premium */
.finance-card-premium {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.finance-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--green-primary);
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.finance-card-premium:hover .card-media img {
    transform: scale(1.1);
}

.card-badge-abs {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--green-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-content-premium {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-sec);
    text-transform: uppercase;
}

.card-title-premium {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card-title-premium a {
    text-decoration: none;
    color: var(--blue-trust);
    transition: color 0.3s;
}

.card-title-premium a:hover {
    color: var(--green-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-action {
    margin-top: auto;
}

.btn-read-more {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-read-more:hover {
    gap: 10px;
}

/* Grid layout fix for archive/home */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* News Ticker */
.news-ticker-bar {
    background: var(--blue-trust);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    width: 100%;
}

/* Post Suggestions Box */
.post-suggestions-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.suggestions-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--green-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.suggestion-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s;
}

.suggestion-item:hover {
    transform: translateY(-4px);
}

.suggestion-thumb {
    aspect-ratio: 16/9;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-meta {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue-trust);
    opacity: 0.8;
}

.suggestion-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-item {
        flex-direction: row;
        align-items: center;
    }
    
    .suggestion-thumb {
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1e293b;
    color: white;
    padding: 20px 0;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    pointer-events: auto !important;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--green-primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btn {
    background: var(--green-primary);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s;
}

.cookie-btn:hover {
    background: #00905d;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ticker-label {
    background: var(--green-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    flex-shrink: 0;
    animation: flashTicker 2s infinite;
}

@keyframes flashTicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-content {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: tickerMove 40s linear infinite;
    padding-right: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--green-primary);
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

h1, h2, h3, h4, h5, h6, .single-post-title, .page-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* Page Headers (Archive/Search) */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.04em;
    margin: 0;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    background: var(--green-primary);
    border-radius: 2px;
}
/* Removed duplicate site-header that was breaking flow */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
    }
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: #fff;
    width: 85%;
    max-width: 350px;
    height: 100%;
    position: relative;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-menu {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    margin-bottom: 1.5rem;
}

.mobile-navigation a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    background: var(--green-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--text-main);
}

.site-title a {
    color: var(--text-main);
    text-decoration: none;
}

.site-title span {
    color: var(--green-primary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-sec);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    tracking-wider;
    transition: color 0.2s;
}

.main-navigation a:hover, .main-navigation .current-menu-item a {
    color: var(--green-primary);
}

/* Grid de Destaque (Blog Hero) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 2rem 0;
}

.featured-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-4px);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.7s ease;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 10;
}

.featured-main {
    grid-column: span 8;
    height: 500px;
}

.featured-side-stack {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 500px;
}

.featured-side-item {
    flex: 1;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.featured-content h2 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
}

.featured-side-item .featured-content h2 {
    font-size: 1.25rem;
}

.cat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--green-primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

/* Cards de Post */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ma-card {
    background: var(--white);
    border-radius: 1.25rem;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ma-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

.card-img {
    height: 200px;
    background: #f1f5f9;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green-primary);
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.card-excerpt {
    color: var(--text-sec);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-clamp: 2;
}

/* SIDEBAR PREMIUM & CONVERSÃO */
.widget {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-soft);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.widget-title-premium {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-title-premium::before {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--green-primary);
    border-radius: 3px;
}

/* Newsletter Sidebar Premium (Refinada) */
.newsletter-widget-top {
    text-align: center;
    position: relative;
    padding: 3rem 2rem !important;
    width: 100%;
    box-sizing: border-box;
    border-radius: 1.5rem;
    color: #fff;
}

.newsletter-icon-container {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--green-primary);
}

.mail-icon {
    width: 32px;
    height: 32px;
}

.newsletter-highlight {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.newsletter-widget-top p {
    font-size: 0.875rem;
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.newsletter-form-premium {
    width: 100%;
}

.newsletter-form-premium input {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background: #f8fafc;
    margin-bottom: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.newsletter-form-premium input:focus {
    border-color: var(--green-primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.newsletter-form-premium button {
    width: 100%;
    padding: 1.125rem;
    background: var(--green-primary);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
    box-sizing: border-box;
}

/* Responsividade de Cards e Hero */
@media (max-width: 1023px) {
    .featured-grid {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        padding: 1rem 0;
    }
    .featured-main, .featured-side-stack {
        width: 100% !important;
        height: auto !important;
        grid-column: span 12 !important;
    }
    .featured-main {
        height: 350px !important;
    }
    .featured-side-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
    }
    .featured-side-item {
        height: 250px !important;
    }
    .featured-content h2 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .page-title {
        font-size: 1.75rem !important;
    }
    .container {
        padding: 0 15px;
    }
}

.newsletter-form-premium button:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.4);
}

/* Load More Button */
.load-more-container {
    margin-top: 4rem;
    text-align: center;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--text-main);
    border: 2px solid var(--border-soft);
    padding: 1.125rem 3rem;
    border-radius: 3rem;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-load-more.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-load-more .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(22, 163, 74, 0.2);
    border-top: 3px solid var(--green-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-load-more.loading .spinner {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Refinado */
.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-post-item {
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar-post-item:hover {
    opacity: 0.7;
}

.sidebar-post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f1f5f9;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-primary), var(--blue-trust));
    color: white;
    font-weight: 900;
}

.sidebar-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-post-cat {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--green-primary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.sidebar-post-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
}

/* Trending List Style */
.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.trending-list li:last-child {
    border-bottom: none;
}

.trending-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #e2e8f0;
}

.rank-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

/* Footer Refinado */
.site-container-main {
    margin-top: 2rem;
}

.breadcrumb-current {
    color: var(--text-main);
}

.post-summary-box {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    border-left: 4px solid var(--green-primary);
}

.post-summary-box h4 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.post-summary-box p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.share-bar-compact {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
}

.share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.share-icon:hover {
    transform: scale(1.1);
}

.share-icon.fb { background: #1877F2; }
.share-icon.tw { background: #1DA1F2; }
.share-icon.wa { background: #25D366; }

.next-read-box {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f1f5f9;
}

.next-read-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.next-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.author-box {
    margin-top: 4rem;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-text h4 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.author-text p {
    font-size: 0.875rem;
    color: var(--text-sec);
    margin: 0;
}

@media (max-width: 767px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .next-posts-grid {
        grid-template-columns: 1fr !important;
    }

    .site-footer {
        padding: 4rem 0 2rem !important;
        margin-top: 4rem !important;
    }

    .footer-widgets {
        gap: 2rem !important;
        margin-bottom: 3rem !important;
    }

    .footer-column h3 {
        margin-bottom: 1rem !important;
    }
}

/* Footer Styles */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 6rem 0 3rem;
    margin-top: 6rem;
    width: 100%;
    position: relative;
    clear: both;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .footer-column:nth-child(1) { grid-column: span 5; }
    .footer-column:nth-child(2) { grid-column: span 3; }
    .footer-column:nth-child(3) { grid-column: span 4; }
}

.footer-column h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-column p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.view-more-cat {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--green-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.view-more-cat:hover {
    letter-spacing: 0.1em;
    color: var(--blue-trust);
}

.category-retention-widget {
    border-top: 4px solid var(--green-primary);
}

.col-sidebar {
    height: 100%;
}

@media (min-width: 1024px) {
    .sidebar-inner {
        position: sticky;
        top: 2rem;
    }
}

.footer-column a:hover {
    color: #fff;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2.5rem;
    text-align: center;
}

.site-info p {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}
/* Responsividade e Layout Grid */
.home-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 1100px) {
    .home-layout-grid {
        grid-template-columns: repeat(12, 1fr) !important;
    }

    .col-main {
        grid-column: span 8 !important;
    }

    .col-sidebar {
        grid-column: span 4 !important;
    }
}

@media (max-width: 1099px) {
    .home-layout-grid {
        grid-template-columns: 1fr;
    }
    .col-sidebar {
        width: 100%;
    }
}

/* Featured (Hero) Responsivity */
@media (max-width: 1023px) {
    .featured-grid {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }
    .featured-main, .featured-side-stack {
        grid-column: span 12 !important;
        width: 100% !important;
        height: auto !important;
    }
    .featured-main {
        height: 350px !important;
    }
    .featured-side-item {
        height: 250px !important;
    }
}

/* Post Cards Responsivity */
@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .ma-card {
        max-width: 100%;
    }
    .card-img {
        height: 220px;
    }
}

/* Footer & Global Mobile Fixes */
@media (max-width: 767px) {
    .footer-widgets {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
    }
    .footer-column {
        width: 100% !important;
        grid-column: span 12 !important;
    }
    .site-footer {
        padding: 4rem 0 2rem !important;
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .newsletter-widget-top {
        padding: 2.5rem 1.5rem !important;
    }
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem !important;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.disclaimer-text {
    font-size: 0.75rem !important;
    line-height: 1.6;
    color: #64748b;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--green-primary);
    padding-left: 5px;
}

/* Tipografia Extra */
strong { font-weight: 700; color: var(--text-main); }
blockquote {
    border-left: 4px solid var(--green-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
}
.search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(15px);
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.search-overlay-form {
    width: 100%;
    max-width: 600px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-overlay-form {
    transform: translateY(0);
}

.search-overlay-form input[type="search"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--green-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 0;
    outline: none;
    text-align: center;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: var(--green-primary);
    transform: rotate(90deg);
}

/* SINGLE POST DESIGN - ALTA FIDELIDADE */
.single-post-content {
    background: #fff;
    padding: 0;
}

.single-post-header {
    margin-bottom: 3rem;
}

.post-breadcrumbs {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
}

.post-breadcrumbs a {
    color: var(--text-sec);
    text-decoration: none;
}

.post-breadcrumbs a:hover {
    color: var(--green-primary);
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.post-meta-detailed {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 2rem;
}

.meta-item {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item strong {
    color: var(--text-main);
}

.post-featured-image {
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2, .article-content h3 {
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.post-summary-box {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 3rem 0;
    border-left: 6px solid var(--green-primary);
}

.post-summary-box h4 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--green-primary);
}

/* Mobile Overrides (Single Post & Final Fixes) */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    .header-container {
        padding: 0 16px;
    }
    .site-title {
        font-size: 1.25rem;
    }
    .logo-symbol {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }
    .post-meta-detailed {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .single-post-title {
        font-size: 1.5rem !important;
        margin-top: 1rem;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }
    .page-title {
        font-size: 1.5rem !important;
    }
    .post-summary-box {
        padding: 1rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 1rem;
    }
    .article-content {
        font-size: 1rem !important;
        line-height: 1.7;
    }
    .featured-main {
        height: 280px !important;
    }
    .featured-content {
        padding: 1.25rem;
    }
    .featured-content h2 {
        font-size: 1.375rem !important;
        line-height: 1.2;
    }
    .newsletter-widget-top {
        padding: 2rem 1rem !important;
    }
    .newsletter-highlight {
        font-size: 1.125rem;
    }
    .post-featured-image {
        border-radius: 1rem;
        margin-bottom: 2rem;
    }
}

/* Financial Newsletter & Sidebar Widgets */
.newsletter-widget-top {
    background: var(--blue-trust) !important;
    text-align: center;
    position: relative;
    padding: 3rem 2rem !important;
    box-sizing: border-box;
    border-radius: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.newsletter-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mail-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.newsletter-highlight {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white !important;
}

.newsletter-widget-top p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.newsletter-form-premium .input-group {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form-premium input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
    outline: none;
}

.newsletter-form-premium button {
    background: var(--green-primary);
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.widget-title-premium {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-trust);
}

.sidebar-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
}

.sidebar-post-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-post-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.sidebar-post-item:hover .sidebar-post-title { color: var(--green-primary); }

.trending-list { list-style: none; padding: 0; margin: 0; }
.trending-list li { margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-soft); padding-bottom: 1rem; }
.trending-list a { display: flex; align-items: flex-start; gap: 1rem; text-decoration: none; }
.rank-number { font-size: 1.5rem; font-weight: 900; color: var(--border-soft); line-height: 1; }
.rank-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.trending-list li:hover .rank-number { color: var(--green-primary); }
