/* Hero: full width, wide image, black gradient from bottom */
.article-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.article-hero__image {
    position: absolute;
    inset: 0;
}

.article-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    pointer-events: none;
}

.article-hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--global-content-width);
    width: 100%;
    margin-inline: auto;
    padding: 4rem var(--global-content-edge-padding) 2.4rem;
    text-align: left;
}

.article-hero__breadcrumbs {
    margin-bottom: 1rem;
}

.article-hero__title {
    color: var(--global-palette9);
    font-size: var(--font-xl);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.article-hero__divider {
    border: 0;
    border-bottom: 4px solid var(--global-palette2);
    margin: 0 0 1.2rem 0;
    max-width: 500px;
}

.article-hero__description {
    color: var(--global-palette8);
    font-size: var(--font-body);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    max-width: 560px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.article-hero__subtitle {
    color: var(--global-palette8);
    font-size: var(--font-body);
    margin: 0;
}

.article-archive {
    max-width: var(--global-content-width);
    margin-inline: auto;
    width: 100%;
    padding-inline: var(--global-content-edge-padding);
}

.article-archive .article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.article-archive__pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.article-archive__pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.article-card {
    background: var(--global-palette9, #fff);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.article-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--global-palette8, #eee);
    overflow: hidden;
}

.article-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.article-card__link:hover .article-card__image::after,
.article-card__link:focus .article-card__image::after {
    opacity: 1;
}

.article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--global-palette8, #eee) 0%, var(--global-palette7, #ddd) 100%);
}

.article-card__body {
    padding: 1.5rem;
}

.article-card__meta {
    font-size: var(--font-body);
    color: var(--global-palette5);
    margin: 0 0 0.5rem 0;
}

.article-card__title {
    font-size: var(--font-m);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.article-card__description {
    font-size: var(--font-body);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    color: var(--global-palette7);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .article-archive .article-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .article-archive .article-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
