/**
 * Estilos para el Slider de Posts
 */

.mi-posts-slider-wrapper {
    width: 100%;
    /*padding: 60px 0 80px 0;
    background-color: #e8e8e8;*/
    position: relative;
    overflow: visible;
}

.mi-posts-slider {
    max-width: 800px;
    margin: 0 auto;
}

.mi-post-slide {
    padding: 0 15px;
    box-sizing: border-box;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.mi-post-slide:not(.slick-center) {
    /*opacity: 0.7;*/
    transform: scale(0.80);
}

.mi-post-slide.slick-center {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.mi-post-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: stretch;
    flex-direction: row;
    min-height: 400px;
    height: 100%;
    padding: 20px;
    gap: 20px;
}



@media (max-width: 768px) { 
    .mi-post-card {
        flex-direction: column;
    }

    .mi-post-card .mi-post-image img {
        border-radius: 0px;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        border-bottom-left-radius: 0px !important;
    }

    .mi-post-image {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

.mi-post-slide.slick-center .mi-post-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mi-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mi-post-slide.slick-center .mi-post-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.mi-post-image {
    flex: 0 0 50%;
    width: 50%;
    min-width: 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    align-self: stretch;
    display: block;
}

.mi-post-image img {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
}

.mi-post-thumbnail {
    width: 100%;
    height: 100% !important;
    min-height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mi-post-content {
    /*flex: 0 0 50%;
    width: 50%;
    min-width: 50%;
    max-width: 50%;*/
    display: flex;
    gap:10px;
    flex-direction: column;
    justify-content: center;
    /*justify-content: space-between;
    box-sizing: border-box;
    align-self: stretch;*/
}

.mi-post-content hr {
    background-color: #005485 !important;
}

.mi-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #0066cc;
    margin: 0px;
    padding: 0px;
    font-family: "Poppins", Sans-serif;
    font-weight: 700;
    text-transform: initial;
}

.mi-post-excerpt {
    font-size: 20px;
    font-family: "Poppins", Sans-serif;
    font-weight: 400;
    line-height: 24px;
    color: #005485 !important;
}


.mi-post-read-more {
    display: inline-block;
    padding: 10px;
    background-color: #5c9ac3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 20px;
    font-family: "Poppins", Sans-serif;
    font-weight: 400;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 20px;
}

.mi-post-read-more:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

/* Estilos de Slick Slider */
.mi-posts-slider-wrapper .slick-slider {
    position: relative;
    overflow: inherit;
}


.mi-posts-slider-wrapper .slick-list {
    margin: 0;
    overflow: visible;
    padding: 0 !important;
}

.mi-posts-slider-wrapper .slick-track {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.mi-posts-slider-wrapper .slick-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.mi-posts-slider-wrapper .slick-slide > div {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: stretch;
}

/* Ocultar flechas */
.mi-posts-slider-wrapper .slick-prev,
.mi-posts-slider-wrapper .slick-next {
    display: none !important;
}

/* Estilos de los dots */
.mi-posts-slider-wrapper .slick-dots {
    position: relative;
    bottom: 0;
    margin-top: 40px;
    text-align: center;
    list-style: none;
    padding: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.mi-posts-slider-wrapper .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.mi-posts-slider-wrapper .slick-dots li button {
    width: 40px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.mi-posts-slider-wrapper .slick-dots li.slick-active button {
    background-color: #ffffff;
    width: 50px;
}

.mi-posts-slider-wrapper .slick-dots li button:before {
    display: none;
}

/* Responsive */
/*
@media (max-width: 1024px) {
    .mi-posts-slider-wrapper {
        padding: 30px 15px 50px 15px;
    }
    
    .mi-post-content {
        padding: 20px 15px 15px 15px;
    }
    
    .mi-post-title {
        font-size: 16px;
    }
    
    .mi-post-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .mi-posts-slider-wrapper {
        padding: 20px 10px 40px 10px;
    }
    
    .mi-post-slide {
        padding: 0 10px;
    }
    
    .mi-post-content {
        padding: 18px 12px 12px 12px;
    }
    
    .mi-post-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .mi-post-excerpt {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .mi-post-read-more {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mi-posts-slider-wrapper .slick-slide {
        width: 100% !important;
    }
}
*/
@media (max-width: 480px) {
    .mi-posts-slider-wrapper .slick-slider {
        overflow: hidden;
    }
    .mi-post-card {
        height: fit-content;
    }
    /*.mi-post-content {
        padding: 15px 10px 10px 10px;
    }
    
    .mi-post-title {
        font-size: 14px;
    }
    
    .mi-post-excerpt {
        font-size: 11px;
    }
    
    .mi-post-read-more {
        padding: 7px 14px;
        font-size: 12px;
    }*/
}

