:root {
    /* Light Mode (Default) */
    --primary-color: #0066cc;
    --secondary-color: #333;
    --background-color: #ffffff; /* Content box background */
    --outer-background-color: #f0f2f5; /* Body background */
    --text-color: #333;
    --text-color-secondary: #666; /* For less important text */
    --light-gray: #f8f9fa; /* Used for nav pill, newsletter bg */
    --border-color: #eaeaea;
    --container-width: 1100px;
    --content-padding: 40px;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --header-nav-text-color: var(--secondary-color);
}

/* Dark Mode Variables */
html[data-theme="dark"] {
    --primary-color: #3b82f6; /* Example: Slightly brighter blue */
    --secondary-color: #e5e7eb; /* Light gray for secondary text */
    --background-color: #1f2937; /* Dark gray for content box */
    --outer-background-color: #111827; /* Very dark gray/black for body */
    --text-color: #f9fafb; /* Off-white for main text */
    --text-color-secondary: #9ca3af; /* Medium gray for less important text */
    --light-gray: #374151; /* Darker gray for nav pill, newsletter bg */
    --border-color: #4b5563; /* Darker border color */
    --shadow-color: rgba(0, 0, 0, 0.2);
    --header-nav-text-color: var(--text-color); /* Match main text color in dark mode */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--outer-background-color); /* Apply outer background */
    margin: 0; /* Ensure no default body margin */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color); /* Ensure hover uses variable */
    filter: brightness(1.2); /* Example: slightly brighten on hover */
}

.container {
    max-width: var(--container-width);
    margin-left: auto; /* Keep using standard container for content alignment */
    margin-right: auto;
    padding-left: var(--content-padding); /* Use variable for padding */
    padding-right: var(--content-padding);
}

/* Apply boxed style to the main site wrapper */
.site-wrapper {
    max-width: var(--container-width);
    margin: 40px auto; /* Add vertical margin and center horizontally */
    background-color: var(--background-color); /* White background for the box */
    border: 1px solid var(--border-color); /* Subtle border */
    box-shadow: 0 5px 15px var(--shadow-color); /* Subtle shadow - use variable */
    border-radius: 5px; /* Optional: slightly rounded corners */
    overflow: hidden; /* Contain children */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition */
}

/* Adjust header/footer to be inside the box visually */
/* Header */
header.site-header { /* Target the specific header */
    display: flex;
    justify-content: center;
    padding-top: var(--content-padding);
    padding-bottom: var(--content-padding); /* Match top padding or adjust */
    border-bottom: none; /* Remove the border from the header wrapper */
    /* Background is handled by site-wrapper */
}

header.site-header .container {
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
    display: flex; /* Enable Flexbox */
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Distribute space evenly */
}

/* Create a dummy spacer on the left to balance the toggles on the right */
header.site-header .container::before {
    content: "";
    width: 80px; /* Match width of toggle buttons area */
}

/* Header nav in the center */
header nav.site-nav {
    /* No special positioning needed - will be centered by space-between */
}

header nav ul {
    /* Restore original styles for the floating pill effect */
    display: flex; /* Change back to flex from inline-flex */
    align-items: center; /* Align items vertically */
    list-style: none;
    /* Use main background and border for the pill */
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 15px; /* Adjusted padding slightly */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: var(--header-nav-text-color); /* Use specific variable */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 10px; /* Add padding for better click area */
    display: block;
    border-radius: 30px; /* Rounded highlight on hover */
}

header nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05); /* Subtle hover background */
}

/* Container for header toggles - same width as the spacer */
.header-toggles {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 80px; /* Match width with the spacer */
    justify-content: flex-end; /* Push icons to the right */
}

/* Add styles for theme toggle buttons */
.theme-toggle-button {
    background: none;
    border: 1px solid var(--border-color); /* Add border matching nav */
    color: var(--text-color-secondary);
    font-size: 1rem; /* Slightly smaller icon */
    cursor: pointer;
    padding: 6px; /* Adjust padding */
    margin-left: 5px; /* Adjust margin */
    border-radius: 50%;
    line-height: 1;
    width: 32px; /* Fixed width */
    height: 32px; /* Fixed height */
    display: flex; /* Center icon */
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle-button:hover {
    color: var(--text-color);
    background-color: var(--light-gray); /* Use light-gray for hover bg */
    border-color: var(--border-color); /* Keep border color or adjust */
}

/* Hide the inactive button */
html[data-theme="dark"] #theme-toggle-light {
    display: none;
}

