/* ═══════════════════════════════════════════════════
   Blog — Estilos
   ═══════════════════════════════════════════════════ */

/* ═══════════ BLOG HERO ═══════════ */

.blog-hero {
    background: linear-gradient(135deg, var(--primary-dark, #1b4332) 0%, var(--dark, #1a1a1a) 100%);
    padding: 140px 0 60px;
    color: #fff;
}

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

.blog-hero-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 600px;
}

/* ═══════════ BREADCRUMB ═══════════ */

.blog-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
}

.blog-breadcrumb ol li::after {
    content: '/';
    margin-left: 8px;
    opacity: 0.5;
}

.blog-breadcrumb ol li:last-child::after {
    display: none;
}

.blog-breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.blog-breadcrumb a:hover {
    color: #fff;
}

.blog-breadcrumb .current {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ═══════════ BLOG CARDS ═══════════ */

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.blog-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark, #1b4332), var(--primary, #2d6a4f));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

.blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary, #2d6a4f);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-card-meta i {
    margin-right: 3px;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blog-card-title a {
    color: var(--dark, #1a1a1a);
}

.blog-card-title a:hover {
    color: var(--primary, #2d6a4f);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    color: var(--primary, #2d6a4f);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-card-link:hover {
    color: var(--primary-dark, #1b4332);
}

/* ═══════════ SIDEBAR ═══════════ */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary, #2d6a4f);
    color: var(--dark, #1a1a1a);
}

.sidebar-search {
    position: relative;
}

.sidebar-search .form-control {
    padding-right: 44px;
    border-radius: 8px;
}

.sidebar-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border: none;
    background: var(--primary, #2d6a4f);
    color: #fff;
    width: 36px;
    border-radius: 6px;
    cursor: pointer;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    color: #555;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-categories a:hover,
.sidebar-categories li.active a {
    color: var(--primary, #2d6a4f);
    font-weight: 600;
    padding-left: 8px;
}

.sidebar-categories .count {
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-dark, #1b4332), var(--primary, #2d6a4f));
    color: #fff;
    text-align: center;
}

.sidebar-cta i {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 8px;
    display: block;
}

.sidebar-cta h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 16px;
}

/* ═══════════ SIDEBAR AUTHOR ═══════════ */

.sidebar-author {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary, #2d6a4f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.sidebar-author h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-author p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* ═══════════ PAGINATION ═══════════ */

.blog-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.blog-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--dark, #1a1a1a);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.blog-pagination a:hover,
.blog-pagination .active a {
    background: var(--primary, #2d6a4f);
    color: #fff;
}

/* ═══════════ POST HERO ═══════════ */

.post-hero {
    position: relative;
    min-height: 450px;
    background: var(--dark, #1a1a1a);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 50px;
    color: #fff;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.5) 100%);
}

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

.blog-breadcrumb-light ol {
    margin-bottom: 12px;
}

.post-hero-badge {
    display: inline-block;
    background: var(--primary, #2d6a4f);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.post-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
}

.post-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.post-hero-meta i {
    margin-right: 4px;
}

/* ═══════════ POST ARTICLE ═══════════ */

.post-article {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

.post-article h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark, #1a1a1a);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary, #2d6a4f);
}

.post-article h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark, #1a1a1a);
    margin: 32px 0 12px;
}

.post-article p {
    margin-bottom: 18px;
}

.post-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.post-article blockquote {
    border-left: 4px solid var(--primary, #2d6a4f);
    padding: 16px 24px;
    margin: 24px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.post-article ul, .post-article ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.post-article li {
    margin-bottom: 8px;
}

.post-article a {
    color: var(--primary, #2d6a4f);
    font-weight: 500;
    text-decoration: underline;
}

/* ═══════════ FAQ ═══════════ */

.post-faq {
    background: #f8f9fa;
    padding: 32px;
    border-radius: 12px;
}

.post-faq-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark, #1a1a1a);
}

.post-faq-title i {
    color: var(--primary, #2d6a4f);
    margin-right: 8px;
}

.post-faq .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark, #1a1a1a);
}

.post-faq .accordion-button:not(.collapsed) {
    background: rgba(45,106,79,0.08);
    color: var(--primary, #2d6a4f);
}

.post-faq .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}

/* ═══════════ CTA BANNER ═══════════ */

.post-cta-banner {
    background: linear-gradient(135deg, var(--primary-dark, #1b4332), var(--primary, #2d6a4f));
    color: #fff;
    padding: 32px;
    border-radius: 12px;
}

.post-cta-banner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.post-cta-banner p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* ═══════════ TAGS ═══════════ */

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

.post-tag {
    background: #f0f0f0;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

/* ═══════════ SHARE BUTTONS ═══════════ */

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-linkedin { background: #0077B5; }

/* ═══════════ RELATED POSTS ═══════════ */

.related-posts .blog-card-title {
    font-size: 1rem;
}

/* ═══════════ RESPONSIVO ═══════════ */

@media (max-width: 991px) {
    .blog-hero { padding: 120px 0 40px; }
    .blog-hero-title { font-size: 2rem; }
    .post-hero { min-height: 350px; padding: 120px 0 40px; }
    .post-hero-title { font-size: 2rem; }
    .blog-sidebar { position: static; margin-top: 40px; }
    .post-cta-banner .text-end { text-align: start !important; }
}

@media (max-width: 767px) {
    .blog-hero-title { font-size: 1.6rem; }
    .post-hero-title { font-size: 1.5rem; }
    .post-hero-meta { gap: 10px; font-size: 0.8rem; }
    .post-article { font-size: 1rem; }
    .post-article h2 { font-size: 1.3rem; }
    .post-article h3 { font-size: 1.15rem; }
    .post-faq { padding: 20px; }
    .post-cta-banner { padding: 24px; }
    .blog-card-meta { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
    .blog-hero-title { font-size: 1.4rem; }
    .post-hero-title { font-size: 1.3rem; }
    .post-hero { min-height: 300px; }
}
