/*
Theme Name: Simone Blog
Theme URI: https://exemplo.com/costura-tema
Author: agenciarare.com.br
Author URI: https://agenciarare.com.br
Description: Tema minimalista e feminino para blog de dicas de costura e modelagem, com funcionalidades de download de PDFs e integração com Mercado Pago.
Version: 1.6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: costura-tema
Tags: blog, custom-fields, responsive, minimalist, sewing
*/

/* Variáveis de cores */
:root {
    --primary-color: #723653;
    --primary-light: #9a4a70;
    --primary-dark: #4e2539;
    --accent-color: #f8e3ee;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

/* Reset e estilos base */















.single-post-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.single-post-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.single-post-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

.single-post-meta {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.single-post-thumbnail {
    margin: 0 -20px 40px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
}

.single-post-content p {
    margin-bottom: 25px;
}

.single-post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.single-post-content h3 {
    font-size: 24px;
    margin: 35px 0 18px;
    color: var(--primary-color);
}

.single-post-content h4 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 25px 20px;
    padding-left: 20px;
}

.single-post-content li {
    margin-bottom: 10px;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 30px 0;
    background-color: var(--accent-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.single-post-content img {
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.single-post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(114, 54, 83, 0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.single-post-content a:hover {
    color: var(--primary-light);
    text-decoration-color: var(--primary-light);
}

/* Seção de download */
.download-section {
    background-color: var(--accent-color);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.size-button {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-button:hover, .size-button.active {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* Lista: tamanho + Baixar PDF na mesma linha */
.download-rows {
    list-style: none;
    margin: 20px auto 0;
    padding: 0;
    max-width: 520px;
    text-align: left;
}

.download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background-color: var(--background-color);
    border-radius: 12px;
    border: 1px solid rgba(114, 54, 83, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.download-row:last-child {
    margin-bottom: 0;
}

.download-row-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 2em;
    flex-shrink: 0;
}

.download-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(114, 54, 83, 0.3);
    border: none;
}

.download-button--row {
    margin-top: 0;
    padding: 12px 22px;
    font-size: 15px;
    white-space: nowrap;
}

.download-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(114, 54, 83, 0.4);
}

@media (max-width: 480px) {
    .download-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }

    .download-row-label {
        font-size: 20px;
    }

    .download-button--row {
        width: 100%;
    }
}

/* Footer do post */
.single-post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    font-size: 14px;
    color: var(--text-color);
}

/* Posts relacionados */
.related-posts {
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.related-posts h3 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Modal de download PDF — classes próprias (evita conflito com Bootstrap .modal-content / .modal-title) */
#download-modal.costura-download-modal,
#costura-adblock-modal.costura-download-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(17, 12, 20, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

#download-modal.costura-download-modal.is-open,
#costura-adblock-modal.costura-download-modal.is-open {
    display: flex !important;
}

#download-modal .costura-download-modal__surface,
#costura-adblock-modal .costura-download-modal__surface {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: auto;
    background-color: var(--background-color);
    border-radius: 16px;
    padding: 28px 22px 32px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(114, 54, 83, 0.1);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#download-modal .costura-download-modal__close,
#costura-adblock-modal .costura-download-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-gray);
}

#download-modal .costura-download-modal__close:hover,
#costura-adblock-modal .costura-download-modal__close:hover {
    opacity: 1;
    background-color: var(--border-color);
}

#download-modal .costura-download-modal__title,
#costura-adblock-modal .costura-download-modal__title {
    font-size: 1.4rem;
    margin: 4px 36px 14px 0;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

#download-modal .costura-download-modal__intro,
#costura-adblock-modal .costura-download-modal__intro {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-color);
}

#costura-adblock-modal .costura-adblock-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

#costura-adblock-modal .costura-adblock-modal__btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

#costura-adblock-modal .costura-adblock-modal__btn--primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

#costura-adblock-modal .costura-adblock-modal__btn--primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

#costura-adblock-modal .costura-adblock-modal__btn--ghost {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#costura-adblock-modal .costura-adblock-modal__btn--ghost:hover {
    background-color: rgba(114, 54, 83, 0.08);
}

#download-modal .timer-container {
    margin: 18px 0 20px;
}

#download-modal .timer {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--accent-color);
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-variant-numeric: tabular-nums;
}

#download-modal .download-now-button.pulse {
    animation: costura-download-pulse 1s infinite;
}

@keyframes costura-download-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Um único “slot”: anúncio e doação ocupam o mesmo espaço; o botão Baixar PDF fica abaixo. */
#download-modal .costura-modal-media-slot {
    margin: 16px 0 8px;
    min-height: 0;
}

