/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Principal */
    --azul-escuro: #1E293B;
    --azul-claro: #3B82F6;
    --cinza: #64748B;
    --off-white: #F1F5F9;

    /* Mapeamento */
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --secondary: #1E293B;
    --accent: #3B82F6;
    --dark: #1E293B;
    --gray-900: #1E293B;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748B;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    --white: #FFFFFF;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px rgba(30,41,59,0.05);
    --shadow: 0 4px 6px -1px rgba(30,41,59,0.1), 0 2px 4px -1px rgba(30,41,59,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(30,41,59,0.1), 0 4px 6px -2px rgba(30,41,59,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(30,41,59,0.1), 0 10px 10px -5px rgba(30,41,59,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--off-white);
    color: var(--azul-escuro);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active {
    background: var(--primary);
    color: var(--white);
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, #0F172A 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--azul-claro);
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main {
    padding: 48px 0 80px;
}

/* Featured Post */
.featured-post {
    margin-bottom: 48px;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.featured-image {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

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

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 1rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

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

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-200);
}

.post-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 4px;
}

.post-category.credito { background: #D1FAE5; color: #065F46; }
.post-category.ia { background: #DBEAFE; color: var(--primary-dark); }
.post-category.tributacao { background: var(--gray-200); color: var(--azul-escuro); }
.post-category.economia { background: #E0E7FF; color: var(--azul-escuro); }

.post-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.8rem;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* Loading */
.loading {
    text-align: center;
    padding: 48px;
    color: var(--gray-500);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-posts {
    text-align: center;
    padding: 48px;
    color: var(--gray-500);
}

/* Footer */
.footer {
    background: var(--azul-escuro);
    color: var(--gray-400);
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

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

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid var(--cinza);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
}

/* Post Page */
.post-page {
    padding: 48px 0;
}

.post-image-container {
    max-width: 800px;
    margin: 0 auto 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Breadcrumb Navigation */
.breadcrumb {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 0.875rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--gray-500);
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--gray-400);
}

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

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: var(--gray-700);
    font-weight: 500;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.post-header .post-category {
    margin-bottom: 16px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-header .post-meta {
    justify-content: center;
    border: none;
    padding: 0;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 16px;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 24px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.post-content ul, .post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-content blockquote {
    background: linear-gradient(135deg, var(--azul-claro) 0%, rgba(0, 82, 204, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-800);
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.post-content em {
    color: var(--gray-600);
}

/* Wrapper para tabelas responsivas */
.post-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Indicador visual de scroll (gradiente na direita) */
.post-content .table-wrapper.has-scroll::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
    pointer-events: none;
    z-index: 1;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-content .table-wrapper table {
    margin: 0;
    box-shadow: none;
}

.post-content table thead {
    background: var(--primary);
    color: var(--white);
}

.post-content table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.post-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.post-content table tbody tr:hover {
    background: var(--azul-claro);
}

.post-content table tbody tr:last-child td {
    border-bottom: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 32px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 200px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .post-content {
        padding: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Tabelas responsivas em mobile */
    .post-content .table-wrapper {
        margin: 16px -24px;
        padding: 0 24px;
        border-radius: 0;
    }

    .post-content table {
        min-width: 450px;
        font-size: 0.9rem;
    }

    .post-content table th,
    .post-content table td {
        padding: 10px 12px;
    }

    /* Indicador de scroll para tabelas - so aparece quando ha scroll */
    .post-content .table-wrapper.has-scroll::after {
        content: 'Deslize para ver mais';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--gray-500);
        padding: 8px 0 4px;
        opacity: 0.8;
    }
}

/* ==========================================
   ADSENSE & ADVERTISING STYLES
   ========================================== */

.ad-container {
    padding: 16px 0;
}

.ad-slot {
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

.ad-slot.ad-top {
    min-height: 90px;
}

.ad-slot.ad-middle,
.ad-slot.ad-bottom {
    min-height: 250px;
}

.ad-placeholder {
    color: var(--gray-400);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hide ad placeholder when AdSense loads */
.ad-slot .adsbygoogle + .ad-placeholder {
    display: none;
}

/* ==========================================
   NEWSLETTER FORM
   ========================================== */

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--cinza);
    border-radius: var(--radius);
    background: var(--gray-800);
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: var(--gray-400);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--azul-claro);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--azul-claro);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

/* ==========================================
   FOOTER LEGAL
   ========================================== */

.footer-legal {
    margin-top: 8px;
    font-size: 0.8rem;
}

.footer-legal a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */

.about-hero {
    margin-bottom: 32px;
}

.lead {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.feature-card {
    background: var(--gray-100);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--azul-escuro);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

.highlight-box {
    background: var(--azul-escuro);
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 32px 0;
}

.highlight-box h3 {
    color: var(--azul-claro);
    margin-bottom: 16px;
}

.highlight-box ul {
    margin: 0;
    padding-left: 20px;
}

.highlight-box li {
    color: var(--gray-300);
    margin-bottom: 12px;
}

.highlight-box strong {
    color: var(--white);
}

.btn-primary {
    display: inline-block;
    background: var(--azul-claro);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info h2 {
    margin-top: 0;
}

.contact-channels {
    margin: 24px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--azul-escuro);
}

.contact-item p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.contact-topics {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 24px;
}

.contact-topics h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.contact-topics ul {
    margin: 0;
    padding-left: 20px;
}

.contact-topics li {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.contact-form-wrapper {
    background: var(--gray-100);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--azul-escuro);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--azul-claro);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
}

.form-note a {
    color: var(--azul-claro);
}

/* ==========================================
   LEGAL PAGES
   ========================================== */

.legal-content h2 {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    margin-top: 24px;
}

/* ==========================================
   SEARCH CONTAINER
   ========================================== */

.search-container {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 24px auto 0;
}

.search-container input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input:focus {
    outline: none;
    border-color: var(--azul-claro);
    background: rgba(255, 255, 255, 0.15);
}

.search-container button {
    padding: 14px 20px;
    background: var(--azul-claro);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-dots {
    padding: 10px 8px;
    color: var(--gray-500);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ==========================================
   LAZY LOADING IMAGES
   ========================================== */

.post-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-image img.loaded,
.post-image img[loading="lazy"] {
    opacity: 1;
}

.featured-image {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* Loading skeleton for images */
.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.post-image img.loaded + .post-image::before,
.post-image img[src] ~ ::before {
    display: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   SEARCH RESULTS MESSAGE
   ========================================== */

.search-results-info {
    text-align: center;
    padding: 16px;
    margin-bottom: 24px;
    background: var(--gray-100);
    border-radius: var(--radius);
    color: var(--gray-600);
}

.search-results-info strong {
    color: var(--primary);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        max-width: 100%;
    }

    .search-container button {
        width: 100%;
    }

    .pagination {
        gap: 4px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================
   SOCIAL SHARE BUTTONS
   ========================================== */

.share-section {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
}

.share-section h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 20px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-twitter:hover {
    background: #1a8cd8;
}

.share-linkedin {
    background: #0A66C2;
    color: white;
}

.share-linkedin:hover {
    background: #094d92;
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-whatsapp:hover {
    background: #20bd5a;
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-facebook:hover {
    background: #1466d9;
}

.share-copy {
    background: var(--gray-200);
    color: var(--gray-700);
}

.share-copy:hover {
    background: var(--gray-300);
}

/* ==========================================
   RELATED POSTS
   ========================================== */

.related-posts {
    max-width: 1000px;
    margin: 48px auto 0;
}

.related-posts h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.related-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 140px;
    overflow: hidden;
    background: var(--gray-200);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-body {
    padding: 20px;
}

.related-body .post-category {
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.related-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-section {
        padding: 24px 16px;
    }
}
