/* Blog público do PinImóvel (/blog) — complementa o Velzon (app.min.css) e pinimovel-custom.css */

.blog-body { background: var(--vz-body-bg, #f3f3f9); }
/* Cabeçalho no estilo do layout horizontal do Velzon (tema SaaS):
   barra escura com logo/busca + menu branco com links cinza em Rubik, ativo em azul */
.blog-header { z-index: 1020; --blog-top: #38454a; --blog-menu-color: #6d7080; --blog-menu-active: #6691e7; }
.blog-topbar { background: var(--blog-top); min-height: 70px; display: flex; align-items: center; }
.blog-brand-label { font-family: Rubik, sans-serif; font-size: .925rem; font-weight: 500; color: var(--blog-menu-active); letter-spacing: .02em; }
.blog-topbar-link { color: rgba(255, 255, 255, .78); font-family: Rubik, sans-serif; font-size: .925rem; }
.blog-topbar-link:hover { color: #fff; }
.blog-search { max-width: 520px; }
.blog-search .form-control {
    height: 38px; padding-left: 40px; border: 0; border-radius: .25rem; font-family: Rubik, sans-serif; font-size: .825rem;
    background: rgba(255, 255, 255, .05); color: #fff; box-shadow: none;
}
.blog-search .form-control::placeholder { color: rgba(255, 255, 255, .55); }
.blog-search .form-control:focus { background: rgba(255, 255, 255, .1); }
.blog-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .55); font-size: 16px; pointer-events: none; }

.blog-menu { background: #fff; box-shadow: 0 2px 4px rgba(15, 34, 58, .12); }
.blog-menu-list {
    display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}
.blog-menu-link {
    display: flex; align-items: center; gap: .4rem; height: 46px; padding: 0 .8rem;
    font-family: Rubik, sans-serif; font-size: .925rem; font-weight: 400; color: var(--blog-menu-color); white-space: nowrap;
}
.blog-menu-link i { font-size: 18px; }
.blog-menu-link:hover, .blog-menu-link:focus, .blog-menu-link.active { color: var(--blog-menu-active); }
@media (max-width: 1199.98px) {
    /* Telas menores: menu numa linha só, rolando para o lado */
    .blog-menu-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .blog-menu-list::-webkit-scrollbar { display: none; }
}
@media (max-width: 991.98px) {
    .blog-menu-link { padding: 0 .7rem; font-size: .875rem; }
    .blog-topbar .container { flex-wrap: wrap; row-gap: .5rem; padding-top: .6rem; padding-bottom: .6rem; }
    .blog-search { order: 3; flex-basis: 100%; max-width: none; margin: 0 !important; }
}

/* Texto cortado em N linhas */
.blog-clamp-2, .blog-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.blog-clamp-2 { -webkit-line-clamp: 2; }
.blog-clamp-3 { -webkit-line-clamp: 3; }

/* Sem imagem: bloco com a cor da categoria e o nome dela */
.blog-ph {
    display: flex; align-items: center; justify-content: center; text-align: center; padding: .75rem;
    background: linear-gradient(135deg, var(--ph, #405189) 0%, color-mix(in srgb, var(--ph, #405189) 55%, #000) 100%);
    color: rgba(255, 255, 255, .92); font-weight: 600; letter-spacing: .02em; overflow: hidden;
}
.blog-ph span { font-size: .95rem; text-transform: uppercase; }
.blog-mini-img.blog-ph span, .avatar-md.blog-ph span { font-size: .55rem; line-height: 1.1; }
.blog-mini-img { width: 5.5rem; height: auto; }

/* Proporção única das imagens do post: 1200x630 (1,91:1), recorte central, nunca estica */
.blog-ratio { aspect-ratio: 1200 / 630; height: auto !important; object-fit: cover; }

/* Hero (slider da home): imagem inteira à esquerda, texto à direita (embaixo no celular) */
.blog-hero { background: #1f2a30; }
.blog-hero-slide { color: #fff; margin: 0; }
.blog-hero-slide .blog-ph span { font-size: 1.4rem; opacity: .4; }
.blog-hero-caption { padding: 2rem 2.25rem 3rem; background: #1f2a30; }
.blog-hero-title { font-size: 1.65rem; font-weight: 600; line-height: 1.25; }
.blog-hero .swiper-pagination { text-align: right; padding-right: 1.5rem; }
@media (min-width: 992px) { .blog-hero .swiper-pagination { width: 41.666%; left: auto; right: 0; text-align: center; padding: 0; } }
.blog-hero .swiper-pagination-bullet { background: #fff; opacity: .6; }
.blog-hero .swiper-pagination-bullet-active { opacity: 1; background: var(--vz-primary); }
.blog-hero .swiper-button-next, .blog-hero .swiper-button-prev {
    color: #fff; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .35);
}
.blog-hero .swiper-button-next::after, .blog-hero .swiper-button-prev::after { font-size: 1rem; font-weight: 700; }
@media (max-width: 991.98px) {
    .blog-hero-caption { padding: 1.25rem 1.25rem 2.5rem; }
    .blog-hero-title { font-size: 1.2rem; }
}

/* Cards */
.blog-grid-card .blog-img { height: auto; }
.blog-list-card h3 a:hover, .blog-list-card h3:hover { color: var(--vz-primary) !important; }

/* Cabeçalho da categoria */
.blog-cat-head { border-left: 4px solid var(--cat, var(--vz-primary)); }

/* Barra lateral */
.blog-promo { --promo: var(--pini-red, #EC3237); background: linear-gradient(135deg, var(--promo) 0%, color-mix(in srgb, var(--promo) 78%, #000) 100%); }
.blog-promo-img { max-height: 180px; object-fit: cover; display: block; }
.blog-promo-thumb { width: 120px; height: 90px; object-fit: cover; }
.blog-promo .text-white-75 { color: rgba(255, 255, 255, .8); }
.blog-promo-icon { position: absolute; right: -10px; bottom: -22px; font-size: 7rem; color: rgba(255, 255, 255, .12); pointer-events: none; }
.blog-cat-list li + li { border-top: 1px dashed var(--vz-border-color); }
.blog-cat-list a:hover span.flex-grow-1 { color: var(--vz-primary); }

/* Texto do post (HTML do editor) */
.blog-content { font-size: 1rem; line-height: 1.75; color: var(--vz-body-color); overflow-wrap: anywhere; }
.blog-content img, .blog-content iframe, .blog-content video { max-width: 100%; height: auto; border-radius: .375rem; }
.blog-content iframe { aspect-ratio: 16 / 9; width: 100%; }
.blog-content h2, .blog-content h3, .blog-content h4 { margin-top: 1.75rem; margin-bottom: .75rem; font-weight: 600; }
.blog-content p { margin-bottom: 1rem; }
.blog-content blockquote { padding: 1rem 1.25rem; border-left: 3px solid var(--vz-primary); background: var(--vz-light); border-radius: .375rem; }
.blog-content table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.blog-content table td, .blog-content table th { border: 1px solid var(--vz-border-color); padding: .5rem; }
.blog-content a { text-decoration: underline; }

/* Compartilhar (border-dashed do Velzon pinta as 4 bordas aqui) */
.blog-share { border-top: 1px dashed var(--vz-border-color); }
.blog-share-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 1.15rem; border: 0; }
.blog-share-btn:hover { color: #fff; filter: brightness(1.1); }

/* Descrição dos cards é link para o post */
.blog-desc-link { color: var(--vz-secondary-color, #878a99); }
.blog-desc-link:hover { color: var(--vz-body-color); }

/* Comentários: campo-armadilha para robôs (fora da tela, não é display:none para não ser ignorado) */
.blog-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Abas "Recentes / Mais lidos": texto e sublinhado da aba ativa na mesma cor (modelo "Custom Tabs Bordered") */
.blog-sidebar .nav-tabs-custom.nav-success .nav-link.active { color: var(--vz-success) !important; } /* vence o .nav-link.active vermelho de pinimovel-custom.css */

/* Materiais para download (no post e na página de cadastro) */
.blog-downloads { display: grid; gap: .75rem; }
.blog-download { padding: 1rem 1.1rem; border: 1px solid var(--vz-border-color); border-left: 4px solid var(--pini-red, #EC3237); border-radius: .5rem; background: var(--vz-light, #f3f6f9); }
.blog-download-icon { width: 48px; height: 48px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--pini-red, #EC3237); background: rgba(236, 50, 55, .1); }
.blog-download-icon-lg { width: 72px; height: 72px; font-size: 2.4rem; }
.blog-download .form-check-input { margin-top: .2rem; }
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }
