:root {
    --blog-orange: #ff6200;
    --blog-orange-dark: #e85800;
    --blog-green: #73b942;
    --blog-ink: #101111;
    --blog-dark: #080909;
    --blog-paper: #f1f1ee;
    --blog-white: #ffffff;
    --blog-display: "Teko", sans-serif;
    --blog-body: "Poppins", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--blog-white);
    background: var(--blog-dark);
    font-family: var(--blog-body);
}

.blog-page {
    overflow: hidden;
    background: var(--blog-dark);
}

.blog-container {
    width: min(90%, 1240px);
    margin: 0 auto;
}

.blog-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #080909;
    background-image:
        linear-gradient(90deg, rgba(4, 5, 5, 0.97) 0%, rgba(4, 5, 5, 0.8) 44%, rgba(4, 5, 5, 0.2) 72%, rgba(4, 5, 5, 0.28) 100%),
        url("../assets/imagens-fundo/blog-brutusmaq-background.webp");
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, auto 100%;
}

.blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 62%, rgba(0, 0, 0, 0.72));
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 650px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 30px 0 32px;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.blog-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.blog-breadcrumb span {
    color: var(--blog-orange);
}

.blog-breadcrumb strong {
    font-weight: 500;
}

.blog-hero-copy {
    width: min(100%, 680px);
    align-self: center;
    padding: 38px 0;
}

.blog-eyebrow,
.blog-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blog-orange);
    font-family: var(--blog-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.blog-eyebrow::before,
.blog-section-label::before {
    content: "";
    width: 34px;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
}

.blog-hero h1 {
    max-width: 680px;
    margin: 18px 0 20px;
    font-family: var(--blog-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: 0;
    text-transform: uppercase;
}

.blog-hero h1 strong {
    color: var(--blog-orange);
    font: inherit;
}

.blog-hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.7;
}

.blog-hero-link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding: 12px 22px;
    border-radius: 4px;
    color: #ffffff;
    background: var(--blog-orange);
    font-family: var(--blog-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, transform 180ms ease;
}

.blog-hero-link:hover {
    transform: translateY(-2px);
    background: var(--blog-orange-dark);
}

.blog-topics {
    width: min(100%, 850px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    list-style: none;
}

.blog-topics li {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-right: 18px;
}

.blog-topics img {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    object-fit: contain;
}

.blog-topics span {
    font-family: var(--blog-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 0.95;
    text-transform: uppercase;
}

.blog-layout-section {
    padding: 100px 0 110px;
    color: var(--blog-ink);
    background: var(--blog-paper);
}

.blog-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 46px;
}

.blog-section-heading h2 {
    max-width: 720px;
    margin: 17px 0 0;
    color: var(--blog-ink);
    font-family: var(--blog-display);
    font-size: 48px;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.blog-section-heading > p {
    margin: 0;
    color: #5e6060;
    font-size: 14px;
    line-height: 1.75;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: start;
}

.blog-main-column {
    min-width: 0;
}

.blog-results-bar {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(16, 17, 17, 0.16);
}

.blog-results-bar strong {
    color: #555757;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-results-bar button {
    padding: 0;
    border: 0;
    color: var(--blog-orange-dark);
    background: transparent;
    cursor: pointer;
    font: 600 12px var(--blog-body);
    text-transform: uppercase;
}

.blog-results-bar button[hidden] {
    display: none;
}

.blog-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-article-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 17, 17, 0.14);
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 180ms ease, transform 180ms ease;
}

.blog-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 88, 0, 0.5);
}

