/* Blog */
.max-blog-filter {
    padding: 55px 0 30px;
    background-color: var(--white);
}

.max-blog-filter__heading {
    max-width: 850px;
    margin: 0 auto 42px;
    text-align: center;
}

.max-blog-filter__heading h2 {
    margin: 0 0 28px;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

.max-blog-filter__intro {
    margin: 0 0 22px;
    color: var(--black);
    font-size: 0.95rem;
    line-height: 1.6;
}

.max-blog-filter__description {
    margin: 0;
    color: var(--black);
    font-size: 0.95rem;
    line-height: 1.6;
}

.max-blog-filter__form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    max-width: 890px;
    margin: 0 auto;
}

.max-blog-filter__search,
.max-blog-filter__select {
    display: flex;
    height: 46px;
    overflow: hidden;
    border: 1px solid #a8e8cf;
    border-radius: 8px;
}

.max-blog-filter__search {
    flex: 1;
    max-width: 335px;
}

.max-blog-filter__search input {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    color: var(--black);
    background: var(--white);
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
}

.max-blog-filter__search button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 45px;
    color: var(--primary);
    background-color: #a8e8cf;
    border: 0;
}

.max-blog-filter__search button span {
    display: flex;
    width: 22px;
    height: 22px;
}

.max-blog-filter__search button svg {
    width: 100%;
    height: 100%;
}

.max-blog-filter__select {
    position: relative;
    flex: 1;
    max-width: 335px;
}

.max-blog-filter__select select {
    width: 100%;
    min-width: 0;
    padding: 0 45px 0 14px;
    color: var(--black);
    background-color: var(--white);
    border: 0;
    outline: none;
    appearance: none;
    font-family: inherit;
    font-size: 0.85rem;
}

.max-blog-filter__select::after {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    color: var(--primary);
    background-color: #a8e8cf;
    content: "▼";
    font-size: 0.85rem;
    pointer-events: none;
}

.max-blog-filter__reset {
    flex: 0 0 116px;
    height: 46px;
    color: #07845f;
    background-color: #a8e8cf;
    border: 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.max-blog-filter__reset:hover {
    background-color: #8bdcba;
}

/* Responsive */
@media (max-width: 991.98px) {
    .max-blog-filter__form {
        gap: 15px;
    }
}

@media (max-width: 767.98px) {
    .max-blog-filter {
        padding: 45px 0 30px;
    }

    .max-blog-filter__heading {
        margin-bottom: 30px;
    }

    .max-blog-filter__heading h2 {
        margin-bottom: 18px;
    }

    .max-blog-filter__form {
        flex-wrap: wrap;
        gap: 12px;
    }

    .max-blog-filter__search,
    .max-blog-filter__select {
        flex: 1 1 calc(50% - 6px);
        max-width: none;
    }

    .max-blog-filter__reset {
        flex: 1 1 100%;
    }
}

@media (max-width: 575.98px) {
    .max-blog-filter__form {
        flex-direction: column;
        align-items: stretch;
    }

    .max-blog-filter__search,
    .max-blog-filter__select,
    .max-blog-filter__reset {
        width: 100%;
        max-width: none;
        flex: none;
    }

    .max-blog-filter__heading h2 {
        font-size: 1.55rem;
    }

    .max-blog-filter__intro,
    .max-blog-filter__description {
        font-size: 0.88rem;
    }
}

/* Blog Posts */
.max-blog-posts {
    padding: 30px 0 50px;
    background-color: var(--mint-cream);
}

.max-blog-posts__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--white);
    border-radius: 12px;
}

.max-blog-posts__image {
    display: block;
    width: 100%;
    height: 188px;
    overflow: hidden;
}

.max-blog-posts__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.max-blog-posts__card:hover .max-blog-posts__image img {
    transform: scale(1.04);
}

.max-blog-posts__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 15px 16px;
}

.max-blog-posts__content h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.max-blog-posts__content h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.max-blog-posts__content h3 a:hover {
    color: var(--secondary);
}

.max-blog-posts__content p {
    margin: 0 0 18px;
    color: var(--black);
    font-size: 0.85rem;
    line-height: 1.7;
}

.max-blog-posts__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: auto;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.max-blog-posts__link span {
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.max-blog-posts__link:hover span {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991.98px) {
    .max-blog-posts {
        padding: 25px 0 40px;
    }

    .max-blog-posts__image {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .max-blog-posts {
        padding: 25px 0 35px;
    }

    .max-blog-posts__image {
        height: 190px;
    }
}

@media (max-width: 575.98px) {
    .max-blog-posts__image {
        height: 210px;
    }

    .max-blog-posts__content {
        padding: 15px;
    }
}