@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


:root {
    --mercos-primary: #663991;
    --mercos-secondary: #00a34e;
    --mercos-cta: #00b23a;
    --mercos-text: #212121;
    --mercos-body: #4d4d4d;
    --mercos-border: #eeeeee;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--mercos-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.mercos-heading {
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
}

.wp-block-list,
ul {
    margin-left: 0;
}

a {
    color: inherit;
}

a:hover {
    color: var(--mercos-primary);
}

.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Header */
.mercos-header {
    border-bottom: 1px solid var(--mercos-border);
    padding: 17px 51px;
    background: #fff;
}

.mercos-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mercos-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
}

.mercos-brand__primary {
    color: var(--mercos-primary);
    font-size: 26px;
    line-height: 1.4;
}

.mercos-brand__secondary {
    color: var(--mercos-secondary);
    font-size: 26px;
    line-height: 1.4;
}

.mercos-brand__spacer {
    display: inline-block;
    width: 2px;
    height: 26px;
}

.mercos-nav {
    flex: 1;
    min-width: 300px;
}

.mercos-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mercos-nav__item a,
.mercos-nav__dropdown-toggle {
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 400;
    color: var(--mercos-text) !important;
    text-decoration: none;
}

.mercos-nav__dropdown {
    position: relative;
}

.mercos-nav__dropdown-toggle {
    background: transparent !important;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    box-shadow: none;
}

.mercos-nav__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--mercos-text);
    border-bottom: 2px solid var(--mercos-text);
    transform: rotate(45deg);
}

.mercos-nav__dropdown-menu {
    position: absolute;
    top: 115%;
    right: 0;
    min-width: 400px;
    background: #fff;
    border: 1px solid var(--mercos-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    list-style: none;
    display: none;
    z-index: 20;
}

.mercos-nav__dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--mercos-text);
}

.mercos-nav__dropdown-menu li a:hover,
.mercos-nav__dropdown-menu li a:focus {
    background: #f7f7f7;
}

.mercos-nav__dropdown:hover .mercos-nav__dropdown-menu,
.mercos-nav__dropdown:focus-within .mercos-nav__dropdown-menu,
.mercos-nav__dropdown.is-open .mercos-nav__dropdown-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mercos-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mercos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 500px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mercos-btn--primary {
    background: var(--mercos-cta);
    color: #fff;
    transition: all 500ms;
    border: 1px solid var(--mercos-cta);
}

.mercos-btn--primary:hover,
.mercos-btn--primary:focus {
    background-color: #fff;
    color: var(--mercos-cta);
}

.search-page {
    & .mercos-related {
        padding-top: 0;
    }

    & .mercos-pagination {
        margin: 0 !important;
    }
}

.search-posts {
    & .post-card {
        padding: 0;
        border: none;
    }

    & .post-card__media {
        width: 300px;
    }
}

.post-card__img-link,
.post-card__media {
    overflow: hidden;
    border-radius: 5px;
}

.search-header {
    & h1 {
        font-size: 1.5rem;
        font-weight: 400;
        margin-bottom: 0;
    }
}

.search-query {
    color: var(--mercos-primary);
    font-weight: 700;
}

.mercos-search-wrapper {
    display: flex;
    align-items: center;
}

.mercos-search-form {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 0 10px;
    min-width: 240px;
}

.mercos-search-wrapper.is-open .mercos-search-form {
    display: flex;
}

.mercos-search-close {
    display: none;
}

.mercos-search-form input {
    border: none;
    outline: none;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    box-shadow: none;
    padding: 0 5px;
}

.mercos-search-form input:focus {
    border-color: var(--mercos-primary);
}

.mercos-search-submit {
    border: none;
    background: transparent !important;
    cursor: pointer;
    box-shadow: none;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mercos-search-toggle {
    background: transparent !important;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.mercos-search-toggle:hover,
.mercos-search-toggle:focus {
    opacity: 0.7;
    outline: none;
}

.mercos-search-wrapper.is-open .mercos-search-toggle {
    display: none;
}

/* Desktop: esconder botão "Comece grátis" quando pesquisa está aberta */
.mercos-header.search-active .mercos-header__actions {
    display: none;
}

#mercos-search {
    &:focus {
        border: none;
    }
}

.mercos-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7a56a8 0%, #663991 60%, #4a2b70 100%);
    box-shadow: 0 6px 18px rgba(102, 57, 145, 0.35);
}

