/* -------------------------------------------------------------------------
   AUTHOR PAGE REDESIGN (v1)
   Figma: layout_XCL2PI, layout_NZVBEN
   ------------------------------------------------------------------------- */

.author-page-v1.main {
    width: 100% !important;
    max-width: var(--slid-container-fluid) !important;
    margin: 0 auto !important;
    padding: 0 20px !important; /* Aligned with header padding */
    box-sizing: border-box !important;
}

.left-wrapper-gap36px {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 44px 0 24px 0;
    margin: 0;
}

.author-page-v1 .section-title {
    font-family: var(--slid-font-heading);
    font-weight: 700;
    text-transform: none;
    color: #000;
    margin: 0;
    margin-bottom: 0 !important;
}

.author-page-v1 .section-title--about {
    font-size: 28px; /* Figma H2 */
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 0 !important;
}

.author-page-v1 .section-title--materials {
    font-size: 28px; /* Figma H3 */
    font-weight: 500;
    margin-top: 0;
}

/* Author Card Component */
.author-card {
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.author-info {
    background-color: var(--blue, #5FABE6);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.author-profile-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px; /* gap between avatar and text */
    padding: 0 0 0 20px; /* padding-left */
}

.author-image img, .author-image picture, .author-image .profile-top-ava-img {
    width: 96px;
    height: 96px;
    border-radius: 48px;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px; /* layout_RBHSB0 name and role gap */
    justify-content: center;
}

.author-details .profile-author-name {
    font-size: 28px; /* Figma H3 */
    margin: 0;
    line-height: 1.2;
    color: #fff;
    font-family: var(--slid-font-heading, "Forma DJR Cyrillic Text", serif);
    font-weight: 700;
}

.author-role {
    font-size: 16px; /* Body small Desktop */
    color: #fff;
    font-family: var(--slid-font-body, "Montserrat", sans-serif);
    font-weight: 500;
    line-height: 1.2;
}

.author-role--position {
    font-weight: 600;
}

.author-role--company {
    opacity: 0.9;
}

.author-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px; /* layout_VZD6EP links gap */
    padding: 0 20px 0 0; /* padding-right */
}

.author-links-heading {
    font-size: 16px; /* Body small Desktop */
    margin: 0;
    font-weight: 500;
    color: #fff;
    font-family: var(--slid-font-body, "Montserrat", sans-serif);
}

.author-socials {
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-socials .user-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: none !important;
}

.author-socials .user-social img {
    width: 100%;
    height: 100%;
    margin: 0;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(339deg) brightness(1000%) contrast(1000%);
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: none !important;
}

.author-socials .user-social:hover img {
    filter: invert(49%) sepia(98%) saturate(3501%) hue-rotate(339deg) brightness(101%) contrast(98%);
}

.author-bio {
    background-color: #fff;
    padding: 20px; /* layout_FQ5YHC padding */
    font-size: 16px; /* Body small Desktop */
    line-height: 1.6;
    color: #232323;
    font-family: var(--slid-font-body, "Montserrat", sans-serif);
    font-weight: 500;
}

/* Article Grid */
.slid-article-grid__cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 24px !important;
    row-gap: 40px !important;
    width: 100% !important;
    max-width: 100% !important; /* Overriding fluid max-width from slid-card.css */
    margin: 0 !important;
}

.author-page-v1 .slid-card {
    width: 100% !important;
    height: 240px; /* Figma node 339:942 height */
}

.author-page-v1 .slid-card__infobar {
    background-color: #EDF7FF;
}

.author-page-v1 .slid-card__link:hover .slid-card__infobar {
    background-color: #5FABE6 !important;
}

.author-page-v1 .slid-card__link:hover .slid-card__author,
.author-page-v1 .slid-card__link:hover .slid-card__meta,
.author-page-v1 .slid-card__link:hover .slid-card__date,
.author-page-v1 .slid-card__link:hover .slid-card__read-time {
    color: #fff !important;
}


/* Show More Button Component Overrides */
.author-page-v1 .more-publication {
    width: 190px;
    height: 36px;
    line-height: 34px;
    border: 1px solid var(--blue, #5FABE6);
    border-radius: 0;
    color: #000;
    font-size: 16px;
    font-family: var(--slid-font-body, "Montserrat", sans-serif);
    font-weight: 600;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.author-page-v1 .more-publication:after {
    display: none; /* Disable legacy arrow from main.css */
}

.author-page-v1 .more-publication:hover svg {
    color: var(--blue, #5FABE6);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
    .author-page-v1.main {
        padding: 0 10px !important;
    }
    .slid-article-grid__cards {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 16px !important;
    }
}

@media screen and (max-width: 768px) {
    .author-page-v1 .section-title--about {
        font-size: 24px;
        margin-top: 10px;
        margin-bottom: 0 !important;
    }
    .author-page-v1 .section-title--materials {
        font-size: 24px;
    }
    .left-wrapper-gap36px {
        gap: 18px;
        padding: 0 0 22px 0;
    }
    .author-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
    }
    .author-profile-wrapper {
        padding: 0 10px;
        flex-direction: row;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }
    .author-details {
        margin-top: -6px;
    }
    .author-details .profile-author-name {
        font-size: 20px;
    }
    .author-role {
        font-size: 12px;
    }
    .author-links {
        padding: 0 10px;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }
    .author-links-heading {
        font-size: 12px;
    }
    .author-bio {
        padding: 20px;
        font-size: 14px; /* Body small mob */
    }
    .slid-article-grid__cards {
        grid-template-columns: 1fr !important; /* Force single column on mobile */
        gap: 24px;
    }
    .author-page-v1 .slid-card {
        height: 180px; /* Reduced height for mobile stack */
    }
}

.author-page-v1 .slid-main-page__show-more-wrapper {
    margin: 0 !important; /* Resetting margin to rely on parent gap */
    padding: 0 !important;
}

