/* Author Page Styles */

/* Author Profile Section */
.author-profile-section {
    padding: 2rem;
    margin-bottom: 2rem;
}

.author-profile-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

/* Author Avatar */
.author-avatar-wrapper {
    position: relative;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Author Information */
.author-info-wrapper {
    padding: 0 1rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.author-name-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

/* LinkedIn Icon Link */
.author-linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0077b5;
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 181, 0.3);
}

.author-linkedin-link:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 181, 0.4);
    color: #fff;
}

.author-linkedin-link .icon.linkedin {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>') no-repeat center;
    background-size: contain;
}

/* Email Icon Link */
.author-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1f9a17;
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    margin-left: 0.5rem;
}

.author-email-link:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: #fff;
}

.author-email-link .icon.email {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>') no-repeat center;
    background-size: contain;
}

.author-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.icon {
    margin: 0px !important;
}
.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 60px;
}

.detail-value {
    color: #6c757d;
}

.author-bio p {
    font-size: 1rem;
    line-height: 1.6;
    color: #6a6c6f;
    margin: 0;
    text-align: justify;
    font-weight: 400;
}

.bio-placeholder {
    color: #adb5bd !important;
    font-style: italic;
}



/* Author Articles Section */
.author-articles-section {
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.posts-count {
    background: #1f9a17;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.posts-count:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-posts-message p {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-bio p {
        font-size: 0.9rem;
    }
    .author-profile-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .author-profile-box {
        padding: 1rem;
    }

    .author-name {
        font-size: 1.5rem;
    }

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

    .author-info-wrapper {
        padding: 0;
        margin-bottom: 1rem;
    }

    .author-name-row {
        justify-content: center;
        text-align: center;
    }

        .author-email {
        text-align: center;
    }
    
    .author-detail-item {
        justify-content: center;
    }

    .section-header {
        flex-direction: row;
        gap: 1rem;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .posts-count {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .author-articles-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .author-name {
        font-size: 1.75rem;
    }

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

        .author-linkedin-link,
    .author-email-link {
        width: 35px;
        height: 35px;
    }
    
    .author-linkedin-link .icon.linkedin,
    .author-email-link .icon.email {
        width: 18px;
        height: 18px;
    }
}

/* Animation for author profile */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-profile-box {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for article cards */
.archive-blog-section .item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-blog-section .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.row.align-items-center {
    display: flex !important;
}

/* Author Meta (Job Title & Specialties) */
.author-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.25rem;
}

.author-job-title,
.author-specialties {
    position: relative;
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #343a40;
    padding: 0.45rem 0.85rem 0.45rem 0.85rem;
    line-height: 1.35;
    font-size: 0.95rem;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* RTL aware logical padding for icon space */
/* [dir="rtl"] .author-job-title,
[dir="rtl"] .author-specialties {
    padding: 0.45rem 2.2rem 0.45rem 0.85rem;
} */

.author-job-title:hover,
.author-specialties:hover {
    background: #f1f3f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* .author-job-title::before,
.author-specialties::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 0.6rem;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.85;
} */

/* RTL aware logical icon position */
/* [dir="rtl"] .author-job-title::before,
[dir="rtl"] .author-specialties::before {
    inset-inline-end: 0.6rem;
    inset-inline-start: auto;
} */

/* Briefcase icon for Job Title (white on green circle) */
/* .author-job-title::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="%231f9a17"/><path d="M9 7V6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v1h3a2 2 0 0 1 2 2v3h-4v-1H8v1H4V9a2 2 0 0 1 2-2h3zm2-1h2V6h-2v0zM4 14h7v1h2v-1h7v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3z" fill="%23ffffff"/></svg>');
} */

/* Tag icon for Specialties (white on blue circle) */
/* .author-specialties::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="%230077b5"/><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L3 13.99V8h6l7.59 7.59zM7.5 10A1.5 1.5 0 1 0 7.5 7a1.5 1.5 0 0 0 0 3z" fill="%23ffffff"/></svg>');
} */

@media (max-width: 768px) {
    .author-job-title,
    .author-specialties {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem 0.4rem 2rem;
    }

    [dir="rtl"] .author-job-title,
    [dir="rtl"] .author-specialties {
        padding: 0.4rem 2rem 0.4rem 0.8rem;
    }
}