/**
 * Blog Author Plugin Styles
 * Styles for author profile and authors listing pages
 */

/* ==========================================================================
   COMMON STYLES
   ========================================================================== */

/* Breadcrumb Styles */
.breadcrumb ul,
.authors-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    font-family: 'Fira Sans';
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
}

.breadcrumb li,
.authors-breadcrumb li {
    display: flex;
    align-items: center;
    color: #61625e;
    position: relative;
}

.breadcrumb li:not(:last-child)::after,
.authors-breadcrumb li:not(:last-child)::after {
    content: "";
    background-image: url(https://imaages-hosting-1fin.s3.ap-south-1.amazonaws.com/assets/images/fintigrity/next-arrow-grey.svg);
    background-repeat: no-repeat;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    right: -21px;
}

.breadcrumb li a,
.authors-breadcrumb li a {
    text-decoration: none;
    color: #61625e;
    transition: color 0.2s;
}

.breadcrumb li a:hover,
.authors-breadcrumb li a:hover {
    color: #101010;
}

.breadcrumb li.active a,
.authors-breadcrumb li.active a {
    font-weight: 400;
    color: #101010;
    pointer-events: none;
}

/* ==========================================================================
   SINGLE AUTHOR PAGE STYLES
   ========================================================================== */

.custom-author-page {
    max-width: 1200px;
    margin: 32px auto 60px;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* --- Profile Header --- */
.author-header {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
}

/* Author Image Container */
.author-image-wrapper {
    flex-shrink: 0;
    max-width: 300px;
    height: auto;
    position: relative;
    overflow: visible;
    background-image: url("https://imaages-hosting-1fin.s3.ap-south-1.amazonaws.com/Website_team/Backend/author-bg-svg");
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    margin-top: 35px;
}


.author-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info {
    flex-grow: 1;
    padding-top: 10px;
}

.author-name-row {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.custom-author-page .author-name {
    font-family: 'spirits-soft' !important;
    font-size: 2.25rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    color: #1a1a1a;
    margin-bottom: .5rem !important;
}

@media (max-width: 768px) {
    .custom-author-page .author-name-row {
        justify-content: left;
        gap: 12px;
        margin-bottom: 12px;
    }
    .custom-author-page .author-name{
        width: 100%;
        text-align: left;
        font-size: 1.75rem !important;
    }
    .author-name-wrapper {
        width: 100%;
        text-align: left;
    }
    .custom-author-page .author-bio{
        text-align: left;
    }
    .author-image-wrapper{
        max-width: 210px;
    }
    .author-info{
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .card-title {
        font-size: 18px;
        line-height: 25px;
        font-weight: 500;
        margin: 0 0 8px !important;
    }
}

.custom-author-page .social-icons {
    display: flex;
    gap: 30px;
    margin-top: 8px;
}

.custom-author-page .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.custom-author-page .social-icon:hover {
    opacity: 0.8;
}

.custom-author-page .social-icon img,
.custom-author-page .social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.custom-author-page .author-role {
    font-size: 16px;
    color: #000;
    font-weight: 400;
    line-height: 25px;
    font-family: 'Fira Sans';
}

.custom-author-page .author-bio {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #41423F;
    font-weight: 400;
}

.author-bio h3,
.author-bio h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.author-bio p {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    width: auto;
    font-family: 'Inter', sans-serif;
}

/* --- Authored Blogs Section --- */
.authored-blogs-title {
    text-align: center;
    font-family: 'spirits-soft';
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1a1a1a;
    width: auto;
}

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

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
    .custom-author-page .social-icons{
        gap: 24px;
        margin-top: 0;
    }
    .authored-blogs-title{
        margin-bottom: 40px;
        font-size: 28px;
        text-align: left;
    }
    .author-bio p{
        font-size: 16px;
        font-weight: 400;
        line-height: 25px;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #eee;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #61625e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 11px;
}

.read-time {
    font-size: 12px;
    font-weight: 400;
    color: #61625e;
}

.blog-name {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 2rem;
    margin: 0 0 5px 0;
    color: #101010;
    text-align: left;
}

.blog-name a {
    text-decoration: none;
    color: inherit;
}

.blog-card:hover .blog-name a,
.blog-card:hover p {
    color: #8A7CC9;
}

.blog-excerpt {
    font-family: 'Fira Sans', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #61625e;
    line-height: 1.75rem;
    margin: 0;
}

/* Pagination Styles */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    font-family: 'Fira Sans', sans-serif;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #61625e;
    transition: all 0.2s ease;
}

.blog-pagination a:hover {
    background: #f4f4f4;
    color: #101010;
}

.blog-pagination .current {
    background: #101010;
    color: #fff;
}

.blog-pagination .prev,
.blog-pagination .next {
    font-size: 18px;
}

.blog-pagination .dots {
    color: #999;
}

/* ==========================================================================
   AUTHORS LISTING PAGE STYLES
   ========================================================================== */

.authors-listing-page {
    max-width: 1200px;
    margin: 32px auto 60px;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.authors-breadcrumb ul {
    margin-bottom: 40px;
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

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

@media (max-width: 600px) {
    .authors-grid {
        grid-template-columns: 1fr;
    }
    .blog-excerpt{
        font-size: 16px;
        line-height: 25px;
    }
}

/* Author Card */
/* Author Card */
.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}



.author-card-link svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.no-authors {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}


/* Authors Listing Page Styles */
    .authors-listing-page {
        max-width: 1200px;
        margin: 32px auto 60px;
        padding: 0 20px;
        font-family: 'Inter', sans-serif;
    }

    /* Breadcrumb */
    .authors-breadcrumb ul {
        list-style: none;
        padding: 0;
        margin: 0 0 40px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 26px;
        font-family: 'Fira Sans';
        font-size: 18px;
        font-weight: 300;
        line-height: 28px;
    }

    .authors-breadcrumb li {
        display: flex;
        align-items: center;
        color: #61625e;
        position: relative;
    }

    .authors-breadcrumb li:not(:last-child)::after {
        content: "";
        background-image: url(https://imaages-hosting-1fin.s3.ap-south-1.amazonaws.com/assets/images/fintigrity/next-arrow-grey.svg);
        background-repeat: no-repeat;
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        right: -21px;
    }

    .authors-breadcrumb li a {
        text-decoration: none;
        color: #61625e;
        transition: color 0.2s;
    }

    .authors-breadcrumb li a:hover {
        color: #101010;
    }

    .authors-breadcrumb li.active a {
        font-weight: 400;
        color: #101010;
        pointer-events: none;
    }

    /* Authors Grid */
    .authors-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

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

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

    /* Author Card */
    .author-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .author-card-image {
        width: 100%;
        height: auto;
        position: relative;
        margin-bottom: 20px;
        overflow: visible;
        background-image: url("https://imaages-hosting-1fin.s3.ap-south-1.amazonaws.com/Website_team/Backend/author-bg-svg");
        background-size: contain;
        background-position: bottom;
        background-repeat: no-repeat;
    }

    .author-card-image img {
        width: 100%;
        height: 470px;
        display: block;
        object-fit: cover;
        object-position: top;
    }

    .author-card-name {
        font-family: 'spirits-soft', serif;
        font-size: 1.6rem;
        font-weight: 400;
        color: #1a1a1a;
        margin: 0 0 5px 0;
    }

    .author-card-role {
        font-family: 'Fira Sans', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #61625e;
        margin: 0 0 12px 0;
        /* min-height: 50px; */
    }

    .author-card-social {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }

    .author-card-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        text-decoration: none;
        transition: opacity 0.2s;
        margin-top: 0;
    }

    .author-card-social a:hover {
        opacity: 0.8;
    }

    .author-card-social .linkedin-icon {
        border-radius: 4px;
    }

    .author-card-social .twitter-icon {
        border-radius: 4px;
    }

    .author-card-social svg {
        width: 16px;
        height: 16px;
    }

    .author-card-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #1a1a1a;
        color: #fff;
        font-family: 'Fira Sans', sans-serif;
        font-size: 16px;
        font-weight: 500;
        padding: 12px 24px;
        text-decoration: none;
        transition: background 0.2s;
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }

    .author-card-link:hover {
        background: #333;
    }

    .author-card-link svg {
        width: 16px;
        height: 16px;
        fill: #fff;
    }

    .no-authors {
        text-align: center;
        padding: 60px 20px;
        color: #666;
        grid-column: 1 / -1;
    }
    .author-card-social svg {
        width: 30px;
        height: 30px;
    }

    @media (max-width: 600px) {
        .author-card-image {
            max-width: 211px;
        }

        .author-card-name {
            font-size: 1.75rem;
            line-height: 150%;
            margin: 0 0 8px 0;
        }

        .author-card-role {
            font-size: 16px;
            line-height: 25px;
            min-height: auto;
        }
        .author-card-image img{
            height: 246px;
        }
        .author-card-social svg {
            width: 32px;
            height: 32px;
        }
        .author-card-social{margin-bottom: 12px;}
        .author-card-link{
            font-size: 14px;
        }
    }