/* ==========================================================================
   BLOG PAGE STYLES
   ========================================================================== */

/* Blog Page Container */
.blog-page {
    min-height: auto !important;
}


/* Blog Header with Search */
.blog-header {
    padding: 40px 0;
    padding-top: 160px; /* Compensar header fixo */
    background-color: var(--color-light);
}

.blog-searchbar {
    max-width: 494px;
    margin: 0 auto;
}

.blog-search-form {
    position: relative;
    width: 100%;
}

.blog-search-input {
    width: 100%;
    height: 51px;
    padding: 12px 50px 12px 20px;
    background: var(--color-white);
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.blog-search-input::placeholder {
    color: #979797;
}

.blog-search-input:focus {
    border-color: var(--color-secondary);
}

.blog-search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.blog-search-button svg {
    width: 20px;
    height: 20px;
    fill: #979797;
}

/* Blog Posts List */
.blog-posts-section {
    padding: 40px 0 80px;
    background-color: var(--color-light);
}

.blog-posts-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Post Item */
.blog-post-item {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.blog-post-item:last-child {
    margin-bottom: 0;
}

.blog-post-image {
    flex-shrink: 0;
    width: 494px;
    height: 342px;
    border-radius: 20px;
    overflow: hidden;
}

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

.blog-post-item:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 515px;
}

.blog-post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 100px;
    height: 48px;
    padding: 16px 24px;
    background-color: var(--color-primary);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-title {
    font-family: 'Sora', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.2px;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-post-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
    letter-spacing: -0.2px;
}

.blog-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 327px;
    height: 48px;
    padding: 16px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.blog-post-button:hover {
    background-color: #7a2270;
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background-color: var(--color-white);
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.blog-pagination .current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--color-text);
}

/* CTA section adjustments for blog page */
.blog-page .start-section {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.blog-page .site-footer {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

/* Single Post Container */
.single-post-page {
    min-height: auto !important;
}

/* Single Post Featured Image */
.single-featured-image {
    max-width: 1140px;
    margin: 40px auto;
    margin-top: 160px; /* Compensar header fixo */
    padding: 0 20px;
}

.single-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

/* Single Post Content */
.single-post-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.single-post-header {
    margin-bottom: 40px;
}

.single-post-title {
    font-family: 'Sora', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.2px;
}

.single-post-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.5;
    margin: 0;
    letter-spacing: -0.2px;
}

/* Single Post Body Content */
.single-post-body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.5;
    letter-spacing: -0.2px;
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    margin: 30px 0 15px 0;
}

.single-post-body h2 {
    font-size: 20px;
}

.single-post-body h3 {
    font-size: 18px;
}

.single-post-body h4 {
    font-size: 16px;
}

.single-post-body p {
    margin: 0 0 20px 0;
}

.single-post-body a {
    color: var(--color-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-body a:hover {
    color: var(--color-primary);
}

.single-post-body ul,
.single-post-body ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.single-post-body li {
    margin-bottom: 10px;
}

.single-post-body li strong {
    color: var(--color-secondary);
}

.single-post-body blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background-color: var(--color-white);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.single-post-body figure {
    margin: 20px 0;
}

.single-post-body figcaption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #d6d6d6;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 45%;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a span:first-child {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-navigation a span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
}

.post-navigation a:hover span:last-child {
    color: var(--color-primary);
}

.post-navigation .nav-next {
    text-align: right;
    margin-left: auto;
}

/* ==========================================================================
   RESPONSIVE - BLOG
   ========================================================================== */

@media screen and (max-width: 1199px) {
    .blog-post-item {
        gap: 30px;
    }

    .blog-post-image {
        width: 400px;
        height: 280px;
    }

    .blog-post-title {
        font-size: 26px;
    }
}

@media screen and (max-width: 991px) {
    .blog-post-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-post-image {
        width: 100%;
        height: 300px;
    }

    .blog-post-content {
        max-width: 100%;
    }

    .single-featured-image img {
        height: 300px;
    }
}

@media screen and (max-width: 767px) {
    .blog-header {
        padding: 30px 20px;
        padding-top: 110px; /* Compensar header fixo mobile (80px) */
    }

    .single-featured-image {
        margin-top: 100px; /* Compensar header fixo mobile */
    }

    .blog-searchbar {
        max-width: 100%;
    }

    .blog-posts-section {
        padding: 30px 0 60px;
    }

    .blog-post-item {
        margin-bottom: 40px;
    }

    .blog-post-image {
        height: 220px;
    }

    .blog-post-category {
        height: 40px;
        padding: 12px 20px;
        font-size: 12px;
    }

    .blog-post-title {
        font-size: 22px;
    }

    .blog-post-excerpt {
        font-size: 14px;
    }

    .blog-post-button {
        max-width: 100%;
    }

    .single-featured-image {
        margin: 20px auto;
    }

    .single-featured-image img {
        height: 200px;
    }

    .single-post-content {
        padding: 0 20px 60px;
    }

    .single-post-title {
        font-size: 24px;
    }

    .single-post-subtitle {
        font-size: 16px;
    }

    .single-post-body h2 {
        font-size: 18px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation a {
        max-width: 100%;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .blog-post-image {
        height: 180px;
    }

    .single-featured-image img {
        height: 160px;
    }
}