#download-modal .costura-modal-media-slot .costura-modal-ad-wrap,
#download-modal .costura-modal-media-slot .costura-modal-donation-wrap {
    margin: 0;
}

/*
 * Fases do modal PDF: durante o timer só o anúncio existe no layout; doação + QR só após liberar “Baixar PDF”.
 * data-costura-modal-phase + [hidden] + IDs = especificidade alta (evita CSS de plugins/cache a mostrar os dois blocos).
 */
#download-modal.costura-download-modal .costura-modal-media-slot[data-costura-modal-phase="ad"] > #costura-modal-donation,
#download-modal #costura-modal-donation[hidden] {
    display: none !important;
    visibility: hidden !important;
    max-height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
}

#download-modal.costura-download-modal .costura-modal-media-slot[data-costura-modal-phase="donation"] > #costura-modal-ad,
#download-modal #costura-modal-ad[hidden] {
    display: none !important;
    visibility: hidden !important;
    max-height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
}

#download-modal .costura-modal-ad-wrap {
    background: #f5f5f5;
    border-radius: 10px;
    margin: 16px 0 8px;
    padding: 12px 10px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

#download-modal .costura-modal-ad-label {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.3;
}

#download-modal .costura-modal-ad-inner {
    max-width: 728px;
    margin: 0 auto;
    min-height: 120px;
}

#download-modal .costura-modal-ad-ins {
    display: block;
    min-height: 120px;
    max-width: 100%;
}

#download-modal .costura-modal-panel--hidden {
    display: none !important;
}

#download-modal .costura-modal-donation-wrap {
    background: linear-gradient(145deg, #f0faf8 0%, #f8f4fb 50%, #fff5f8 100%);
    border-radius: 14px;
    margin: 16px 0 8px;
    padding: 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(50, 188, 173, 0.35);
    box-shadow: 0 8px 28px rgba(114, 54, 83, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

#download-modal .costura-modal-donation__card {
    padding: 18px 14px 16px;
}

#download-modal .costura-modal-donation__top {
    margin-bottom: 14px;
}

#download-modal .costura-modal-donation__pix-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #32bcad 0%, #269e92 100%);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(50, 188, 173, 0.45);
}

#download-modal .costura-modal-donation__kicker {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #723653);
    margin: 0 0 8px;
    line-height: 1.35;
}

#download-modal .costura-modal-donation__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c2130;
    margin: 0 0 10px;
    line-height: 1.3;
}

#download-modal .costura-modal-donation__text {
    font-size: 14px;
    line-height: 1.55;
    color: #4a424d;
    margin: 0 auto;
    max-width: 340px;
}

#download-modal .costura-modal-donation__qr-frame {
    margin-top: 16px;
    padding: 14px 12px 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 2px dashed rgba(50, 188, 173, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

#download-modal .costura-modal-donation__qr-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a6b63;
    margin-bottom: 10px;
    line-height: 1.35;
}

#download-modal .costura-modal-donation__qr {
    margin: 0 auto;
    max-width: 220px;
}

#download-modal .costura-modal-donation__qr img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#download-modal .costura-modal-donation__thanks {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #723653);
    margin: 14px 0 0;
    line-height: 1.4;
}

.costura-adblock-modal__intro-spaced {
    margin-top: 12px !important;
}

/* Botão de PDF no modal: só visível após o timer (.costura-modal-download-ready) */
#download-modal #download-now-button:not(.costura-modal-download-ready) {
    display: none !important;
}

#download-modal #download-now-button.costura-modal-download-ready {
    display: inline-block !important;
    font-size: clamp(14px, 3.5vw, 17px);
    line-height: 1.35;
    text-decoration: none;
    color: #fff !important;
    padding: 16px 22px;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

#download-modal #download-now-button.costura-modal-download-ready:hover,
#download-modal #download-now-button.costura-modal-download-ready:focus {
    color: #fff !important;
}

@media (max-width: 768px) {
    #download-modal.costura-download-modal,
    #costura-adblock-modal.costura-download-modal {
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
        background-color: rgba(12, 8, 14, 0.94);
    }

    #download-modal .costura-download-modal__surface,
    #costura-adblock-modal .costura-download-modal__surface {
        max-width: none;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        margin: 0;
        border-radius: 0;
        padding: max(20px, env(safe-area-inset-top, 20px)) 18px max(24px, env(safe-area-inset-bottom, 24px));
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        box-shadow: none;
        border: none;
    }

    #download-modal .costura-download-modal__title,
    #costura-adblock-modal .costura-download-modal__title {
        font-size: 1.25rem;
    }

    #download-modal .costura-download-modal__cta.download-now-button {
        margin-top: auto;
        align-self: center;
        max-width: 100%;
    }

    #download-modal .costura-modal-media-slot {
        flex: 1 1 auto;
        min-height: 160px;
        display: flex;
        flex-direction: column;
    }

    #download-modal .costura-modal-media-slot .costura-modal-ad-wrap,
    #download-modal .costura-modal-media-slot .costura-modal-donation-wrap {
        flex: 1 1 auto;
        min-height: 120px;
    }
}

