/*
Theme Name: Zenite
Author: Armistag
Description: Tema de grid limpo, loader, sem sidebar
Version: 1.7.0
License: GNU General Public License v2 or later
Text Domain: zenite
Tags: news, blog, full-width, custom-menu, featured-images
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff; color: #111; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

:root {
    --primary:     #c0392b;
    --header-bg:   #111111;
    --header-text: #ffffff;
    --footer-bg:   #111111;
    --footer-text: #ffffff;
    --card-radius: 12px;
}

#mb-loader { transition: opacity .4s ease; }

.loader-spinner {
    width: 56px; height: 56px;
    border: 5px solid #e5e5e5;
    border-top-color: var(--loader-color, #c0392b);
    border-radius: 50%;
    animation: mb-spin .8s linear infinite;
    margin-bottom: 20px;
}
@keyframes mb-spin { to { transform: rotate(360deg); } }

.loader-bar-wrap { width: 220px; height: 5px; background: #e5e5e5; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.loader-bar { height: 100%; background: var(--loader-color, #c0392b); border-radius: 99px; width: 0; transition: width .04s linear; }

.loader-pct { font-size: 14px; font-weight: 700; color: var(--loader-color, #c0392b); }

.loader-pulse {
    width: 64px; height: 64px;
    border-radius: 50%;
    background-color: var(--loader-color, #c0392b);
    animation: mb-pulse 1.2s ease-in-out infinite;
}
@keyframes mb-pulse {
    0%   { transform: scale(0.2); opacity: 1; }
    80%  { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(0.2); opacity: 0; }
}

.loader-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}
.loader-dots span {
    display: block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background-color: var(--loader-color, #c0392b);
    animation: mb-dots .5s ease-in-out alternate infinite;
}
.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes mb-dots {
    from { transform: translateY(0);     opacity: .3; }
    to   { transform: translateY(-14px); opacity: 1;  }
}

#masthead {
    background: var(--header-bg);
    color: var(--header-text, #fff);
    padding: 0 24px; min-height: 64px;
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header-inner {
    max-width: 1280px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; gap: 20px;
}
.header-logo { flex-shrink: 0; }
.header-logo .custom-logo-link img { max-height: 44px; width: auto; display: block; }
.logo-text-fallback { color: var(--header-text, #fff); font-size: 22px; font-weight: 900; font-style: italic; white-space: nowrap; }
.header-search { flex: 1; max-width: 340px; }
.header-search form { display: flex; background: #fff; border-radius: 8px; overflow: hidden; height: 38px; }
.header-search input { border: none; outline: none; padding: 0 14px; font-size: 14px; flex: 1; min-width: 0; background: transparent; color: #111; }
.header-search button { background: none; border: none; cursor: pointer; padding: 0 12px; color: #888; font-size: 16px; }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; align-items: center; gap: 2px; }
.header-nav ul li a {
    color: var(--header-text, #fff); font-size: 13px; font-weight: 600;
    padding: 8px 12px; display: block;
    text-transform: uppercase; letter-spacing: .4px;
    border-radius: 6px; white-space: nowrap; transition: background .15s;
}
.header-nav ul li a:hover,
.header-nav ul li.current-menu-item > a { background: rgba(255,255,255,.15); }
.menu-toggle {
    display: none; background: none;
    border: 1px solid rgba(255,255,255,.35); color: var(--header-text, #fff);
    padding: 6px 12px; font-size: 20px;
    cursor: pointer; border-radius: 6px;
    margin-left: auto; flex-shrink: 0;
}

.page-wrap { max-width: 1280px; margin: 0 auto; padding: 36px 24px 60px; }
.section-heading { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 24px; }

.hero-grid {
    display: grid;
    grid-template-columns: repeat(var(--hero-cols, 4), 1fr);
    gap: 16px;
    margin-bottom: 52px;
}

.hero-card {
    border-radius: var(--card-radius);
}

.hero-img-wrap {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: var(--card-radius);
    background: #1a1a1a;
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}
.hero-card:hover .hero-img { transform: scale(1.04); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.2)  55%,
        transparent     80%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-pill {
    display: inline-block;
    background: rgba(255,255,255,.92);
    color: #111;
    font-size: 11px; font-weight: 600;
    padding: 4px 12px; border-radius: 99px;
    line-height: 1.4;
    align-self: flex-start;
}

.hero-title {
    display: block;
    color: #fff;
    font-size: 15px; font-weight: 700; line-height: 1.35;
    text-decoration: none;
}
.hero-title:hover { text-decoration: underline; }

.hero-meta {
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(var(--articles-cols, 4), 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.article-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid #ebebeb;
    display: flex; flex-direction: column;
}
.article-card .thumb-link { display: block; overflow: hidden; flex-shrink: 0; }
.article-card .thumb-link img { width: 100%; height: 190px; object-fit: cover; object-position: center; display: block; transition: transform .35s; }
.article-card:hover .thumb-link img { transform: scale(1.04); }
.no-thumb-article { width: 100%; height: 190px; background: var(--fallback-bg, #1a1a2e); }

.hero-no-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--fallback-bg, #1a1a2e);
}
.article-card .card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.cat-pill-outline {
    display: inline-block;
    border: 1px solid var(--primary); color: var(--primary);
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 99px;
    margin-bottom: 10px; line-height: 1.4; align-self: flex-start;
}
.article-card .card-title { font-size: 15px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 8px; }
.article-card .card-title a { color: #111; }
.article-card .card-title a:hover { color: var(--primary); }
.article-card .card-meta { font-size: 12px; color: #999; margin-bottom: 12px; }
.article-card .read-more { color: var(--primary); font-size: 13px; font-weight: 700; margin-top: auto; display: inline-flex; align-items: center; gap: 3px; }
.article-card .read-more:hover { text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-weight: 600; color: #444; transition: all .15s; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

.single-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; }
.single-wrap.has-sidebar { display: grid; gap: 48px; align-items: start; }
.single-wrap.has-sidebar.sidebar-right { grid-template-columns: 1fr var(--sidebar-width, 300px); }
.single-wrap.has-sidebar.sidebar-left  { grid-template-columns: var(--sidebar-width, 300px) 1fr; }
.post-main { min-width: 0; max-width: 780px; width: 100%; }
.single-wrap:not(.has-sidebar) .post-main { margin: 0 auto; }
.post-sidebar { min-width: 0; background: #fff; border-radius: var(--card-radius); padding: 24px; border: 1px solid #ebebeb; }
.post-sidebar .sidebar-widget { margin-bottom: 28px; }
.post-sidebar .sidebar-widget:last-child { margin-bottom: 0; }
.post-sidebar .sidebar-widget-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-recent-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.sidebar-recent-item { display: flex; gap: 12px; align-items: flex-start; }
.sidebar-recent-thumb { flex-shrink: 0; width: 72px; height: 72px; display: block; overflow: hidden; border-radius: 6px; }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-recent-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sidebar-recent-title { font-size: 14px; font-weight: 600; color: #222; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-recent-title:hover { color: var(--primary); }
.sidebar-recent-date { font-size: 12px; color: #aaa; }
.single-wrap h1 { font-size: 30px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.single-wrap .post-meta { font-size: 13px; color: #999; margin-bottom: 24px; }
.single-wrap .feat-img { margin-bottom: 28px; overflow: hidden; border-radius: var(--card-radius); }
.single-wrap .feat-img img { width: 100%; height: 420px; object-fit: cover; object-position: center; display: block; }
.entry-content { font-size: var(--content-size, 16px); line-height: 1.8; color: #222; }
.entry-content p { margin-bottom: 18px; }
.entry-content h2 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { border-left: 4px solid var(--primary); background: #fdf5f5; padding: 14px 20px; margin: 20px 0; font-style: italic; color: #555; border-radius: 0 8px 8px 0; }
.entry-content a { color: var(--primary); }
.entry-content img { border-radius: 8px; margin: 12px 0; max-width: 100%; }

.related-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid #eee; }
.related-section .section-heading { font-size: 20px; }
.related-grid { display: grid; gap: 20px; }
.related-card { border-radius: var(--card-radius); overflow: hidden; border: 1px solid #ebebeb; }
.related-card .thumb-link { display: block; overflow: hidden; }
.related-card .thumb-link img { width: 100%; height: 170px; object-fit: cover; object-position: center; display: block; transition: transform .35s; }
.related-card:hover .thumb-link img { transform: scale(1.04); }
.related-card .card-body { padding: 12px 14px 16px; }
.related-card .card-title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 6px; }
.related-card .card-title a { color: #111; }
.related-card .card-title a:hover { color: var(--primary); }
.related-card .card-meta { font-size: 12px; color: #999; margin-bottom: 10px; }
.related-card .read-more { color: var(--primary); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }

.archive-header { margin-bottom: 32px; }
.archive-header h1 { font-size: 26px; font-weight: 800; }
.archive-header p { color: #777; font-size: 15px; margin-top: 6px; }

.page-content-wrap { max-width: 780px; margin: 0 auto; padding: 40px 24px; }
.page-content-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); }
.error-page { text-align: center; padding: 80px 24px; }
.error-page h1 { font-size: 100px; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.error-page p { color: #777; margin-bottom: 24px; }
.btn-home { display: inline-block; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 700; }
.btn-home:hover { opacity: .9; }

#colophon {
    background: var(--footer-bg);
    color: var(--footer-text, #fff);
    padding: 40px 24px 24px;
    text-align: center;
    margin-top: 20px;
}
.footer-logo {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-logo .custom-logo-link { display: inline-block; line-height: 0; }
.footer-logo .custom-logo-link img,
.footer-logo img {
    max-height: var(--footer-logo-size, 120px) !important;
    max-width: 300px !important;
    width: auto !important;
    height: auto !important;
    min-height: 40px;
    display: block;
    margin: 0 auto;
}
.footer-logo-text { font-size: 26px; font-weight: 900; font-style: italic; color: var(--footer-text, #fff); }
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-nav ul li a { color: var(--footer-text, #fff); font-size: 13px; font-weight: 600; padding: 8px 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-nav ul li a:hover { color: var(--primary); }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,.12); margin-bottom: 20px; }
.footer-desc { font-size: 13px; color: var(--footer-text, #fff); opacity: .6; line-height: 1.7; max-width: 700px; margin: 0 auto 10px; }
.footer-copy { font-size: 12px; color: var(--footer-text, #fff); opacity: .35; }

/* ─── Seção: Mais Populares ─── */
.pop-section { margin-bottom: 52px; }
.pop-heading { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.pop-label { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.pop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ─── Carrossel ─── */
.mb-carousel { margin-bottom: 12px; }
.mb-carousel-track { position: relative; }
.mb-carousel-slide { display: none; }
.mb-carousel-slide.active { display: block; }

.mb-carousel-prev,
.mb-carousel-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.88);
    border: none; border-radius: 50%;
    width: 42px; height: 42px;
    font-size: 28px; line-height: 1;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    color: #111; padding: 0;
    transition: background .15s;
}
.mb-carousel-prev:hover,
.mb-carousel-next:hover { background: #fff; }
.mb-carousel-prev { left: 12px; }
.mb-carousel-next { right: 12px; }

.mb-carousel-bars { display: flex; gap: 8px; padding: 10px 0 4px; }
.mb-carousel-bar { flex: 1; height: 4px; background: #ddd; border-radius: 2px; overflow: hidden; }
.mb-carousel-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 0%; }

.hfs-excerpt-area { font-size: 14px; color: #555; line-height: 1.6; padding-bottom: 4px; }
.hfs-excerpt-link { color: var(--primary); display: block; margin-bottom: 8px; }
.hfs-excerpt-link:hover { text-decoration: underline; }
.hfs-excerpt-link span { color: var(--primary); }
.hfs-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #666; margin-top: 4px; }
.hfs-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hfs-meta-por { color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
.hfs-meta-author { color: var(--primary); font-weight: 700; }
.hfs-meta-author:hover { text-decoration: underline; }
.hfs-meta-sep { color: #bbb; }

/* ─── Layout: Carrossel + Sidebar ─── */
.hfs-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    margin-bottom: 52px;
    align-items: start;
}
.hfs-hero { height: 500px; }
.hfs-hero-title { font-size: 22px !important; }

.hfs-sidebar { display: flex; flex-direction: column; gap: 12px; height: 500px; }
.hfs-side-hero { flex: 1; border-radius: var(--card-radius); overflow: hidden; }
.hfs-side-hero-link {
    display: block; position: relative;
    width: 100%; height: 100%;
    overflow: hidden;
}
.hfs-side-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hfs-side-hero:hover .hfs-side-hero-img { transform: scale(1.04); }
.hfs-side-hero-no-img { width: 100%; height: 100%; background: var(--fallback-bg); }
.hfs-side-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 55%, transparent 80%);
    pointer-events: none;
}
.hfs-side-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; }
.hfs-side-hero-title { display: block; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.35; }

