/* ===== BLOG LISTING ===== */
.blog__hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}
.blog__hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.blog__hero-shadow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, hsla(0,0%,0%,.6) 0%, hsl(0,0%,0%) 100%);
}
.blog__hero-content {
    position: relative;
}
.blog__hero-title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    margin-bottom: .75rem;
}
.blog__hero-desc {
    color: var(--text-color);
    max-width: 500px;
    margin-inline: auto;
}

.blog__section {
    padding-block: 4rem 5rem;
}
.blog__grid {
    display: grid;
    grid-template-columns: 320px;
    justify-content: center;
    gap: 2rem;
}
.blog__card {
    background-color: var(--container-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .3s;
}
.blog__card:hover {
    transform: translateY(-5px);
}
.blog__card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.blog__card:hover .blog__card-img {
    transform: scale(1.05);
}
.blog__card-img-wrap {
    overflow: hidden;
}
.blog__card-body {
    padding: 1.25rem;
}
.blog__card-date {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    margin-bottom: .4rem;
}
.blog__card-title {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: .75rem;
    line-height: 1.4;
}
.blog__card-excerpt {
    font-size: var(--small-font-size);
    margin-bottom: 1.1rem;
    line-height: 1.7;
}
.blog__card-link {
    display: inline-flex;
    align-items: center;
    column-gap: .35rem;
    color: #4a9eff;
    font-size: var(--small-font-size);
    font-family: var(--second-font);
    font-weight: var(--font-medium);
    transition: color .3s;
}
.blog__card-link:hover {
    color: #85c1ff;
}

/* ===== BLOG POST ===== */
.post__header {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 3rem;
    text-align: center;
    overflow: hidden;
}
.post__header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(.35);
}
.post__header-content {
    position: relative;
}
.post__back {
    display: inline-flex;
    align-items: center;
    column-gap: .4rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: 1.25rem;
    transition: color .3s;
}
.post__back:hover {
    color: var(--title-color);
}
.post__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    line-height: 1.3;
    margin-bottom: .75rem;
}
.post__meta {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.post__container {
    max-width: 780px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}
.post__img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    max-height: 420px;
    object-fit: cover;
}
.post__content h2 {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}
.post__content p {
    margin-bottom: 1.25rem;
    line-height: 1.85;
}
.post__content ul,
.post__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.post__content ul { list-style: disc; }
.post__content ol { list-style: decimal; }
.post__content li {
    margin-bottom: .5rem;
    line-height: 1.8;
}
.post__content strong {
    color: var(--title-color);
}

.post__cta {
    background-color: var(--container-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}
.post__cta h3 {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    margin-bottom: .75rem;
}
.post__cta p {
    margin-bottom: 1.5rem;
}
.post__cta .button {
    border-radius: 5px;
}

/* ===== RESPONSIVE ===== */
@media screen and (min-width: 576px) {
    .blog__grid {
        grid-template-columns: repeat(2, 280px);
    }
}
@media screen and (min-width: 900px) {
    .blog__grid {
        grid-template-columns: repeat(3, 320px);
    }
    .blog__hero-title {
        font-size: var(--h1-font-size);
    }
}
@media screen and (min-width: 1152px) {
    .post__container {
        padding-inline: 0;
    }
}