/**
 * Author Posts Section Styles
 */

.author-posts {
    padding: 2rem 1rem;
}

.author-posts__inner {
    max-width: 980px;
    margin: 0 auto;
}

.author-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.author-posts__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
     border-bottom: 3px solid #559da4;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.author-posts__card:hover,
.author-posts__card:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #effdff;;
    outline: none;
}

.author-posts__thumb {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #f5f5f5;
}

.author-posts__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-posts__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.author-posts__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: #559da4;
    border: 1px solid #559da4;
    border-radius: 3rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.author-posts__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;

}

.author-posts__date {
    font-size: 0.8125rem;
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
}

.author-posts__pagination {
    margin-top: 3rem;
    padding-top: 2rem;
     border-bottom: 3px solid #559da4;
}

.author-posts__pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.author-posts__pagination .nav-links a,
.author-posts__pagination .nav-links span {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    text-decoration: none;
    border-bottom: 3px solid #559da4;

    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
}

.author-posts__pagination .nav-links a:hover,
.author-posts__pagination .nav-links a:focus {
    background-color: #559da4;
    color: #fff;
 border-bottom: 3px solid #559da4;
    outline: none;
}

.author-posts__pagination .nav-links .current {
    background-color: #559da4;
    color: #fff;
    border-color: #559da4;
}

@media (min-width: 768px) {
    .author-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .author-posts__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .author-posts {
        padding: 1.5rem 1rem;
    }
    
    .author-posts__title {
        font-size: 1.125rem;
    }
}
