.blog-title,
.blog-detail-title {
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    letter-spacing: 0;
}

.blog-filter-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid #dbe5eb;
    border-radius: 8px;
    background: #fff;
}

.blog-filter-tabs a {
    min-width: 76px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 6px;
    color: #526575;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: .82rem;
    font-weight: 700;
    transition: color 180ms ease, background-color 180ms ease;
}

.blog-filter-tabs a:hover,
.blog-filter-tabs a.is-active {
    color: #fff;
    background: #00677f;
}

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

.blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(5, 22, 38, .06);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 38px rgba(5, 22, 38, .11);
}

.blog-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dce5ea;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.blog-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    background: #00677f;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-type-badge--news {
    color: #051626;
    background: #00d2ff;
}

.blog-type-badge--static {
    position: static;
}

.blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.blog-card__body time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 13px;
    color: #6c7d89;
    font-size: .78rem;
}

.blog-card__body time .material-symbols-outlined {
    color: #00677f;
    font-size: 1rem;
}

.blog-card__body h2,
.blog-card__body h3 {
    margin: 0 0 11px;
    color: #051626;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
}

.blog-card__body h3 {
    font-size: 1.22rem;
}

.blog-card__body p {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: #526575;
    font-size: .92rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #00677f;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: .85rem;
    font-weight: 800;
}

.blog-read-more .material-symbols-outlined {
    font-size: 1.1rem;
    transition: transform 180ms ease;
}

.blog-read-more:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 55px 20px;
    border: 1px dashed #cbd8df;
    border-radius: 8px;
    color: #647783;
    background: #fff;
    text-align: center;
}

.blog-pagination {
    margin-top: 42px;
}

.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr);
    align-items: start;
    gap: clamp(40px, 7vw, 90px);
}

.blog-article-copy {
    color: #3f5361;
    font-size: 1.08rem;
    line-height: 1.95;
}

.blog-article-aside {
    position: sticky;
    top: 112px;
    padding: 25px;
    border-left: 3px solid #00d2ff;
    border-radius: 0 8px 8px 0;
    background: #f2f7f9;
}

.blog-article-aside > .material-symbols-outlined {
    color: #00677f;
    font-size: 2rem;
}

.blog-article-aside h2 {
    margin: 13px 0 8px;
    color: #051626;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.blog-article-aside p {
    margin: 0 0 16px;
    color: #5c707c;
    font-size: .88rem;
    line-height: 1.65;
}

.blog-article-aside a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00677f;
    font-size: .82rem;
    font-weight: 800;
}

.blog-article-aside a .material-symbols-outlined {
    font-size: 1rem;
}

.home-blog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
}

.home-blog-controls {
    display: none;
    gap: 8px;
}

.home-blog-arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #cbdce3;
    border-radius: 50%;
    color: #fff;
    background: #051626;
    box-shadow: 0 8px 20px rgba(5, 22, 38, .16);
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.home-blog-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #00677f;
}

.home-blog-arrow:disabled {
    opacity: .35;
    cursor: default;
}

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

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

@media (max-width: 767px) {
    .blog-hero,
    .blog-detail-hero {
        min-height: 610px;
    }

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

    .blog-filter-tabs {
        width: 100%;
    }

    .blog-filter-tabs a {
        flex: 1;
        min-width: 0;
    }

    .blog-article-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .blog-article-aside {
        position: static;
    }

    .home-blog-heading {
        align-items: center;
        margin-bottom: 28px;
    }

    .home-blog-controls {
        display: flex;
        flex-shrink: 0;
    }

    .home-blog-track {
        display: flex;
        gap: 16px;
        margin-inline: -16px;
        padding: 4px 16px 20px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-blog-track::-webkit-scrollbar {
        display: none;
    }

    .home-blog-track .blog-card {
        flex: 0 0 min(82vw, 320px);
        scroll-snap-align: start;
    }
}

@media (max-width: 420px) {
    .home-blog-heading {
        align-items: flex-end;
    }

    .home-blog-heading h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .home-blog-arrow {
        width: 40px;
        height: 40px;
    }

    .blog-card__body {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__image img,
    .blog-read-more .material-symbols-outlined,
    .home-blog-arrow,
    .home-blog-track {
        scroll-behavior: auto;
        transition-duration: .01ms;
    }
}
