@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Just+Another+Hand&display=swap');

#blog {
    position: relative;
    overflow: hidden;
    background-color: black;
    background-position: center;
}

.blog-bg {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    background-image: url("img/blog_bg.png");
    background-position: center;
    padding: 50px 0 50px 0;
}

.blog-bg::before,
.blog-bg::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px; /* Ajusta la altura del degradado */
    pointer-events: none; /* No bloquea interacciones */
}

/* Degradado superior */
.blog-bg::before {
    top: 0;
    background: linear-gradient(to bottom, black, transparent);
}

/* Degradado inferior */
.blog-bg::after {
    bottom: 0;
    background: linear-gradient(to top, black, transparent);
}

.blog-description {
    position: relative;
    width: 100%;
    justify-items: center;

    p {
        width: 60%;
        text-align: justify;
        font-family: "DotGothic16", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1.4rem;
    }
}

#latest-posts {
    display: flex;
    flex-wrap: wrap;
    width: 60%;
    justify-content: space-between;
    margin: auto;
    position: relative;
}

.post {
    min-width: 50%;
    height: min-content;
    margin: 10px;
    padding: 20px;
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #235347;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    text-align: center;
}

.post:hover {
    transform: scale(105%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-title {
    width: 100%;
    box-shadow:inset 0px 34px 0px -15px #107D57;
    background-color:#0E724F;
    border:2px solid #107D57;
    border-radius: 5px;
    display:inline-block;
    color:#ffffff;
    font-size: 0.8rem;
    font-weight:bold;
    padding: 8px;
    text-decoration:none;
    text-shadow:0px -1px 0px #0E724F;
}

.post-trim {
    width: 100%;
    padding: 10px 0 10px 0;
    text-align: justify;
}

.post-button {
    width: auto;
    box-shadow:inset 0px 28px 0px -15px #A1CE3F;
    background-color:#94C42B;
    border:2px solid #A1CE3F;
    border-radius: 5px;
    display:inline-block;
    color:#ffffff;
    font-size: 0.8rem;
    font-weight:bold;
    padding: 5px 10px 5px 10px;
    text-decoration:none;
    text-shadow:0px -1px 0px #94C42B;
}

#comments {
    float: right;
}

@media (max-width: 768px) {
    .blog-description p {
        width: 90%;
        font-size: 1rem;
    }
    #latest-posts {
        width: 90%;
        flex-direction: column;
    }
    .post {
        width: 100%;
    }
}