html:not([data-theme="dark"]) #theme-toggle-dark {
    display: none;
}

/* Main Content */
main#site-main {
    padding: 0; /* Remove default padding */
}

/* Add padding back to sections *within* main, using the container */
.hero,
.blog-posts,
.newsletter,
.work-history,
.post-template article,
.page-template article {
     /* Maybe padding is handled by their inner .container? Let's test first. */
     /* Padding might be needed here if .container padding was removed */
}

/* Ensure containers within sections don't exceed the site-wrapper */
.hero .container,
.blog-posts .container,
.newsletter .container,
.work-history .container,
.post-template .container,
.page-template .container {
    max-width: 100%; /* Let site-wrapper control max width */
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
}

/* Specific adjustments for post/page content containers */
.post-content,
.page-content {
    /* Max-width is already set, ensure padding is consistent */
    padding-left: 0; 
    padding-right: 0;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-color-secondary); /* Use secondary text color */
    margin-bottom: 30px;
}

.social {
    margin-top: 30px;
}

.social a.bluesky {
    background-color: #1da1f2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
}

.social a.bluesky:hover {
    background-color: #0d8ecf;
}

/* Blog Posts - Nova versão com layout semelhante à página de arquivos */
.blog-posts {
    margin: 40px 0;
}

/* Estilos para o card centralizado de publicações */
.publications-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Título da seção de publicações */
.publications-card .section-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--heading-color);
}

/* Ajuste para os filtros do archive dentro do card */
.publications-card .archive-filters {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.blog-posts .archive-post-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.blog-posts .archive-post-item:first-child {
    padding-top: 0;
}

.blog-posts .archive-post-item:last-child {
    border-bottom: none;
}

/* Estilos para a data na página inicial e de arquivo */
.post-date {
    min-width: 120px;
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Ajustes para o indicador de membros na coluna de data */
.post-date .members-only-indicator {
    margin-left: 0;
    margin-top: 5px;
    padding: 3px 8px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

/* Ajuste para os detalhes do post sem o botão "Ler" */
.post-details {
    flex-grow: 1;
    padding-right: 20px; /* Reduzir o padding direito já que não temos mais o botão */
}

/* Ajustes específicos para a página de blog/inicial */
.blog-posts .post-details {
    flex-grow: 1;
    padding-right: 20px; /* Reduzir o padding direito já que não temos mais o botão */
}

.blog-posts .post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-posts .post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-posts .post-title a:hover {
    color: var(--primary-color);
}

/* Indicadores de post (tags, membros, etc.) */
.blog-posts .post-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

/* Newsletter */
.newsletter {
    background-color: var(--light-gray); /* Use variable */
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-color-secondary);
}

.newsletter-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

/* Estilo do placeholder no modo light (padrão) */
.newsletter-form input::placeholder {
    color: var(--text-color-secondary);
    opacity: 0.7;
}

/* Estilo do placeholder no modo dark */
html[data-theme="dark"] .newsletter-form input::placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.newsletter-btn {
    padding: 12px 28px !important;
    background-color: #000000 !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.newsletter-btn:hover {
    background-color: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.newsletter-response {
    margin-top: 15px;
    min-height: 24px;
    color: var(--text-color-secondary);
    font-size: 0.9rem;
}

/* Responsive styles for the newsletter form */
@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

/* Timeline Updates */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    list-style: none; /* Importante: remover os marcadores da lista */
}

.timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color); /* Use a variável de cor primária */
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
    list-style: none; /* Garantir que não haja marcadores */
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 16px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color); /* Use a variável de cor primária */
}

.timeline-content {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 20px;
}