.blog-article-card > a {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.blog-article-featured {
    grid-column: 1 / -1;
}

.blog-article-featured > a {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.blog-card-media {
    position: relative;
    height: 230px;
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
    background: #121413;
}

.blog-article-featured .blog-card-media {
    height: 100%;
    min-height: 380px;
}

.blog-card-media::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.blog-card-media > span {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px 2px;
    border-radius: 3px;
    color: #ffffff;
    background: var(--blog-orange-dark);
    font-family: var(--blog-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.blog-card-media img {
    position: relative;
    z-index: 1;
    width: 76%;
    height: 76%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.5));
    transition: transform 220ms ease;
}

.blog-article-card:hover .blog-card-media img {
    transform: scale(1.035);
}

.blog-media-machine {
    background: linear-gradient(145deg, #252826, #0d0f0e);
}

.blog-media-maintenance {
    background: linear-gradient(145deg, #24211d, #0e0f0e);
}

.blog-media-plastic {
    background: linear-gradient(145deg, #1c281e, #0b0f0c);
}

.blog-media-conveyor {
    background: linear-gradient(145deg, #182526, #0b0e0e);
}

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

.blog-article-featured .blog-card-body {
    justify-content: center;
    padding: 42px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #777979;
    font-size: 11px;
}

.blog-card-meta span::before {
    content: "·";
    margin-right: 14px;
    color: var(--blog-orange-dark);
}

.blog-card-body h3 {
    margin: 17px 0 12px;
    color: var(--blog-ink);
    font-family: var(--blog-display);
    font-size: 29px;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: 0;
    text-transform: uppercase;
}

.blog-article-featured .blog-card-body h3 {
    font-size: 40px;
}

.blog-card-body p {
    margin: 0 0 24px;
    color: #656767;
    font-size: 13px;
    line-height: 1.7;
}

.blog-card-body > strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--blog-orange-dark);
    font-family: var(--blog-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.blog-empty-state {
    min-height: 300px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 34px;
    border-top: 1px solid rgba(16, 17, 17, 0.2);
    border-bottom: 1px solid rgba(16, 17, 17, 0.2);
}

.blog-empty-state[hidden] {
    display: none;
}

.blog-empty-state h3 {
    margin: 0;
    font-family: var(--blog-display);
    font-size: 32px;
    line-height: 1;
    text-transform: uppercase;
}

.blog-empty-state p,
.blog-sidebar-empty {
    margin: 0;
    color: #666868;
    font-size: 13px;
    line-height: 1.6;
}

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

.blog-pagination[hidden] {
    display: none;
}

.blog-sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

.blog-search,
.blog-sidebar-panel,
.blog-help-panel {
    border-radius: 6px;
}

.blog-search {
    position: relative;
    min-height: 54px;
    border: 1px solid rgba(16, 17, 17, 0.18);
    background: #ffffff;
}

.blog-search label,
.blog-newsletter-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.blog-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 52px 0 16px;
    border: 0;
    outline: 0;
    color: var(--blog-ink);
    background: transparent;
    font: 500 13px var(--blog-body);
}

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

.blog-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: var(--blog-orange-dark);
    background: transparent;
    cursor: pointer;
}

.blog-search-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: block;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.blog-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

.blog-sidebar-panel {
    overflow: hidden;
    border: 1px solid rgba(16, 17, 17, 0.14);
    background: #ffffff;
}

.blog-sidebar h2 {
    margin: 0;
    padding: 20px 18px 16px;
    color: var(--blog-ink);
    font-family: var(--blog-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.blog-sidebar-link,
.blog-popular-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    border-top: 1px solid rgba(16, 17, 17, 0.1);
    color: #555757;
    font-size: 12px;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.blog-sidebar-link:hover,
.blog-sidebar-link.is-active {
    color: var(--blog-orange-dark);
    background: #f8f8f6;
}

.blog-sidebar-link span {
    min-width: 27px;
    min-height: 23px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    color: var(--blog-orange-dark);
    background: rgba(232, 88, 0, 0.09);
    font-size: 10px;
    font-weight: 700;
}

.blog-popular-link {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.blog-popular-link > span {
    flex: 0 0 auto;
    color: var(--blog-orange-dark);
    font-family: var(--blog-display);
    font-size: 23px;
    line-height: 1;
}

.blog-popular-link strong {
    color: #454747;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.blog-popular-link:hover strong {
    color: var(--blog-orange-dark);
}

.blog-sidebar-empty {
    padding: 0 18px 18px;
}

.blog-help-panel {
    padding: 26px 22px;
    color: #ffffff;
    background: #141616;
}

.blog-help-panel img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.blog-help-panel h2 {
    margin-top: 24px;
    padding: 0;
    color: #ffffff;
    font-size: 28px;
}

.blog-help-panel p {
    margin: 10px 0 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.65;
}

.blog-help-panel a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--blog-orange);
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--blog-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.blog-newsletter {
    color: #ffffff;
    background: var(--blog-orange-dark);
}

.blog-newsletter-inner {
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 80px;
    align-items: center;
    padding: 64px 0;
}

.blog-newsletter-copy {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 22px;
    align-items: start;
}

.blog-newsletter-copy > img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.blog-newsletter .blog-section-label {
    color: #191a1a;
}

.blog-newsletter h2 {
    max-width: 650px;
    margin: 17px 0 0;
    font-family: var(--blog-display);
    font-size: 48px;
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: 0;
    text-transform: uppercase;
}

.blog-newsletter h2 strong {
    color: #191a1a;
    font: inherit;
}

.blog-newsletter p {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.7;
}

.blog-newsletter-form {
    position: relative;
    display: grid;
    gap: 10px;
}

.blog-newsletter-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.blog-newsletter-form input {
    min-width: 0;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 4px;
    outline: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.1);
    font: 500 13px var(--blog-body);
}

.blog-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.blog-newsletter-form input:focus {
    border-color: #ffffff;
}

.blog-newsletter-form button {
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background: #151616;
    cursor: pointer;
    font-family: var(--blog-display);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-newsletter-form small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 1120px) {
    .blog-container {
        width: min(92%, 1040px);
    }

    .blog-hero h1 {
        font-size: 64px;
    }

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

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

    .blog-search,
    .blog-help-panel {
        grid-column: 1 / -1;
    }

    .blog-help-panel {
        display: grid;
        grid-template-columns: 42px 1fr auto;
        gap: 8px 20px;
        align-items: center;
    }

    .blog-help-panel img {
        grid-row: span 2;
    }

    .blog-help-panel h2 {
        margin: 0;
    }

    .blog-help-panel p {
        grid-column: 2;
        margin: 0;
    }

    .blog-help-panel a {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: auto;
        min-width: 190px;
    }
}

@media (max-width: 860px) {
    .blog-hero,
    .blog-hero-inner {
        min-height: 620px;
    }

    .blog-hero {
        background-color: #080909;
        background-image:
            linear-gradient(90deg, rgba(4, 5, 5, 0.97) 0%, rgba(4, 5, 5, 0.85) 60%, rgba(4, 5, 5, 0.5) 100%),
            url("../assets/imagens-fundo/blog-brutusmaq-background.webp");
        background-position: center, 68% center;
        background-repeat: no-repeat;
        background-size: cover, auto 100%;
    }

    .blog-hero-inner {
        padding: 24px 0 28px;
    }

    .blog-hero-copy {
        width: min(100%, 600px);
        padding: 34px 0;
    }

    .blog-hero h1 {
        font-size: 56px;
    }

    .blog-topics img {
        width: 30px;
        height: 30px;
    }

    .blog-topics span {
        font-size: 14px;
    }

    .blog-layout-section {
        padding: 78px 0 84px;
    }

    .blog-section-heading,
    .blog-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-section-heading h2,
    .blog-newsletter h2 {
        font-size: 40px;
    }

    .blog-newsletter-inner {
        min-height: 0;
        padding: 58px 0;
    }
}

@media (max-width: 660px) {
    .blog-container {
        width: calc(100% - 32px);
    }

    .blog-hero,
    .blog-hero-inner {
        min-height: 0;
    }

    .blog-hero {
        background-color: #080909;
        background-image:
            linear-gradient(90deg, rgba(4, 5, 5, 0.97) 0%, rgba(4, 5, 5, 0.91) 62%, rgba(4, 5, 5, 0.66) 100%),
            url("../assets/imagens-fundo/blog-brutusmaq-background.webp");
        background-position: center, 70% center;
        background-repeat: no-repeat;
        background-size: cover, auto 100%;
    }

    .blog-hero-inner {
        display: block;
        padding: 20px 0 24px;
    }

    .blog-breadcrumb {
        font-size: 12px;
    }

    .blog-hero-copy {
        padding: 46px 0 42px;
    }

    .blog-eyebrow,
    .blog-section-label {
        font-size: 15px;
    }

    .blog-eyebrow::before,
    .blog-section-label::before {
        width: 24px;
    }

    .blog-hero h1 {
        margin: 14px 0 18px;
        font-size: 43px;
        line-height: 0.9;
    }

    .blog-hero-copy > p {
        font-size: 14px;
        line-height: 1.65;
    }

    .blog-hero-link {
        width: 100%;
        min-height: 48px;
        margin-top: 24px;
        font-size: 16px;
    }

    .blog-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
        padding-top: 20px;
    }

    .blog-topics li {
        padding-right: 0;
    }

    .blog-topics span {
        font-size: 13px;
    }

    .blog-layout-section {
        padding: 58px 0 64px;
    }

    .blog-section-heading {
        gap: 20px;
        margin-bottom: 32px;
    }

    .blog-section-heading h2,
    .blog-newsletter h2 {
        margin-top: 14px;
        font-size: 34px;
        line-height: 0.98;
    }

    .blog-section-heading > p,
    .blog-newsletter p {
        font-size: 13px;
        line-height: 1.7;
    }

    .blog-article-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .blog-article-featured {
        grid-column: auto;
    }

    .blog-article-featured > a {
        display: flex;
    }

    .blog-card-media,
    .blog-article-featured .blog-card-media {
        height: 210px;
        min-height: 210px;
    }

    .blog-card-body,
    .blog-article-featured .blog-card-body {
        padding: 22px 20px;
    }

    .blog-card-body h3,
    .blog-article-featured .blog-card-body h3 {
        font-size: 28px;
    }

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

    .blog-search,
    .blog-help-panel {
        grid-column: auto;
    }

    .blog-help-panel {
        display: block;
    }

    .blog-help-panel h2 {
        margin-top: 22px;
    }

    .blog-help-panel p {
        margin: 10px 0 20px;
    }

    .blog-help-panel a {
        width: 100%;
        min-width: 0;
    }

    .blog-newsletter-inner {
        gap: 28px;
        padding: 50px 0;
    }

    .blog-newsletter-copy {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }

    .blog-newsletter-copy > img {
        width: 40px;
        height: 40px;
    }

    .blog-newsletter-form > div {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero-link,
    .blog-article-card,
    .blog-card-media img {
        transition: none;
    }
}
