/* Blog e materiais: o shell institucional permanece em site.css. */

.desktop-nav > li,
.mobile-nav-inner > li {
    list-style: none;
}

.desktop-nav > .menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-inner > .menu {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    list-style: none;
}

.desktop-nav > li > a:not(.button) {
    position: relative;
}

.desktop-nav > li > a:not(.button)::after {
    position: absolute;
    right: 100%;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--coral);
    content: '';
    transition: right .2s ease;
}

.desktop-nav > li > a:not(.button):hover::after,
.desktop-nav > li > a:not(.button):focus-visible::after {
    right: 0;
}

.desktop-nav > .menu > li {
    list-style: none;
}

.desktop-nav > .menu > li > a:not(.button) {
    position: relative;
}

.desktop-nav > .menu > li > a:not(.button)::after {
    position: absolute;
    right: 100%;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--coral);
    content: '';
    transition: right .2s ease;
}

.desktop-nav > .menu > li > a:not(.button):hover::after,
.desktop-nav > .menu > li > a:not(.button):focus-visible::after {
    right: 0;
}

.mobile-nav-inner > li > a {
    display: block;
    padding: 16px 3px;
    border-bottom: 1px solid var(--line);
    font: 400 1.45rem/1.2 var(--title);
}

.mobile-nav-inner > .menu > li {
    list-style: none;
}

.mobile-nav-inner > .menu > li > a {
    display: block;
    padding: 16px 3px;
    border-bottom: 1px solid var(--line);
    font: 400 1.45rem/1.2 var(--title);
}

.blog-hero {
    padding: 184px 0 105px;
    color: #fff;
    background: var(--dark-deep);
}

.blog-hero h1 {
    max-width: 780px;
    margin: 18px 0 0;
    font-size: clamp(3rem, 6vw, 6rem);
}

.blog-hero p {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
}

.blog-list {
    background: var(--cream);
}

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

.blog-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.blog-card > a:first-child {
    display: block;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
    background: var(--blush);
}

.blog-card > a:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f2ef;
    transition: transform .35s ease;
}

.blog-card:hover > a:first-child img,
.blog-card:focus-within > a:first-child img {
    transform: scale(1.03);
}

.blog-card-placeholder {
    display: grid;
    min-height: 215px;
    place-items: center;
    color: var(--coral-dark);
    background: linear-gradient(135deg, var(--blush), #f4d9d3);
    font: 3rem var(--title);
}

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

.blog-card-meta,
.post-meta {
    color: var(--coral-dark);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 16px 0 12px;
    font: 400 1.8rem/1.1 var(--title);
}

.blog-card h3 {
    margin: 16px 0 12px;
    font: 400 1.55rem/1.1 var(--title);
}

.blog-card h2 a:hover {
    color: var(--coral-dark);
}

.blog-card-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
}

.blog-card .text-button {
    margin-top: auto;
    padding-top: 24px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 58px;
}

.pagination .page-numbers {
    display: inline-grid;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: .75rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus-visible {
    border-color: var(--coral);
    background: var(--coral);
    color: #fff;
}

.post-page,
.page-shell {
    padding-top: 176px;
    padding-bottom: 110px;
    background: var(--cream);
}

.post-header {
    max-width: 880px;
    margin: 0 auto 54px;
    text-align: center;
}

.post-header h1,
.page-shell h1 {
    margin: 18px 0 0;
    font-size: clamp(2.8rem, 5vw, 5.5rem);
}

.post-featured {
    display: block;
    width: min(100%, 980px);
    max-height: 590px;
    margin: 0 auto 58px;
    border-radius: var(--radius);
    object-fit: contain;
    background: var(--blush);
}

.post-content,
.page-content {
    width: min(100%, 780px);
    margin: auto;
    color: #57494b;
    font-size: 1.04rem;
    line-height: 1.85;
}

.page-content-elementor {
    width: 100%;
    max-width: none;
}

.page-content-elementor > .elementor {
    width: 100%;
}

.post-content > * + *,
.page-content > * + * {
    margin-top: 1.45em;
}

.post-content h2,
.post-content h3,
.page-content h2,
.page-content h3 {
    color: var(--dark-deep);
    font-family: var(--title);
    font-weight: 400;
    line-height: 1.15;
}

.post-content a,
.page-content a {
    color: var(--coral-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    padding-left: 1.4em;
}

.post-content img,
.page-content img {
    height: auto;
    max-width: 100%;
    border-radius: 18px;
}

.post-content figure,
.page-content figure {
    margin-right: 0;
    margin-left: 0;
}

.post-content figcaption,
.page-content figcaption {
    margin-top: 9px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.5;
    text-align: center;
}

.post-content blockquote,
.page-content blockquote {
    margin-right: 0;
    margin-left: 0;
    padding: 22px 26px;
    border-left: 3px solid var(--coral);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--blush);
    color: var(--dark-deep);
    font: 400 1.35rem/1.45 var(--title);
}

.post-content table,
.page-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: .88rem;
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
    padding: 11px 14px;
    border: 1px solid var(--line);
    text-align: left;
}

.post-content th,
.page-content th {
    background: var(--blush);
    color: var(--dark-deep);
}

.post-content iframe,
.post-content video,
.post-content embed,
.post-content object,
.page-content iframe,
.page-content video,
.page-content embed,
.page-content object {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 18px;
}

.post-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: min(100%, 780px);
    margin: 64px auto 0;
}

.post-navigation a {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font: 400 1.15rem/1.25 var(--title);
}

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

.related-posts {
    margin-top: 94px;
    border-top: 1px solid var(--line);
}

.empty-state {
    padding: 80px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
}

.materials-intro {
    max-width: 720px;
    margin: 0 auto 54px;
    text-align: center;
}

.materials-intro h1 {
    margin: 18px 0 0;
    font-size: clamp(2.8rem, 5vw, 5.5rem);
}

.materials-intro p {
    max-width: 600px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 1rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.material-card {
    display: flex;
    min-height: 230px;
    padding: 30px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.material-card:hover,
.material-card:focus-visible {
    border-color: rgba(201, 120, 112, .45);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.material-card-type,
.material-card-action {
    color: var(--coral-dark);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.material-card strong {
    max-width: 270px;
    color: var(--dark-deep);
    font: 400 1.8rem/1.1 var(--title);
}

@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .blog-hero {
        padding: 142px 0 78px;
    }

    .blog-grid,
    .post-navigation,
    .materials-grid {
        grid-template-columns: 1fr;
    }

    .post-page,
    .page-shell {
        padding-top: 132px;
        padding-bottom: 80px;
    }

    .post-featured {
        margin-bottom: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card > a:first-child img {
        transition: none;
    }
}