.timeline-content .company {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-content .brand {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content .role {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-content .date {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer.site-footer { /* Target the specific footer */
    padding-top: var(--content-padding);
    padding-bottom: var(--content-padding);
    background-color: transparent; /* Footer background now comes from site-wrapper */
    border-top: 1px solid var(--border-color); /* Keep border on footer top */
}

footer.site-footer .container {
    padding-left: var(--content-padding); /* Use variable padding from :root */
    padding-right: var(--content-padding);
    display: flex; /* Enable flexbox */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between; /* Space between nav and copyright */
    align-items: center; /* Vertically align items */
    gap: 20px; /* Add gap between items when wrapping */
}

footer nav {
    margin-bottom: 0; /* Remove bottom margin as flex handles spacing */
    /* Ensure nav takes appropriate space */
}

footer nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow nav items to wrap */
    justify-content: flex-start; /* Align nav items to the start */
    padding: 0; /* Remove default padding if any */
    list-style: none;
    gap: 15px; /* Add gap between nav items */
}

footer nav ul li {
    margin: 0; /* Remove default margins */
}

/* Style footer links like header links */
footer nav ul li a {
    color: var(--header-nav-text-color); /* Match header link color variable */
    font-weight: 500; /* Match header link weight */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: var(--primary-color); /* Match header link hover color */
}

.copyright {
    color: var(--text-color-secondary); /* Use variable */
    font-size: 0.9rem;
    text-align: right; /* Align copyright text to the right */
    /* Remove margin-top if flex alignment handles it */
}

/* Remove the powered by Ghost link for cleaner look */
.site-footer-power {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav ul {
        padding: 8px 15px;
    }
    
    header nav ul li {
        margin: 0 10px;
    }

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

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .newsletter button {
        border-radius: 5px;
    }
}

/* Koenig Editor Styles */
/* Ensure these styles fit within your theme's max-width */

/* Wide width */
.kg-width-wide {
    max-width: var(--container-width);
    /* Adjustments might be needed depending on desired effect */
    width: 100%; 
    margin-left: 0;
}

/* Full bleed width - Use with caution, ensure container has no overflow issues */
.kg-width-full {
    max-width: var(--container-width); /* Limit to box width */
    width: var(--container-width);
    margin-left: calc(50% - var(--container-width) / 2);
    transform: translateX(0);
}

/* Apply only to direct children of post-content to avoid issues */
.post-content > .kg-width-wide,
.page-content > .kg-width-wide, /* Also apply to pages */
.post-content > .kg-width-full,
.page-content > .kg-width-full { /* Also apply to pages */
    /* Reset grid column if inside a grid */
    grid-column: 1 / -1;
}

/* Example: Center align wide/full images if they are img tags */
.kg-width-wide img,
.kg-width-full img {
    display: block;
    margin: 0 auto;
    width: 100%; /* Ensure image scales within its container */
}

/* Single Post Styles */
.post-template .container {
    max-width: 1000px; /* Adjust container for posts if needed */
}

.post-header {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.post-tags {
    margin-bottom: 15px;
}

.post-tags a {
    font-size: 0.9rem;
    color: var(--text-color-secondary); /* Use variable */
    text-decoration: none;
    margin: 0 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.post-tags a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.post-title {
    font-size: 3rem; /* Larger title */
    margin-bottom: 10px;
    line-height: 1.2;
    /* Color inherited */
}

.post-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-secondary); /* Use variable */
    margin-bottom: 20px;
    font-weight: 400;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.post-meta time {
    display: inline-block;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    color: var(--text-color-secondary);
}

.reading-time:before {
    content: '\f017'; /* Font Awesome clock icon */
    font-family: 'Font Awesome 5 Free';
    margin-right: 5px;
    font-size: 0.9em;
}

.post-feature-image {
    margin-bottom: 40px;
}

.post-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px; /* Optional: slightly rounded corners */
}

.post-feature-image figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color-secondary); /* Use variable */
}

.post-content {
    max-width: 720px; /* Set max width for readability */
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem; /* Slightly larger content font */
    line-height: 1.8; /* Increase line height */
}

/* Garantir que imagens não ultrapassem a largura do conteúdo */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 5px;
}