/* Mobile Menu Toggle (Hamburger) */
.mercos-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    background: #EEE6F8;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    border-radius: 50%;
    position: relative;

    &:hover {
        background-color: #EEE6F8;
    }

    span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 19.7px;
        height: 3px;
        background-color: var(--mercos-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform: translate(-50%, -50%);
    }

    span:nth-child(1) {
        transform: translate(-50%, -9px);
    }

    span:nth-child(2) {
        transform: translate(-50%, 0);
    }

    span:nth-child(3) {
        transform: translate(-50%, 9px);
    }

    &.is-active span:nth-child(1) {
        transform: translate(-50%, 0) rotate(45deg);
    }

    &.is-active span:nth-child(2) {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    &.is-active span:nth-child(3) {
        transform: translate(-50%, 0) rotate(-45deg);
    }
}

/* Mobile Menu Container */
.mercos-mobile-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

/* Painel de categorias - esconder no desktop */
.mercos-categories-panel {
    display: none;
}

@media (max-width: 1024px) {
    .mercos-header {
        padding: 16px 24px;
    }

    .mercos-header__inner {
        gap: 20px;
    }

    .mercos-nav__list {
        justify-content: flex-start;
    }

    .mercos-mobile-toggle {
        display: flex;
    }

    .mercos-mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: #fff;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        overflow-y: auto;
    }

    .mercos-mobile-menu.is-open {
        transform: translateX(0);
    }

    .mercos-nav {
        width: 100%;
        min-width: auto;
    }

    .mercos-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .mercos-nav__item {
        width: 100%;
        border-bottom: 1px solid var(--mercos-border);
        padding-bottom: 12px;
    }

    .mercos-nav__item a {
        display: block;
        padding: 8px 0;
    }

    .mercos-nav__dropdown {
        width: 100%;
    }

    .mercos-nav__dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 8px 0;
    }

    /* Esconder dropdown padrão no mobile - usar painel deslizante */
    .mercos-nav__dropdown-menu {
        display: none !important;
    }

    /* Painel de categorias (mobile) */
    .mercos-categories-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
    }

    .mercos-categories-panel.is-active {
        transform: translateX(0);
    }

    .mercos-categories-back {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #fff;
        border: none;
        border-bottom: 1px solid var(--mercos-border);
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 13px 24px;
        cursor: pointer;
        font-family: "Open Sans", Arial, sans-serif;
        font-size: 15px;
        font-weight: 700;
        color: #111B29;
    }

    .mercos-categories-back svg {
        flex-shrink: 0;
    }

    .mercos-categories-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .mercos-categories-list li {
        border-bottom: 1px solid #f5f5f5;
    }

    .mercos-categories-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 24px;
        color: #111B29;
        font-size: 15px;
        font-family: "Open Sans", Arial, sans-serif;
        font-weight: 400;
        line-height: 22.5px;
        text-decoration: none;
        transition: background 0.2s ease;
    }

    .mercos-categories-list a:hover {
        background: #f9f9f9;
    }

    .mercos-categories-list svg {
        flex-shrink: 0;
    }

    .mercos-header__actions {
        width: 100%;
        margin-top: 20px;
    }

    .mercos-btn--primary {
        width: 100%;
        text-align: center;
        display: block;
        padding: 14px 24px;
    }
}

