:root {
    --primary-color: #0056b3;
    --secondary-color: #00a8cc;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
    --primary-color: #4da3ff;
    --secondary-color: #00d2ff;
    --accent-color: #ffb74d;
    --text-color: #e0e0e0;
    --light-text: #a0a0a0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --glass-bg: rgba(30, 30, 30, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1600;
    padding: 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 150px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle, .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
    min-height: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-static {
    text-align: right;
}

.hero-dynamic {
    text-align: left;
    display: inline-flex;
    align-items: center;
    font-size: 0.75em; /* Reduzido para 75% do tamanho do h1 */
    transform: translateY(6px); /* Ajuste fino para alinhar com a base do texto maior */
    font-weight: 700;
}

.typing-box {
    background-color: transparent;
    color: inherit;
    padding: 0;
    margin-right: 0;
    display: inline-block;
    transition: all 0.1s ease-out;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

@media (max-width: 768px) {
    .hero h1 {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5px;
        height: auto;
    }
    .hero-static {
        text-align: center;
    }
    .hero-dynamic {
        justify-content: center;
    }
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background-color: white;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Featured Post */
.featured-post {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 60px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.featured-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-content {
    flex: 1;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Content 3/4, Sidebar 1/4 - Adjusted to match official layout */
    gap: 40px;
    margin-bottom: 60px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.post-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--text-color);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Sidebar Widgets */
.sidebar .widget {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Newsletter Widget */
.newsletter-widget form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-widget input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Modern Category List */
.category-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-list li a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(to right, var(--bg-color), rgba(255,255,255,0));
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.category-list li a:hover {
    background: var(--card-bg);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left-color: var(--accent-color);
    color: var(--primary-color);
}

.category-list li a::before {
    content: "\f105"; /* Angle Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 12px;
    color: var(--light-text);
    transition: all 0.3s;
}

.category-list li a:hover::before {
    color: var(--accent-color);
    margin-right: 16px;
}

[data-theme="dark"] .category-list li a {
    background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .category-list li a:hover {
    background: rgba(255,255,255,0.08);
}

/* Banner Carnaval */
.banner-carnaval {
    width: 100%;
    background: linear-gradient(90deg, #f5f7fa, #fff7d6);
    color: #2c2c2c;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1001;
}

.banner-carnaval .emoji {
    margin-right: 6px;
}

.banner-carnaval a {
    margin-left: 8px;
    color: #1a4fd8;
    font-weight: bold;
    text-decoration: none;
}

.banner-carnaval a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .banner-carnaval {
        font-size: 0.85rem;
        padding: 10px;
    }
}

.banner-evolucao {
    width: 90%;
    max-width: 960px;
    background: linear-gradient(90deg, #fff3cd, #e9f5ff);
    color: #2c2c2c;
    padding: 10px 24px;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 200px;
    z-index: 1500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.banner-evolucao .emoji {
    margin-right: 8px;
    font-size: 1.1rem;
}

.banner-evolucao-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 960px;
}

.banner-evolucao-text strong {
    display: block;
    margin-bottom: 4px;
}

.banner-evolucao-text span {
    display: block;
}

@media (max-width: 600px) {
    .banner-evolucao {
        font-size: 0.85rem;
        padding: 12px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Mobile Position Adjustment: Move to bottom to avoid blocking content */
        top: auto;
        bottom: 20px;
        width: 92%;
    }

    .banner-evolucao-text {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

/* Newsletter Horizontal Section */
.newsletter-horizontal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px 0;
    margin: 40px 0;
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    flex: 1;
    display: flex;
    gap: 10px;
    min-width: 300px;
    max-width: 500px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.newsletter-form button {
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-links-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 10px;
}

.footer-links-col a {
    color: rgba(255,255,255,0.7);
}

.footer-links-col a:hover {
    color: var(--accent-color);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: none;
    background-color: #6FBF4A;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.9rem;
    z-index: 1100;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cookie-banner p {
    margin: 0;
    flex: 1;
}

.cookie-banner .cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner .cookie-accept {
    white-space: nowrap;
    border: none;
    outline: none;
}

.cookie-banner .cookie-actions .btn {
    text-decoration: none;
}

.cookie-banner .cookie-link {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.cookie-banner .cookie-link:hover {
    background: #fff;
    color: var(--primary-color);
}

.cookie-banner.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .featured-post {
        flex-direction: column;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Featured Products Section */
.featured-products {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.3));
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative; /* For badges */
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card .price {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Badge Styles - Consolidated */
.badge-top {
    position: absolute;
    top: 10px; /* Moved down from -10px */
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 4px;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s;
}

/* Floating Share Buttons */
.share-buttons-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); /* Fundo escuro para botões */
    border: 1px solid var(--border-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Video Container Responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Filter Buttons */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Related Article Link Button */
.related-article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
}

.related-article-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.related-article-link i {
    transition: transform 0.3s ease;
}

/* Audio Player Widget */

/* Article Content Styling */
.article-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.article-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;
}

.article-content .cta-box {
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
}

#voice-select {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    color: var(--light-text);
    font-size: 0.8rem;
    font-family: var(--font-body);
    cursor: pointer;
    max-width: 180px;
    outline: none;
    padding: 5px 20px 5px 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

#voice-select:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

#voice-select option {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Audio Speed Control */

/* Sidebar Video Widget */
.video-preview-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-preview-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.video-thumbnail {
    position: relative;
    width: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.video-thumbnail:hover img {
    transform: scale(1.1);
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: none;
}

.video-info h4 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

.video-info h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.video-info h4 a:hover {
    color: var(--primary-color);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content.modal-anim-in {
    transform: scale(1);
    opacity: 1;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--light-text);
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.05);
}

.modal-ok {
    margin-top: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.modal-ok:active {
    transform: scale(0.95);
}

/* =========================================
 /* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: rgba(0,0,0,0.02);
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-header.active {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-color);
}

.accordion-content p {
    padding: 20px;
    margin: 0;
    color: var(--light-text);
}

/* Recommended Reading Buttons */
.recommended-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.btn-recommended {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-recommended:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-recommended i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Related Content Block Styles */
.related-content-block {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
}

.related-content-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-align: center;
}

.related-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.related-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.related-card span {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Fix for Widget Posts List Images */
.widget-posts-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.widget-posts-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    width: 100%;
}

.widget-posts-list li a:hover {
    color: var(--primary-color);
}

.widget-posts-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.widget-posts-list span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Mobile Optimization (Moto G4 & Small Screens) */
   Max-width: 480px covers most phones in portrait
   ========================================= */
@media (max-width: 480px) {

    /* General Layout */
    .container {
        padding: 0 15px; /* More space for content */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    h1 {
        font-size: 2rem; /* Smaller main titles */
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Header & Logo */
    .site-header {
        position: sticky; 
        top: 0;
        width: 100%;
    }

    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        flex: 1; /* Allow logo to take available space but shrink if needed */
        min-width: 0; /* Allow flex item to shrink below content size */
    }

    .logo img {
        height: auto; 
        max-height: 80px; /* Limit height */
        max-width: 100%; /* Ensure it doesn't overflow width */
        object-fit: contain;
    }

    .header-actions {
        gap: 10px;
        flex-shrink: 0; /* Prevent actions from shrinking */
    }

    /* Hero Section */
    .hero {
        padding: 40px 0; /* Reduce padding */
        border-radius: 0 0 30px 30px;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Featured Post */
    .featured-post {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }

    .featured-image {
        width: 100%;
        max-width: 100%;
    }

    .featured-content {
        width: 100%;
    }

    .featured-content h2 {
        font-size: 1.5rem;
    }

    /* Articles Grid & Cards */
    .posts-grid {
        grid-template-columns: 1fr; /* Force single column */
        gap: 20px;
    }

    .post-card {
        margin-bottom: 20px;
    }

    .post-image {
        height: 200px; /* Fixed height for consistency */
    }

    /* Sidebar & Widgets */
    .sidebar {
        margin-top: 40px;
    }

    .video-preview-item {
        flex-direction: column; /* Stack video thumbnail and text */
        align-items: flex-start;
    }

    .video-thumbnail {
        width: 100%; /* Full width thumbnail */
        height: auto;
    }

    .video-thumbnail img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    /* Products Grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Audio Player */

    #voice-select {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    /* Buttons */
    .btn {
        width: 100%; /* Full width buttons on mobile */
        display: block;
        margin-bottom: 10px;
    }

    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }

    .filter-btn {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        gap: 30px;
    }

    .footer-brand {
        margin-bottom: 20px;
    }
}

/* Investment Modal Specific Styles */
.invest-modal-content {
    max-width: 900px;
    width: 95%;
    background: #fff;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 90vh;
}

/* =========================================
   Audio Player Speed Control
   ========================================= */

/* Arrow for the tooltip */

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Site Blue Gradient */
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.modal-logo {
    max-height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}

.modal-header p {
    margin-top: 5px;
    color: #ffffff;
    opacity: 1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body-scroll {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.invest-section {
    margin-bottom: 30px;
}

.invest-section h3 {
    color: #2c5364;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.invest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.invest-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.invest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.invest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: transparent;
}

.invest-card:hover::before {
    opacity: 1;
}

.card-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(33, 147, 176, 0.1); /* Light Primary Color */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.invest-card:hover .card-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.card-text {
    flex-grow: 1;
}

.invest-card h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 700;
}

.invest-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--light-text);
    line-height: 1.5;
}

[data-theme="dark"] .invest-card {
    background: var(--card-bg);
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .card-icon {
    background: rgba(255,255,255,0.05);
    color: var(--accent-color);
}

[data-theme="dark"] .invest-card:hover .card-icon {
    background: var(--accent-color);
    color: white;
}

.modal-footer-action {
    padding: 15px 25px 10px 25px;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-footer-action button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-footer-action button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
    filter: brightness(1.1);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .invest-grid {
        grid-template-columns: 1fr;
    }
    .modal-header {
        padding: 20px;
    }
}
/* Audio Player Styles */

.audio-player {

    background: #f8f9fa;

    border-radius: 12px;

    padding: 15px 20px;

    margin-bottom: 30px;

    display: flex;

    align-items: center;

    border: 1px solid var(--border-color);

    box-shadow: 0 2px 5px rgba(0,0,0,0.05);

}

.audio-controls {

    display: flex;

    gap: 15px;

    align-items: center;

}

.btn-audio {

    background: white;

    border: 1px solid var(--border-color);

    border-radius: 50px; /* Pill shape for speed, circle for play if width=height */

    min-width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    color: var(--primary-color);

    transition: all 0.2s;

    font-weight: 600;

    font-size: 0.9rem;

    padding: 0 10px;

}

#play-btn {

    border-radius: 50%;

    width: 40px;

    padding: 0;

}

.btn-audio:hover {

    background: var(--primary-color);

    color: white;

    border-color: var(--primary-color);

}

/* AdSense Containers */
.ad-container {
    display: block;
    width: 100%;
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
}
.widget .ad-container {
    margin: 0;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* =========================================
   Image Caption Styles (Added v9.0)
   ========================================= */
.image-caption {
    font-family: 'Merriweather', serif; /* More elegant font */
    font-size: 0.95rem;
    color: var(--light-text);
    text-align: center;
    font-style: italic;
    margin: 15px auto 30px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 6px 6px 0;
    max-width: 90%;
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Dark mode support for caption */
[data-theme="dark"] .image-caption {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

/* =========================================
   Restoring Vivid Styles (v9.1)
   ========================================= */
.article-content .cta-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-content .cta-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
    background-image: linear-gradient(to bottom right, #d1e7dd, #c3e6cb);
}

.alert-success h3 {
    color: #0f5132;
    margin-top: 0;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(15, 81, 50, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.lead {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

.article-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
}

/* Dark Mode Adjustments for Vivid Styles */
[data-theme="dark"] .article-content .cta-box {
    background-color: #252a34;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    background-image: none;
    border-color: #198754;
    color: #d1e7dd;
}

[data-theme="dark"] .alert-success h3 {
    color: #d1e7dd;
    border-bottom-color: rgba(209, 231, 221, 0.2);
}

[data-theme="dark"] .lead {
    color: #e0e0e0;
}

/* =========================================
   Modern Post Meta Styles (v9.2)
   ========================================= */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 25px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f3f5;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.post-meta span i {
    color: var(--primary-color);
    font-size: 1rem;
}

.post-meta span:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Dark mode support for meta */
[data-theme="dark"] .post-meta span {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

[data-theme="dark"] .post-meta span:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =========================================
   Affiliate Product Box
   ========================================= */
.affiliate-box {
    background: #fff;
    border: 2px solid #ffaa00; /* Gold/Orange border for attention */
    border-radius: 12px;
    padding: 30px;
    margin: 50px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.affiliate-box::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: 0;
    right: 0;
    background: #ffaa00;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-bottom-left-radius: 12px;
}

.affiliate-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.affiliate-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.affiliate-box .price {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.affiliate-box .price span {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
}

.affiliate-box .btn-affiliate {
    background: #28a745; /* Green for "buy/action" */
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.affiliate-box .btn-affiliate:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Dark mode adjustment */
[data-theme="dark"] .affiliate-box {
    background: #2d2d2d;
    border-color: #ffaa00;
}
[data-theme="dark"] .affiliate-box h3 {
    color: #fff;
}
[data-theme="dark"] .affiliate-box p {
    color: #ccc;
}
[data-theme="dark"] .affiliate-box .price {
    color: #fff;
}

/* =========================================
   Modern Category & Meta Info (v9.3)
   ========================================= */
.category-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-color, #0056b3);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--light-text, #6c757d);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-info i {
    color: var(--secondary-color, #00a8cc);
}

/* =========================================
   Mobile Responsiveness (320px - 480px)
   ========================================= */
@media (max-width: 480px) {
    /* Container Padding */
    .container {
        padding: 0 15px;
    }

    /* Images */
    .article-content img, 
    .post-content img,
    img {
        max-width: 100% !important;
        height: auto !important;
        float: none !important;
        display: block;
        margin: 15px auto;
    }

    /* Typography */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 26px !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Article Content Padding */
    .article-content {
        padding: 20px 15px !important;
    }

    /* Tables */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* FAQ Lists & Text Overflow */
    .faq-list, .faq-item, .accordion-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Layout Adjustments */
    .main-layout, 
    .footer-grid, 
    .newsletter-content,
    .featured-post,
    .filter-controls {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Ensure no fixed widths */
    * {
        max-width: 100%;
    }

    /* Adjust specific elements */
    .affiliate-box {
        padding: 20px;
        margin: 30px 0;
    }

    .cta-box {
        padding: 20px !important;
    }
}

/* Related Articles Section - Modern v9.3 with Horizontal Scroll - REMOVED */

/* Typewriter Text - Simple Style */
#typewriter-text {
    color: var(--accent-color);
    display: inline-block;
    font-weight: 800;
    position: relative;
    z-index: 2;
    /* Aumenta o brilho da cor e adiciona um leve glow para destaque */
    filter: brightness(1.1) contrast(1.1);
    text-shadow: 0 0 1px rgba(255,255,255,0.5); 
    -webkit-font-smoothing: antialiased;
}

/* Typewriter Wrapper */
.typewriter-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    /* Fundo mais opaco para evitar interferência visual do background */
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2px 12px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
