.global {
    min-height: 90dvh;
}

.blog-header-bar {
    position: relative;
    background-color: var(--bs-primary);
}

.btn-search {
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-items: center;
    background-color: transparent !important;
    border-radius: 0;
    cursor: pointer;
}

/* Desktop search expand */
.blog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-search-wrap .blog-search-input-wrap {
    display: flex;
    align-items: center;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
}

.blog-search-wrap.search-open .blog-search-input-wrap {
    width: min(320px, 60vw);
    opacity: 1;
}

.blog-search-form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.form-pesquisa {
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    color: #000;
    border: 2px solid #f8fefd;
    width: 100%;
}

.blog-search-form .form-pesquisa {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(45, 0, 97, 0.16);
    border-radius: 999px;
    background: #fff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-search-form .form-pesquisa:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(84, 72, 194, 0.12);
}

/* Mobile search panel */
.blog-mobile-search-panel {
    display: none;
}

.blog-cat-nav {
    background: var(--bs-primary);
    border-bottom: 1px solid #b7afff;
}

.blog-cat-nav-inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: none;
}

.blog-cat-nav-inner::-webkit-scrollbar {
    display: none;
}

.blog-cat-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.blog-cat-nav-item:hover {
    color: #ffffff;
    border-bottom-color: var(--bs-primary);
}

.blog-cat-nav-novo {
    display: inline-flex;
    align-items: center;
    background: #2D0061;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.blog-sidebar {
    width: min(340px, 100vw);
    max-width: 340px;
    background: linear-gradient(180deg, #f7f3ff 0%, #eef7ff 100%);
    color: var(--bs-primary);
    display: flex;
    flex-direction: column;
}

.blog-sidebar .offcanvas-header {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(45, 0, 97, 0.08);
    padding-bottom: 1rem;
}

.blog-sidebar .offcanvas-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.blog-sidebar .offcanvas-title {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.sidebar-intro {
    margin: 0;
    color: #5c4b8a;
    font-size: 0.95rem;
}

.sidebar-categories {
    display: grid;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.sidebar-category {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--bs-primary);
    background: #fff;
    border: 1px solid rgba(45, 0, 97, 0.08);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.sidebar-category:hover {
    transform: translateY(-1px);
    background: #f3ebff;
    border-color: rgba(84, 72, 194, 0.18);
}

.sidebar-category.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: transparent;
}

.sidebar-category.active:hover {
    transform: none;
    background: var(--bs-primary-500);
}

.img-arrow-left {
    transform: scaleX(-1);
}
.blog-featured-section {
    padding: 48px 0 0;
}

.blog-search-header {
    margin-bottom: 32px;
}

.blog-search-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bs-primary);
}

.blog-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Post principal */
.blog-featured-main {
    display: flex;
    gap: 15px;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}
.blog-featured-img-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 30px;
}

.blog-featured-main:hover .blog-featured-img {
    transform: scale(1.03);
}

.blog-featured-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-featured-meta {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}

