#author-detail .author-header {
    background-color: #f0fafa;
    padding: 60px 0 90px;
}

#author-detail .author-header .container {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: auto;
}

#author-detail .author-header .author-info {
    flex: 1;
}

#author-detail .author-header .author-name {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
    color: #00918C;
}

#author-detail .author-header .author-title {
    font-size: 18px;
    color: #00918C;
}

#author-detail .author-header .author-intro {
    margin-top: 20px;
    color: #6A6A6A;
}

#author-detail .author-header .social-links {
    margin-top: 24px;
    display: flex; /* Added for centering */
}

#author-detail .author-header .social-links a {
    display: inline-block;
    margin-right: 16px;
}

#author-detail .author-header .author-avatar {
    width: 200px;
    height: 200px;
    /*border-radius: 50%;*/
    overflow: hidden;
    margin-left: 48px;

    aspect-ratio: 1 / 1; /* 保持正方形，可改比例 */
    /*overflow: hidden;*/
    /* 下面這組可微調成你要的「蛋形/水滴形」 */
    border-radius: 60% 40% 58% 42% / 55% 60% 40% 45%;
}

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

#author-detail .article-list {
    max-width: 800px;
    margin: auto;
}

#author-detail .paginator {
    text-align: center;
}

#author-detail .paginator .current-page {
    text-decoration: underline;
}

.latest-articles-title {
    color: #33B6B0;
    font-size: 24px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    #author-detail .author-header {
        padding: 40px 20px; /* Adjust padding for mobile */
    }

    #author-detail .author-header .container {
        flex-direction: column;
    }

    #author-detail .author-header .author-avatar {
        order: -1; /* Move avatar to the top */
        margin-left: 0; /* Reset margin */
        margin-bottom: 24px; /* Add space below avatar */
    }

    #author-detail .author-header .author-info {
        text-align: center; /* Center the text inside the info block */
    }

    #author-detail .author-header .social-links {
        justify-content: center; /* Center the social links */
    }
}
