/* =========================================================================
   AUTHOR BYLINE (blog detail — below title, above excerpt/image)
   ========================================================================= */

.blog-detail-byline {
    margin: 16px 0 20px;
}

.blog-detail-byline-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.blog-detail-byline-link:hover {
    opacity: 0.85;
    text-decoration: none;
}

.blog-detail-byline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-detail-byline-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007E91;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.blog-detail-byline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-detail-byline-name {
    font-size: 15px;
    font-weight: 600;
    color: #181818;
    line-height: 1.3;
}

.blog-detail-byline-designation {
    font-size: 13px;
    color: #64748b;
    line-height: 1.3;
}


/* =========================================================================
   EXCERPT (blog detail — between byline and featured image)
   ========================================================================= */

.blog-detail-excerpt {
    font-size: 18px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 24px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-style: italic;
}


/* =========================================================================
   AUTHOR BIO BOX (blog detail — end of article)
   ========================================================================= */

.blog-author-box {
    margin: 48px 0 24px;
    padding: 28px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.blog-author-box-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.blog-author-box-avatar-link {
    flex-shrink: 0;
    text-decoration: none;
}

.blog-author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-box-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #007E91;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-author-box-details {
    flex: 1;
    min-width: 0;
}

.blog-author-box-label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
}

.blog-author-box-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.blog-author-box-name a {
    color: #181818;
    text-decoration: none;
}

.blog-author-box-name a:hover {
    color: #007E91;
    text-decoration: none;
}

.blog-author-box-designation {
    font-size: 14px;
    color: #007E91;
    font-weight: 500;
    margin: 0 0 12px;
}

.blog-author-box-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
}

.blog-author-box-social {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-author-box-social a {
    color: #64748b;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.blog-author-box-social a:hover {
    color: #007E91;
    text-decoration: none;
}

.blog-author-box-all-articles {
    font-size: 14px;
    font-weight: 500;
    color: #007E91 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.blog-author-box-all-articles:hover {
    text-decoration: underline !important;
}


/* =========================================================================
   AUTHOR PROFILE PAGE
   ========================================================================= */

.blog-author-profile-section {
    padding: 40px 0 60px;
}

.blog-author-profile-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-author-profile-avatar-wrapper {
    flex-shrink: 0;
}

.blog-author-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.blog-author-profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #007E91;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid #e2e8f0;
}

.blog-author-profile-info {
    flex: 1;
    min-width: 0;
}

.blog-author-profile-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #181818;
    margin: 0 0 6px;
    line-height: 1.3;
}

.blog-author-profile-designation {
    font-size: 16px;
    color: #007E91;
    font-weight: 500;
    margin: 0 0 16px;
}

.blog-author-profile-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 20px;
}

.blog-author-profile-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.blog-author-profile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.blog-author-profile-social-link:hover {
    border-color: #007E91;
    color: #007E91;
    background-color: #f0fdfa;
    text-decoration: none;
}

.blog-author-profile-article-count {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.blog-author-articles-heading {
    margin-bottom: 24px;
}

.blog-author-articles-heading h2 {
    font-size: 22px;
    font-weight: 700;
    color: #181818;
    margin: 0;
}


/* =========================================================================
   RESPONSIVE — AUTHOR COMPONENTS
   ========================================================================= */

@media screen and (max-width: 768px) {
    .blog-author-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-author-box-social {
        justify-content: center;
    }

    .blog-author-box-all-articles {
        margin-left: 0;
    }

    .blog-author-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .blog-author-profile-info h1 {
        font-size: 24px;
    }

    .blog-author-profile-social {
        justify-content: center;
    }

    .blog-detail-excerpt {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .blog-author-box {
        padding: 20px 16px;
    }

    .blog-author-profile-avatar,
    .blog-author-profile-avatar-placeholder {
        width: 96px;
        height: 96px;
        font-size: 36px;
    }

    .blog-author-profile-info h1 {
        font-size: 20px;
    }
}
