.blog-page {
    background: #ffffff;
}

.blog-hero,
.article-hero {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(8, 17, 30, 0.96), rgba(8, 17, 30, 0.84)),
        url("../images/scholaria-hero-campus.jpg");
    background-size: cover;
    background-position: center;
}

.blog-hero-grid,
.article-hero-inner {
    padding: 5rem 0;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: center;
}

.blog-hero h1,
.article-hero h1 {
    max-width: 860px;
    font-size: 3rem;
}

.blog-hero p,
.article-hero p {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.blog-hero.compact .shell {
    padding: 5rem 0;
}

.blog-hero-panel {
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.blog-hero-panel strong,
.blog-hero-panel span {
    display: block;
}

.blog-hero-panel strong {
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.blog-hero-panel span {
    padding: 0.7rem 0;
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-article,
.article-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.featured-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.featured-article h2 {
    max-width: 820px;
}

.featured-article p,
.article-card p {
    color: var(--muted);
}

.blog-list-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

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

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 1.25rem;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible,
.article-link:hover,
.article-link:focus-visible {
    color: var(--blue);
}

.article-card p {
    flex: 1;
}

.article-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.55rem;
    color: #075985;
    background: #e0f2fe;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.article-link,
.breadcrumb {
    color: var(--blue);
    font-weight: 900;
}

.breadcrumb {
    display: inline-block;
    margin-bottom: 1rem;
    color: #8df0d2;
}

.article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 760px);
    gap: 3rem;
    align-items: start;
    padding: 4rem 0;
}

.article-aside {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.article-aside strong {
    color: var(--ink);
}

.article-aside span {
    padding: 0.55rem 0.65rem;
    color: var(--blue-dark);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 0.88rem;
}

.article-content {
    font-size: 1.08rem;
}

.article-content h2 {
    margin-top: 2rem;
    font-size: 1.55rem;
}

.article-content p,
.article-content li {
    color: #334155;
}

.article-content ul {
    padding-left: 1.25rem;
}

.article-content li {
    margin-bottom: 0.7rem;
}

@media (max-width: 900px) {
    .blog-hero-grid,
    .featured-article,
    .article-layout {
        grid-template-columns: 1fr;
    }

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

    .article-aside {
        position: static;
    }
}

@media (max-width: 680px) {
    .blog-hero-grid,
    .article-hero-inner,
    .blog-hero.compact .shell {
        padding: 3.5rem 0;
    }

    .blog-hero h1,
    .article-hero h1 {
        font-size: 2rem;
    }

    .blog-list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}
