.entry_main {
    background-color: rgba(85, 77, 81, 0.2);
    padding: 1rem;
    border-radius: 3rem;
    width: 80%;
    margin: 0 auto;
}

.posts-grid-container {
    margin: 2rem 3rem;
    background-color: rgba(145, 168, 243, 0.533);
    border-radius: 3rem;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-height: 116vh;
    overflow-y: auto;
    padding: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 123, 255, 0.5) rgba(145, 168, 243, 0.2);
}

.posts-grid::-webkit-scrollbar {
    width: 8px;
}

.posts-grid::-webkit-scrollbar-track {
    background: rgba(145, 168, 243, 0.2);
    border-radius: 4px;
}

.posts-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.5);
    border-radius: 4px;
}

.posts-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.7);
}

.post-card {
    border-radius: 2rem;
    overflow: hidden;
    background: url('../img/blur.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 2.5rem -0.5rem rgba(212, 145, 243, 0.733),
                0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 45rem;
}

.post-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: inset 0 0 2.5rem -0.5rem rgba(212, 145, 243, 0.733),
                0 8px 15px rgba(0, 0, 0, 0.2);
}

.post-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.post-title {
    box-shadow: inset 0 0 2.5rem -0.5rem rgba(212, 145, 243, 0.733);
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    width: 90%;
    margin: 0 auto 1rem;
    text-align: center;
    line-height: 1.4;
    padding: 0.8rem;
    background-color: rgba(0, 123, 255, 0.3);
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
    border-radius: 2rem;
}

.post-title a {
    color: white;
    text-decoration: none;
    display: block;
}

.post-title a:hover {
    color: #ffcc00;
}

.post-meta {
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: auto;
    padding-top: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 0.8rem;
}

.post-thumbnail {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
    margin-bottom: 1rem;
}

.entry_content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
    box-shadow: inset 0 0 1.5rem -0.5rem rgba(212, 145, 243, 0.733);
    border-radius: 1rem;
    font-size: 0.9rem;
    padding: 1rem;
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
    margin: 1rem 0;
    color: white;
    user-select: none;
    overflow: hidden;
    max-height: 120px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.read-more {
    align-self: center;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    margin: 1rem auto;
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 0.2rem solid rgba(255, 255, 255, 0.3);
}

.read-more:hover {
    background: rgba(0, 123, 255, 0.9);
    transform: scale(1.05);
    color: white;
}

/* Indicador de scroll */
.scroll-indicator-vertical {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
}

.scroll-indicator-vertical span {
    color: rgba(0, 123, 255, 0.7);
    font-size: 0.8rem;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.scroll-indicator-vertical i {
    color: rgba(0, 123, 255, 0.7);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.posts-counter {
    position: absolute;
    top: -1rem;
    right: 2rem;
    background: rgba(0, 123, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        max-height: 120vh;
    }
    
    .posts-grid-container {
        margin: 2rem 1rem;
    }
    
    .post-card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        max-height: 120vh;
    }
    
    .post-card {
        min-height: 350px;
        max-width: 100%;
    }
    
    .posts-grid-container {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }
    
    .scroll-indicator-vertical {
        right: 0.5rem;
    }
}

.posts-grid.alt-version {
    grid-template-rows: repeat(2, 1fr);
}

.posts-grid-container::before,
.posts-grid-container::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    height: 40px;
    pointer-events: none;
    z-index: 2;
}

.posts-grid-container::before {
    top: 0;
    background: linear-gradient(to bottom, 
        rgba(145, 168, 243, 1) 0%, 
        rgba(145, 168, 243, 0) 100%);
    border-radius: 3rem 3rem 0 0;
}

.posts-grid-container::after {
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(145, 168, 243, 1) 0%, 
        rgba(145, 168, 243, 0) 100%);
    border-radius: 0 0 3rem 3rem;
}

.posts-grid-container.scrollable::before,
.posts-grid-container.scrollable::after {
    display: block;
}

.posts-grid-container:not(.scrollable)::before,
.posts-grid-container:not(.scrollable)::after {
    display: none;
}