/* Related Articles Block Styles - Based on investx-2 #actu-crypto styles */

/* Section principale */
article #actu-crypto,
#actu-crypto {
    padding-top: 46px;
}

/* Override des styles existants dans common.css et single.css */
article #actu-crypto .actu-crypto-wrapper,
#actu-crypto .actu-crypto-wrapper {
    display: block;
    padding: unset;
}

#actu-crypto .actu-crypto-wrapper {
    position: relative;
    width: 100%;
    /* S'adapte au conteneur parent */
    max-width: 100%;
    /* Limiter à la largeur du container parent */
    box-sizing: border-box;
}

#actu-crypto .actu-crypto-wrapper .actu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#actu-crypto .actu-crypto-wrapper div h2 {
    font-size: 16px;
    line-height: 21px;
    position: relative;
}

#actu-crypto .actu-crypto-wrapper div h2::after {
    display: block;
    position: absolute;
    content: "";
    left: 0;
    bottom: -6px;
    width: 70px;
    height: 3px;
    background: var(--accent-color) 0% 0% no-repeat padding-box;
    opacity: 1;
}

#actu-crypto .actu-crypto-wrapper div a.more {
    text-align: left;
    font: italic normal bold 14px/19px "Open Sans";
    letter-spacing: 0px;
    opacity: 1;
    text-decoration: none;
}

#actu-crypto .actu-crypto-wrapper div a.more:hover {
    color: #d9a200;
}

#actu-crypto .actu-crypto-wrapper div a.more .arrow {
    margin-left: 8px;
}

/* Posts container - adapté pour slider et grid */
#actu-crypto .actu-crypto-wrapper .posts {
    margin-top: 32px;
    width: 100%;
    /* S'adapte au conteneur parent */
    max-width: 100%;
    /* Limiter à la largeur du container */
    overflow: hidden;
    /* Éviter le débordement */
}

/* Styles spécifiques pour le slider - comme dans investx-2 */
#actu-crypto .container .posts .slick-slide,
#actu-crypto .actu-crypto-wrapper .posts .slick-slide {
    margin: 0 14px 0 0;
}

#actu-crypto .container .posts .post,
#actu-crypto .actu-crypto-wrapper .posts .post {
    width: 220px !important;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-slide>a {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-slide .post {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-slide .post .thumbnail {
    flex-shrink: 0;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-slide .post .title {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

/* Responsive - simplifié comme investx-2 */

/* Styles pour les flèches Slick */
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-prev,
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #17191d;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 2;
    cursor: pointer;
    color: #fff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-prev:hover,
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-next:hover {
    background: var(--accent-color);
    color: #000;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-prev {
    left: -20px;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-next {
    right: -20px;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-prev svg,
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-next svg {
    width: 12px;
    height: 12px;
}

/* Responsive pour les flèches */
@media (max-width: 1200px) {
    #actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-prev {
        left: -15px;
    }

    #actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-next {
        right: -15px;
    }
}

@media (max-width: 767px) {

    #actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-prev,
    #actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-next {
        width: 35px;
        height: 35px;
    }

    #actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-prev {
        left: -10px;
    }

    #actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .slick-next {
        right: -10px;
    }
}

/* Simplification - comme dans investx-2 */

#actu-crypto .actu-crypto-wrapper .posts.slick-initialized .slick-slide>a {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#actu-crypto .actu-crypto-wrapper .posts.slick-initialized .slick-slide .post {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#actu-crypto .actu-crypto-wrapper .posts.slick-initialized .slick-slide .post .thumbnail {
    flex-shrink: 0;
}

#actu-crypto .actu-crypto-wrapper .posts.slick-initialized .slick-slide .post .title {
    flex-grow: 1;
    display: flex;
    font-size: 12px;
    line-height: 16px;
    font-weight: bold;
}

/* Styles des posts individuels - appliqués aux sliders aussi */

/* Posts dans les sliders - même structure que .not-slider */
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post {
    width: 220px !important;
    /* Largeur fixe pour les posts */
    max-width: 220px !important;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

/* Thumbnails dans les sliders */
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post .thumbnail {
    height: 126px;
    /* Hauteur spécifique pour related-articles */
    overflow: hidden;
    border-radius: 8px;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post:hover .thumbnail img {
    transform: scale(1.05);
}

/* Métadonnées dans les sliders */
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post .cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post .cat h3 {
    color: #7c7c7c;
     font-weight: 400;
        font-size: 10px;
        margin:0;
}
#actu-crypto .container .post .title {
    font-size: 12px;
    line-height: 16px;
    margin: 0;
}


#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post .cat div {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7c7c7c;
    line-height: 18px;
}

/* Titres dans les sliders */
#actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post .title {
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.light-mode #actu-crypto .actu-crypto-wrapper .posts.related-articles-slider .post .title {
    color: #101215;
}

.context-related-articles#actu-crypto .actu-crypto-wrapper .posts {
    margin-top: 0;
}

/* Responsive desktop - contrôler la largeur du slider */
@media (min-width: 992px) {
    #actu-crypto .actu-crypto-wrapper .posts {
        max-width: 840px;/* Laisser de l'espace pour la sidebar */
    }
    
    /* Si pas de sidebar, utiliser toute la largeur disponible */
    .post-template-full-width-template #actu-crypto .actu-crypto-wrapper .posts {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    #actu-crypto .actu-crypto-wrapper .posts {
        max-width: 840px; /* Largeur fixe comme dans investx-2 */
    }
    
    .post-template-full-width-template #actu-crypto .actu-crypto-wrapper .posts {
        max-width: 1160px; /* Largeur maximale pour full-width */
    }
}

/* Responsive mobile - ajustements spécifiques au bloc related-articles */
@media (max-width: 768px) {
    #actu-crypto {
        padding-top: 30px;
    }

    #actu-crypto .actu-crypto-wrapper div h2 {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 24px;
    }

    #actu-crypto .actu-crypto-wrapper .actu {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    #actu-crypto .actu-crypto-wrapper .post .thumbnail {
        height: 160px;
        /* Ajustement mobile de la hauteur */
    }
}