/* Knowledge Hub Author Page Styles */

/* ===============================
    AUTHOR CONTAINER
    =============================== */
.author-container {
    width: 100%;
    max-width: 101.7rem;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible !important;
    height: auto !important;
}

@media (max-width: 1000px) {
    .author-container {
        padding: 0 2rem;
    }

    .author-profile-section {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}


/* ===============================
   AUTHOR PROFILE SECTION
   =============================== */
.author-profile-section {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid #e0e0e0;
    justify-content: flex-start;
}

.author-profile-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-break: break-word;
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
}

.author-profile-layout {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
    margin-bottom: 3.5rem;
    margin-top: 0;
    min-height: 140px;
}

/* Left Column: Profile Image */
.author-profile-image-wrapper {
    flex-shrink: 0;
    position: relative;
}

.author-profile-image {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.author-profile-image-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 16px;
    background: linear-gradient(135deg, #003d82 0%, #002952 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-initials {
    font-size: 8rem;
    font-weight: 700;
    color: #ffffff;
}

.author-badge-container {
    position: absolute;
    top: 16px;
    right: -20px;
    display: flex;
    gap: 8px;
}

.author-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Right Column: Author Info */
.author-profile-info {
    flex: 1;
}


.author-name {
    font-size: 4.8rem;
    font-weight: 700;
    color: #003d82;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.author-job-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 24px 0;
}

.author-description {
    font-size: 1.8rem;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

/* Experience, Expertise, Social Grid */
.author-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.author-detail-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-detail-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
}

.author-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.6rem;
    color: #333333;
    line-height: 1.5;
}

.author-detail-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #003d82;
    margin-top: 2px;
}

/* Expertise Second Item with Inline More */
.author-expertise-second {
    display: inline;
}

/* Expertise More Tooltip */
.author-expertise-more {
    position: relative;
    display: inline;
    margin-left: 6px;
}

.expertise-more-trigger {
    color: #003d82;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

.expertise-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #0B2455;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 200px;
    white-space: nowrap;
}

.author-expertise-more:hover .expertise-tooltip {
    display: block;
}

.expertise-tooltip-item {
    padding: 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

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

.author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.author-social-link--linkedin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f2;
}

.author-social-link--email {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f2;
}

.author-social-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.author-social-link svg {
    width: 40px;
    height: 40px;
}

.author-social-link--linkedin .geico-icon {
    font-size: 2.4rem;
    color: #1769ff;
    text-decoration: none;
}

.author-social-link--email .geico-icon {
    font-size: 2.4rem;
    color: #1769ff;
    text-decoration: none;
}

.author-social-link svg circle {
    fill: #f2f2f2;
}

.author-social-link svg path {
    fill: #1769ff;
}

@media (min-width: 768px) {
    .author-profile-section {
        padding-top: 1rem;
        padding-bottom: 20px;
    }
}

/* ===============================
   MORE FROM AUTHOR SECTION
   =============================== */
.author-container .articles-section-section {
    background: #f8f8f8;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 1200px) {
    .author-profile-layout {
        gap: 60px;
    }

    .author-details-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .author-profile-container,
    .kh-breadcrumbs-container {
        max-width: 90%;
        padding: 0 20px;
    }

    .author-profile-layout {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .author-profile-image-wrapper {
        text-align: center;
    }

    .author-badge-container {
        right: 50%;
        transform: translateX(50%);
        top: -20px;
    }

    .author-profile-info {
        text-align: center;
    }

    .author-name {
        font-size: 3.6rem;
    }

    .author-job-title {
        font-size: 2rem;
    }

    .author-details-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .author-detail-column {
        text-align: left;
    }

    .author-social-links {
        justify-content: center;
    }

}

@media (max-width: 480px) {
    .author-profile-image,
    .author-profile-image-placeholder {
        width: 200px;
        height: 200px;
    }

    .author-initials {
        font-size: 6rem;
    }

    .author-name {
        font-size: 2.8rem;
    }

    .author-job-title {
        font-size: 1.6rem;
    }

    .author-description {
        font-size: 1.6rem;
    }

    .author-detail-heading {
        font-size: 1.8rem;
    }

    .author-detail-item {
        font-size: 1.4rem;
    }

}

/* ===============================
   DARK MODE STYLES
   =============================== */
.dark .author-profile-section {
    border-bottom-color: #333333;
}

.dark .author-name {
    color: #FEFEFE;
}

.dark .author-job-title,
.dark .author-description,
.dark .author-detail-item {
    color: #CCCCCC;
}

.dark .author-detail-heading {
    color: #FEFEFE;
}

.dark .author-detail-icon {
    color: #80C2FF;
}

.dark .expertise-more-trigger {
    color: #80C2FF;
}

.dark .author-social-link--linkedin,
.dark .author-social-link--email {
    background: #2C2C2E;
}

.dark .author-social-link svg circle {
    fill: #2C2C2E;
}

.dark .author-social-link svg path {
    fill: #80C2FF;
}
