.blog-page {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.blog-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 108px 20px 48px;
}

.blog-shell {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl, 20px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.blog-hero {
    position: relative;
    padding: 36px 32px 32px;
    text-align: center;
    background: linear-gradient(
        160deg,
        rgba(102, 126, 234, 0.18) 0%,
        rgba(118, 75, 162, 0.12) 45%,
        transparent 100%
    );
    border-bottom: 1px solid var(--border-light);
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rainbow-gradient, linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008018, #0066ff, #732982));
}

.blog-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
}

.blog-hero-subtitle {
    margin: 0 auto;
    max-width: 34rem;
    font-size: var(--font-md, 16px);
    line-height: 1.65;
    color: var(--text-secondary);
}

.blog-directory {
    padding: 28px 32px 32px;
}

.blog-directory-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.blog-directory-title {
    margin: 0 0 6px;
    font-size: var(--font-lg, 18px);
    font-weight: 700;
    color: var(--text-primary);
}

.blog-directory-hint {
    margin: 0;
    font-size: var(--font-sm, 14px);
    color: var(--text-secondary);
}

.blog-entries {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-entry-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--radius-lg, 16px);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-entry-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-entry-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.blog-entry-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.blog-entry-body {
    flex: 1;
    min-width: 0;
}

.blog-entry-title {
    margin: 0 0 8px;
    font-size: var(--font-md, 16px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.blog-entry-card:hover .blog-entry-title {
    color: var(--primary-color);
}

.blog-entry-teaser {
    margin: 0 0 10px;
    font-size: var(--font-sm, 14px);
    line-height: 1.55;
    color: var(--text-secondary);
}

.blog-entry-tags {
    display: inline-block;
    font-size: var(--font-xs, 12px);
    font-weight: 600;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.blog-entry-arrow {
    flex-shrink: 0;
    align-self: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-entry-card:hover .blog-entry-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .blog-main {
        padding: 92px 12px 32px;
    }

    .blog-hero,
    .blog-directory {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-entry-card {
        flex-wrap: wrap;
        padding: 16px;
    }

    .blog-entry-arrow {
        margin-left: auto;
    }
}
