.blog-index,
.blog-article {
    max-width: 1120px;
}

.blog-article {
    max-width: 940px;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 4vw, 3rem);
    color: #fff;
    background:
        radial-gradient(620px 280px at 90% 0%, rgba(126, 131, 235, 0.55), transparent 62%),
        linear-gradient(135deg, #30336a 0%, #24264c 100%);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(38, 42, 86, 0.24);
}

.blog-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 320px;
    height: 320px;
    background: rgba(233, 129, 60, 0.18);
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}

.blog-hero h1,
.blog-hero p {
    position: relative;
    z-index: 1;
    color: #fff;
}

.blog-eyebrow {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: #ffd2a6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(98, 103, 207, 0.12);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(44, 48, 90, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: rgba(98, 103, 207, 0.3);
    box-shadow: 0 18px 40px rgba(44, 48, 90, 0.14);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.4rem;
}

.blog-card h2,
.blog-card h3 {
    margin: 0.45rem 0 0.5rem;
    color: #232746;
    line-height: 1.35;
}

.blog-card p {
    flex: 1;
    margin: 0 0 1rem;
    color: #6f748c;
    font-size: 0.9rem;
    line-height: 1.55;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    color: #8b8fa3;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
}

.blog-read-more {
    color: #6267cf;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-read-more i {
    transition: transform 0.18s ease;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(3px);
}

.blog-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(98, 103, 207, 0.25);
    border-radius: 24px;
}

.blog-empty i {
    display: block;
    margin-bottom: 0.75rem;
    color: #6267cf;
    font-size: 2rem;
}

.blog-empty p {
    color: #6f748c;
}

.blog-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    background: linear-gradient(145deg, #3a3d7a 0%, #272a52 100%);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(38, 42, 86, 0.22);
}

.blog-cta h2,
.blog-cta p {
    color: #fff;
}

.blog-cta p {
    color: #cfd1eb;
}

.blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: #8b8fa3;
    font-size: 0.82rem;
}

.blog-breadcrumbs a {
    color: #6267cf;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-article-header {
    margin-bottom: 2rem;
}

.blog-article-header h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.2;
}

.blog-content {
    max-width: 820px;
    color: #2f3352;
    font-size: 1.03rem;
    line-height: 1.75;
}

.blog-content h2,
.blog-content h3 {
    margin: 2rem 0 0.8rem;
    color: #232746;
}

.blog-content h2 {
    font-size: 1.55rem;
}

.blog-content h3 {
    font-size: 1.2rem;
}

.blog-content p,
.blog-content ul,
.blog-content ol {
    margin-bottom: 1.1rem;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.35rem;
}

.blog-content table {
    display: block;
    width: 100%;
    margin: 1.25rem 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.blog-content th,
.blog-content td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid rgba(98, 103, 207, 0.16);
}

.blog-content th {
    background: #f5f6fc;
    font-weight: 600;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border-radius: 16px;
}

.blog-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    color: #4d5170;
    background: #f5f6fc;
    border-left: 4px solid #6267cf;
    border-radius: 0 12px 12px 0;
}

.blog-content a {
    color: #6267cf;
}

.blog-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(98, 103, 207, 0.14);
}

.blog-card-small .blog-card-body {
    padding: 1.1rem;
}

.blog-card-small p {
    display: none;
}

[data-bs-theme="dark"] .blog-card,
[data-bs-theme="dark"] .blog-empty {
    background: #23262f;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .blog-card h2,
[data-bs-theme="dark"] .blog-card h3,
[data-bs-theme="dark"] .blog-content h2,
[data-bs-theme="dark"] .blog-content h3 {
    color: #f2f0eb;
}

[data-bs-theme="dark"] .blog-card p,
[data-bs-theme="dark"] .blog-empty p {
    color: #a7a49d;
}

[data-bs-theme="dark"] .blog-content {
    color: #d8d6d0;
}

[data-bs-theme="dark"] .blog-content blockquote {
    color: #c7c4bd;
    background: #2a2c35;
}

[data-bs-theme="dark"] .blog-related {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .blog-content th,
[data-bs-theme="dark"] .blog-content td {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .blog-content th {
    background: #2a2c35;
}

[data-bs-theme="dark"] .blog-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .blog-read-more,
[data-bs-theme="dark"] .blog-breadcrumbs a {
    color: #b9bdf7;
}

@media (max-width: 767.98px) {
    .blog-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