/* ─── Layout: Destaque + Lista ─── */
.hfl-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 52px;
    align-items: stretch;
}
.hfl-main { display: flex; flex-direction: column; }
.hfl-feat-img-wrap { display: block; border-radius: 8px; overflow: hidden; margin-bottom: 14px; flex-shrink: 0; }
.hfl-feat-img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform .3s; }
.hfl-feat-img-wrap:hover .hfl-feat-img { transform: scale(1.03); }
.hfl-feat-no-img { width: 100%; height: 280px; background: var(--fallback-bg); border-radius: 8px; }
.hfl-feat-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hfl-cat-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.hfl-feat-title { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 0; }
.hfl-feat-title a { color: var(--primary); }
.hfl-feat-title a:hover { text-decoration: underline; }
.hfl-feat-excerpt { font-size: 14px; color: #555; line-height: 1.6; margin: 0; }
.hfl-feat-meta { font-size: 12px; color: #888; margin-top: auto; padding-top: 8px; }
.hfl-list { display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid #eee; }
.hfl-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee; align-items: center; flex: 1; }
.hfl-item-img-wrap { flex-shrink: 0; width: 130px; border-radius: 6px; overflow: hidden; display: block; }
.hfl-item-img { width: 130px; height: 90px; object-fit: cover; display: block; transition: transform .3s; }
.hfl-item:hover .hfl-item-img { transform: scale(1.04); }
.hfl-item-no-img { width: 130px; height: 90px; background: var(--fallback-bg); border-radius: 6px; }
.hfl-item-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hfl-item-title { font-size: 15px; font-weight: 700; color: var(--primary); line-height: 1.35; }
.hfl-item-title a { color: inherit; }
.hfl-item-title a:hover { text-decoration: underline; }
.hfl-item-excerpt { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* ─── Layout: Grade Simples ─── */
.sg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.sg-card { display: flex; flex-direction: column; }
.sg-img-link { display: block; overflow: hidden; border-radius: var(--card-radius); margin-bottom: 12px; }
.sg-img-link img { width: 100%; height: 225px; object-fit: cover; display: block; transition: transform .35s; }
.sg-card:hover .sg-img-link img { transform: scale(1.04); }
.sg-no-img { width: 100%; height: 225px; background: var(--fallback-bg); border-radius: var(--card-radius); margin-bottom: 12px; }
.sg-title { font-size: 15px; font-weight: 700; color: #111; line-height: 1.4; padding-top: 10px; border-top: 1px solid #eee; }
.sg-title a { color: #111; }
.sg-title a:hover { color: var(--primary); }

/* ─── Layout: Seções por Categoria ─── */
.cs-section { margin-bottom: 52px; }
.cs-heading { font-size: 20px; font-weight: 800; color: var(--primary); padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin-bottom: 20px; }
.cs-heading a { color: inherit; }
.cs-heading a:hover { opacity: .8; }
.cs-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.cs-hero-img { height: 380px; }
.cs-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-mini-card { display: flex; flex-direction: column; }
.cs-mini-img-link { display: block; overflow: hidden; border-radius: 8px; margin-bottom: 8px; }
.cs-mini-img-link img { width: 100%; height: 155px; object-fit: cover; display: block; transition: transform .3s; }
.cs-mini-card:hover .cs-mini-img-link img { transform: scale(1.04); }
.cs-mini-no-img { width: 100%; height: 155px; background: var(--fallback-bg); border-radius: 8px; margin-bottom: 8px; }
.cs-mini-title { font-size: 13px; font-weight: 700; color: #111; line-height: 1.4; }
.cs-mini-title a { color: #111; }
.cs-mini-title a:hover { color: var(--primary); }

/* ─── Layout: Lista Horizontal ─── */
.hl-list { display: flex; flex-direction: column; margin-bottom: 48px; }
.hl-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eee; }
.hl-item:first-child { padding-top: 0; }
.hl-item-img-wrap { flex-shrink: 0; width: 140px; border-radius: 8px; overflow: hidden; display: block; }
.hl-item-img { width: 140px; height: 90px; object-fit: cover; display: block; transition: transform .3s; }
.hl-item:hover .hl-item-img { transform: scale(1.04); }
.hl-item-no-img { width: 140px; height: 90px; background: var(--fallback-bg); border-radius: 8px; }
.hl-item-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hl-item-title { font-size: 16px; font-weight: 700; color: #111; line-height: 1.4; }
.hl-item-title a { color: #111; }
.hl-item-title a:hover { color: var(--primary); }
.hl-item-excerpt { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-item-meta { font-size: 12px; color: #999; }

@media (max-width: 1100px) {
    .hero-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-img-wrap { height: 300px; }
    .hfs-wrap { grid-template-columns: 1fr 260px; }
    .hfs-hero { height: 440px; }
    .hfs-sidebar { height: 440px; }
    .sg-grid, .pop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-search { display: none; }
    .header-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--header-bg); padding: 8px 0; z-index: 99; }
    .header-nav.open { display: block; }
    .header-nav.open ul { flex-direction: column; }
    .header-nav.open ul li a { padding: 10px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .menu-toggle { display: block; }
    .hero-grid, .articles-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr !important; }
    .hero-img-wrap { height: 260px; }
    .hfs-wrap, .hfl-wrap, .cs-grid { grid-template-columns: 1fr; }
    .hfs-hero, .cs-hero-img { height: 280px; }
    .hfl-feat-img, .hfl-feat-no-img { height: 220px; }
    .hfs-sidebar { height: auto; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .hfs-side-hero { flex: 1 1 calc(50% - 6px); min-height: 140px; }
    .single-wrap.has-sidebar { grid-template-columns: 1fr !important; }
    .post-main { max-width: 100%; }
}
@media (max-width: 480px) {
    .hero-grid, .articles-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr !important; }
    .hero-img-wrap { height: 220px; }
    .single-wrap h1 { font-size: 22px; }
    .sg-grid, .pop-grid { grid-template-columns: 1fr; }
    .hfs-sidebar { flex-direction: column; }
    .hfs-side-hero { flex: 1 1 100%; min-height: 120px; }
    .hl-item-img-wrap { width: 100px; }
    .hl-item-img { width: 100px; height: 68px; }
}

/* ── Modal: Barra Inferior ── */
.mb-modal-bar { position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; background: var(--modal-bar-bg, #fff); z-index: 9999; padding: 10px 16px 10px 28px; display: flex; align-items: center; gap: 16px; box-shadow: 0 -1px 0 #e8e8e8, 0 -6px 24px rgba(0,0,0,.07); min-height: 72px; box-sizing: border-box !important; }
.mb-modal-bar-inner { display: flex; align-items: stretch; gap: 16px; flex: 1; min-width: 0; }
.mb-modal-bar-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: 0 0 auto; width: clamp(160px, 26vw, 310px); padding-right: 8px; }
.mb-modal-bar-label { font-size: 11px; color: var(--modal-bar-text, #111); opacity: 0.45; text-transform: none; letter-spacing: 0; line-height: 1; font-weight: 400; }
.mb-modal-bar-title { font-size: 15px; font-weight: 700; color: var(--modal-bar-text, #111); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.mb-modal-bar-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--modal-btn-color, #22c55e); color: #fff; padding: 0 32px; border-radius: 50px; font-weight: 800; font-size: clamp(13px, 1.3vw, 15px); white-space: nowrap; text-transform: uppercase; letter-spacing: .07em; transition: opacity .15s; }
.mb-modal-bar-btn:hover { opacity: .88; color: #fff; }
.mb-modal-bar-close { background: none; border: none; color: var(--modal-bar-text, #111); opacity: 0.35; font-size: 20px; cursor: pointer; line-height: 1; flex-shrink: 0; padding: 0 4px; transition: opacity .15s; }
.mb-modal-bar-close:hover { opacity: 0.8; }

/* ── Modal: Popup Flutuante ── */
.mb-modal-popup { position: fixed; bottom: 28px; right: 28px; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.22); z-index: 9999; width: 340px; overflow: hidden; display: none; }
.mb-modal-popup.mb-modal-visible { display: block; animation: mbPopupIn .3s ease; }
@keyframes mbPopupIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.mb-modal-popup-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 20px; cursor: pointer; color: rgba(255,255,255,.8); padding: 0; line-height: 1; z-index: 1; transition: color .15s; }
.mb-modal-popup-close:hover { color: #fff; }
.mb-modal-popup-inner { display: flex; align-items: stretch; }
.mb-modal-popup-img { flex-shrink: 0; width: 110px; display: block; overflow: hidden; }
.mb-modal-popup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-modal-popup-body { background: var(--modal-popup-bg, #1a3580); flex: 1; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mb-modal-popup-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-modal-popup-title:hover { text-decoration: underline; color: #fff; }
.mb-modal-popup-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--modal-popup-bg, #1a3580); padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; border: 2px solid #fff; transition: all .15s; width: fit-content; }
.mb-modal-popup-btn:hover { background: transparent; color: #fff; }
.mb-modal-popup-note { font-size: 11px; color: rgba(255,255,255,.6); }

@media (max-width: 640px) {
    .mb-modal-bar { padding: 10px 12px; gap: 10px; min-height: auto; flex-wrap: wrap; }
    .mb-modal-bar-inner { flex-wrap: wrap; gap: 8px; }
    .mb-modal-bar-text { width: 100%; flex-basis: 100%; padding-right: 0; }
    .mb-modal-bar-label { display: none; }
    .mb-modal-bar-btn { flex-basis: 100%; padding: 12px 16px; font-size: 13px; border-radius: 40px; }
    .mb-modal-popup { right: 10px; left: 10px; width: auto; bottom: 12px; }
}
