/* =========================================================
   Authors list page
   ========================================================= */

.authors-section {
    padding: 40px 0 60px;
    background-color: #f7f5f5;
}

.authors-grid {
    max-width: 1104px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
}

.author-card {
    width: calc(25% - 24px);
    min-width: 180px;
}

.author-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.18s ease;
}

.author-card__link:hover {
    transform: translateY(-4px);
}

.author-card__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    background-color: #e8e8e8;
}

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

.author-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.35;
}

.author-card__role {
    font-size: 14px;
    color: #5f6b7c;
    line-height: 1.4;
}

/* =========================================================
   Author detail page
   ========================================================= */

.author-detail-section {
    padding: 40px 0 60px;
}

.author-detail {
    max-width: 1104px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.author-detail__left {
    flex: 0 0 260px;
}

.author-detail__photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.18);
    background-color: #e8e8e8;
}

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

.author-detail__ext-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 10px 18px;
    background-color: #ffc52d;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: background-color 0.15s ease;
    word-break: break-word;
}

.author-detail__left a.author-detail__ext-link[href],
.author-detail__left a.author-detail__ext-link[href]:hover,
.author-detail__left a.author-detail__ext-link[href]:focus,
.author-detail__left a.author-detail__ext-link[href]:visited {
    color: #fff !important;
}

.author-detail__ext-link:hover {
    background-color: #e6b020;
}

.author-detail__right {
    flex: 1;
    min-width: 0;
}

.author-detail__name {
    font-size: 36px;
    font-weight: 400;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.25;
}

.author-detail__role {
    font-size: 16px;
    color: #5f6b7c;
    margin-bottom: 24px;
    font-weight: 600;
}

.author-detail__about {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 28px;
}

.author-detail__meta + .author-detail__about {
    border-top: 2px solid #ffc52d;
    padding-top: 20px;
    margin-top: 24px;
}

.author-detail__about p {
    margin-bottom: 14px;
}

.author-detail__about ul,
.author-detail__about ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.author-detail__about ul {
    list-style: disc outside;
}

.author-detail__about ol {
    list-style: decimal outside;
}

.author-detail__about li {
    margin-bottom: 8px;
}

.author-detail__about li:last-child {
    margin-bottom: 0;
}

.author-detail__about ul > li,
.author-detail__about ol > li {
    display: list-item;
    position: static;
    padding-left: 0;
    font-size: inherit;
    line-height: inherit;
}

.author-detail__about ul > li {
    list-style-type: disc !important;
}

.author-detail__about ol > li {
    list-style-type: decimal !important;
}

.author-detail__about ul > li::before,
.author-detail__about ol > li::before {
    content: none !important;
}

.author-detail__meta {
    border-top: 2px solid #ffc52d;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-detail__meta-row {
    display: flex;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.author-detail__meta-label {
    flex: 0 0 160px;
    font-weight: 700;
    color: #1f2a3a;
}

.author-detail__meta-value {
    color: #333;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
    .author-card {
        width: calc(33.33% - 22px);
    }
}

@media (max-width: 768px) {
    .author-detail {
        flex-direction: column;
        gap: 28px;
    }

    .author-detail__left {
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .author-detail__photo {
        width: 180px;
        height: 180px;
    }

    .author-detail__name {
        font-size: 28px;
    }

    .author-detail__meta-label {
        flex: 0 0 120px;
    }

    .author-card {
        width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .author-card {
        width: calc(50% - 16px);
        min-width: 140px;
    }

    .author-card__photo {
        width: 120px;
        height: 120px;
    }

    .authors-grid {
        gap: 20px;
    }

    .author-detail__meta-row {
        flex-direction: column;
        gap: 2px;
    }

    .author-detail__meta-label {
        flex: none;
    }
}
