/* ==============================================================================
   CSS Principal (public_html/assets/css/style.css)
   Website Oficial JunquiNet - Otimizado e Responsivo
   ============================================================================== */

:root {
    --primary-color: #089da0;
    --primary-hover: #01d28e;
    --secondary-color: #3aedb1;
    --text-color: #21303c;
    --text-muted: #5e6d7a;
    --bg-light: #f4f8f7;
    --bg-white: #ffffff;
    --border-color: #dce7e6;
    --header-height: 80px;
    --section-padding-y: 90px;
    --section-gap-y: 50px;
}

.section-padding {
    padding: var(--section-padding-y) 0;
}

.product-page,
.services-page,
.contact-page,
.legal-page {
    padding: var(--section-padding-y) 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.logo span,
.logo em {
    color: var(--primary-color);
    font-style: italic;
}

/* Marca JunquiNet no Conteúdo */
.jn-brand {
    font-weight: 800;
    color: inherit;
}

.jn-brand em,
.jn-net {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 800;
}

.header-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.navigation ul {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navigation a {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.18;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    min-height: 42px;
    transition: all 0.2s ease;
}

.navigation a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.navigation a.active {
    color: var(--primary-color);
    background-color: rgba(8, 157, 160, 0.1);
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--primary-color);
}

/* Main */
.site-main {
    min-height: calc(100vh - var(--header-height) - 300px);
}

.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f2faf8 0%, #e5f6f4 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Background de Código Flutuante no Hero */
.hero-code-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    overflow: hidden;
}

