.author-hero {
    margin-bottom: 40px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 1rem;
}

.author-hero__container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px;
}

.author-hero__image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.author-hero__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-hero__header {
    margin-bottom: 10px;
}

.author-hero__name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.author-hero__title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}


.author-hero__bio {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-color);
    padding-bottom: 20px;
}

.author-hero__social {
    display: flex;
    gap: 15px;
}

    .author-hero__social .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--bg-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
        transition: all 0.3s ease;
    }

        .author-hero__social .social-link i {
            font-size: 16px;
            color: var(--text-dark);
        }

        .author-hero__social .social-link:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

            .author-hero__social .social-link:hover i {
                color: white;
            }

.author-articles {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.author-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.author-articles__load-more {
    text-align: center;
    margin-top: 40px;
}

.authors-list-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: var(--bg-color);
    border-radius: 12px;
}

    .authors-list-header h1 {
        font-size: 36px;
        color: var(--text-dark);
        margin-bottom: 15px;
    }

    .authors-list-header p {
        font-size: 16px;
        color: var(--text-dark-low);
        max-width: 600px;
        margin: 0 auto;
    }

.authors-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-categories {
    display: flex;
    gap: 15px;
}

.filter-button {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-color);
    transition: all 0.3s ease;
}

    .filter-button.active {
        background: var(--primary-color);
        color: white;
    }

.filter-search {
    position: relative;
}

    .filter-search input {
        padding: 10px 20px;
        padding-left: 40px;
        border-radius: 5px;
        border: 1px solid var(--bg-color);
        width: 250px;
        font-size: 14px;
    }

    .filter-search i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-dark-low);
        font-size: 16px;
    }

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.author-list-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.author-list-header {
    position: relative;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark));
}

.author-list-avatar {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 115px;
    height: 115px;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    overflow: hidden;
}

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

.author-list-content {
    padding: 50px 20px 20px;
    text-align: center;
}

.author-list-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-list-title {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.author-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    padding: 80px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

    .author-page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" fill="none"/></svg>') repeat;
        opacity: 0.2;
    }

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

    .header-content h1 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 20px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        color: var(--text-light);
    }

    .header-content p {
        font-size: 20px;
        opacity: 0.9;
        margin-bottom: 40px;
    }


.author-list-social {
    display: none;
}

.author-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-color);
    color: var(--text-dark);
    border-radius: 5px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-size: 12px;
}

    .author-detail-btn i {
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .author-detail-btn:hover {
        background: var(--primary-color);
        color: white;
    }

        .author-detail-btn:hover i {
            transform: translateX(4px);
        }

/* Infinite Scroll Loading Spinner */
.infinite-scroll-loading {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .author-hero__container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .author-hero__content {
        gap: 10px;
    }

    .author-hero__header {
        margin-bottom: 10px;
    }

    .author-hero__name {
        font-size: 24px;
    }

    .author-hero__bio {
        font-size: 14px;
    }

    .author-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {



    .author-hero__container {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px;
        width: 100%;
    }

    .author-hero__header {
        margin-bottom: 0;
    }

    .author-hero__image {
        width: 100%;
        aspect-ratio: 1;
    }

    .author-hero__content {
        grid-column: span 2;
    }

        .author-hero__content .author-hero__bio {
            padding-bottom: 0;
            border-bottom: none;
        }


    .author-hero__name {
        font-size: 17px;
    }

    .author-hero__social {
        gap: 10px;
    }

        .author-hero__social .social-link {
            width: 30px;
            height: 30px;
        }

            .author-hero__social .social-link i {
                font-size: 14px;
            }

    .authors-filter {
        flex-direction: column;
        gap: 20px;
    }

    .filter-categories {
        overflow-x: auto;
        padding-bottom: 10px;
        width: 100%;
    }

    .filter-button {
        white-space: nowrap;
    }

    .filter-search {
        width: 100%;
    }

        .filter-search input {
            width: calc(100% - 60px);
        }

    .author-page-header {
        padding: 60px 0;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .header-content p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {

    .author-articles__grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .authors-list-header h1 {
        font-size: 28px;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }
}
