/* ========================================
   Author Profile Page Styles
   Figma: node-id=8161-26487
   ======================================== */

/* --- Section Wrapper --- */
.author-profile-section {
    max-width: 1320px;
    margin: 0 auto;
}

.author-profile-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* ===== LEFT SIDEBAR ===== */
.author-sidebar {
    background: #D9D3FD;
    width: 424px;
    min-width: 424px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

.author-avatar {
    width: 255px;
    height: 255px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 30px;
}

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

.author-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.author-name {
    font-family: 'Avenir', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.72px;
    color: #1D2939;
    margin: 0;
}

.author-designation {
    font-family: 'Avenir', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #1D2939;
    width: 321px;
    margin: 0;
}

/* --- LinkedIn Button --- */
.btn-linkedin-wrapper {
    position: relative;
    width: 312px;
    height: 44px;
}

.btn-linkedin-shadow {
    position: absolute;
    /* bottom: -4px; */
    left: 0;
    width: 312px;
    height: 44px;
    background: #fff;
    border-radius: 4px;
    z-index: 1;
}

.btn-linkedin {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-linkedin:hover {
    opacity: 0.85;
    text-decoration: none;
}

.btn-linkedin svg {
    flex-shrink: 0;
}

.btn-linkedin span {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #3A58EF;
    white-space: nowrap;
}

/* ===== RIGHT CONTENT ===== */
.author-content {
    background: #fff;
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.content-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    flex: 1;
}

/* --- About Section --- */
.section-heading {
    font-family: 'Avenir', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: #111E30;
    margin: 0;
}

.about-text {
    font-family: 'Avenir', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #475467;
}

.about-text p {
    margin-bottom: 18px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* --- Articles Section --- */
.articles-heading {
    font-family: 'Avenir', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 38px;
    color: #111E30;
    margin: 0;
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.articles-row {
    display: flex;
    gap: 32px;
    justify-content: center;
}

/* --- Article Card --- */
.article-card {
    background: #fff;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 384px;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.article-img-wrapper {
    width: 100%;
    height: 198px;
    border-radius: 8px;
    overflow: hidden;
    border: 0.2px solid #98A2B3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 165px;
}

.article-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-card h3 {
    font-family: 'Avenir', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.3;
    color: #2A3343;
    height: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 7px;
}

.article-date svg {
    flex-shrink: 0;
}

.article-date span {
    font-family: 'Avenir', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #5D667B;
}

.article-excerpt {
    font-family: 'Avenir', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #5D667B;
    height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* --- View All Button --- */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #3A58EF;
    border-radius: 4px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    font-family: 'Avenir', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #2d48d6;
    color: #fff;
    text-decoration: none;
}

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

@media (max-width: 1200px) {
    .author-sidebar {
        width: 340px;
        min-width: 340px;
    }

    .article-card {
        width: 100%;
    }

    .articles-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    .author-profile-wrapper {
        flex-direction: column;
    }

    .author-sidebar {
        width: 100%;
        min-width: 100%;
        min-height: auto;
        padding: 40px 20px;
    }

    .author-avatar {
        width: 200px;
        height: 200px;
    }

    .author-name {
        font-size: 28px;
        line-height: 36px;
    }

    .section-heading {
        font-size: 28px;
    }

    .articles-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .articles-row {
        flex-direction: column;
        align-items: stretch;
    }

    .article-card {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .author-sidebar {
        padding: 30px 20px;
    }

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

    .author-name {
        font-size: 24px;
        line-height: 32px;
    }

    .author-designation {
        font-size: 16px;
        line-height: 24px;
        width: auto;
    }

    .author-content {
        padding: 20px 15px;
    }

    .section-heading {
        font-size: 24px;
    }

    .about-text {
        font-size: 16px;
        line-height: 26px;
    }

    .articles-heading {
        font-size: 22px;
        line-height: 30px;
    }

    .article-card h3 {
        font-size: 18px;
        height: auto;
        -webkit-line-clamp: 3;
    }

    .article-excerpt {
        font-size: 14px;
        line-height: 22px;
        height: auto;
    }

    .btn-linkedin-wrapper {
        width: 280px;
    }

    .btn-linkedin-shadow {
        width: 280px;
    }
}
