.author-container {
    padding: 2rem;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.author-avatar {
    text-align: center;
    margin-right: 1.5rem;
}

.author-avatar img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
    text-align: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #84be61; /* Fondo verde claro */
    margin: 0 0.5rem;
    text-decoration: none;
    color: white; /* Color del icono */
    font-size: 1.25rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #8cc184; /* Fondo verde claro más oscuro al pasar el ratón */
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    margin: 0;
    color: #333;
}

.author-bio {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.post-item a {
    text-decoration: none;
    color: inherit;
}

.post-item a:hover {
    text-decoration: underline;
}

.post-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: #333;
}

.post-excerpt {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0;
}

.post-date {
    font-size: 0.9rem;
    color: #999;
}

.author-posts {
    margin-top: 2rem;
    background-color: #f2f2f2;
}

.author-posts h2 {
    font-size: 1.8rem;
    color: #286783;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 1rem;
    padding-top: 2rem;
    padding-left: 4rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: center;
    margin-left: 4rem;
    margin-right: 4rem;
}

.post-card {
    margin: 0 auto;   /* Centrar tarjetas individuales si hay menos de 3 */
}

@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(1, minmax(300px, 1fr));
    }
}

.post-card {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-image {
    position: relative; /* Necesario para que el ::after funcione */
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

/* Agregar el degradado entre la imagen y el fondo negro */
.post-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Ajusta la altura del degradado */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, black 100%);
    pointer-events: none;
}

.post-content-author {
    padding: 1rem;
    background-color: #000;
    color: #fff;
    text-align: center;
    flex-grow: 1
}

.post-title-author {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #fff;
}

.post-excerpt {
    font-size: 1rem;
    color: #ddd;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    color: #333;
    background: #f4f4f4;
    transition: all 0.3s ease;
}

.pagination .current {
    background: black;
    color: white;
    font-weight: bold;
}

.pagination a:hover {
    background: #ccc;
}