/* Tablet: botão "Comece grátis" no header entre logo e botões */
@media (min-width: 768px) and (max-width: 1024px) {
    .mercos-header__inner {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .mercos-brand {
        order: 0;
    }

    .mercos-btn--header-tablet {
        order: 1;
        flex: 1;
        max-width: 180px;
        margin: 0 auto;
        padding: 10px 20px !important;
        font-size: 14px !important;
        white-space: nowrap;
        width: auto !important;
    }

    .mercos-mobile-menu .mercos-header__actions {
        display: none;
    }

    .mercos-search-wrapper {
        order: 2;
    }

    .mercos-mobile-toggle {
        order: 3;
    }
}

@media (max-width: 1024px) {
    .mercos-header {
        padding: 12px 0;
    }

    .mercos-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .mercos-header__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .mercos-search-form {
        width: 100%;
    }

    .mercos-search-wrapper {
        order: 2;
    }

    .mercos-mobile-toggle {
        order: 3;
    }

    /* Search fullscreen no mobile */
    .mercos-search-wrapper.is-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 70px;
        background: #fff;
        z-index: 1100;
        padding: 0 20px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--mercos-border);
    }

    .mercos-search-close {
        display: flex;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--mercos-primary);
        padding: 8px;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s ease;
        flex-shrink: 0;
    }

    .mercos-search-close:hover {
        opacity: 0.7;
    }

    .mercos-search-wrapper.is-open .mercos-search-form {
        gap: 12px;
        width: 100%;
        max-width: 100%;
        border: none;
        padding: 0;
    }

    .mercos-search-form input {
        font-size: 14px;
        padding: 10px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        min-width: 0;
    }

    .mercos-search-submit {
        padding: 10px 16px;
        background: var(--mercos-primary);
        color: #fff;
        border-radius: 8px;
        transition: background 0.2s ease;
        flex-shrink: 0;
    }

    .mercos-search-submit:hover {
        background: #552f7a;
    }

    .mercos-search-submit svg path {
        fill: #fff;
    }
}

/* Search page */
.mercos-search {
    padding: 48px 51px;
    background: #fff;
}

