.blog-page {
    background: #f7f7f5;
    color: #1f2430;
    font-family: Montserrat, Arial, sans-serif;
}

.blog-hero {
    padding: 86px 20px 54px;
    background: linear-gradient(135deg, rgba(12, 13, 15, 0.94), rgba(48, 52, 58, 0.88)), url("https://back.fazzamotor.com/wp-content/uploads/2025/09/header.webp") center / cover no-repeat;
    color: #fff;
}

.blog-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.blog-eyebrow {
    margin: 0 0 12px;
    color: #c89135;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.blog-hero p {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-main {
    padding: 56px 0 76px;
}

.blog-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.blog-toolbar h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.1;
}

.blog-count {
    color: #707781;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.blog-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e0d8;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(25, 28, 33, 0.07);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9e6df;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

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

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    color: #737a84;
    font-size: 0.82rem;
    font-weight: 600;
}

.blog-chip {
    color: #b9852e;
}

.blog-card h3 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.28;
}

.blog-card h3 a,
.blog-read-link,
.post-back-link {
    color: inherit;
    text-decoration: none;
}

.blog-card p {
    margin: 12px 0 18px;
    color: #555e68;
    line-height: 1.65;
}

.blog-read-link {
    margin-top: auto;
    color: #b9852e;
    font-weight: 800;
}

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

.blog-pagination a,
.blog-pagination span {
    min-width: 42px;
    padding: 12px 14px;
    border: 1px solid #d9d4ca;
    border-radius: 8px;
    background: #fff;
    color: #22262f;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.blog-pagination .current {
    background: #c89135;
    border-color: #c89135;
    color: #fff;
}

.blog-empty,
.blog-error {
    padding: 34px;
    background: #fff;
    border: 1px solid #e4e0d8;
    border-radius: 10px;
    color: #59616b;
}

.post-shell {
    background: #f7f7f5;
    padding: 46px 0 76px;
}

.post-article {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e4e0d8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(25, 28, 33, 0.08);
}

.post-header-block {
    padding: clamp(30px, 5vw, 58px);
    background: linear-gradient(135deg, #15171d, #343943);
    color: #fff;
}

.post-header-block.has-featured-image {
    padding: 0;
    background: #15171d;
}

.post-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #111319;
    display: block;
}

.post-header-content {
    max-width: 780px;
}

.post-header-block.has-featured-image .post-header-content {
    padding: clamp(28px, 5vw, 52px);
}

.post-content-wrap {
    padding: clamp(26px, 5vw, 50px) clamp(30px, 6vw, 70px);
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #b9852e;
    font-weight: 800;
}

.post-title {
    margin: 0;
    color: inherit;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.post-header-block .blog-meta {
    color: rgba(255, 255, 255, 0.72);
}

.post-header-block .post-back-link,
.post-header-block .blog-chip {
    color: #d19a3e;
}

.post-content {
    margin-top: 0;
    color: #2e3540;
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-content > *:first-child {
    margin-top: 0;
}

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

.post-content h2,
.post-content h3 {
    margin-top: 1.7em;
    color: #111722;
    line-height: 1.2;
}

.post-content a {
    color: #b9852e;
    font-weight: 700;
}

.resource-back,
.resource-side-card a,
.resource-cta a {
    text-decoration: none;
}

.resource-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 70px;
}

.resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: start;
}

.resource-article {
    min-width: 0;
}

.resource-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 34px;
    align-items: center;
    margin-bottom: 54px;
}

.resource-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 44px;
    color: #c89135;
    font-size: 0.92rem;
    font-weight: 800;
}

.resource-category {
    margin: 0 0 24px;
    color: #c89135;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.resource-hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.resource-excerpt {
    max-width: 560px;
    margin: 28px 0 0;
    color: #454b55;
    font-size: 1.02rem;
    line-height: 1.75;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 50px;
    color: #555b65;
    font-size: 0.86rem;
    font-weight: 600;
}

.resource-meta i {
    color: #928b82;
    margin-right: 6px;
}

.resource-hero-media {
    overflow: hidden;
    border-radius: 10px;
    background: #111319;
    box-shadow: 0 24px 54px rgba(27, 29, 34, 0.14);
}

.resource-hero-media img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    display: block;
}

.resource-guide {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 56px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e7e2da;
    border-left: 3px solid #c89135;
    border-radius: 6px;
}

.resource-guide strong {
    font-size: 0.82rem;
    text-transform: uppercase;
}

.resource-guide div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.resource-guide a {
    color: #1c222c;
    font-size: 0.85rem;
    text-decoration: none;
}

.resource-guide span {
    display: block;
    color: #c89135;
    font-weight: 800;
}

.resource-content {
    color: #1f2530;
    font-size: 1.02rem;
    line-height: 1.8;
}

.resource-content > *:first-child {
    margin-top: 0;
}

.resource-content h2,
.resource-content h3 {
    position: relative;
    margin: 2.3em 0 0.7em;
    color: #151922;
    line-height: 1.2;
}

.resource-content h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.1rem);
}

.resource-content ul {
    padding-left: 20px;
}

.resource-content li::marker {
    color: #c89135;
}

.resource-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.resource-sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 24px;
}

.resource-side-card {
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(25, 28, 33, 0.06);
}

.resource-side-card h2 {
    margin: 0 0 22px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.resource-side-card > a:not(.resource-popular) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px;
    border-radius: 5px;
    color: #1c222c;
    font-size: 0.9rem;
}

.resource-side-card > a:not(.resource-popular):hover {
    background: #f7f3ed;
}

.resource-side-card i {
    color: #c89135;
}

.resource-popular {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    color: #151922;
}

.resource-popular:last-child {
    margin-bottom: 0;
}

.resource-popular img {
    width: 66px;
    height: 66px;
    border-radius: 6px;
    object-fit: cover;
}

.resource-popular strong,
.resource-popular small {
    display: block;
}

.resource-popular strong {
    font-size: 0.82rem;
    line-height: 1.35;
}

.resource-popular small {
    margin-top: 5px;
    color: #c89135;
    font-size: 0.72rem;
}

.resource-cta {
    padding: 32px 26px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(9, 10, 12, 0.92), rgba(9, 10, 12, 0.82)), url("https://back.fazzamotor.com/wp-content/uploads/2025/09/header.webp") center / cover no-repeat;
    color: #fff;
}

.resource-cta h2 {
    margin: 0 0 16px;
    font-size: 1.55rem;
    line-height: 1.16;
}

.resource-cta p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.resource-cta a {
    display: block;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #c89135;
    border-radius: 4px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.resource-cta a:first-of-type {
    background: #c89135;
}

.resource-not-found {
    min-height: 50vh;
}

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

    .resource-layout,
    .resource-hero {
        grid-template-columns: 1fr;
    }

    .resource-sidebar {
        position: static;
    }

    .resource-guide {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .blog-wrap,
    .post-article {
        width: min(100% - 24px, 1180px);
    }

    .blog-hero {
        padding: 58px 0 40px;
    }

    .blog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .post-shell {
        padding-top: 28px;
    }

    .resource-main {
        width: min(100% - 24px, 1180px);
        padding-top: 34px;
    }

    .resource-back {
        margin-bottom: 28px;
    }

    .resource-meta {
        margin-top: 28px;
    }

    .resource-guide div {
        grid-template-columns: 1fr;
    }
}
