/*
Theme Name: VS2
Description: Tema personalizado para VS² Consultoria, Treinamento e Engenharia
Version: 1.0
Author: VS² Consultoria
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.top-contact-bar {
    background-color: #f4f4f4;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.header-main {
    background-image: url('./imgs/bg-site.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
    position: relative;
}

.header-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.logo {
    flex: 0 0 auto;
    align-self: center;
    margin-top: 10px;
}

.logo img {
    max-height: 80px;
    height: auto;
}

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 698px;
}

/* Campo de busca no header */
.header-search {
    width: 100%;
    margin-top: 10px;
}

.search-form {
    width: 100%;
}

.search-container {
    display: flex;
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-container:hover {
    border-color: #ff6600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
}

.search-container:focus-within {
    border-color: #ff6600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #333;
}

.search-field::placeholder {
    color: #999;
    font-style: italic;
}

.search-submit {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: linear-gradient(135deg, #e55a00 0%, #cc4f00 100%);
    transform: scale(1.05);
}

.search-submit svg {
    width: 18px;
    height: 18px;
}

/* Header Slider */
.header-slider {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bannerSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.slide-link:hover .slide-image {
    transform: scale(1.05);
}

.slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #666;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: -20px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #ff6600;
}

/* ====================================
   ESTILOS PARA PÁGINA DE RESULTADOS
   ==================================== */

/* Cabeçalho dos resultados */
.search-results-header {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-title {
    margin: 0 0 15px 0;
    font-size: 1.6em;
    color: #333;
    line-height: 1.3;
}

.search-term {
    color: #ff6600;
    background: linear-gradient(135deg, #fff5f0 0%, #ffebdb 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.search-results-count {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 1em;
}

.search-results-count strong {
    color: #0073aa;
}

/* Formulário de busca na página */
.search-again {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.search-form-page {
    max-width: 500px;
}

.search-container-page {
    display: flex;
    gap: 10px;
}

.search-field-page {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-field-page:focus {
    outline: none;
    border-color: #ff6600;
}

.search-submit-page {
    background: linear-gradient(135deg, #0073aa 0%, #005a8a 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-page:hover {
    background: linear-gradient(135deg, #005a8a 0%, #004670 100%);
    transform: translateY(-1px);
}

/* Lista de resultados */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-result-item {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.result-content {
    display: flex;
    gap: 20px;
    padding: 25px;
}

.result-image {
    flex: 0 0 150px;
}

.result-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.search-result-item:hover .result-thumb {
    transform: scale(1.05);
}

.result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-title {
    margin: 0;
    font-size: 1.3em;
    line-height: 1.3;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #0073aa;
}

.result-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
}

.result-date,
.result-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-excerpt {
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.result-excerpt mark {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
    color: #333;
}

.result-read-more {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.result-read-more:hover {
    color: #e55a00;
}

/* Paginação dos resultados */
.search-pagination {
    margin: 40px 0;
    text-align: center;
}

.search-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-1px);
}

/* Página sem resultados */
.no-search-results {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-search-results h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.no-search-results p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.search-suggestions {
    text-align: left;
    max-width: 500px;
    margin: 30px auto;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ff6600;
}

.search-suggestions h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 8px 0;
    color: #555;
    line-height: 1.5;
}

.alternative-actions {
    margin: 40px 0;
}

.alternative-actions h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-home,
.btn-category {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-home {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    color: white;
}

.btn-home:hover {
    background: linear-gradient(135deg, #e55a00 0%, #cc4f00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-category {
    background: #f8f8f8;
    color: #333;
    border-color: #e1e1e1;
}

.btn-category:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Posts sugeridos */
.suggested-posts {
    margin: 40px 0 0 0;
    text-align: left;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.suggested-posts h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    text-align: center;
}

.suggested-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.suggested-post {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.suggested-post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.suggested-post-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.suggested-post-content {
    padding: 15px;
}

.suggested-post-content h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    line-height: 1.3;
}

.suggested-post-content h4 a {
    color: #333;
    text-decoration: none;
}

.suggested-post-content h4 a:hover {
    color: #0073aa;
}

.suggested-post-date {
    font-size: 0.85em;
    color: #666;
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
.main-content {
    min-height: 400px;
    padding: 40px 0;
}

/* Layout Home com 3 Colunas */
.home-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Posts Grid - Ajustado para 3 colunas */
.posts-grid {
    flex: 1;
    min-width: 0; /* Permite flexbox shrink */
}

.post-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.post-content {
    align-items: stretch;
    min-height: 200px;
}

.post-image {
    flex: 0 0 300px;
    background: #f5f5f5;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-text {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    line-height: 1.3;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0073aa;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-saiba-mais {
    display: inline-block;
    background-color: #ff6600;
    color: white!important;
    padding: 8px 16px;
    text-decoration: none!important;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease!important;
    align-self: flex-start;
}

.btn-saiba-mais:hover {
    background-color: #e55a00;
    color: white;
}

/* Posts sem imagem */
.post-item .post-content:not(:has(.post-image)) .post-text {
    padding: 30px;
}

/* Paginação */
.pagination {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0073aa;
    color: white;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Page Content */
.page-content {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.page-header {
    background: #f8f8f8;
    border-bottom: 1px solid #e1e1e1;
    padding: 25px 30px;
}

.page-title {
    margin: 0;
    font-size: 1.8em;
    color: #333;
    line-height: 1.3;
    font-weight: bold;
}

.page-body {
    padding: 30px;
}

.page-featured-image {
    margin-bottom: 25px;
    text-align: center;
}

.page-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-text {
    line-height: 1.8;
    color: #444;
}

.page-text h1,
.page-text h2,
.page-text h3,
.page-text h4,
.page-text h5,
.page-text h6 {
    margin: 25px 0 15px 0;
    color: #333;
    line-height: 1.4;
}

.page-text h1 { font-size: 1.6em; }
.page-text h2 { font-size: 1.4em; }
.page-text h3 { font-size: 1.2em; }
.page-text h4 { font-size: 1.1em; }

.page-text p {
    margin-bottom: 15px;
}

.page-text ul,
.page-text ol {
    margin: 15px 0;
    padding-left: 30px;
}

.page-text li {
    margin-bottom: 8px;
}

.page-text blockquote {
    background: #f9f9f9;
    border-left: 4px solid #ff6600;
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    color: #666;
}

.page-text img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.page-text a {
    color: #0073aa;
    text-decoration: none;
}

.page-text a:hover {
    color: #005a8a;
    text-decoration: underline;
}

.page-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #e1e1e1;
}

.page-text th,
.page-text td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.page-text th {
    background: #f8f8f8;
    font-weight: bold;
    color: #333;
}

/* No content fallback */
.no-content {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.no-content h1 {
    color: #666;
    margin-bottom: 15px;
}

.no-content p {
    color: #888;
}

/* Shared classes for logos and placeholders (used by parceiros, clientes, etc.) */
.logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: grayscale(0.2);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #999;
    text-align: center;
    padding: 20px;
}

.placeholder-text {
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

.website-icon {
    font-size: 1.1em;
}

.website-text {
    letter-spacing: 0.3px;
}

/* SINGLE POST STYLES */
/* Container do post individual */
.single-post-content {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Cabeçalho do post */
.post-header {
    background: #f8f8f8;
    border-bottom: 1px solid #e1e1e1;
    padding: 30px;
}

.post-title {
    margin: 0 0 20px 0;
    font-size: 2em;
    color: #333;
    line-height: 1.3;
    font-weight: bold;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta strong {
    color: #333;
}

.post-date {
    color: #ff6600;
}

.post-categories {
    color: #0073aa;
}

/* Corpo do post */
.post-body {
    padding: 30px;
}

/* Imagem destacada */
.post-featured-image {
    margin-bottom: 30px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-featured-image:hover .featured-image {
    transform: scale(1.02);
}

/* Conteúdo do post */
.post-content {
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 30px 0 20px 0;
    color: #333;
    line-height: 1.4;
}

.post-content h1 { 
    font-size: 1.8em; 
    border-bottom: 3px solid #ff6600;
    padding-bottom: 10px;
}

.post-content h2 { 
    font-size: 1.5em; 
    color: #0073aa;
}

.post-content h3 { 
    font-size: 1.3em; 
    color: #ff6600;
}

.post-content h4 { font-size: 1.2em; }
.post-content h5 { font-size: 1.1em; }
.post-content h6 { font-size: 1em; }

.post-content p {
    margin-bottom: 20px;
    text-align: justify;
}

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

.post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.post-content blockquote {
    background: #f9f9f9;
    border-left: 5px solid #ff6600;
    margin: 25px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #666;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4em;
    color: #ff6600;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-content a {
    color: #63554c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #005a8a;
    border-bottom-color: #005a8a;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-content th,
.post-content td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.post-content th {
    background: #f8f8f8;
    font-weight: bold;
    color: #333;
}

.post-content tr:hover {
    background: #f9f9f9;
}

/* Tags do post */
.post-tags {
    margin: 25px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 6px;
    border-left: 4px solid #ff6600;
}

.post-tags strong {
    color: #333;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin: 2px 5px 2px 0;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background: #e55a00;
}

/* Navegação entre posts */
.post-navigation {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 2px solid #e1e1e1;
    border-bottom: 2px solid #e1e1e1;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 15px 20px;
    background: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #333;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-previous a:hover .nav-subtitle,
.nav-next a:hover .nav-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    display: block;
    font-weight: bold;
    font-size: 0.95em;
    line-height: 1.3;
}

/* Botão voltar para home */
.back-to-home {
    text-align: center;
    margin-top: 30px;
}

.btn-voltar-home {
    display: inline-block;
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 102, 0, 0.3);
}

.btn-voltar-home:hover {
    background: linear-gradient(135deg, #e55a00 0%, #cc4f00 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

/* Responsivo Header */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .header-right {
        max-width: 100%;
        width: 100%;
    }

    .header-slider {
        height: 160px;
    }

    .result-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-image {
        flex: none;
        align-self: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .suggested-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsivo */
@media (max-width: 1200px) {
    .home-layout {
        flex-direction: column;
        max-width: 900px;
    }
    
    .posts-grid {
        order: 1;
    }
}

@media (max-width: 1024px) {
    .home-layout {
        gap: 20px;
    }
    
    .post-header {
        padding: 25px;
    }
    
    .post-title {
        font-size: 1.8em;
    }
    
    .post-body {
        padding: 25px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85em;
    }
    
    .post-body {
        padding: 20px;
    }
    
    .post-content h1 { font-size: 1.5em; }
    .post-content h2 { font-size: 1.3em; }
    .post-content h3 { font-size: 1.2em; }
    
    .post-content ul,
    .post-content ol {
        padding-left: 25px;
    }
    
    .post-content th,
    .post-content td {
        padding: 10px 8px;
        font-size: 0.9em;
    }
    
    .post-tags {
        padding: 15px;
    }
    
    .tag {
        font-size: 0.8em;
        padding: 3px 10px;
    }
    
    .nav-previous a,
    .nav-next a {
        padding: 12px 15px;
    }
    
    .nav-subtitle {
        font-size: 0.8em;
    }
    
    .nav-title {
        font-size: 0.9em;
    }

    .header-main {
        padding: 15px 0;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .header-slider {
        height: 150px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }

    .post-content {
        flex-direction: column;
    }
    
    .post-image {
        flex: none;
        height: 200px;
    }
    
    .post-text {
        padding: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .home-layout {
        gap: 15px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.5em;
    }
    
    .page-body {
        padding: 20px;
    }
    
    .page-text h1 { font-size: 1.4em; }
    .page-text h2 { font-size: 1.3em; }
    .page-text h3 { font-size: 1.2em; }
    
    .page-text ul,
    .page-text ol {
        padding-left: 25px;
    }
    
    .page-text th,
    .page-text td {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .search-results-header {
        padding: 20px;
    }
    
    .search-title {
        font-size: 1.4em;
    }
    
    .search-container-page {
        flex-direction: column;
    }
    
    .search-submit-page {
        padding: 12px 20px;
    }
    
    .result-content {
        padding: 20px;
    }
    
    .result-image {
        flex: none;
    }
    
    .result-thumb {
        height: 180px;
        width: 100%;
    }
    
    .result-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-suggestions {
        padding: 20px;
        margin: 20px auto;
    }
    
    .suggested-posts {
        padding: 20px;
    }
    
    .no-search-results {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.4em;
    }
    
    .post-body {
        padding: 15px;
    }
    
    .post-content {
        margin-bottom: 20px;
    }
    
    .post-content p {
        text-align: left;
        margin-bottom: 15px;
    }
    
    .post-featured-image {
        margin-bottom: 20px;
    }
    
    .btn-voltar-home {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .header-main {
        padding: 15px 0;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .header-slider {
        height: 140px;
    }
    
    .search-container {
        border-radius: 20px;
    }
    
    .search-field {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .search-submit {
        padding: 10px 15px;
    }
    
    .search-results-header {
        padding: 15px;
    }
    
    .search-title {
        font-size: 1.2em;
    }
    
    .result-content {
        padding: 15px;
    }
    
    .result-title {
        font-size: 1.1em;
    }
    
    .no-results-icon {
        font-size: 3em;
    }
    
    .btn-home,
    .btn-category {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

/* Melhorias para leitura */
.post-content p:first-of-type {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e55a00;
}

.post-content pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    border-left: 4px solid #ff6600;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Espaçamento melhorado para elementos */
.post-content > *:first-child {
    margin-top: 0;
}

.post-content > *:last-child {
    margin-bottom: 0;
}