.code-snippet {
    position: absolute;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: 1px solid rgba(8, 157, 160, 0.25);
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: none;
    opacity: 0.75;
    box-shadow: none;
    white-space: nowrap;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.code-snippet:nth-child(1) { top: 12%; left: 3%; }
.code-snippet:nth-child(2) { top: 18%; right: 3%; }
.code-snippet:nth-child(3) { top: 62%; left: 4%; }
.code-snippet:nth-child(4) { top: 68%; right: 4%; }
.code-snippet:nth-child(5) { top: 38%; left: 2%; }
.code-snippet:nth-child(6) { top: 42%; right: 2%; }
.code-snippet:nth-child(7) { top: 82%; left: 18%; }
.code-snippet:nth-child(8) { top: 8%; right: 22%; }

@media (max-width: 992px) {
    .code-snippet {
        font-size: 11px;
        padding: 4px 10px;
        opacity: 0.5;
    }
    .code-snippet:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 576px) {
    .code-snippet:nth-child(n+3) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .code-snippet {
        animation: none;
    }
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a202c;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

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

/* Footer */
.site-footer {
    background-color: #15222b;
    color: #cbd5e0;
    padding: 80px 0 30px 0;
    margin-top: 90px;
}

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

.footer-grid h3, .footer-grid h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo-link {
    display: block;
    width: 100%;
    max-width: 350px;
    margin-bottom: 15px;
    background-color: #a0aec0;
    padding: 12px 20px 12px 10px;
    border-radius: 8px;
    transition: opacity 0.2s ease-in-out;
}

.footer-logo-link img {
    margin: 0 auto;
    position: relative;
    left: -6px;
}

.footer-logo-link:hover {
    opacity: 0.9;
}

.footer-grid p {
    color: #a0aec0;
    font-size: 14px;
    max-width: 350px;
}

.footer-links ul, .footer-solutions ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-solutions a {
    color: #a0aec0;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid #263d4d;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding-y: 55px;
        --section-gap-y: 32px;
    }

    .site-footer {
        padding: 50px 0 20px 0;
        margin-top: 50px;
    }

    .container-flex {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .site-header {
        height: auto;
    }
    
    .header-nav-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

.navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
}

/* ==============================================================================
   ESTILOS DO BLOG, SIDEBAR & BOTÕES SOCIAIS
   ============================================================================== */

/* Hero e Busca do Blog */
.blog-hero {
    background: linear-gradient(135deg, #0e202e 0%, #17364a 100%);
    color: #ffffff;
    padding: 60px 0 50px 0;
    text-align: center;
}

.blog-hero .hero-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.blog-hero .hero-title span {
    color: var(--primary-hover);
}

.blog-hero .hero-subtitle {
    font-size: 18px;
    color: #cbd5e0;
    max-width: 680px;
    margin: 0 auto 30px auto;
}

.blog-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.search-input-group input::placeholder {
    color: #a0aec0;
}

.search-input-group button {
    border-radius: 30px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Abas de Categorias */
.blog-categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cat-pill {
    padding: 8px 18px;
    border-radius: 30px;
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.cat-pill:hover,
.cat-pill.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Grid Layout Principal */
.blog-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.blog-content-section {
    padding: 50px 0 80px 0;
}

.search-result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6fffa;
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
}

.clear-search-link {
    color: #e53e3e;
    font-weight: 600;
    text-decoration: underline;
}

/* Cards de Artigos */
.articles-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.card-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #e2e8f0;
    color: #2d3748;
}

.category-badge.cat-imobiliaria { background-color: #ebf8ff; color: #2b6cb0; }
.category-badge.cat-agendamento { background-color: #faf5ff; color: #6b46c1; }
.category-badge.cat-catalogo { background-color: #f0fff4; color: #2f855a; }
.category-badge.cat-financeiro { background-color: #fffaf0; color: #dd6b20; }
.category-badge.cat-desenvolvimento-web { background-color: #e6fffa; color: #089da0; }
.category-badge.cat-curiosidades { background-color: #fef3c7; color: #b45309; }
.category-badge.cat-novidades { background-color: #ede9fe; color: #6d28d9; }

.read-time {
    font-size: 13px;
    color: var(--text-muted);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.card-title a {
    color: #1a202c;
}

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

.card-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
    font-size: 13px;
}

.author-info {
    color: #718096;
}

.pub-date {
    margin-left: 8px;
    color: #a0aec0;
}

.read-more-link {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.sidebar-categories-list a:hover,
.sidebar-categories-list a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 700;
}

.count-badge {
    background: #e2e8f0;
    color: #4a5568;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

.sidebar-recent-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-recent-item {
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 12px;
}

.sidebar-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-recent-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 4px;
}

.sidebar-recent-item h4 a {
    color: #2d3748;
}

.sidebar-recent-item h4 a:hover {
    color: var(--primary-color);
}

.widget-cta {
    background: linear-gradient(135deg, #0f2b3c 0%, #1a425c 100%);
    color: #ffffff;
}

.widget-cta h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.widget-cta p {
    font-size: 14px;
    color: #cbd5e0;
    margin-bottom: 18px;
}

.widget-product-promo {
    background: #f0fff4;
    border: 2px solid #38a169;
}

.promo-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #276749;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.widget-product-promo h3 {
    color: #1a202c;
    font-size: 18px;
    margin-bottom: 8px;
}

.widget-product-promo p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 16px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* PÁGINA DO ARTIGO INDIVIDUAL (SHOW) */
.article-header-section {
    background-color: var(--bg-light);
    padding: 40px 0 35px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-size: 13px;
    color: #718096;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: #4a5568;
}

.article-main-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.25;
    margin: 15px 0 20px 0;
}

.article-meta-badge {
    display: flex;
    gap: 15px;
    align-items: center;
}

.article-author-row {
    font-size: 14px;
    color: #718096;
}

.dot-separator {
    margin: 0 8px;
}

.article-body-section {
    padding: 50px 0 90px 0;
}

/* Barra de Compartilhamento Social */
.social-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 35px;
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-right: 5px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff;
}

.social-btn.whatsapp { background-color: #25D366; }
.social-btn.linkedin { background-color: #0A66C2; }
.social-btn.twitter { background-color: #000000; }
.social-btn.facebook { background-color: #1877F2; }
.social-btn.copy-link { background-color: #4a5568; }

/* Texto do Artigo */
.article-full-text {
    font-size: 17px;
    line-height: 1.8;
    color: #2d3748;
}

.article-full-text p {
    margin-bottom: 22px;
}

.article-full-text .lead-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: #1a202c;
    border-left: 4px solid var(--primary-color);
    padding-left: 18px;
    margin-bottom: 30px;
}

.article-full-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a202c;
    margin: 40px 0 16px 0;
}

.article-full-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 28px 0 12px 0;
}

.article-full-text ul,
.article-full-text ol {
    margin: 0 0 25px 25px;
}

.article-full-text ul li,
.article-full-text ol li {
    margin-bottom: 10px;
    list-style: disc;
}

.article-cta-box {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    border: 1px solid #81e6d9;
    border-radius: 12px;
    padding: 30px;
    margin: 45px 0;
    text-align: center;
}

.article-cta-box h3 {
    font-size: 24px;
    color: #12544a;
    margin-bottom: 10px;
}

.article-cta-box p {
    font-size: 16px;
    color: #1a5148;
    margin-bottom: 20px;
}

.article-bottom-meta {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-item {
    background: #edf2f7;
    color: #4a5568;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
}

.related-articles-section {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid var(--border-color);
}

.section-subtitle {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.related-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.related-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
}

.related-card h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 10px 0 8px 0;
}

.related-card h4 a {
    color: #2d3748;
}

.related-card p {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

/* Ajustes Responsivos do Blog */
@media (max-width: 992px) {
    .blog-grid-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .article-main-title {
        font-size: 28px;
    }

    .social-share-bar {
        justify-content: center;
    }
}

/* Seção de Artigos do Blog nas Páginas de Produto */
.product-blog-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.product-blog-section .section-header {
    margin-bottom: 35px;
}

.product-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-article-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 10px 0;
}

.product-article-title a {
    color: #1a202c;
}

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

.product-article-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    font-size: 13px;
}

/* ==========================================================================
   Paginação do Blog JunquiNet
   ========================================================================== */
.blog-pagination {
    margin-top: 40px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-muted);
}

.pagination-info strong {
    color: #1a202c;
}

.pagination-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: inline-flex;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.pagination-btn:hover {
    color: var(--primary-color);
    background: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.12);
}

.pagination-btn.active {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
    cursor: default;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.25);
    transform: none;
}

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

@media (max-width: 640px) {
    .blog-pagination {
        padding: 18px 12px;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Seletor Compacto de Idioma em Dropdown (Lookup com Bandeiras)
   ========================================================================== */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    flex-shrink: 0;
}

.lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-dropdown-toggle:hover,
.lang-dropdown-wrapper:hover .lang-dropdown-toggle,
.lang-dropdown-wrapper.is-open .lang-dropdown-toggle {
    background: #f8fafc;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lang-flag-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-flag-current .jn-flag {
    width: 22px;
    height: 15px;
    display: block;
}

.lang-arrow {
    transition: transform 0.2s ease;
    color: #64748b;
}

.lang-dropdown-wrapper:hover .lang-arrow,
.lang-dropdown-wrapper.is-open .lang-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.lang-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 10001;
    animation: jnLangFadeIn 0.15s ease-out;
}

.lang-dropdown-wrapper:hover .lang-dropdown-panel,
.lang-dropdown-wrapper.is-open .lang-dropdown-panel {
    display: flex !important;
}

@keyframes jnLangFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-dropdown-option:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.lang-dropdown-option.is-active {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.lang-option-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-option-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.lang-option-text strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.lang-option-text small {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
}

.lang-option-check {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}



