﻿body {
    background-color: #f9f9f9;
}

.contributor-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.contributor-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

body {
    background-color: #f9f9f9;
}

.contributor-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.contributor-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header Section - Photo left, Name + Bio right */
.contributor-header {
    display: flex;
    gap: 50px;
    padding: 60px;
    align-items: flex-start;
}

.contributor-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contributor-info {
    flex: 1;
}

.contributor-name {
    font-family: 'Dharma Gothic', sans-serif;
    font-size: 3.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0 0 30px 0;
    color: #111;
    line-height: 1;
}

.contributor-bio {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.8;
}

    .contributor-bio p {
        margin-bottom: 1.5em;
    }

        .contributor-bio p:first-child {
            font-size: 1.25rem;
            color: #444;
        }

        .contributor-bio p:last-child {
            margin-bottom: 0;
        }

/* Articles Section */
.contributor-articles {
    padding: 60px;
    border-top: 2px solid #e5e5e5;
    background-color: #fafafa;
}

    .contributor-articles h2 {
        font-family: 'Dharma Gothic', sans-serif;
        font-size: 2.5rem;
        font-weight: 400;
        margin-bottom: 40px;
        color: #111;
        text-align: left;
        padding-bottom: 15px;
        border-bottom: 3px solid #680024;
    }

/* Articles Section */
.contributor-articles {
    padding: 60px;
    border-top: 2px solid #e5e5e5;
    background-color: #fafafa;
}

    .contributor-articles h2 {
        font-family: 'Dharma Gothic', sans-serif;
        font-size: 2.5rem;
        font-weight: 400;
        margin-bottom: 40px;
        color: #111;
        padding-bottom: 15px;
        border-bottom: 3px solid #680024;
    }

/* Article cards - grid view */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .article-card img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .article-card h3 {
        font-size: 1.15rem;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
        padding: 16px;
        color: #111;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }

.article-card-link:hover h3 {
    color: #680024;
}

/* View All button */
.tag-navigation {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #680024;
    border-radius: 4px;
    text-decoration: none;
    color: #680024;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
}

    .view-all-btn:hover {
        background-color: #680024;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(104, 0, 36, 0.2);
    }

.no-articles {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

/* Responsive */
@media (max-width: 968px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contributor-header {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .contributor-photo {
        width: 180px;
        height: 180px;
    }

    .contributor-name {
        font-size: 3rem;
    }

    .contributor-bio,
    .contributor-articles {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .contributor-page {
        margin: 30px 15px;
    }

    .contributor-header,
    .contributor-bio,
    .contributor-articles {
        padding: 30px 20px;
    }

    .contributor-photo {
        width: 150px;
        height: 150px;
    }

    .contributor-name {
        font-size: 2.4rem;
    }

    .contributor-bio {
        font-size: 1.05rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}