.whatsapp-invite {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.whatsapp-invite h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #128C7E;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.download-now-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(114, 54, 83, 0.3);
}

.download-now-button.active {
    opacity: 1;
    pointer-events: auto;
}

.download-now-button.active:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(114, 54, 83, 0.4);
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--light-text);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--light-text);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-widget a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
    position: relative;
    z-index: 10;
}

#footer-container {
    background-color: #492033;
}

.footer-bottom .row.bottom_footer_menu_text {
    display: flex;
    align-items: center;
}

.footer-menu-bottom .menu-footer {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    list-style: none !important;
}

.footer-menu-bottom .menu-footer li {
    list-style: none !important;
    margin-left: 20px;
    display: inline-block;
    border: none !important;
}

.footer-menu-bottom .menu-footer li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-menu-bottom .menu-footer li a:hover {
    color: #fff;
}

.footer-left-copyright {
    margin-top: 0 !important;
    color: #999;
}

.costura-ads-bait {
    position: absolute;
    width: 2px;
    height: 2px;
    left: -9999px;
    top: 0;
    opacity: 0.01;
    pointer-events: none;
}

.whatsapp-fixed-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: costura-whatsapp-pulse 2s infinite;
}

.whatsapp-fixed-btn:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

@keyframes costura-whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 5px 0;
    }
    
    .single-post-title {
        font-size: 28px;
    }
    
    article.post {
        padding: 30px 15px;
    }
    
    .single-post-content {
        font-size: 16px;
    }

    .footer-bottom .row.bottom_footer_menu_text {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu-bottom .menu-footer {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-menu-bottom .menu-footer li {
        margin: 0 10px 5px;
        display: block;
    }
}

/* Estilos para AdSense */
.adsense-container {
    margin: 40px 0;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Estilos para a seção de posts populares na home */
.popular-section {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 40px 0;
}

.popular-grid {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.popular-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estilos para posts em destaque (hero posts) */
.threeforty-home-featured {
    margin: 40px 0;
}

.threeforty-home-featured.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.threeforty-home-featured .flex-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.threeforty-home-featured .flex-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.threeforty-home-featured .post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.threeforty-home-featured .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.threeforty-home-featured .flex-box:hover .post-thumbnail img {
    transform: scale(1.05);
}

.threeforty-home-featured .entry-header {
    padding: 20px;
}

.threeforty-home-featured .entry-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
}

.threeforty-home-featured .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.threeforty-home-featured .entry-title a:hover {
    color: var(--accent-color);
}

.threeforty-home-featured .entry-meta {
    margin-bottom: 15px;
}

.threeforty-home-featured .entry-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.threeforty-home-featured .entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.threeforty-home-featured .entry-meta a:hover {
    color: var(--accent-color);
}

/* Sobrescrever estilos existentes do tema */
.threeforty-home-featured.cols-3 .flex-box {
    width: 100% !important;
    margin: 0 !important;
    flex-grow: 1 !important;
    flex-basis: auto !important;
}

.threeforty-home-featured.cols-3 .flex-box.cover {
    max-height: none !important;
}

.threeforty-home-featured.cols-3 .flex-box .entry-header {
    position: relative !important;
    background: transparent !important;
    color: #333 !important;
}

.threeforty-home-featured.cols-3 .flex-box .entry-meta.before-title {
    position: static !important;
}

.threeforty-home-featured.cols-3 .flex-box .entry-meta.after-title {
    position: static !important;
    color: #666 !important;
}

.threeforty-home-featured.cols-3 .flex-box .entry-meta a {
    color: #666 !important;
    border: none !important;
}

.threeforty-home-featured.cols-3 .flex-box .entry-title a {
    color: #333 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Estilos responsivos para posts em destaque */
@media (max-width: 768px) {
    .threeforty-home-featured.cols-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .threeforty-home-featured .entry-header {
        padding: 16px;
    }
    
    .threeforty-home-featured .entry-title {
        font-size: 16px;
    }
    
    .threeforty-home-featured .entry-meta ul {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Melhorias para mobile */
    .threeforty-home-featured .flex-box {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .threeforty-home-featured {
        margin: 24px 0;
    }
    
    .threeforty-home-featured.cols-3 {
        gap: 16px;
    }
    
    .threeforty-home-featured .post-thumbnail {
        height: 200px;
    }
    
    .threeforty-home-featured .entry-header {
        padding: 14px;
    }
    
    /* Ajustes para telas muito pequenas */
    .threeforty-home-featured .entry-title {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .threeforty-home-featured .entry-meta ul {
        font-size: 13px;
    }
}

/* Estilos para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .threeforty-home-featured.cols-3 {
        gap: 20px;
    }
    
    .threeforty-home-featured .entry-header {
        padding: 18px;
    }
    
    .threeforty-home-featured .entry-title {
        font-size: 17px;
    }
}

/* Estilos para telas grandes */
@media (min-width: 1025px) {
    .threeforty-home-featured.cols-3 {
        gap: 32px;
    }
    
    .threeforty-home-featured .entry-header {
        padding: 24px;
    }
    
    .threeforty-home-featured .entry-title {
        font-size: 19px;
    }
}

.popular-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.popular-card .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.popular-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.popular-card .entry-header {
    padding: 20px;
}

.popular-card .entry-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
}

.popular-card .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-card .entry-title a:hover {
    color: var(--accent-color);
}

.popular-card .entry-meta {
    margin-bottom: 15px;
}

.popular-card .entry-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.popular-card .entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-card .entry-meta a:hover {
    color: var(--accent-color);
}

.popular-card .entry-content {
    padding: 0 20px 20px;
}

.popular-card .entry-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Estilos responsivos para mobile */
@media (max-width: 768px) {
    .popular-section {
        flex-direction: column;
        gap: 24px;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .popular-card .entry-header {
        padding: 16px;
    }
    
    .popular-card .entry-content {
        padding: 0 16px 16px;
    }
    
    .popular-card .entry-title {
        font-size: 16px;
    }
    
    .popular-card .entry-meta ul {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Melhorias para mobile */
    .popular-card {
        margin-bottom: 0;
    }
    
    .popular-list {
        order: -1; /* Coloca a sidebar antes do grid no mobile */
    }
    
    .aside-sticky-container {
        position: static;
    }
}

@media (max-width: 480px) {
    .popular-section {
        margin: 24px 0;
    }
    
    .popular-grid {
        gap: 16px;
    }
    
    .popular-card .post-thumbnail {
        height: 180px;
    }
    
    .popular-card .entry-header {
        padding: 14px;
    }
    
    .popular-card .entry-content {
        padding: 0 14px 14px;
    }
    
    /* Ajustes para telas muito pequenas */
    .popular-card .entry-title {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .popular-card .entry-meta ul {
        font-size: 13px;
    }
    
    .popular-card .entry-content p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Estilos para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .popular-section {
        gap: 24px;
    }
    
    .popular-grid {
        gap: 20px;
    }
    
    .popular-card .entry-header {
        padding: 18px;
    }
    
    .popular-card .entry-content {
        padding: 0 18px 18px;
    }
    
    .popular-card .entry-title {
        font-size: 17px;
    }
}

/* Estilos para telas grandes */
@media (min-width: 1025px) {
    .popular-section {
        gap: 40px;
    }
    
    .popular-grid {
        gap: 32px;
    }
    
    .popular-card .entry-header {
        padding: 24px;
    }
    
    .popular-card .entry-content {
        padding: 0 24px 24px;
    }
    
    .popular-card .entry-title {
        font-size: 19px;
    }
}

/* Estilos para paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: var(--light-gray);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.page-numbers.current {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.page-numbers:hover:not(.current) {
    background-color: var(--border-color);
}

/* Breadcrumbs */
.breadcrumbs {
  
    margin: 0 auto 30px;
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.7;
    padding: 0 20px;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 5px;
}

/* Modal de Pesquisa */
.search-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.search-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-content {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-search {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-search:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    transform: scale(1.1);
}

.search-modal-content h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
}

.search-form-modal {
    margin: 0;
}

.search-input-wrapper {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.search-field-modal {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: transparent;
}

.search-field-modal::placeholder {
    color: #999;
}

.search-submit-modal {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.search-submit-modal:hover {
    background-color: var(--primary-light);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsividade do modal de pesquisa */
@media (max-width: 768px) {
    .search-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .search-modal-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .search-field-modal {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-submit-modal {
        padding: 12px 15px;
        font-size: 14px;
    }
}



.flex-grid.cols-3,
.masonry.cols-3,
.content-area.flex-grid.cols-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* ajuste o espaçamento se quiser */
}

.flex-grid.cols-3 > article,
.masonry.cols-3 > article,
.content-area.flex-grid.cols-3 > article {
  width: calc(33.333% - 20px); /* 3 colunas, ajuste o valor do gap se mudar */
  box-sizing: border-box;
}