.wg-blog-page,
.wg-blog-detail {
    padding: 42px 0 72px;
}

.wg-blog-shell {
    max-width: 1160px;
    margin: 0 auto;
}

.wg-blog-heading {
    margin: 0;
    color: #1d2d42;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.wg-blog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(210px, .8fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.wg-blog-search-field,
.wg-blog-category-select {
    position: relative;
}

.wg-blog-search-field svg {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 18px;
    height: 18px;
    color: #718096;
    transform: translateY(-50%);
    pointer-events: none;
}

.wg-blog-search-field svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wg-blog-toolbar input,
.wg-blog-toolbar select {
    width: 100%;
    height: 48px;
    padding: 0 17px;
    color: #334155;
    border: 1px solid #d8e1eb;
    border-radius: 5px;
    background: #fff;
    outline: 0;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wg-blog-toolbar input {
    padding-left: 48px;
}

.wg-blog-toolbar input:focus,
.wg-blog-toolbar select:focus {
    border-color: #048ce2;
    box-shadow: 0 0 0 3px rgba(4, 140, 226, .10);
}

.wg-blog-toolbar select {
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.wg-blog-category-select::after {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #52657a;
    border-bottom: 1.5px solid #52657a;
    content: '';
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.wg-blog-search-submit {
    height: 48px;
    padding: 0 25px;
    color: #fff;
    border: 1px solid #048ce2;
    border-radius: 5px;
    background: #048ce2;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease;
}

.wg-blog-search-submit:hover,
.wg-blog-search-submit:focus {
    color: #fff;
    border-color: #0278c2;
    background: #0278c2;
}

.wg-blog-filter-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 1px solid #d8e1eb;
    border-radius: 5px;
    background: #fff;
}

.wg-blog-filter-toggle svg {
    width: 19px;
    height: 19px;
    fill: #505050;
}

.wg-blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 34px;
}

.wg-blog-topic {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 16px;
    color: #4d6075;
    border: 1px solid #d8e1eb;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.wg-blog-topic:hover,
.wg-blog-topic:focus {
    color: #048ce2;
    border-color: #048ce2;
}

.wg-blog-topic.is-active {
    color: #fff;
    border-color: #048ce2;
    background: #048ce2;
}

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

.wg-blog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wg-blog-card:hover {
    border-color: #c7d6e5;
    box-shadow: 0 12px 28px rgba(27, 50, 75, .10);
    transform: translateY(-3px);
}

.wg-blog-card__image {
    display: block;
    height: 210px;
    overflow: hidden;
    background: #eef4f8;
}

.wg-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.wg-blog-card:hover .wg-blog-card__image img {
    transform: scale(1.035);
}

.wg-blog-card__body {
    display: flex;
    min-height: 236px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
}

.wg-blog-card__title {
    margin: 0;
    color: #26364b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.wg-blog-card__title a {
    color: inherit;
}

.wg-blog-card__title,
.wg-blog-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.wg-blog-card__title {
    min-height: 46px;
    -webkit-line-clamp: 2;
}

.wg-blog-card__excerpt {
    min-height: 66px;
    margin: 12px 0 0;
    color: #68788b;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    -webkit-line-clamp: 3;
}

.wg-blog-card__category {
    margin-top: auto;
    color: #048ce2;
    font-size: 13px;
    font-weight: 700;
}

.wg-blog-card__date {
    margin: 4px 0 0;
    color: #93a1b2;
    font-size: 13px;
}

.wg-blog-empty {
    padding: 48px 24px;
    color: #607086;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #fff;
    text-align: center;
}

.wg-blog-detail__hero {
    height: 340px;
    overflow: hidden;
    border-radius: 5px;
    background: #eef4f8;
}

.wg-blog-detail__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wg-blog-article {
    margin-top: 28px;
    padding: 36px 42px 40px;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #fff;
}

.wg-blog-article__header {
    padding-bottom: 28px;
    border-bottom: 1px solid #e4ebf2;
}

.wg-blog-article__title {
    margin: 0 0 8px;
    color: #26364b;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.wg-blog-article__category {
    margin: 0;
    color: #048ce2;
    font-size: 14px;
    font-weight: 700;
}

.wg-blog-article__content {
    padding-top: 28px;
    color: #2f3e52;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.wg-blog-article__content > :last-child {
    margin-bottom: 0;
}

.wg-blog-article__content h2,
.wg-blog-article__content h3,
.wg-blog-article__content h4 {
    color: #26364b;
    font-weight: 700;
}

.wg-blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e4ebf2;
}

.wg-blog-share__label {
    flex: 0 0 auto;
    margin: 0;
    color: #7d8d9f;
    font-size: 14px;
}

.wg-blog-share .aiz-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wg-blog-share .aiz-share > * {
    margin: 0 !important;
}

.wg-blog-recommended {
    margin-top: 52px;
}

.wg-blog-recommended__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.wg-blog-recommended__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #048ce2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wg-blog-recommended__title {
    margin: 0;
    color: #26364b;
    font-size: 24px;
    font-weight: 700;
}

.wg-blog-recommended__link {
    color: #048ce2;
    font-size: 14px;
    font-weight: 700;
}

.wg-blog-recommended .wg-blog-card__image {
    height: 170px;
}

.wg-blog-recommended .wg-blog-card__body {
    min-height: 220px;
    padding: 18px;
}

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

@media (max-width: 767.98px) {
    .wg-blog-page,
    .wg-blog-detail {
        padding: 26px 0 46px;
    }

    .wg-blog-heading {
        font-size: 26px;
    }

    .wg-blog-toolbar {
        display: none;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .wg-blog-toolbar.is-open {
        display: grid;
    }

    .wg-blog-filter-toggle {
        display: inline-flex;
    }

    .wg-blog-topics {
        margin: 18px 0 26px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .wg-blog-topic {
        flex: 0 0 auto;
    }

    .wg-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wg-blog-card__image {
        height: 200px;
    }

    .wg-blog-detail__hero {
        height: 210px;
    }

    .wg-blog-article {
        margin-top: 18px;
        padding: 26px 20px 30px;
    }

    .wg-blog-article__title {
        font-size: 25px;
    }

    .wg-blog-article__content {
        font-size: 15px;
    }

    .wg-blog-share {
        align-items: flex-start;
        gap: 12px;
    }

    .wg-blog-recommended {
        margin-top: 38px;
    }

    .wg-blog-recommended__title {
        font-size: 21px;
    }

    .wg-blog-recommended__link {
        display: none;
    }
}
