/* Blog listing page */

.blog-page {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(68, 50, 151, 0.09), transparent 55%),
        linear-gradient(180deg, #f7f6fb 0%, #f3f4f6 180px, #f9fafb 100%);
    padding: 1.75rem 0 3.5rem;
}

@media (min-width: 768px) {
    .blog-page {
        padding: 2.25rem 0 4rem;
    }
}

@media (min-width: 992px) {
    .blog-page {
        padding: 2.75rem 0 4.5rem;
    }
}

.blog-page__header {
    margin: 0 auto 1.25rem;
    max-width: 44rem;
    text-align: center;
}

.blog-page__eyebrow {
    color: #443297;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.blog-page__title {
    color: #101828;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.blog-page__lead {
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 38rem;
}

.blog-page__filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 0 auto 1.15rem;
    max-width: 56rem;
}

.blog-page__filter-chip {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(68, 50, 151, 0.16);
    border-radius: 999px;
    color: #443297;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem 0.35rem 0.75rem;
}

.blog-page__filter-chip a {
    align-items: center;
    color: #667085;
    display: inline-flex;
    font-size: 1rem;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 1.25rem;
}

.blog-page__filter-chip a:hover {
    color: #443297;
}

.blog-page__filter-clear {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-page__filter-clear:hover {
    color: #443297;
    text-decoration: underline;
}

.blog-page__layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .blog-page__layout {
        align-items: start;
        gap: 1.5rem;
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    }
}

.blog-page__sidebar {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .blog-page__sidebar {
        position: sticky;
        top: 0.65rem;
        z-index: 25;
    }
}

.blog-page__panel {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 992px) {
    .blog-page__panel {
        padding: 1.15rem;
        position: sticky;
        top: 1.25rem;
    }
}