/* Garantir que figuras e outros elementos não ultrapassem a largura */
.post-content figure,
.post-content iframe,
.post-content .kg-embed-card,
.post-content .kg-image-card,
.post-content .kg-gallery-card {
    max-width: 100%;
    width: 100%;
    margin: 1.5em auto;
}

/* Spacing for elements within post content */
.post-content > * + * {
    margin-top: 1.5em; 
}

.post-content h2 {
    font-size: 2rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.post-content h3 {
    font-size: 1.6rem;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-color-secondary); /* Use variable */
}

.post-content figure {
    margin: 2em 0;
}

.post-content figcaption {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-color-secondary); /* Use variable */
    margin-top: 0.5em;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem;
    }
    .post-content {
        font-size: 1rem;
    }
}

/* Single Page Styles (page.hbs) */
.page-template .container {
    max-width: 1000px; /* Adjust as needed */
}

.page-template .page-header {
    padding-top: 50px;
    padding-bottom: 30px;
    text-align: center; /* Center align header content */
    border-bottom: 1px solid var(--border-color); /* Optional separator - Use variable */
    margin-bottom: 40px;
}

.page-template .page-title {
    font-size: 2.8rem; /* Adjust size as needed */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-template .page-subtitle {
    font-size: 1.3rem;
    color: var(--text-color-secondary); /* Use variable */
    max-width: 720px; /* Limit subtitle width */
    margin: 0 auto 20px; /* Center subtitle */
    font-weight: 400;
}

/* Keep page content readable, similar to post content */
.page-template .page-content {
    max-width: 720px; 
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem; 
    line-height: 1.8; 
}

.page-template .page-feature-image-in-content {
    margin: 2em 0;
}

.page-template .page-feature-image-in-content img {
     width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Apply similar content spacing as posts */
.page-template .page-content > * + * {
    margin-top: 1.5em; 
}

.page-template .page-content h2 {
    font-size: 2rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.page-template .page-content h3 {
    font-size: 1.6rem;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.page-template .page-content p {
    margin-bottom: 1.5em;
}

.page-template .page-content ul,
.page-template .page-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.page-template .page-content li {
    margin-bottom: 0.5em;
}

.page-template .page-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-color-secondary); /* Use variable */
}

.page-template .page-content figure {
    margin: 2em 0;
}

.page-template .page-content figcaption {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-color-secondary); /* Use variable */
    margin-top: 0.5em;
}

@media (max-width: 768px) {
    .page-template .page-title {
        font-size: 2rem;
    }
    .page-template .page-content {
        font-size: 1rem;
    }
}

/* Estilos para a bio editável da homepage */
.bio-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color-secondary);
    margin-bottom: 30px;
}

.bio-content p {
    margin-bottom: 1em;
}

.bio-content strong, 
.bio-content b {
    color: var(--text-color);
    font-weight: 600;
}

.bio-content em,
.bio-content i {
    font-style: italic;
}

.bio-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.2s ease;
}

.bio-content a:hover {
    color: var(--primary-color);
    filter: brightness(1.2);
    border-bottom: 1px solid var(--primary-color);
}

.view-all-posts {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.view-all-posts .read-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.view-all-posts .read-more:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
}

/* No-scroll para o body quando o modal está aberto */

/* Post Grid and Cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
}

.post-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.post-info h3 a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-info h3 a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    color: var(--text-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.read-more {
    text-align: right;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-end;
}

.read-more:hover {
    text-decoration: underline;
}

.more-posts {
    text-align: center;
    margin-top: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-2px);
}

.btn.outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn.outline:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Hero Section Updates */
.hero .btn {
    margin-top: 20px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    background-color: var(--input-bg-color);
    color: var(--text-color);
}

.newsletter-response {
    margin-top: 10px;
    text-align: center;
    min-height: 24px;
}

.newsletter-success {
    color: #2ecc71;
}

.newsletter-error {
    color: #e74c3c;
}

/* Timeline Updates */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 16px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}

.timeline-content {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--title-color);
}

