.page-template-news main {
    padding: 0 48px;
} 


/* Styles pour la liste des catégories */
.news-categories {
    height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    /* gap: 1rem; */
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
    width: 70%;
}

.category-item {
    margin: 0;
    color: rgba(139, 139, 139, 0.3);
    text-align: center;
    text-transform: uppercase;
    /* transition: color 0.3s ease; */
    width: 100%;
    text-align: center;
}

.category-link {
    /* display: flex; */
    align-items: center;
    padding: 4px;
    border-radius: 2rem;
    text-decoration: none;
    align-items: flex-start;
    gap: 4px;
    transition: color 0.3s ease;
    text-align: center;
}

.category-count {
    color: rgba(139, 139, 139, 0.3);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-feature-settings: 'sups' on;
    font-size: 33px;
    font-style: normal;
    font-weight: 300;
    line-height: 50px; /* 130% */
    letter-spacing: -1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    margin-top: -4px;
}

.category-link:hover {
    color: var(--Black, #000);
}

.category-item.active {
    color: var(--Black, #000);
}

.category-item.active .category-count {
    color: var(--Black, #000);
}

.dark .category-item.active {
    color: var(--White, #FFF);
}

.dark .category-item.active .category-count {
    color: var(--White, #FFF);
}

.dark .category-item, .dark .category-separator, .dark .category-item .category-count {
    /* color: rgba(255, 255, 255, 0.30); */
}


.category-separator {
    color: rgba(139, 139, 139, 0.3);
    text-align: center;
    leading-trim: both;
    text-edge: cap;

    font-size: 80px;
    font-style: normal;
    font-weight: 300;
    line-height: 65px; /* 81.25% */
    letter-spacing: -1.6px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
/* Styles pour la timeline */
.news-grid-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--color-primary);
    margin-top: -40px;
    padding: 160px 48px 80px;
    background-color: #000;
    color: #fff;
    border-radius: 8px 8px 0 0;
    position: relative;
    z-index: 2;
    align-items: center;
}

.news-grid-container > * {
    max-width: 1200px;
}

.news-grid-timeline-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.news-grid-timeline-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.news-grid-timeline {
    position: absolute;
    top: -130px;
    height: calc(100% + 130px);
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translate(-50%, 0px);
}

.news-grid-timeline-title {
    overflow: hidden;
    color: var(--Black, #000);
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;

    /* Desktop/Body */
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 25.2px */
    letter-spacing: -0.36px;
}

.dark .news-grid-timeline-title {
    color: var(--White, #FFF);
}

.news-grid-timeline-circle {
    width: 16px;
    height: 16px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

.news-grid-timeline-line {
    height: 100%;
    width: 1px;
    background: rgba(0, 0, 0, 0.20);
    margin-left: 50%;
}

.dark .news-grid-timeline-line {
    background-color: rgba(255, 255, 255, 0.30);
}

/* Styles pour l'article mis en avant */
.featured-news {
    display: flex;
    gap: 2rem;
    margin-bottom: 160px;
    overflow: hidden;
    flex-direction: row;
    color: #fff;
}

.featured-news > div, .featured-news > a  {
    flex: 1;
    width: 50%;
    padding: 0;
}

.featured-news-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.featured-news-thumbnail > img {
    /* position: absolute;
    top: 0;
    left: 0; */
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.featured-news-content {
    display: flex;
    flex-direction: column;
    color: #fff;
    gap: 32px;
}

.featured-news-content .featured-news-title {
    color: #fff;
}

.featured-news-content .featured-news-description {
    text-overflow: ellipsis;
    color: #fff;
}

.featured-news-excerpt {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.featured-news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.featured-news-link:after {
    content: '→';
    transition: transform 0.3s ease;
}

.featured-news-link:hover {
    color: #0056b3;
}

.featured-news-link:hover:after {
    transform: translateX(5px);
}

.featured-news .yellow-hover-container {
    width: 100%;
height: auto;
position: absolute;
border-radius: 8px;
overflow: hidden;
aspect-ratio: 1;
}

/* Styles pour la grille d'articles */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.news-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.news-category {
    color: #007bff;
    font-weight: 600;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #0056b3;
}

.selected-articles .article-image {
    border-radius: 8px;
}

@media screen and (max-width: 1024px) {
    .category-separator {
        font-size: 32px;
        font-style: normal;
        font-weight: 300;
        line-height: 32px;
        letter-spacing: -0.64px;
    }
    
    .page-template-news main {
        padding: 0 8px;
    }

    .categories-list {
        width: 100%;
        gap: 0px;
    }

    .category-link {
        padding: 0;
        gap: 0;
    }

    .category-count {
        font-size: 24px;
        font-style: normal;
        font-weight: 300;
        line-height: 30px;
        letter-spacing: -0.48px;
        font-variant-position: sub;
        margin-left: 4px;
        margin-top: -2px;
    }

    .featured-news {
        flex-direction: column;
        gap: 32px;
    }

    .featured-news > div, .featured-news > a {
        width: 100%;
        padding: 0;
    }

    .featured-news-thumbnail > img {
        width: 100%;
        height: 100vw;
    }


    /* .page-template-news .selected-articles {
        flex-direction: column;
        gap: 32px;
    }

    .page-template-news .selected-articles .article-item  {
        width: 100%;
    }

    .page-template-news .selected-articles .article-item:not(:nth-child(3n)) {
        margin-right: 0;
    } */

    .news-grid-container {
        margin-bottom: 80px;
        border-radius: 0;
        margin-left: -8px;
        margin-right: -8px;
        padding-left: 8px;
        padding-right: 8px;
    }
}