.author-widget {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    border: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.author-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.author-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    /* Theme-adapted gradient (navy -> yellow). Replace with your original if preferred */
    background: linear-gradient(90deg, var(--navy-primary) 0%, var(--yellow-primary) 50%, var(--navy-primary) 100%);
}

/* =================================================================
WIDGET HEADER STYLING
================================================================= */

.author-widget .widget-header {
    /* Theme-adapted header */
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 20px 25px;
    margin: 0;
    position: relative;
}

.author-widget .widget-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--navy-dark);
}

.author-widget .widget-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.author-widget .widget-header i {
    color: rgba(255,255,255,0.9);
}

/* =================================================================
WIDGET CONTENT STYLING
================================================================= */

.author-widget .widget-content {
    padding: 30px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* =================================================================
AUTHOR PHOTO CENTERING & STYLING
================================================================= */

.author-photo-center {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 20px;
    position: relative;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.author-image-centered {
    display: block;
    margin: 0 auto;
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover; object-position: center;
    /* Theme-adapted ring color */
    border: 5px solid var(--navy-primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    position: relative; z-index: 2;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.author-image-centered:hover {
    transform: scale(1.08);
    border-color: var(--yellow-primary);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.author-photo-center::before {
content: '';
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 170px; height: 170px;
border: 2px dashed rgba(41, 91, 159, 0.3); / dashed navy */
border-radius: 50%;
z-index: 1;
animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Image Overlay for Professional Touch */
.image-overlay {
    position: absolute;
    bottom: -5px; right: -5px;
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
    border-radius: 20px;
    padding: 4px 8px;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.credentials-badge span {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* =================================================================
AUTHOR DETAILS STYLING
================================================================= */

.author-details { text-align: center; }

.author-name {
    color: #333;
    font-weight: 700;
    font-size: 24px;
    margin: 15px 0 8px 0;
    /* Theme-adapted gradient text */
    background: linear-gradient(135deg, var(--navy-primary), var(--yellow-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-title {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =================================================================
AUTHOR SPECIALTIES BADGES
================================================================= */

.author-specialties { margin-bottom: 20px; }

.specialty-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-light));
    color: #fff;
    padding: 6px 14px;
    margin: 3px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.specialty-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* =================================================================
AUTHOR BIO STYLING
================================================================= */

.author-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 10px;
}

/* =================================================================
AUTHOR EXPERIENCE ITEMS
================================================================= */

.author-experience {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.experience-item {
    display: flex;
    align-items: center;
    background: rgba(41, 91, 159, 0.08); /* translucent navy */
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    min-width: 120px;
    justify-content: center;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(41, 91, 159, 0.16);
    transform: translateY(-2px);
}

.experience-item i { margin-right: 6px; font-size: 14px; }

/* =================================================================
AUTHOR CREDENTIALS BADGES
================================================================= */

.author-credentials { margin-bottom: 20px; }

.author-credentials .badge {
    margin: 3px;
    font-size: 11px;
    padding: 8px 14px;
    border-radius: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease;
}

.author-credentials .badge:hover { transform: translateY(-2px); }

.bg-primary { background: linear-gradient(135deg, var(--navy-primary), var(--navy-light)) !important; }
.bg-success { background: linear-gradient(135deg, #28a745, #20c997) !important; }
.bg-info { background: linear-gradient(135deg, #17a2b8, #20c997) !important; }

/* =================================================================
AUTHOR CONTACT BUTTONS
================================================================= */

.author-contact { margin-bottom: 20px; }

.author-contact .btn {
    border-radius: 25px;
    font-size: 13px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 5px;
}

.author-contact .btn-primary {
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
    border: none;
    color: #fff;
}

.author-contact .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.author-contact .btn-outline-secondary {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.author-contact .btn-outline-secondary:hover {
    background: var(--navy-primary);
    border-color: var(--navy-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* =================================================================
AUTHOR SOCIAL LINKS
================================================================= */

.author-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative; overflow: hidden;
}

/* Platform-Specific Colors /
.social-link.linkedin,
.social-link[href="linkedin"] {
background: linear-gradient(135deg, #0077b5, #005885);
color: #fff;
}

.social-link.twitter,
.social-link[href*="twitter"] {
background: linear-gradient(135deg, #1da1f2, #0d8bd9);
color: #fff;
}

.social-link.instagram,
.social-link[href*="instagram"] {
background: linear-gradient(135deg, #e4405f, #bc1888);
color: #fff;
}

.social-link.email,
.social-link[href^="mailto"] {
background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
color: #fff;
}

/* Default styling for unspecified links /
.social-link:not(.linkedin):not(.twitter):not(.instagram):not(.email):not([href="linkedin"]):not([href*="twitter"]):not([href*="instagram"]):not([href^="mailto"]) {
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
color: var(--navy-primary);
}

/* Social Link Hover Effects */
.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #fff;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.social-link:hover::before { width: 100%; height: 100%; }

.social-link i { font-size: 18px; z-index: 1; position: relative; }

/* =================================================================
OTHER WIDGET STYLES
================================================================= */

/* Related Posts Widget */
.related-posts-widget {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.related-posts-widget .widget-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 15px 20px;
    margin: 0;
}

.related-posts-widget .widget-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.related-posts-widget .widget-content { padding: 20px; }

.related-post { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.related-post:last-child { border-bottom: none; }

.related-post h6 a {
    color: #333; text-decoration: none; font-weight: 500; line-height: 1.4; transition: color 0.3s ease;
}
.related-post h6 a:hover { color: var(--navy-primary); }

/* Back to Blog Widget */
.back-to-blog-widget {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
}

/* =================================================================
POST CONTENT STYLING
================================================================= */

.post-meta {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--navy-primary);
}

.blog-post__meta-info {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 20px;
}

.blog-post__meta-info li {
    display: flex; align-items: center; color: #666; font-size: 14px;
}

.blog-post__meta-info li i { margin-right: 6px; color: var(--navy-primary); }

.blog-post__meta-info a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-post__meta-info a:hover { text-decoration: underline; color: var(--yellow-primary); }

/* Post Content */
.post-content { line-height: 1.8; font-size: 16px; color: #333; }

.post-content h1,
.post-content h2,
.post-content h3 { color: #333; margin-top: 30px; margin-bottom: 15px; }

.post-content p { margin-bottom: 20px; }

.post-content img {
    max-width: 100%; height: auto;
    border-radius: 8px; margin: 15px 0;
}

/* Social Share Buttons */
.social-share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-share-buttons .btn {
    border-radius: 20px; font-size: 13px; padding: 8px 16px; transition: all 0.3s ease;
}
.social-share-buttons .btn:hover { transform: translateY(-2px); }

/* =================================================================
RESPONSIVE DESIGN
================================================================= */

@media (max-width: 992px) {
    .author-widget .widget-content { padding: 25px 20px; }
    .author-image-centered { width: 120px; height: 120px; }
    .author-photo-center::before { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
    .author-widget { margin-bottom: 25px; }
    .author-widget .widget-content { padding: 20px 15px; }
    .author-image-centered { width: 100px; height: 100px; }
    .author-photo-center::before { width: 120px; height: 120px; }
    .author-name { font-size: 20px; }
    .author-title { font-size: 14px; }
    .experience-item { min-width: 100px; font-size: 11px; }
    .author-contact .btn { font-size: 12px; padding: 8px 16px; display: block; width: 100%; margin-bottom: 10px; }
    .social-link { width: 40px; height: 40px; }
    .social-link i { font-size: 16px; }
    .blog-post__meta-info { flex-direction: column; gap: 10px; }
    .social-share-buttons { justify-content: center; }
}

@media (max-width: 480px) {
    .author-experience { flex-direction: column; align-items: center; }
    .experience-item { width: 100%; max-width: 200px; }
    .author-contact .btn { display: block; width: 100%; margin-bottom: 10px; }
    .social-link { width: 36px; height: 36px; }
    .social-link i { font-size: 14px; }
}

/* =================================================================
ANIMATION EFFECTS
================================================================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.author-widget { animation: fadeInUp 0.6s ease-out; }
.author-image-centered { animation: fadeInUp 0.8s ease-out 0.2s both; }
.author-details > * { animation: fadeInUp 0.6s ease-out 0.4s both; }

/* =================================================================
ACCESSIBILITY FEATURES
================================================================= */

.author-contact .btn:focus,
.social-link:focus {
    outline: 2px solid var(--yellow-primary);
    outline-offset: 2px;
}

.author-image-centered:focus {
    outline: 2px solid var(--yellow-primary);
    outline-offset: 4px;
}

/* =================================================================
PRINT STYLES
================================================================= */

@media print {
    .author-widget {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    .author-widget::before { display: none; }
    .author-image-centered { box-shadow: none; border: 2px solid #333; }
    .social-link, .author-contact { display: none; }
    .author-photo-center::before { display: none; }
}

/* =================================================================
LOADING STATES
================================================================= */

.author-image-centered[src*="default-avatar"] {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #dee2e6;
}

/* Image loading placeholder */
.author-image-centered:not([src]),
.author-image-centered[src=""] {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.author-image-centered:not([src])::before,
.author-image-centered[src=""]::before {
    content: '👤';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--navy-primary);
}