/* Author Page Styling - Revised to match user image layout */
.author-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

body {
    background-color: #f1f5f9;
}

.author-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Left */
.author-sidebar-left {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 100px;
}

.author-profile-top {
    text-align: center;
    margin-bottom: 30px;
}

.author-main-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.author-name-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.author-role {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.author-socials-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.author-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.author-social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-fb { background: #1877f2; }
.social-tw { background: #1da1f2; }
.social-mv { background: #ffa500; } /* Matches the gold/orange in image */
.social-li { background: #0a66c2; }

.profile-info-section {
    margin-top: 40px;
}

.profile-info-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff5e14;
    display: inline-block;
    padding-bottom: 5px;
}

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 25px;
}

.profile-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    font-size: 0.9rem;
}

.detail-label {
    width: 120px;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
}

.detail-value {
    color: #475569;
    font-weight: 500;
}

/* Content Right */
.author-content-right {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.section-head {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.perf-card {
    display: flex;
    flex-direction: column;
}

.perf-thumb-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f8fafc;
}

.perf-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.perf-card:hover .perf-thumb {
    transform: scale(1.05);
}

.perf-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s;
}

.perf-card:hover h4 {
    color: #ff5e14;
}

.perf-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
}

.perf-link {
    font-size: 0.9rem;
    color: #ff5e14;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}

@media (max-width: 1024px) {
    .author-layout {
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .author-layout {
        grid-template-columns: 1fr;
    }
    .author-sidebar-left {
        position: static;
        max-width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    .profile-info-section h3 {
        margin-left: auto;
        margin-right: auto;
    }
    .profile-bio {
        text-align: center;
    }
    .detail-row {
        justify-content: center;
    }
    .detail-label {
        text-align: right;
        padding-right: 20px;
        width: 140px; /* Slightly more space for labels */
    }
    .detail-value {
        text-align: left;
        width: 140px; /* Balance it out */
    }
    .author-content-right {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .author-container {
        margin: 20px auto;
    }
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .author-name-title h2 {
        font-size: 1.5rem;
    }
    .section-head {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .author-sidebar-left {
        padding: 20px;
    }
    .author-main-img {
        width: 150px;
        height: 150px;
    }
    .detail-row {
        flex-direction: column;
        gap: 2px;
        align-items: center;
        text-align: center;
    }
    .detail-label {
        width: auto;
    }
    .detail-value {
        width: auto;
    }
    .detail-value {
        font-size: 0.85rem;
    }
    .author-social-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
