/* --- Author Section Premium --- */
.author-section {
    position: relative;
    overflow: hidden;
}

.author-card {
    background: linear-gradient(#0b0e17, #0b0e17) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 215, 0, 0.15)) border-box;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.author-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.author-avatar {
    flex: 0 0 180px;
    /* Prevent shrink */
    min-width: 180px;
    /* Force minimum width */
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 50%;
    padding: 5px;
    /* Spacing for the border ring */
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(255, 185, 0, 0.3);
}

.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #0b0e17;
    /* Inner gap */
    display: block;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.author-role {
    color: var(--btn-bg);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 5px;
}

.author-bio {
    color: #d0d0e0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.author-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.author-link:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.author-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.author-link-row {
    margin-bottom: 20px;
}

/* Socials */
.author-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0b0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: var(--gold-gradient, linear-gradient(135deg, #FFD700, #FFA500));
    color: #0b0e17;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.social-link:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .author-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .author-card {
        padding: 30px 20px;
    }

    .author-avatar {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .author-name {
        font-size: 2rem;
    }

    .author-bio {
        font-size: 1rem;
    }

    .author-socials {
        justify-content: center;
    }

    .author-link-row {
        text-align: center;
        margin-bottom: 25px;
    }

    .author-link {
        justify-content: center;
    }
}