*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Glacial Indifference";
    src: url("../../../ASSETS/FONTS/GlacialIndifference/GlacialIndifference-Regular.otf");
}

@font-face {
    font-family: "Brittany";
    src: url("../../../ASSETS/FONTS/Brittany/BrittanySignature.ttf");
}

.section-1{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.contentBlogs{
    display: flex;
    flex-wrap: wrap;
    width: 90%;
}

.noneBlogs{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 5rem;
    font-size: 30px;
    font-family: "Glacial Indifference";
}

.blog{
    
    display: flex;
    width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* Estilo para blogs visibles */
.blog.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}


.boxImgBlog{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55%;
    height: 500px;
    padding: 2rem;
}


.imgBlog{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boxDescriptionBlog{
    display: flex;
    flex-wrap: wrap;
    width: 45%;
    height: 500px;
}



.blog:nth-child(even){
    flex-direction: row-reverse;
    
}


.detailsBlog{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Glacial Indifference";
    font-size: 14px;
}

.authorBlog{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family: "Glacial Indifference";
    font-size: 14px;
    color: #000;
}

.authorNameBlog{
    text-decoration: none;
    color: #000;
}

.underlinedAuthorBlog{
    width: 0;
    height: 1px;
    background-color: #000;
    transition-duration: .4s;
}

.underlinedAuthorBlog_Active{
    transition-duration: .4s;
    width: 100%;
}

.boxAvatarAuthorBlog{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
    overflow: hidden;
}

.avatarAuthorBlog{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categoryBlog{
    font-family: "Brittany";
    font-size: 25px;
}

.categoryBlog:nth-child(even){
    text-align: right;
}

.titleBlog{
    width: 100%;
    font-size: 35px;
    font-family: "Glacial Indifference";
    text-transform: uppercase;
    height: 4em; /* Altura para 3 líneas de texto (1.5em por línea) */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Número de líneas visibles */
    -webkit-box-orient: vertical;
    line-height: 1em; /* Espaciado entre líneas */
    white-space: normal;
    position: relative;
}

.descriptionBlog{
    font-family: "Glacial Indifference";
    font-size: 20px;
    margin-top: 1rem;
    width: 100%;
    height: 6em; /* Altura para 3 líneas de texto (1.5em por línea) */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Número de líneas visibles */
    -webkit-box-orient: vertical;
    line-height: 1em; /* Espaciado entre líneas */
    white-space: normal;
    position: relative;
    color: #000000b2;
}

.buttonBoxBlog{
    margin-top: 1rem;
    position:relative;
    width: 180px;
    flex: 20%;
    z-index: 100;
    cursor: pointer;
}


.btnLeerMasBlog{
    width:100%;
    height:50px;
    position:relative;
    color:#000000;
    background-color: transparent;
    letter-spacing:1px;
    border:none;
    font-size:15px;
    outline:none;
    font-family: "Glacial Indifference";
}


/* FIRST BUTTON */

.borderBlog{
    position:absolute;
    background:none;
    transition:all .5s ease-in-out;
}

#buttonBoxBlog>.borderBlog:nth-of-type(1){
    top:0;
    left:0;
    border-left:1px solid rgb(0, 0, 0);
    border-top:1px solid rgb(0, 0, 0);
    width:30px;
    height:30px;
}

#buttonBoxBlog>.borderBlog:nth-of-type(2){
    bottom:0;
    right:0;
    border-right:1px solid rgb(0, 0, 0);
    border-bottom:1px solid rgb(0, 0, 0);
    width:30px;
    height:30px;
}

#buttonBoxBlog:hover .borderBlog{
    width:102%;
    height:105%;
}




.buttonBoxContent{
    display: inline-block;
    position:relative;
    width: auto;
    flex: 20%;
    z-index: 100;
    cursor: pointer;
    padding: 10px;
}

.btnLeerMasContent{
    width:180px;
    height:40px;
    position:relative;
    color:#ffffff;
    background-color: transparent;
    letter-spacing:1px;
    border:none;
    font-size:12px;
    outline:none;
    font-family: "Glacial Indifference";
    background-color: #000000;
    padding: 0 5px;
}

.linkBtnContent{
    display: inline-block;
    margin-top: 1rem;
}


/* FIRST BUTTON */

.borderContent{
    position:absolute;
    background:none;
    transition:all .5s ease-in-out;
}

#buttonBoxContent>.borderContent:nth-of-type(1){
    top:0;
    left:0;
    border-left:1px solid rgb(0, 0, 0);
    border-top:1px solid rgb(0, 0, 0);
    width:30px;
    height:30px;
}

#buttonBoxContent>.borderContent:nth-of-type(2){
    bottom:0;
    right:0;
    border-right:1px solid rgb(0, 0, 0);
    border-bottom:1px solid rgb(0, 0, 0);
    width:30px;
    height:30px;
}

#buttonBoxContent:hover .borderContent{
    width:102%;
    height:105%;
}


/* Loader (spinner) */

.boxLoader{
    width: 100%;
}

.hiddenLoader{
    display: none;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #000000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Animación del spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/*RESPONSIVE DESIGN*/

@media (max-width: 1024px){
    .blog{
        box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
        padding: 1rem;
    }
}

@media (max-width: 853px) {
    .boxImgBlog{
        height: 400px;
    }

    .boxDescriptionBlog{
        height: auto;
    }

    .dateBlog, .authorNameBlog{
        font-size: 12px;
    }

    .categoryBlog{
        font-size: 20px;
    }

    .titleBlog{
        font-size: 25px;
    }

    .descriptionBlog{
        margin-top: 0;
        font-size: 15px;
    }
}

@media (max-width: 820px) {
    .section-1{
        padding-bottom: 3rem;
    }
}

@media (max-width: 540px) {

    .contentBlogs{
        justify-content: center;
    }

    .blog{
        width: 90%;
        flex-wrap: wrap;
        padding: 2rem;
    }
    
    .boxImgBlog{
        width: 100%;
        height: 200px;
        padding: 0;
    }

    .imgBlog{
        width: 100%;
        height: 100%;
    }


    .boxDescriptionBlog{
        padding: 1rem 0;
        width: 100%;
        height: auto;
    }

    .categoryBlog{
        font-size: 17px;
    }

    .titleBlog{
        margin-top: 10px;
        font-size: 20px;
        height: 2em; /* Altura para 3 líneas de texto (1.5em por línea) */
        -webkit-line-clamp: 2; /* Número de líneas visibles */
    }

    .descriptionBlog{
        margin-top: 1rem;
        height: 3em; /* Altura para 3 líneas de texto (1.5em por línea) */
        -webkit-line-clamp: 3; /* Número de líneas visibles */
    }

    .buttonBoxBlog{
        width: 150px;
    }

    .btnLeerMasBlog{
        height: 40px;
        font-size: 12px;
    }
}

@media (max-width: 414px) {
    .detailsBlog{
        flex-wrap: wrap;

    }

    .dateBlog, .authorBlog{
        width: 100%;
        justify-content: right;
        text-align: right;
    }

    .boxAvatarAuthorBlog{
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 375px) {
    .blog{
        width: 95%;
        padding: 1rem;
    }
}