.blog-page {
    min-height: 540px;
    padding: 1px 0 80px;
    background: #f8f9fc;
}

.blog-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 16px;
    padding-left: 16px;
    box-sizing: border-box;
}

.blog-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 30px 0;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--main-color, #280396);
    border-radius: 7px;
    background: #fff;
    color: var(--main-color, #280396);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.view-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.view-btn:hover,
.view-btn:focus-visible,
.view-btn.active {
    background: var(--main-color, #280396);
    color: #fff;
    transform: translateY(-1px);
}

.blog-list {
    display: flex;
    gap: 30px;
    width: 100%;
}

.blog-list.grid-view {
    flex-flow: row wrap;
}

.blog-list.list-view {
    flex-direction: column;
}

.blog-item {
    display: flex;
    gap: 25px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(31, 22, 68, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(31, 22, 68, 0.12);
}

.blog-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    object-fit: cover;
}

.blog-image-link {
    display: block;
    width: 320px;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    align-self: flex-start;
    flex-shrink: 0;
}

.blog-image-link img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-date {
    display: block;
    margin-bottom: 9px;
    color: #8b8797;
    font-size: 13px;
}

.blog-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 25px 25px 25px 0;
}

.blog-content h3 {
    margin: 0 0 12px;
    color: var(--main-color, #280396);
    font-size: 22px;
    text-transform: uppercase;
}

.blog-excerpt {
    margin: 0;
    color: #666;
    line-height: 1.65;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px 18px;
    border-radius: 7px;
    background: var(--main-color, #280396);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-read:hover,
.btn-read:focus-visible {
    background: var(--main-color-hover, #210470);
    color: #fff;
    transform: translateY(-1px);
}

.blog-list.grid-view .blog-item {
    flex-direction: column;
    width: calc(33.333% - 20px);
}

.blog-list.grid-view .blog-image-link {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: stretch;
}

.blog-list.grid-view .blog-content {
    padding: 22px;
}

.blog-empty-state {
    width: 100%;
    padding: 70px 24px;
    border: 1px dashed rgba(40, 3, 150, 0.24);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.blog-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(40, 3, 150, 0.08);
    color: var(--main-color, #280396);
}

.blog-empty-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.blog-empty-state h2 {
    margin: 0 0 10px;
    color: var(--main-color, #280396);
    font-size: 25px;
    font-weight: 700;
}

.blog-empty-state p {
    max-width: 520px;
    margin: 0 auto;
    color: #6b6b72;
    line-height: 1.6;
}

.blog-article-page {
    padding-top: 140px;
}

.blog-article {
    max-width: 900px;
    padding: 42px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(31, 22, 68, 0.08);
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--main-color, #280396);
    font-weight: 600;
    text-decoration: none;
}

.blog-article h1 {
    margin: 0 0 24px;
    color: var(--main-color, #280396);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.blog-article-image {
    width: 100%;
    max-height: 520px;
    margin-bottom: 32px;
    border-radius: 12px;
    object-fit: cover;
}

.blog-article-content {
    color: #3f3d47;
    font-size: 17px;
    line-height: 1.8;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .blog-list.grid-view .blog-item {
        width: calc(50% - 15px);
    }

    .blog-item {
        flex-direction: column;
    }

    .blog-image-link {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .blog-content {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding-bottom: 55px;
    }

    .blog-page-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .blog-toolbar {
        display: none;
    }

    .blog-list,
    .blog-list.grid-view,
    .blog-list.list-view {
        flex-direction: column;
        padding-top: 24px;
    }

    .blog-list.grid-view .blog-item,
    .blog-list.list-view .blog-item {
        width: 100%;
    }

    .blog-image-link,
    .blog-list.grid-view .blog-image-link {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .blog-content h3 {
        font-size: 18px;
    }

    .blog-excerpt {
        font-size: 14px;
    }

    .blog-empty-state {
        padding: 52px 20px;
    }

    .blog-empty-state h2 {
        font-size: 22px;
    }

    .blog-article-page {
        padding-top: 95px;
    }

    .blog-article {
        padding: 25px 18px;
    }
}
