.aggregation-header__content {
    padding: 6.25rem 0 3rem;
}

.aggregation-header__title {
    grid-column-end: span 4;
    margin-top: 0;
}

.aggregation-header__description {
    color: #616161;
    font-family: Roboto, arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.aggregation-header__description,
.aggregation-header__title {
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .aggregation-header__title {
        grid-column-end: span 8;
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .aggregation-header__title {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }
}

.aggregation-header__title,
.hero--aggregation .hero__title {
    font-family: "Roboto", arial, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 2.25rem;
}

.aggregation-header__text-box {
    grid-column-end: span 4;
}

@media (min-width: 600px) {
    .aggregation-header__text-box {
        grid-column-end: span 8;
    }
}

@media (min-width: 768px) {
    .aggregation-header__text-box {
        grid-column-end: span 6;
    }
}

@media (min-width: 1024px) {
    .aggregation-header__text-box {
        grid-column-end: span 5;
    }
}

/* Card Group Container - Grid Layout */
.card-group__container--grid {
    box-sizing: border-box;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0.3125rem, 1fr));
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (min-width: 600px) {
    .card-group__container--grid {
        column-gap: 0.9375rem;
        grid-template-columns: repeat(12, minmax(0.3125rem, 1fr));
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

/* Card Group - Grid */
.card-group--grid {
    box-sizing: border-box;
    column-gap: 1rem;
    display: grid;
    grid-column-end: span 4;
    grid-template-columns: repeat(1, minmax(0.3125rem, 1fr));
    row-gap: 1rem;
    margin: 0;
    list-style: none;
    padding: 0;
}

@media (min-width: 600px) {
    .card-group--grid {
        grid-column-end: span 12;
        column-gap: 0.9375rem;
        grid-template-columns: repeat(2, minmax(0.3125rem, 1fr));
        row-gap: 0.9375rem;
    }
}

@media (min-width: 768px) {
    .card-group--grid {
        grid-template-columns: repeat(3, minmax(0.3125rem, 1fr));
    }
}

@media (min-width: 1024px) {
    .card-group--grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-group--grid .card--highlight-featured {
        grid-column: span 2;
    }
}

/* Card Highlight Styles */
.card--highlight {
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

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

.card--highlight-featured {
    grid-column: 1 / -1;
}

@media (min-width: 600px) {
    .card--highlight-featured {
        grid-column: 1 / -1;
    }
}

/* Card Link */
.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card__link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.card__header {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
}

.card__header-editorial-type {
    color: rgb(117, 117, 117);
    font-family: Roboto, arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Image Container */
.card__image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.picture-image {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

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

.picture-image img,
.picture-image .card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 600px) {
    .card--highlight-featured .card__image-container {
        height: 300px;
        aspect-ratio: auto;
    }
    
    .card--highlight-default .card__image-container {
        aspect-ratio: 16 / 9;
    }
}

/* Card Text */
.card__text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Body */
.card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card__body-editorial-type {
    color: rgb(117, 117, 117);
    font-family: Roboto, arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Card Title */
.card--highlight-default .card__title,
.card--highlight-featured .card__title {
    color: #212121;
    font-family: Roboto, arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    font-size: 1.125rem;
    line-height: 1.5rem;
    margin: 0;
}

@media (min-width: 600px) {
    .card--highlight-featured .card__title {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }
}

.card__title:hover {
    text-decoration: underline;
}

