.blog-page {
    padding: 2.5rem 0 4rem;
}

.blog-page .container {
    max-width: 1440px;
}

.blog-shell {
    display: grid;
    gap: 2rem;
}

.blog-hero {
    display: grid;
    gap: 2.2rem;
    padding: 3.25rem 0 1.5rem;
    justify-items: center;
    text-align: center;
}

.blog-hero__title {
    max-width: 1020px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(2.7rem, 5.2vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.038em;
    color: #111827;
    font-weight: 800;
    text-wrap: balance;
}

.blog-hero__intro {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
}

.blog-search {
    display: grid;
    gap: 1.45rem;
    width: 100%;
    justify-items: center;
}

.blog-search__form {
    width: min(100%, 690px);
}

.blog-search__input-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    min-height: 68px;
    padding: 0 0.5rem 0 1.15rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
}

.blog-search__input-wrap i {
    color: #94a3b8;
}

.blog-search__input {
    border: 0;
    background: transparent;
    min-width: 0;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
}

.blog-search__button {
    min-height: 48px;
    padding: 0 1.4rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #19b686 0%, #14956e 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: 0 14px 28px rgba(20, 160, 122, 0.22);
    white-space: nowrap;
}

.blog-search__button:hover {
    background: linear-gradient(135deg, #14956e 0%, #0f7c5d 100%);
}

.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.25rem;
}

.blog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.blog-chip:hover,
.blog-chip.is-active {
    background: #14a07a;
    border-color: #14a07a;
    color: #fff;
}

.blog-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #64748b;
    font-size: 0.85rem;
}

.blog-sort select {
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 0.55rem 0.95rem;
    color: #0f172a;
    background: #fff;
}

.blog-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 1.35rem;
    align-items: start;
}

.blog-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card--featured {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.blog-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}

.blog-card--featured .blog-card__media {
    border-radius: 0;
    aspect-ratio: 16 / 9;
}

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

.blog-card__body {
    display: grid;
    gap: 0.8rem;
    padding: 1.2rem 1.25rem 1.35rem;
}

.blog-card--featured .blog-card__body {
    padding: 1.35rem 1.5rem 1.65rem;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    color: #64748b;
    font-size: 0.8rem;
}

.blog-card__category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: rgba(20, 160, 122, 0.12);
    color: #14a07a;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.blog-card__title {
    margin: 0;
    color: #111827;
    font-size: clamp(1.3rem, 2vw, 2.15rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.blog-card__excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-size: 0.96rem;
}

.blog-sidebar {
    display: grid;
    gap: 1rem;
}

.blog-sidebar__card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
    text-decoration: none;
}

.blog-sidebar__card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.blog-sidebar__thumb {
    aspect-ratio: 1.3 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #e2e8f0;
}

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

.blog-sidebar__content {
    display: grid;
    gap: 0.45rem;
}

.blog-sidebar__content,
.blog-sidebar__content * {
    text-decoration: none;
}

.blog-sidebar__title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 700;
}

.blog-section {
    display: grid;
    gap: 1rem;
}

.blog-editorial + .blog-section {
    margin-top: 1rem;
    padding-top: 1.6rem;
    border-top: 1px solid #e9eef5;
}

.blog-section__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: end;
}

.blog-section__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
}

.blog-section__subtitle {
    margin: 0;
    color: #64748b;
}

.blog-carousel-shell {
    position: relative;
}

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

.blog-grid__card {
    display: grid;
    gap: 0.9rem;
    padding: 0.75rem;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    color: inherit;
    text-decoration: none;
}

.blog-grid__card,
.blog-grid__card *,
.blog-carousel__card,
.blog-carousel__card * {
    text-decoration: none;
}

.blog-grid__image {
    aspect-ratio: 1.5 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #e2e8f0;
}

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

.blog-grid__body {
    display: grid;
    gap: 0.65rem;
    padding: 0 0.25rem 0.25rem;
}

.blog-grid__title {
    margin: 0;
    color: #111827;
    font-size: 1.1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.blog-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.blog-carousel::-webkit-scrollbar {
    display: none;
}

.blog-carousel__card {
    scroll-snap-align: start;
    min-width: 0;
}

.blog-carousel__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.blog-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.blog-carousel__arrow:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.blog-carousel__card .blog-grid__image {
    aspect-ratio: 1.62 / 1;
    border-radius: 20px;
}

.blog-carousel__card .blog-grid__body {
    gap: 0.8rem;
    padding-top: 0.1rem;
}

.blog-carousel__card .blog-grid__title {
    font-size: 1.05rem;
    line-height: 1.18;
}

.blog-carousel__card .blog-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.blog-pagination__link.is-active,
.blog-pagination__link:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.blog-empty {
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    color: #64748b;
}

.blog-article {
    display: grid;
    gap: 1.6rem;
    max-width: 940px;
    margin: 0 auto;
}

.blog-article__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.blog-article__back:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #000;
}

.blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.9rem;
}

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

.blog-article__header {
    display: grid;
    gap: 1rem;
}

.blog-article__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #0f172a;
}

.blog-article__subtitle {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-article__cover {
    display: grid;
    gap: 0.75rem;
}

.blog-article__cover-frame {
    overflow: hidden;
    border-radius: 28px;
    background: #e2e8f0;
    aspect-ratio: 1.85 / 1;
}

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

.blog-article__caption {
    color: #64748b;
    font-size: 0.86rem;
}

.blog-article__content {
    color: #1f2937;
    line-height: 1.85;
    font-size: 1.02rem;
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.blog-article__content p,
.blog-article__content ul,
.blog-article__content ol,
.blog-article__content blockquote,
.blog-article__content figure {
    margin-bottom: 1rem;
}

.blog-article__content a {
    color: #0f766e;
    font-weight: 600;
}

.blog-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.blog-article__content blockquote {
    padding: 1rem 1.2rem;
    border-left: 4px solid #14a07a;
    background: #f8fafc;
    color: #334155;
    border-radius: 0 18px 18px 0;
}

.blog-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.3rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #05070b 0%, #111827 100%);
    color: #fff;
}

.blog-cta__content {
    display: grid;
    gap: 0.5rem;
}

.blog-cta__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.blog-cta__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.75;
}

.blog-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.blog-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.18s ease;
}

.blog-cta__button--primary {
    background: #ffffff;
    color: #111827;
}

.blog-cta__button--primary:hover {
    background: #f8fafc;
    color: #0f172a;
}

.blog-cta__button--secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.blog-cta__button--secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.blog-gallery__item {
    display: grid;
    gap: 0.6rem;
}

.blog-gallery__frame {
    aspect-ratio: 1.45 / 1;
    border-radius: 22px;
    overflow: hidden;
    background: #e2e8f0;
}

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

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .blog-editorial,
    .blog-cta {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-carousel {
        grid-auto-columns: minmax(300px, 72%);
    }

    .blog-cta__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .blog-page {
        padding-top: 1.5rem;
    }

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

    .blog-hero {
        padding-top: 2.2rem;
    }

    .blog-hero__title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .blog-search__input-wrap {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0.9rem 0.95rem;
        align-items: start;
    }

    .blog-search__button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 50px;
    }

    .blog-toolbar,
    .blog-section__head {
        justify-content: center;
    }

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

    .blog-sidebar__thumb {
        aspect-ratio: 1.7 / 1;
    }

    .blog-carousel {
        grid-auto-columns: 88%;
    }
}