.blog-page__panel.is-stuck {
    border-color: rgba(68, 50, 151, 0.14);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.blog-page__sidebar-block--search {
    border-top: 0;
    padding-top: 0;
}

.blog-page__search {
    margin: 0;
}

.blog-page__search-field {
    align-items: center;
    background: #f8f8fc;
    border: 1px solid #ececf3;
    border-radius: 14px;
    display: flex;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0.3rem 0.35rem 0.3rem 0.65rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-page__search-field:focus-within {
    background: #fff;
    border-color: rgba(68, 50, 151, 0.28);
    box-shadow: 0 0 0 3px rgba(68, 50, 151, 0.08);
}

.blog-page__search-icon {
    align-items: center;
    color: #98a2b3;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.85rem;
    justify-content: center;
    width: 1rem;
}

.blog-page__search-input {
    background: transparent;
    border: 0;
    color: #101828;
    flex: 1;
    font-size: 0.875rem;
    min-width: 0;
    outline: none;
    padding: 0.35rem 0;
    width: 100%;
}

.blog-page__search-input::placeholder {
    color: #98a2b3;
}

.blog-page__search-input::-webkit-search-cancel-button {
    display: none;
}

.blog-page__search-clear {
    align-items: center;
    background: #eef0f6;
    border-radius: 999px;
    color: #667085;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.65rem;
    height: 1.5rem;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    width: 1.5rem;
}

.blog-page__search-clear:hover {
    background: rgba(68, 50, 151, 0.12);
    color: #443297;
}

.blog-page__search-submit {
    align-items: center;
    background: #443297;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.78rem;
    height: 2.15rem;
    justify-content: center;
    min-width: 2.15rem;
    padding: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.blog-page__search-submit:hover {
    background: #362679;
}

.blog-page__search-submit:active {
    transform: scale(0.96);
}

@media (min-width: 576px) {
    .blog-page__search-field {
        min-height: 2.85rem;
        padding: 0.35rem 0.4rem 0.35rem 0.75rem;
    }

    .blog-page__search-input {
        font-size: 0.9rem;
    }

    .blog-page__search-submit {
        height: 2.25rem;
        min-width: 2.25rem;
    }
}

.blog-page__sidebar-block {
    border-top: 1px solid #f0f1f6;
    padding-top: 0.95rem;
}

.blog-page__sidebar-label {
    color: #98a2b3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

.blog-page__sidebar-empty {
    color: #667085;
    font-size: 0.85rem;
    margin: 0;
}

.blog-page__categories {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 14rem;
    overflow: auto;
    scrollbar-width: thin;
}

@media (max-width: 991.98px) {
    .blog-page__categories {
        display: grid;
        gap: 0.45rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
    }
}

.blog-page__category {
    align-items: center;
    background: #f8f8fc;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #344054;
    display: flex;
    font-size: 0.84rem;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-page__category span:first-child {
    line-height: 1.35;
    min-width: 0;
}

.blog-page__category:hover,
.blog-page__category.is-active {
    background: rgba(68, 50, 151, 0.08);
    border-color: rgba(68, 50, 151, 0.14);
    color: #443297;
}

.blog-page__category-count {
    background: #fff;
    border-radius: 999px;
    color: #667085;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 1.35rem;
    padding: 0.15rem 0.4rem;
    text-align: center;
}

.blog-page__category.is-active .blog-page__category-count {
    background: #443297;
    color: #fff;
}

.blog-page__recent {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (max-width: 991.98px) {
    .blog-page__recent {
        display: grid;
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.blog-page__recent-item {
    align-items: center;
    background: #f8f8fc;
    border-radius: 12px;
    color: inherit;
    display: flex;
    gap: 0.65rem;
    padding: 0.55rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-page__recent-item:hover {
    background: rgba(68, 50, 151, 0.08);
}

.blog-page__recent-media {
    border-radius: 10px;
    flex-shrink: 0;
    height: 3.25rem;
    overflow: hidden;
    width: 3.25rem;
}

.blog-page__recent-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.blog-page__recent-fallback {
    align-items: center;
    background: linear-gradient(145deg, rgba(68, 50, 151, 0.12), rgba(68, 50, 151, 0.05));
    color: #443297;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.blog-page__recent-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.blog-page__recent-title {
    color: #101828;
    display: -webkit-box;
    font-size: 0.78rem;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
    overflow: hidden;
}

.blog-page__recent-date {
    color: #98a2b3;
    font-size: 0.68rem;
}

.blog-page__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.blog-page__tag {
    background: #f8f8fc;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #475467;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-page__tag:hover,
.blog-page__tag.is-active {
    background: rgba(68, 50, 151, 0.1);
    border-color: rgba(68, 50, 151, 0.16);
    color: #443297;
}

.blog-page__main {
    min-width: 0;
}

.blog-page__results-head {
    margin-bottom: 0.85rem;
}

.blog-page__results-count {
    color: #667085;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.blog-page__grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .blog-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.blog-page__card {
    height: 100%;
}

.blog-page__excerpt {
    color: #667085;
    display: -webkit-box;
    font-size: 0.88rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
}

.blog-page__empty {
    background: #fff;
    border: 1px dashed #d0d5dd;
    border-radius: 22px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.blog-page__empty-icon {
    align-items: center;
    background: rgba(68, 50, 151, 0.08);
    border-radius: 999px;
    color: #443297;
    display: inline-flex;
    font-size: 1.25rem;
    height: 3rem;
    justify-content: center;
    margin-bottom: 0.85rem;
    width: 3rem;
}

.blog-page__empty h2 {
    color: #101828;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.blog-page__empty p {
    color: #667085;
    font-size: 0.92rem;
    margin: 0 auto 1rem;
    max-width: 26rem;
}

.blog-page__empty-btn {
    background: #443297;
    border-radius: 12px;
    color: #fff !important;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.7rem 1.15rem;
    text-decoration: none;
}

.blog-page__empty-btn:hover {
    background: #362679;
}

.blog-page__pagination {
    margin-top: 1.35rem;
}

.blog-page__pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-page__pagination-link {
    align-items: center;
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 10px;
    color: #344054;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 600;
    height: 2.25rem;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0 0.55rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-page__pagination-link:hover,
.blog-page__pagination-link.is-active {
    background: #443297;
    border-color: #443297;
    color: #fff;
}

.blog-page__pagination-meta {
    color: #98a2b3;
    font-size: 0.78rem;
    margin: 0.65rem 0 0;
    text-align: center;
}

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