.mercos-search__wrap {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.mercos-search__main {
    flex: 1 1 600px;
    max-width: 900px;
}

.mercos-search__title {
    padding: 48px 0 24px;
}

.mercos-search__title span {
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 20px;
}

.mercos-search__title .mercos-search__query {
    color: var(--mercos-primary);
    font-weight: 700;
}

.mercos-search__list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mercos-search__item {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 870px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px;
}

.mercos-search__thumb img {
    width: 270px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

.mercos-search__body {
    flex: 1 1 250px;
    max-width: 500px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mercos-search__body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.mercos-search__body h2 a {
    color: var(--mercos-text);
    text-decoration: none;
}

.mercos-search__body h2 a:hover {
    color: var(--mercos-primary);
}

.mercos-search__excerpt {
    margin: 0;
    color: var(--mercos-body);
    font-size: 14px;
    line-height: 1.4;
}

.mercos-pagination {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.mercos-pagination__prev,
.mercos-pagination__next {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;

    & a {
        text-decoration: none;
    }
}

.mercos-pagination__prev {
    color: #a1a1a1;
    border-bottom: 1px solid #a1a1a1;
    padding-bottom: 4px;
}

.mercos-pagination__next {
    color: var(--mercos-primary);
    border-bottom: 1px solid var(--mercos-primary);
    padding-bottom: 4px;
}

.mercos-pagination__numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mercos-pagination__numbers a,
.mercos-pagination__numbers span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    border-radius: 3px;
    padding: 6px;
}

.mercos-pagination__numbers .current {
    background: var(--mercos-primary);
    color: #fff;
}

.mercos-related {
    padding: 34px 0 48px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;

    & .post-card__media {
        width: 100% !important;
    }
}

.mercos-related__title {
    font-size: 24px;
    font-weight: 700;
    color: #424242;
}

.mercos-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.mercos-related__card {
    width: 270px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.mercos-related__card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}

.mercos-related__card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.mercos-related__card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mercos-body);
}

.mercos-search__aside {
    width: 312px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mercos-aside__card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.mercos-aside__card--cover img {
    width: 100%;
    height: 258px;
    object-fit: cover;
}

.mercos-aside__card--cover .mercos-aside__overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.mercos-aside__card--cover .mercos-aside__content {
    position: absolute;
    left: 16px;
    top: 24px;
    color: #fff;
    max-width: 240px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.mercos-aside__pill-btn {
    position: absolute;
    left: 16px;
    bottom: 24px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    font-weight: 700;
    text-decoration: none;
}

.mercos-aside__section h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}

.mercos-recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mercos-recent-list__item {
    padding: 10px 20px;
    border-radius: 10px;
    background: #f7f7f7;
    color: #494a5e;
    font-size: 14px;
    line-height: 1.4;
}

.mercos-recent-list__item:first-child {
    background: #e6faf0;
}

.mercos-newsletter {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mercos-newsletter__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.mercos-newsletter__desc {
    margin: 0;
    color: #494a5e;
    font-size: 14px;
}

.mercos-newsletter__field {
    width: 100%;
    height: 50px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 16px;
    color: #494a5e;
    background: #fff;
}

.mercos-newsletter__submit {
    width: 100%;
    height: 44px;
    border-radius: 50px;
    border: none;
    background: var(--mercos-primary);
    color: #fff;
    font-weight: 700;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    cursor: pointer;
}

.mercos-newsletter__note {
    text-align: center;
    font-size: 11px;
    color: #494a5e;
    margin: 0;
}

.mercos-cta-vertical {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.mercos-cta-vertical img {
    width: 100%;
    height: 607px;
    object-fit: cover;
}

.mercos-cta-vertical__gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 420px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
}

.mercos-cta-vertical__content {
    position: absolute;
    left: 24px;
    bottom: 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 260px;
}

.mercos-cta-vertical__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.mercos-cta-vertical__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.mercos-cta-vertical__button {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

.mercos-social {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mercos-social__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.mercos-social__icons {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.mercos-social__icon {
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mercos-text);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .mercos-search {
        padding: 32px 24px;
    }

    .mercos-search__wrap {
        gap: 24px;
    }

    .mercos-search__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mercos-search__body {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .mercos-search__wrap {
        flex-direction: column;
    }

    .mercos-search__aside,
    .mercos-search__main {
        max-width: 100%;
    }

    .mercos-pagination {
        justify-content: center;
    }
}

/* Footer */
.mercos-footer {
    background: #fff;
    padding: 19px 24px;
}

.mercos-footer__inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 47px;
    width: 100%;
}

.mercos-footer__logo {
    position: relative;
    width: 180px;
    height: 36px;
}

.mercos-footer__shape {
    position: absolute;
    background: var(--mercos-text);
}

.mercos-footer__shape.s1 {
    width: 18.91px;
    height: 17.76px;
    left: 30.75px;
    top: 17.96px;
}

.mercos-footer__shape.s2 {
    width: 27.82px;
    height: 26.57px;
    left: 0.06px;
    top: 0.12px;
}

.mercos-footer__shape.s3 {
    width: 51.43px;
    height: 35.54px;
    left: 7.13px;
    top: 0.12px;
}

.mercos-footer__shape.s4 {
    width: 25.89px;
    height: 16.99px;
    left: 68.97px;
    top: 11.01px;
}

.mercos-footer__shape.s5 {
    width: 9.79px;
    height: 16.97px;
    left: 117.47px;
    top: 11.01px;
}

.mercos-footer__shape.s6 {
    width: 15.76px;
    height: 17.26px;
    left: 129.31px;
    top: 11.01px;
}

.mercos-footer__shape.s7 {
    width: 13.07px;
    height: 17.26px;
    left: 166.87px;
    top: 11.01px;
}

.mercos-footer__divider {
    width: 1px;
    height: 26px;
    background: var(--mercos-text);
}

.mercos-footer__copy {
    margin: 0;
    max-width: 520px;
    color: var(--mercos-text);
    font-size: 12px;
    line-height: 18px;
    font-family: "Open Sans", Arial, sans-serif;
    text-align: center;
}

@media (max-width: 640px) {
    .mercos-footer__inner {
        gap: 20px;
    }

    .mercos-footer__copy {
        max-width: 100%;
    }
}

/* Blog page */
.blog-page {
    background: #fff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 44px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.button--primary {
    background: var(--mercos-primary);
    color: #fff;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    border: 1px solid #fff;
}

.blog-feature {
    padding: 48px 0;

    & a:hover img {
        transform: scale(1.1);
        transition: transform 0.5s ease;
    }
}

.blog-feature__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.blog-feature__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-feature__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-feature__category {
    color: var(--mercos-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-feature__title {
    color: var(--mercos-text);
    font-size: 2.5rem;
    line-height: 42px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    margin: 0;
}

.blog-feature__title-link {
    color: inherit;
    text-decoration: none;
}

.blog-feature__excerpt {
    color: var(--mercos-body);
    font-size: 16px;
    line-height: 22px;
    opacity: 0.8;
}

.blog-feature__image {
    overflow: hidden;
}


.blog-feature__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.blog-feature__img-placeholder {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    background: #f0f0f0;
}

.blog-feature__cta {
    background-color: #fff;
    padding: 1rem;
    border-radius: 900px;
    color: var(--mercos-primary) !important;
    width: max-content;

    &:hover {
        background-color: rgba(102, 57, 145, .1);
    }
}

.blog-sections {
    padding: 48px 0;
}

.blog-sections__container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.blog-sections__content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.category-page {
    & .blog-sections__content {
        gap: 0;
    }

    & .post-card__media {
        width: 270px;
    }

    & .post-card {
        padding: 0;
        border: none;
    }
}

.category-posts {
    margin-bottom: 2rem;
}

.category-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-block__title {
    color: #424242;
    font-size: 24px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    line-height: 28px;
    margin: 0;
}

.breadcrumb-item {
    color: #4E4D4D;
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;

    & a {
        color: #4E4D4D;
        text-decoration: none !important;
    }
}

.post-card {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;

    &:hover img {
        transform: scale(1.1);
        transition: transform 0.5s ease;
    }
}

.post-card__media {
    width: 100%;
    overflow: hidden;
}

.post-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    aspect-ratio: unset;
}

.post-card__img-placeholder {
    width: 270px;
    height: 180px;
    border-radius: 5px;
    background: #f0f0f0;
}

img:is([sizes=auto i], [sizes^="auto," i]) {
    contain-intrinsic-size: unset;
}

.post-card__body {
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    margin: 0;
}

.post-card__title-link {
    color: inherit;
    text-decoration: none;
}

.post-card__excerpt {
    color: var(--mercos-body);
    font-size: 14px;
    line-height: 18px;
}

.category-block__empty {
    color: #757575;
}

.category-block:nth-child(n+2) {
    & .category-block__grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    & .post-card__media {
        width: 300px;
    }
}

.blog-sidebar {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ver-mais-posts {
    text-decoration: none;
    padding-left: 20px;
    font-size: 14px;
    display: block;

    &:hover {
        color: var(--mercos-cta);
        text-decoration: underline;
    }
}

/* Sidebar feature card */
.sidebar-feature {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.sidebar-feature__link {
    position: relative;
    display: block;
}

.sidebar-feature__img,
.sidebar-feature__img-placeholder {
    width: 100%;
    height: 258px;
    object-fit: cover;
}

.sidebar-feature__overlay {
    position: absolute;
    inset: 0 0 auto 0;
    height: 123px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

.sidebar-feature__content {
    position: absolute;
    left: 16px;
    top: 24px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-feature__title {
    color: #fff;
    font-size: 18px;
    line-height: 22px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    margin: 0;
}

/* Recent posts */
.sidebar-recent__title {
    font-size: 18px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
}

.sidebar-recent__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.sidebar-recent__link {
    color: #494a5e;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    display: block;

    &:hover {
        background-color: #e6faf0;
    }
}

/* Newsletter */
.sidebar-newsletter {
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 24px;
}

.sidebar-newsletter__icon {
    width: 41px;
    height: 41px;
    border-radius: 5px;
    background: var(--mercos-primary);
}

.sidebar-newsletter__title {
    font-size: 20px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
    margin: 16px 0 4px;
}

.sidebar-newsletter__subtitle {
    color: #494a5e;
    font-size: 14px;
}

.sidebar-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field__input {
    height: 44px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    font-size: 16px;
}

.sidebar-newsletter__note {
    text-align: center;
    font-size: 11px;
    color: #494a5e;
}

/* Category highlight */
.sidebar-category-highlight__media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-category-highlight__img,
.sidebar-category-highlight__img-placeholder {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.sidebar-category-highlight__overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.sidebar-category-highlight__content {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-category-highlight__title {
    font-size: 28px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
}

.sidebar-category-highlight__desc {
    color: #fff;
    font-size: 14px;
}

/* Social */
.sidebar-social__title {
    font-size: 20px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-weight: 700;
}

.sidebar-social__list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-social__item {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
        background-color: rgba(102, 57, 145, .3);
    }
}


/* Single Post Page */
.single-post-page {
    background: #fff;
}

.single-post-sections {
    padding: 48px 0;
}

.single-post-sections__content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Post Header */
.post-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-header__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-header__category {
    color: var(--mercos-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
}

.post-header__title {
    color: var(--mercos-text);
    font-size: 36px;
    font-weight: 700;
    line-height: 42px;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    margin: 0;
}

.post-header__info {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.post-header__author,
.post-header__reading-time,
.post-header__publish-date,
.post-header__update-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-header__author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    outline: 1px solid #e0e0e0;
}

.post-header__author-name {
    color: #4b4b4b;
    font-size: 12px;
    font-family: "Open Sans", Arial, sans-serif;
}

.post-header__reading-time span,
.post-header__publish-date span,
.post-header__update-date span {
    color: #4b4b4b;
    font-size: 12px;
    font-family: "Open Sans", Arial, sans-serif;
}

.post-header__icon {
    width: 24px;
    height: 24px;
    color: #4b4b4b;
}

/* Post Featured Image */

.post-featured__img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.post-featured__img-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    background: #f0f0f0;
}

/* Post Content */
.post-content {
    color: var(--mercos-body);
    font-size: 16px;
    line-height: 1.6;
}

.post-content p {
    margin: 16px 0;
}

.post-content h2 {
    color: var(--mercos-text);
    font-size: 28px;
    font-weight: 700;
    margin: 32px 0 16px;
}

.post-content h3 {
    color: var(--mercos-text);
    font-size: 22px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.post-content a {
    color: var(--mercos-primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--mercos-secondary);
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 8px;
}

.wp-block-rank-math-toc-block {
    padding: 1rem;
}

/* Author Box */
.post-author-box {
    background: var(--mercos-primary);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 26px;
    margin-top: 16px;
    max-width: 600px;
}

.post-author-box__avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    border: 2px solid #fff;
    outline: 1px solid #fff;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-box__info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.post-author-box__name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    line-height: 1.2;
}

.post-author-box__role {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
}

.post-author-box__bio {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
}

.ast-width-md-4 {
    width: 100% !important;
}

.ast-separate-container .ast-separate-posts.ast-article-post {
    margin: 0 !important;
}



/* Responsive */
@media (min-width: 768px) {
    .category-block:first-child .category-block__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        align-items: start;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1460px;
    }
}

@media (min-width: 1200px) and (max-width: 1367px) {
    .container {
        max-width: 1250px;
    }
}

@media (min-width: 768px) and (max-width: 1367px) {
    .blog-feature__title {
        font-size: 2rem;
    }

    .post-header__title {
        font-size: 32px;
    }
}

@media (min-width: 768px) and (max-width: 1280px) {

    .mercos-nav__item a,
    .mercos-nav__dropdown-toggle {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .blog-feature__content {
        width: 100%;
    }

    .blog-feature__image {
        width: 100%;
    }

    .blog-sections__container {
        flex-direction: column;
    }

    .blog-sections__content {
        width: 100%;
    }

    .blog-sidebar {
        width: 100%;
    }

    .category-block__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post-sections {
        padding: 32px 0;
    }

    .post-header__title {
        font-size: 28px;
        line-height: 34px;
    }

    .post-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-author-box__avatar {
        width: 80px;
        height: 80px;
    }

    .mercos-search-toggle {
        background-color: #EEE6F8 !important;
        padding: 1rem;
        border-radius: 100%;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .category-block__grid {
        grid-template-columns: 1fr;
    }

    .blog-feature__cta {
        background-color: rgba(102, 57, 145, .1);
    }

    .blog-feature__title {
        font-size: 2rem;
    }

    .single-post-sections__content {
        gap: 16px;
    }

    .blog-sections__row {
        gap: 3rem;
    }

    .blog-feature {
        & .row {
            gap: 2rem;
        }
    }

    .post-card__media {
        width: 100% !important;
    }

    .post-header {
        padding-bottom: 16px;
    }

    .post-header__info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .post-header__title {
        font-size: 24px;
        line-height: 28px;
    }

    .post-content {
        font-size: 14px;
    }

    .post-content h2 {
        font-size: 22px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    .post-author-box {
        padding: 20px;
        gap: 16px;
        margin: 0;
    }

    .post-author-box__name {
        font-size: 14px;
    }


    .mercos-related__grid {
        display: flex;
        flex-direction: column;
    }

    .post-author-box__bio {
        font-size: 12px;
    }

    .category-block__grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .mercos-brand {
        flex: 1;
    }
}