/* Blog Post Individual Page Styles */

/* Hero Section */
.blog-post-hero {
    background: linear-gradient(135deg, #1560c6 0%, #0d4084 100%);
    padding: 140px 0 60px 0;
    color: white;
}

.breadcrumb {
    margin-bottom: 40px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;


    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.post-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;


    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-category-tag img {
    height: 14px;
    width: auto;
    filter: brightness(0) invert(1);
}

.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 20px;
    max-width: 900px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Poppins', sans-serif;


    font-size: 14px;
    opacity: 0.8;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Content Section */
.post-content-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.post-content-section .container {
    max-width: 1400px;
}

/* Main content wrapper */
.post-content-wrapper {
    margin-bottom: 60px;
    overflow: hidden;
    /* clearfix for float */
}

/* Imagem destaque - estilo moderno */
.post-featured-image {
    float: left;
    width: 60%;
    margin: 0 40px 25px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Texto do post */
.post-body {
    font-family: 'Poppins', sans-serif;


    font-size: 17px;
    line-height: 190%;
    color: #3a3a3a;
}

.post-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0d4084;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 130%;
}

.post-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1560c6;
    margin-top: 35px;
    margin-bottom: 15px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 12px;
}

.post-body strong {
    font-weight: 700;
    color: #0d4084;
}

.post-body a {
    color: #0D8EF4;
    text-decoration: underline;
    transition: color 0.2s;
}

.post-body a:hover {
    color: #0b7ad1;
}

.post-body blockquote {
    border-left: 4px solid #0D8EF4;
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
}

.post-body code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Sidebar - agora embaixo do conteúdo */
.post-sidebar {
    max-width: 600px;
    margin: 0 auto;
}

.sidebar-cta {
    background: linear-gradient(135deg, #0d4084 0%, #1560c6 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.sidebar-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 130%;
    margin-bottom: 25px;
}

.btn-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #0D8EF4;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;


    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s, background 0.2s;
}

.btn-sidebar:hover {
    transform: translateY(-2px);
    background-color: #0b7ad1;
}

.btn-sidebar img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* CTA Section */
.post-cta-section {
    background-color: #1560c6;
    padding: 80px 0;
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box p {
    font-family: 'Poppins', sans-serif;


    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.btn-cta-post {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: white;
    color: #0d4084;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;


    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-post img {
    width: 18px;
    height: 18px;
    filter: brightness(0);
}

/* Loading and Error States */
.post-content .loading-state,
.post-content .error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-state .btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #0D8EF4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;


    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s;
}

.error-state .btn-back:hover {
    background-color: #0b7ad1;
}

/* Responsive */
@media (max-width: 1200px) {
    .post-featured-image {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        padding: 120px 0 40px 0;
    }

    .post-title {
        font-size: 32px;
    }

    /* Empilha imagem acima do texto em mobile */

    .post-featured-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 25px 0;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h2 {
        font-size: 26px;
    }

    .post-body h3 {
        font-size: 20px;
    }

    .sidebar-cta {
        padding: 30px 20px;
    }

    .cta-box h2 {
        font-size: 28px;
    }
}