.timeline-content h4 {
    color: var(--accent-color);
    margin: 5px 0 15px;
    font-weight: 500;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Specific hover colors for each network */
.social-icons a[aria-label="Twitter"]:hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

.social-icons a[aria-label="YouTube"]:hover {
    background-color: #FF0000;
    border-color: #FF0000;
}

.social-icons a[aria-label="GitHub"]:hover {
    background-color: #333;
    border-color: #333;
}

.social-icons a[aria-label="LinkedIn"]:hover {
    background-color: #0077B5;
    border-color: #0077B5;
}

.social-icons a[aria-label="Reddit"]:hover {
    background-color: #FF4500;
    border-color: #FF4500;
}

.social-icons a[aria-label="Instagram"]:hover {
    background-color: #E1306C;
    border-color: #E1306C;
}

.social-icons a[aria-label="BlueSky"]:hover {
    background-color: #0085FF;
    border-color: #0085FF;
}

/* Responsive styles for social icons */
@media (max-width: 767px) {
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    margin-bottom: 2rem;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Full-width Hero Image Section with Parallax Effect */
.hero-image-full-width {
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Image Gallery Section */
.image-gallery {
    padding: 40px 0;
    background-color: var(--background-color);
}

.image-gallery h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive gallery adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Post Tags */
.post-tags-container {
    margin-bottom: 15px;
}

.post-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.post-tag:hover {
    background-color: #e5e5e5;
}

/* Dark mode styling for tags */
html[data-theme="dark"] .post-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

html[data-theme="dark"] .post-tag:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Archive Page Styles */
.archive-header {
    text-align: center;
    padding: 40px 0 20px;
}

.archive-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-header p {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
}

.archive-filters {
    margin: 30px 0;
    border-bottom: none; /* Remove a borda inferior que estava causando o problema */
    padding-bottom: 20px;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-item {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.filter-item:hover {
    background-color: var(--light-gray);
    text-decoration: none;
}

.filter-item.active {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.archive-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estilo padrão com borda inferior */
.archive-post-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color); /* Restaura a borda inferior para todos */
}

/* O primeiro item não tem padding no topo */
.archive-post-item:first-child {
    padding-top: 0;
    /* Mantém a borda inferior */
}

/* Apenas o último item não tem borda inferior */
.archive-post-item:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.post-feature-indicator,
.post-featured-indicator,
.members-only-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
}

/* Estilo especial para o ícone de membros */
.members-only-indicator {
    color: #ff9800; /* Cor laranja para destacar */
    background-color: rgba(255, 152, 0, 0.1); /* Fundo levemente laranja */
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    width: fit-content;
}

.members-only-indicator i {
    margin-right: 4px;
    color: #ff9800;
}

/* Dark mode para o indicador de membros */
html[data-theme="dark"] .members-only-indicator {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

/* Ajuste para a página de arquivo */
.archive-post-item .post-details .members-only-indicator {
    position: static; /* Estático para a página de arquivo */
    margin-top: 5px;
}

/* Ajuste para a página principal */
.blog-card .post-meta {
    position: relative; /* Adicionar posição relativa para servir como referência */
    padding-bottom: 20px; /* Adicionar espaço para o indicador */
}

.blog-card .members-only-indicator {
    color: #ff9800; /* Cor laranja para destacar */
    background-color: rgba(255, 152, 0, 0.1); /* Fundo levemente laranja */
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    width: fit-content;
    position: static; /* Mudando de absolute para static */
}

.blog-card .members-only-indicator i {
    margin-right: 4px;
    color: #ff9800; /* Garantindo que o ícone também seja laranja */
}

/* Dark mode para o indicador de membros no blog card */
html[data-theme="dark"] .blog-card .members-only-indicator {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.post-action {
    position: absolute; /* Posicionar absolutamente */
    right: 0; /* Alinhar à direita */
    top: 50%; /* Centralizar verticalmente */
    transform: translateY(-50%); /* Ajuste fino para centralização vertical */
    min-width: 60px;
    text-align: right;
}

.archive-load-more {
    text-align: center;
    margin: 40px 0;
    display: block;
}

.archive-load-more .btn,
.archive-load-more a.btn {
    padding: 12px 28px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.archive-load-more .btn:hover,
.archive-load-more a.btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Responsive styles for archive page */
@media (max-width: 768px) {
    .archive-post-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-date {
        min-width: auto;
    }
    
    .post-action {
        position: static; /* Reverter para posição normal em telas pequenas */
        transform: none;
        margin-top: 10px;
        text-align: left;
    }
}

/* Botão "Ver todas" */
.publications-card .archive-load-more {
    text-align: center;
    margin: 24px 0;
    padding: 0;
    display: block;
}

/* Título de seção */
.section-title {
    font-size: 1.6rem; /* Tamanho reduzido de 2rem */
    font-weight: 600; /* Reduzido de 700 */
    margin-bottom: 20px; /* Reduzido de 30px */
    text-align: left; /* Alterado de center para left */
    color: var(--text-color);
    padding-left: 0; /* Garantir que não tenha padding à esquerda */
}

/* Ajuste para o indicador na página de post */
.post-template .post-meta .members-only-indicator {
    position: static; /* Sobrescrever posicionamento absoluto */
    display: inline-flex; /* Alinhar com outros elementos da meta */
    align-items: center;
    margin-left: 10px; /* Adicionar margem esquerda para separar da data/leitura */
    margin-top: 0; /* Remover margem superior */
    margin-bottom: 0; /* Remover margem inferior */
}

/* Novo estilo para o indicador centralizado na página de post */
.members-only-indicator-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 2rem;
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
}

.members-only-indicator-centered i {
    margin-right: 0.5rem;
}

/* Dark mode para o indicador de membros centralizado */
html[data-theme="dark"] .members-only-indicator-centered {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

/* Aumentar espaçamento entre o indicador e a seção de conteúdo */
.post-template .post-content {
    margin-top: 2rem;
}

/* Aumentar espaçamento para o alerta de "subscribers only" */
.gh-post-upgrade-cta {
    margin-top: 2rem;
}

/* Membros apenas - estilo já existente, mantido para referência */
.members-only-indicator {
    color: #ff9800; /* Cor laranja para destacar */
    background-color: rgba(255, 152, 0, 0.1); /* Fundo levemente laranja */
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    width: fit-content;
}

.members-only-indicator i {
    margin-right: 4px;
    color: #ff9800;
}

.dark-theme .members-only-indicator {
    background-color: var(--dark-gray);
    color: var(--light-text-color);
}

/* Estilo para a data centralizada */
.post-date-centered {
    text-align: center;
    margin: 1rem 0 1.5rem;
    font-size: 1rem;
    color: var(--text-color-secondary);
}

/* Restaurar cores laranja para o indicador de "Exclusivo para membros" */
.members-only-indicator-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 2rem;
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
}

.members-only-indicator-centered i {
    margin-right: 0.5rem;
}

/* Dark mode para o indicador de membros centralizado */
html[data-theme="dark"] .members-only-indicator-centered {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

/* Aumentar espaçamento entre o indicador e a seção de conteúdo */
.post-template .post-content {
    margin-top: 2rem;
}

/* Estilo para o container de indicadores na página de arquivo */
.post-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

/* Ajustes para as tags */
.post-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

/* Dark mode styling para as tags */
html[data-theme="dark"] .post-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Container de tags na página inicial */
.post-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

/* Ajusta a largura do container para evitar que fique muito largo em telas grandes */
.archive-content .container,
.blog-posts .container {
    max-width: 900px;
}

/* Adiciona espaço entre a seção de publicações e o rodapé */
.archive-content {
    margin-bottom: 60px;
}

/* Estilo para o indicador de destaque */
.featured-indicator {
    color: #e63946; /* Cor vermelha */
    background-color: rgba(230, 57, 70, 0.1); /* Fundo levemente vermelho */
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    width: fit-content;
}

.featured-indicator i {
    margin-right: 4px;
    color: #e63946;
}

/* Dark mode para o indicador de destaque */
html[data-theme="dark"] .featured-indicator {
    background-color: rgba(230, 57, 70, 0.15);
    color: #ff6b6b;
}

html[data-theme="dark"] .featured-indicator i {
    color: #ff6b6b;
}

/* Adiciona espaço entre a seção de publicações e o rodapé */
.archive-content {
    margin-bottom: 60px;
} 