/* Author Page Styles */

/* Hero Section */
.author-hero-section {
    padding: 40px 0;
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
}

#author-hero {
    background: radial-gradient(50% 150% at 31% 48%, rgb(104 13 168), rgb(0 0 0) 100%);
    box-shadow: 0px 9px 20px 0px #0000006e;
}

.breadcrumbs {
    padding: 0 0 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #fff;
}

.author-hero-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    flex-direction: row-reverse;
}

.author-hero-content {
    flex: 1;
    min-width: 300px;
}

.author-hero-title {
    font-size: 42px;
    margin: 0 0 15px;
    color: #fff;
    font-weight: 600;
}

.author-hero-position {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    padding-bottom: 15px;
    position: relative;
}

.author-hero-position:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.author-contact-info {
    margin-bottom: 30px;
}

.author-info-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
    min-width: 80px;
}

.info-value a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.info-value a:hover {
    color: var(--secondary-color);
}

.author-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.author-social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.author-social-link svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.author-cta {
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background-color: #8a21a0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.author-hero-image {
    flex: 0 0 350px;
    max-width: 350px;
    padding: 0;
}

.author-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.2);
}

/* Bio Section */
.author-bio-section {
    padding: 60px 0;
    background-color: #fff;
}

.author-bio-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    animation: fadeIn 0.5s;
}

.author-bio-content p {
    margin-bottom: 20px;
}

/* Author Profile Formatted Bio */
.author-profile {
    max-width: 900px;
    margin: 0 auto;
}

.author-profile h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.author-profile h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.author-profile p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.author-profile .expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.author-profile .expertise-area {
    background-color: #f9f9f9;
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 5px 5px 0;
}

.author-profile .expertise-area h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.author-profile .expertise-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-profile .expertise-area li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.author-profile .expertise-area li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
}

.author-profile .approach {
    background-color: #f5f0f9;
    padding: 25px;
    border-radius: 5px;
    margin: 30px 0;
    font-style: italic;
    border-left: 3px solid var(--secondary-color);
}

.author-profile .contact-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 15px;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Services Section */
.heroside-section {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0px 10px 9px 0px rgb(0 0 0 / 40%);
    position: relative;
    z-index: 2;
}

.services-wrapper {
    display: flex;
    flex-direction: column;
}

/* Author's Posts Section */
.author-posts-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card__image {
    height: 200px;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card__title {
    font-size: 18px;
    margin: 0 0 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.post-card__meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.post-card__date {
    display: inline-block;
}

.post-card__excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.pagination a:hover,
.pagination span.current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.no-posts {
    padding: 30px;
    background: #fff;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    grid-column: 1 / -1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .author-hero-image {
        flex: 0 0 300px;
        max-width: 300px;
    }
    
    .author-hero-title {
        font-size: 36px;
    }
    
    .author-profile .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .author-hero-wrapper {
        flex-direction: column-reverse;
    }
    
    .author-hero-image {
        flex: 0 0 100%;
        max-width: 250px;
        margin: 0 auto 20px;
    }
    
    .author-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .author-hero-title {
        font-size: 28px;
    }
    
    .author-profile h2 {
        font-size: 22px;
    }
    
    .author-profile h3 {
        font-size: 18px;
    }
}
