/* Author Page Custom Styles */

.author-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.author-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.author-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.author-breadcrumbs {
    margin-bottom: 25px;
    font-size: 13px;
}

.author-breadcrumbs a {
    color: #6FB1FF;
    text-decoration: none;
    font-weight: 600;
}

.author-breadcrumbs a:hover {
    text-decoration: underline;
}

.author-breadcrumbs span {
    color: rgba(255, 255, 255, 0.6);
}

.author-hero-avatar {
    flex-shrink: 0;
}

.author-hero-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #6FB1FF;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.author-hero-content {
    flex-grow: 1;
}

.author-hero-name-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.author-hero-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.author-social-links {
    display: flex;
    gap: 12px;
}

.author-social-links a {
    color: #fff;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.author-social-links a:hover {
    opacity: 1;
    color: #6FB1FF;
}

.author-hero-position {
    display: block;
    font-size: 16px;
    color: #6FB1FF;
    font-weight: 600;
    margin-bottom: 15px;
}

.author-hero-bio {
    font-size: 17px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
    opacity: 0.9;
}

/* Post Grid */
.author-content-wrap {
    background: #fff;
    padding: 40px 0 80px;
}

.author-grid-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.author-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.author-grid-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .author-hero-row {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }

    .author-hero-name-row {
        justify-content: flex-start;
    }
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.post-card-thumb {
    height: 180px;
    overflow: hidden;
}

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

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

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

.post-card-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: #6FB1FF;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #6FB1FF;
}

.post-card-meta {
    font-size: 12px;
    color: #888;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-card-meta span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.post-card-meta i {
    margin-right: 5px;
    color: #6FB1FF;
}

/* Hide reading time label, show only value */
.post-card-content>.bsf-rt-reading-time {
    display: none;
}

.post-card-meta .bsf-rt-reading-time {
    font-size: 12px;
    color: #888;
}

/* Pagination */
.pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination-wrap .nav-links,
.pagination-wrap ul.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrap ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-wrap .page-numbers:not(ul) {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap a.page-numbers:hover {
    background: #6FB1FF;
    color: #fff;
    border-color: #6FB1FF;
}

.pagination-wrap .page-numbers.prev,
.pagination-wrap .page-numbers.next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

.pagination-wrap .page-numbers.dots {
    border: none;
    background: none;
}

/* Blog Listing Specific Styles (With Sidebar) */
.blog-pages #primary {
    padding: 120px 0 60px;
}

.blog-pages #main.container {
    max-width: 1240px;
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
}

.blog-pages .infopage-body {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
}

/* Override the legacy margin from style.css line 1756 */
.geo-pages.blog-pages>#primary>#main>.infopage-body {
    margin: 0 !important;
}

.blog-pages .right-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: static;
}

.blog-posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
}

.blog-grid-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-grid-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.blog-grid-header h2::after {
    display: none;
}

.blog-pages .post-card-thumb {
    height: 200px;
}

.blog-pages .post-card-cat-wrap {
    margin-bottom: 8px;
}

.post-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 10px 0 15px;
}

/* Hide reading time inside excerpt */
.post-card-excerpt .bsf-rt-reading-time,
.post-card-excerpt span[class*="reading-time"],
.post-card-excerpt span[class*="read-time"] {
    display: none !important;
}

/* Hide reading time on blog/archive pages */
.post-card-content .bsf-rt-display-label {
    display: none !important;
}

@media (max-width: 1200px) {
    .blog-pages #main.container {
        flex-direction: column;
    }

    .blog-pages .right-sidebar {
        width: 100%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}