/* Blogs listing — Figma node 1638:19449 */

.blogs-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    padding: clamp(4rem, 8.333vw, 120px) 0;
    background-color: #e8f9fc;
    background-image: var(--blogs-hero-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.blogs-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    text-align: center;
    padding: 0 1rem;
}

.blogs-hero__title {
    margin: 0;
    max-width: 997px;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.33vw, 48px);
    line-height: 1.3;
    color: #150f2d;
}

.blogs-hero__description {
    margin: 0;
    max-width: 850px;
    font-size: 18px;
    line-height: 1.48;
    color: #544f69;
}

.blogs-section {
    padding: 80px 0;
    background: #fff;
}

.blogs-section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.blogs-section__title {
    margin: 0;
    flex: 1 1 280px;
    max-width: 605px;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 34px);
    line-height: 1.4;
    color: #150f2d;
}

.blogs-section__filters {
    display: flex;
    flex: 1 1 270px;
    align-items: center;
    gap: 24px;
    min-width: min(100%, 270px);
    max-width: 100%;
    height: 54px;
    padding: 0 24px;
    border: 1px solid #e7e9ec;
    border-radius: 24px;
    background: #f7f7f7;
    overflow: visible;
}

.blogs-filter {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.blogs-filter--search {
    flex: 0 1 228px;
    min-width: 0;
}

.blogs-filter--search .blogs-filter__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 14px;
}

.blogs-filter--search .blogs-filter__icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.blogs-filter--search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #544f69;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}

.blogs-filter--search input::placeholder {
    color: #544f69;
}

.blogs-filter__divider {
    flex-shrink: 0;
    width: 1px;
    height: 24px;
    background: #e7e9ec;
}

.blogs-filter--category {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.blogs-filter--category .blogs-custom-select {
    width: 100%;
}

.blogs-filter--category .blogs-custom-select.is-open {
    z-index: 30;
}

.blogs-filter--category .contact-custom-select__trigger {
    min-height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 28px 0 0;
    color: #544f69;
    font: 400 14px/1.5 "Open Sans", sans-serif;
}

.blogs-filter--category .blogs-custom-select .contact-custom-select__value {
    color: #544f69;
    font-size: 14px;
    line-height: 1.5;
}

.blogs-filter--category .blogs-custom-select .contact-custom-select__chevron {
    width: 18px;
    height: 18px;
    border: 0;
    margin-top: 0;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blogs-filter--category .blogs-custom-select .contact-custom-select__chevron img {
    width: 18px;
    height: 18px;
    display: block;
}

.blogs-filter--category .blogs-custom-select.is-open .contact-custom-select__chevron {
    transform: rotate(180deg);
    margin-top: 0;
}

.blogs-filter--category .contact-custom-select__menu {
    width: 100%;
    min-width: 180px;
}

.blogs-section__empty {
    margin: 0 0 24px;
    color: #544f69;
    font-size: 16px;
    line-height: 1.48;
}

.blogs-section__empty[hidden],
.blogs-grid[hidden] {
    display: none;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.blog-card__media {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 902 / 540;
}

.blog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-card__title {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.48;
    color: #150f2d;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: #055e98;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: fit-content;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    color: #055e98;
    text-decoration: none;
}

.blog-card__link:hover {
    text-decoration: underline;
}

.blog-card__link-icon {
    width: 14px;
    height: 14px;
    background: url("../images/case-studies-card-arrow.svg") center / contain no-repeat;
}

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

@media (max-width: 768px) {
    .blogs-section {
        padding: 60px 0;
    }

    .blogs-section__header {
        align-items: stretch;
    }

    .blogs-section__filters {
        flex-wrap: wrap;
        height: auto;
        min-height: 54px;
        padding: 12px 20px;
    }

    .blogs-filter__divider {
        display: none;
    }

    .blogs-filter--search,
    .blogs-filter--category {
        flex: 1 1 100%;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
