/* Custom Author Block Design - The Daily Guardian Style */

/* Override default author styles */
.post-author {
    background: #f8f8f8;
    padding: 40px 30px;
    margin: 40px 0;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    box-shadow: none;
}

body.author .post-author {
    background: #f8f8f8;
    padding: 40px 30px;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Author image styles */
.post-author .author-img {
    float: none;
    margin: 0;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-author .author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
    border: none;
}

/* Author content styles */
.post-author .author-content {
    margin-left: 0;
    flex: 1;
    padding-top: 10px;
}

/* Author name styling */
.author-content h5 {
    font-size: 32px;
    font-weight: 700;
    color: #c41e3a;
    margin: 0 0 8px 0;
    text-transform: none;
    font-family: 'Georgia', serif;
    line-height: 1.2;
}

.author-content h5 a {
    color: #c41e3a;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
}

.author-content h5 a:hover {
    color: #a01729;
}

/* Job title styling */
.author-job-title {
    font-size: 18px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-style: italic;
}

/* Author description */
.author-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

/* Follow label */
.follow-label {
    display: inline-block;
    font-size: 16px;
    color: #333;
    margin-right: 15px;
    font-weight: 500;
    vertical-align: middle;
}

/* Social media icons container */
.bio-social {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 20px;
}

/* Social media icons */
.bio-social .author-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 8px 0 0;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

/* Facebook icon */
.bio-social .author-social[href*="facebook"] {
    background-color: #1877f2;
    color: #fff;
}

.bio-social .author-social[href*="facebook"]:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

/* Twitter/X icon */
.bio-social .author-social[href*="x.com"], 
.bio-social .author-social[href*="twitter"] {
    background-color: #000;
    color: #fff;
}

.bio-social .author-social[href*="x.com"]:hover, 
.bio-social .author-social[href*="twitter"]:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Instagram icon */
.bio-social .author-social[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: #fff;
}

.bio-social .author-social[href*="instagram"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Other social icons default styling */
.bio-social .author-social:not([href*="facebook"]):not([href*="x.com"]):not([href*="twitter"]):not([href*="instagram"]) {
    background-color: #666;
    color: #fff;
}

.bio-social .author-social:not([href*="facebook"]):not([href*="x.com"]):not([href*="twitter"]):not([href*="instagram"]):hover {
    background-color: #444;
    transform: translateY(-2px);
}

/* Icon centering */
.bio-social .author-social i {
    vertical-align: middle;
    line-height: 1;
}

/* Read More link styling */
.author-content .read-more {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
}

.author-content .read-more:hover {
    text-decoration: underline;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .post-author,
    body.author .post-author {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .post-author .author-img {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .author-content h5,
    .author-content h5 a {
        font-size: 28px;
    }
    
    .author-job-title {
        font-size: 16px;
    }
    
    .author-content p {
        text-align: left;
        font-size: 15px;
    }
    
    .bio-social {
        justify-content: center;
        margin-top: 15px;
    }
    
    .follow-label {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .author-content h5,
    .author-content h5 a {
        font-size: 24px;
    }
    
    .author-job-title {
        font-size: 14px;
    }
    
    .bio-social .author-social {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Ensure proper styling override for different bio styles */
.abio-style-1.post-author,
.abio-style-2.post-author,
.abio-style-3.post-author,
.abio-style-4.post-author,
.abio-style-5.post-author {
    background: #f8f8f8 !important;
    padding: 40px 30px !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 30px !important;
    text-align: left !important;
}

.abio-style-1 .author-img,
.abio-style-2 .author-img,
.abio-style-3 .author-img,
.abio-style-4 .author-img,
.abio-style-5 .author-img {
    float: none !important;
    margin: 0 !important;
    display: block !important;
}

.abio-style-1 .author-content,
.abio-style-2 .author-content,
.abio-style-3 .author-content,
.abio-style-4 .author-content,
.abio-style-5 .author-content {
    margin-left: 0 !important;
    text-align: left !important;
}

/* Mobile override for all bio styles */
@media (max-width: 768px) {
    .abio-style-1.post-author,
    .abio-style-2.post-author,
    .abio-style-3.post-author,
    .abio-style-4.post-author,
    .abio-style-5.post-author {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .abio-style-1 .author-content,
    .abio-style-2 .author-content,
    .abio-style-3 .author-content,
    .abio-style-4 .author-content,
    .abio-style-5 .author-content {
        text-align: center !important;
        margin-top: 20px !important;
    }
    
    .abio-style-1 .author-img,
    .abio-style-2 .author-img,
    .abio-style-3 .author-img,
    .abio-style-4 .author-img,
    .abio-style-5 .author-img {
        margin: 0 auto !important;
    }
}
