/* ===========================================
   BLOC IVX LATEST CRYPTO NEWS - STYLES COMPLETS
   =========================================== */

/* Titre de section avec trait orange */
.news h2,
.section .news h2 {
    text-align: left;
    font: italic normal bold 16px/21px "Open Sans";
    letter-spacing: 0;
    color: #fff;
    text-transform: uppercase;
    opacity: 1;
    position: relative;
    margin-bottom: 24px !important;
}

.light-mode .news h2,
.light-mode .section .news h2 {
    color: #101215;
}

/* Trait orange sous le titre */
.news h2::before,
.section .news h2::before {
    position: absolute;
    display: block;
    content: "";
    width: 116px;
    height: 3px;
    background: var(--accent-color);
    left: 0;
    bottom: -6px;
    opacity: 1;
}

/* Grille de posts */
.news .posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 22px;
    grid-row-gap: 41px;
}

.news .posts-grid article {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news .posts-grid .post-thumbnail {
    border-radius: 8px;
}

.news .posts-grid .post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.news .posts-grid h3,
.news .posts-grid h3 a {
    text-align: left;
    font: normal normal bold 14px/18px 'Open Sans';
    letter-spacing: 0px;
    opacity: 1;
    margin: 0;
}

.news .posts-grid .entry-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    line-height: 1em;
    margin-bottom: 8px;
}

.news .posts-grid span.primary-category {
    text-align: left;
    font: normal normal bold 12px/16px 'Open Sans';
    letter-spacing: 0px;
    color: var(--accent-color);
    opacity: 1;
    text-transform: uppercase;
}

.news .posts-grid span.primary-category a {
    text-align: left;
    font: normal normal bold 12px/16px 'Open Sans';
    letter-spacing: 0px;
    color: var(--accent-color);
    opacity: 1;
    text-transform: uppercase;
}

.news .posts-grid span.posted-on {
    text-align: right;
    font: normal normal normal 12px/16px 'Open Sans';
    letter-spacing: 0px;
    color: #7c7c7c;
    opacity: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 2.93px;
}

/* Bouton "Voir plus" */
.news a.more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: center;
    font: italic normal bold 14px/18px "Open Sans";
    letter-spacing: 0;
    opacity: 1;
    background: var(--accent-color) 0% 0% no-repeat padding-box;
    border-radius: 4px;
    padding: 6.5px 12.15px 8.5px 12.15px;
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #000;
}

.light-mode .news a.more {
    color: #000;
}

.news a.more:hover,
.light-mode .news a.more:hover {
    color: #fff;
    background: #000;
}

.news a.more span.arrow {
    color: #000;
    font-style: normal !important;
    font-weight: normal;
    transition: color 0.3s ease;
}

.news a.more:hover span.arrow {
    color: #fff;
}

/* Responsive */
@media screen and (max-width: 767px) {

    .news h2,
    .section .news h2 {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 15px;
    }

    .news h2::before,
    .section .news h2::before {
        width: 80px;
        height: 2px;
    }

    .news .posts-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-row-gap: 41px;
    }

    .news a.more {
        position: relative;
        margin-top: 23.76px;
        justify-content: center;
        width: 100%;
    }
}