/* Estilos del carrusel de artículos relacionados */
.my-related-articles-section {
    margin-top: 60px;
    padding: 20px 0;
    max-width: 1800px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.my-related-articles-section h3 {
    font-family: arial;
    font-weight: 400;
    color: #353535;
    font-size: min(1.67vw, 32px);
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.my-related-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.my-slider-arrow {
    background: transparent;
    border: 2px solid #ddd;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #7E7E7E;
    transition: all 0.3s ease;
    position: absolute;
    top: 15%;
    border-radius: 0PX !important;
    /* transform: translateY(-50%); */
    z-index: 10;
}



.my-left-arrow {
    left: -70px; /* Ajusta este valor según la separación que quieras */
}

.my-right-arrow {
    right: -70px; /* Ajusta este valor según la separación que quieras */
}

.my-slider-arrow:hover,
.my-slider-arrow:focus,
.my-slider-arrow:active {
    background-color: #7E7E7E; /* El mismo color del hover */
    color: #fff;
    border-color: #7E7E7E;
}

.my-related-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
    transform: translateX(0);
    align-items: stretch;
    justify-content: flex-start;
}

.my-related-post-card {
    background-color: #fff;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    transition: transform 0.3s ease;
    font-family: 'Avenir Next', sans-serif;
    flex: 0 0 calc(25% - 15px); /* 4 columnas */
    display: flex;
    flex-direction: column;
}

.my-related-post-card:hover {
    transform: translateY(-5px);
}

.my-related-post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.my-related-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.my-related-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 14px;
}

.my-related-post-content {
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: left;
    margin-top: auto;
}

.my-related-post-content h4 {
    margin: 0 0 10px 0;
    font-size: min(1.3vw, 20px);
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
}

.my-post-meta-combined {
    display: flex;
    align-items: center;
    /* gap: 10px; */
    gap: 43px;
    margin-bottom: 10px;
    font-size: min(1.1vw, 16px);
    color: #7E7E7E;
    font-weight: 400;
}

.my-post-meta-combined .my-post-date {
    font-weight: 400;
    font-family: Arial !important;  
    color: #000000;
}

.my-post-meta-combined .my-category-name {
    font-weight: 400;
    font-family: Arial !important;
    color: #000000;
}

.my-related-post-content p {
    margin: 0;
    font-size: min(1.1vw, 16px);
    color: #7E7E7E;
    font-weight: 400;
    line-height: 1.5;
}

/* Responsive: Ajustes para tabletas y móviles */
@media (max-width: 1200px) {
    .my-related-post-card {
        flex: 0 0 calc(33.33% - 14px);
    }
}

/* Responsive: Ajustes para tabletas y móviles */
@media (max-width: 768px) {

    .my-post-meta-combined {
        gap: 105px;
    }
    .my-related-post-card {
        /* This rule shows one card at a time on mobile */
        flex: 0 0 100%;
    }
    .my-related-articles-section h3 {
        font-size: min(4vw, 24px);
    }
    .my-related-post-content h4 {
        font-size: min(3.5vw, 18px);
    }
    .my-post-meta-combined, .my-related-post-content p {
        font-size: min(3vw, 14px);
    }
    .my-related-image-wrapper {
        height: 150px;
    }
    /* Show arrows on smaller screens and position them correctly */
    .my-slider-arrow {
        visibility: visible !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .my-left-arrow {
        left: 10px;
    }

    .my-right-arrow {
        right: 10px;
    }
}