/* Author List Grid */
.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.author-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.author-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 25px;
    text-align: center;
}

.author-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.author-title {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color, #007bff);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more i {
    margin-left: 5px;
    transition: margin-left 0.2s;
}

.author-card:hover .read-more i {
    margin-left: 8px;
}

/* Author Profile Header */
.author-profile-header {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.author-profile-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-profile-image {
    flex: 0 0 150px;
}

.author-profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.author-profile-bio {
    flex: 1;
}

.author-profile-bio h2 {
    margin: 0 0 5px;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

.author-title-large {
    font-size: 1.1rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
}

.author-bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.back-link-container {
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary-color, #007bff);
}

.btn-back i {
    margin-right: 8px;
}

.author-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.author-article-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    align-items: center;
    gap: 25px;
}

.author-article-item:hover {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.article-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 80px;
    height: 80px;
    border: 1px solid #e9ecef;
    color: #555;
    flex-shrink: 0;
}

.article-date-badge .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color, #007bff);
}

.article-date-badge .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
}

.article-date-badge .year {
    font-size: 0.75rem;
    color: #888;
}

.article-content {
    flex: 1;
}

.article-title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: var(--primary-color, #007bff);
}

.article-summary {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .author-article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .article-date-badge {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px;
        justify-content: flex-start;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .article-date-badge .day {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .author-profile-grid {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-profile-image {
        margin-bottom: 20px;
    }
}