.blog-featured-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured-desc {
    font-size: 14px;
    color: #5e5e5e;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Posts laterais */
.blog-side-posts {
    display: flex;
    flex-direction: column;
}

.blog-side-post {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    padding: 22px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.2s ease;
}

.blog-side-post:last-child {
    border-bottom: none;
}

.blog-side-post:hover {
    opacity: 0.8;
    color: inherit;
}

.blog-side-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

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

.blog-side-post-date {
    font-size: 12px;
    color: #6b6b6b;
}

.blog-side-post-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-side-post-thumb-wrap {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.blog-side-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-cat-badge {
    display: inline-block;
    align-items: center;
    background: #d3d5f2;
    color: var(--bs-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-cat-badge--small {
    font-size: 10px;
    padding: 3px 8px;
}

.blog-categories-section {
    padding: 48px 0;
}

.blog-categories-heading {
    font-size: 12px;
    font-weight: 700;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

.blog-categories-section .swiper-slide {
    height: auto;
}

.blog-categories-section .swiper-slide .blog-category-card {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.blog-categories-section .swiper-button-prev,
.blog-categories-section .swiper-button-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.blog-categories-section .swiper-button-prev:hover,
.blog-categories-section .swiper-button-next:hover {
    background: #d3d5f2;
}

.blog-categories-section .swiper-button-prev::after,
.blog-categories-section .swiper-button-next::after {
    font-size: 14px;
}

.swiper-button-next, .swiper-button-prev {
    ::slotted(svg), svg {
        height: 50% !important;
    }
}

.blog-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--bs-primary);
    background-color: #d2d6f2;
    border: 1px solid rgba(45, 0, 97, 0.08);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.blog-category-card:hover {
    color: #fff;
    background: var(--bs-primary);
}

.blog-category-card.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: transparent;
}

.blog-category-card.active:hover {
    color: #fff;
    background: var(--bs-primary);
}

.blog-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.blog-category-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.blog-latest-section {
    padding: 0 0 24px;
}

.blog-latest-heading {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 32px;
}

.blog-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-latest-card {
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.blog-latest-card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;

    flex-shrink: 0;
}

.blog-latest-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.blog-latest-card:hover .blog-latest-card-img {
    transform: scale(1.04);
}

.blog-latest-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-latest-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-latest-card-date {
    font-size: 12px;
    color: #6b6b6b;
}

.blog-latest-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-latest-card-desc {
    font-size: 13px;
    color: #5e5e5e;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-bottom: 48px;
    flex-wrap: wrap;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blog-page-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.blog-page-btn--active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    pointer-events: none;
}

.blog-page-btn--next {
    width: auto;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 14px;
}

.blog-page-btn--next:hover {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

/* Empty state */
.blog-empty {
    padding: 80px 0;
    text-align: center;
    font-size: 18px;
    color: #5e5e5e;
}

.newsletter-section {
    padding: 0 16px 72px;
}

.newsletter-inner {
    background: #f3f0fa;
    border-radius: 30px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.newsletter-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.newsletter-text {
    flex: 1;
    min-width: 180px;
}

.newsletter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.newsletter-subtitle {
    font-size: 14px;
    color: #5e5e5e;
    margin: 0;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 14px 22px;
    border-radius: 10px;
    border: 1px solid #d8d0ec;
    background: #fff;
    font-size: 15px;
    color: #1a1a2e;
    width: 260px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.newsletter-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(84, 72, 194, 0.12);
}

.newsletter-btn {
    padding: 14px 28px;
    border-radius: 10px;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: var(--bs-primary-500, #5448c2);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-msg {
    display: block;
    width: 100%;
    font-size: 14px;
    margin-top: 4px;
    min-height: 20px;
}

.newsletter-msg--ok {
    color: #16a34a;
}
.newsletter-msg--err {
    color: #dc2626;
}

.footer-blog {
    background-color: var(--bs-primary);
    padding: 50px 10px;
    color: #fff;
}

.copyright {
    color: #fff;
}

.footer-link {
    color: #fff;
    text-transform: none;
    text-decoration: underline;
}

.footer-link:hover {
    color: #16c0ab;
}

/* ═══════════════════════════════════════════════════════
   SINGLE POST – layout
═══════════════════════════════════════════════════════ */
.blog-container {
    background-color: #f5fefd;
    display: flex;
    flex-direction: column;
}

.sp-header {
    padding: 48px 16px 0;
}

.sp-header-inner {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
}

.sp-title {
    color: var(--bs-primary);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.15;
    text-align: left;
    margin: 0;
}

.sp-meta-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sp-date {
    font-size: 16px;
    font-weight: 400;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex: 1;
}

.sp-category {
    font-size: 16px;
    font-weight: 400;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 1;
    text-align: center;
}

.sp-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 400;
    color: var(--bs-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1;
    justify-content: flex-end;
}

.sp-read-link img {
    width: 18px;
    height: 18px;
}

.sp-cover-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.sp-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sp-body-inner {
    width: 1075px;
}

.sp-body {
    padding: 60px 16px;
    background: transparent;
}

.content-paragraph {
    font-size: 18px;
    font-weight: 400;
    color: #5e5e5e;
    line-height: 1.75;
}

.content-paragraph p {
    margin-bottom: 20px;
}

.content-paragraph p:last-child {
    margin-bottom: 0;
}

.content-paragraph img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 10px;
    box-sizing: border-box;
}

.content-paragraph blockquote {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 32px 0;
    padding: 0;
    border: none;
}

.content-paragraph blockquote::before {
    content: "";
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #5448c2
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='8' r='4' fill='white'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
        center / 28px no-repeat;
}

.content-paragraph blockquote p,
.content-paragraph blockquote {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--bs-primary);
    line-height: 1.5;
    font-style: normal;
}

.sp-bottom-bar {
    border-top: 1px solid #e5e7eb;
    padding: 20px 16px;
}

.sp-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: 1075px;
}

.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #5e5e5e;
}

.sp-bc-link {
    color: #5e5e5e;
    text-decoration: none;
}

.sp-bc-link:hover {
    color: var(--bs-primary-500);
}

.sp-bc-sep {
    color: #9ca3af;
}

.sp-bc-current {
    color: #5e5e5e;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 280px;
}

.sp-share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.sp-icon:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.sp-icon svg {
    display: block;
}

.sp-pagination {
    border-top: 1px solid #e5e7eb;
    padding: 40px 16px;
}

.sp-pagination-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.sp-nav-post {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 8px 0;
    transition: opacity 0.2s;
}

.sp-nav-post:hover {
    opacity: 0.75;
}

.sp-nav-post.sp-nav-empty {
    pointer-events: none;
}

.sp-nav-divider {
    width: 1px;
    background: #e5e7eb;
    margin: 0 32px;
    flex-shrink: 0;
}

.sp-nav-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-nav-info-right {
    text-align: right;
}

.sp-nav-label {
    font-size: 18px;
    color: var(--bs-primary);
    font-weight: 600;
    text-transform: none;
}

.sp-nav-title {
    font-size: 30px;
    font-weight: 400;
    color: var(--bs-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-nav-arrow {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.sp-nav-arrow-right {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: end;
    flex-shrink: 0;
}

.sp-arrow-left {
    transform: rotate(180deg);
    width: 32px;
    height: 32px;
}

.sp-arrow-right {
    width: 32px;
    height: 32px;
}

.sp-next-post {
    justify-content: flex-end;
}

/* Social share box */
.social-share-container {
    align-items: center;
    border-radius: 30px;
    background-color: #46f5e0;
    display: flex;
    margin-top: 45px;
    flex-direction: column;
    justify-content: center;
    padding: 48px 20px;
    margin-bottom: 90px;
}

.share-content {
    display: flex;
    width: 624px;
    max-width: 100%;
    flex-direction: column;
}

.share-heading {
    color: var(--bs-primary);
    text-align: center;
    max-width: 400px;
    align-self: center;
    font:
        600 26px/34px "DM Sans",
        sans-serif;
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-links {
    align-self: center;
    display: flex;
    margin-top: 33px;
    width: 324px;
    max-width: 100%;
    justify-content: space-between;
    gap: 10px;
}

.social-link {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 100%;
    filter: drop-shadow(0px 12px 24px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    flex: 1;
}

.share-info {
    align-items: start;
    border-radius: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    margin-top: 33px;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 19px;
}

.share-link {
    color: #5e5e5e;
    flex-grow: 1;
    flex-basis: auto;
    font:
        400 18px/25px "DM Sans",
        sans-serif;
}

.share-link-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.share-link-text {
    color: var(--bs-primary);
    text-decoration: none !important;
    text-transform: none !important;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.share-featured-image {
    aspect-ratio: 0.81;
    object-fit: contain;
    object-position: center;
    width: 21px;
    fill: #5e5e5e;
    overflow: hidden;
    align-self: stretch;
    max-width: 100%;
    cursor: pointer;
}

.copy-btn {
    border: none;
    background-color: transparent;
}

.link-copied-message {
    display: none;
    color: #4caf50;
    font-size: 14px;
    align-self: center;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVO – Blog Index
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .blog-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .blog-featured-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .blog-featured-img-wrap {
        height: 260px;
    }

    .blog-latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-latest-heading {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .blog-search-wrap .blog-search-input-wrap {
        display: none !important;
    }

    .blog-mobile-search-panel {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        background: #e3f0f9;
        border-top: 1px solid rgba(45, 0, 97, 0.08);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 24px rgba(45, 0, 97, 0.12);
        padding: 0 16px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition:
            max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            padding 0.3s ease;
    }

    .blog-mobile-search-panel.blog-mobile-search-open {
        max-height: 80px;
        opacity: 1;
        pointer-events: all;
        padding: 12px 16px;
    }

    .blog-mobile-search-form {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .blog-mobile-search-input {
        flex: 1;
        padding: 10px 16px;
        border: 1px solid rgba(45, 0, 97, 0.2);
        border-radius: 999px;
        font-size: 15px;
        background: #f7f3ff;
        color: var(--bs-primary);
        outline: none;
        transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
    }

    .blog-mobile-search-input:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 3px rgba(84, 72, 194, 0.12);
        background: #fff;
    }

    .blog-mobile-search-btn {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: var(--bs-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .blog-mobile-search-btn:hover {
        background-color: var(--bs-primary-500);
    }

    .blog-mobile-search-btn img {
        filter: brightness(0) invert(1);
    }

    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 32px 28px;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-input {
        width: 100%;
        flex: 1;
    }

    .blog-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-cat-nav-item {
        padding: 12px 14px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .blog-featured-section {
        padding: 32px 0 0;
    }

    .blog-featured-img-wrap {
        height: 220px;
    }

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

    .blog-latest-grid {
        grid-template-columns: 1fr;
    }

    .blog-latest-heading {
        font-size: 22px;
    }

    .blog-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-inner {
        padding: 24px 20px;
    }

    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }

    .blog-pagination {
        gap: 6px;
    }

    .blog-page-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVO – Single Post
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sp-header {
        padding: 32px 16px 0;
    }

    .sp-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sp-date,
    .sp-category,
    .sp-read-link {
        flex: unset;
        justify-content: flex-start;
    }

    .sp-cover-wrap {
        aspect-ratio: 4 / 3;
    }

    .sp-body {
        padding: 40px 16px;
    }

    .sp-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-bc-current {
        max-width: 100%;
        white-space: normal;
    }

    .sp-pagination-inner {
        flex-direction: column;
        gap: 24px;
    }

    .sp-nav-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .sp-next-post {
        justify-content: flex-start;
    }

    .sp-nav-info-right {
        text-align: left;
    }

    .sp-title {
        font-size: 31px;
    }

    .sp-body-inner,
    .sp-bottom-inner {
        width: 100%;
    }

    .sp-nav-title {
        font-size: 22px;
    }

    .sp-date,
    .sp-category,
    .sp-read-link {
        font-size: 14px;
    }
}
