/* Reset and Container */
.vp-contributors-wrapper {
    margin: 40px 0;
    font-family: 'Noto Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    max-width: 100%;
}

.vp-contributors-display {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(183, 65, 52, 0.15);
    box-shadow: 0 15px 50px color-mix(in srgb, var(--brand-accent, var(--secondary, #b74134)) 15%, transparent);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 5000px;
    opacity: 1;
    overflow: hidden;
}

.vp-article-summary {
    max-width: 800px;
    margin: -10px auto 40px auto;
    text-align: center;
    border-top: none;
}

.vp-article-summary p {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    font-weight: 400;
    margin: 0;
}

/* Profiles Layout */
.vp-profiles-wrapper {
    padding-top: 40px;
}

.vp-profile-card {
    display: flex;
    gap: 0;
    align-items: stretch;
    text-align: left;
    position: relative;
    background: linear-gradient(to right, #fefefe, #f9f9f9);
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* View Contributors Button */
.vp-gallery-toggle-wrapper {
    position: absolute;
    bottom: 25px;
    right: 40px;
}

.vp-gallery-toggle {
    background: #fff;
    border: 1.5px solid #b74134;
    color: #b74134;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(183, 65, 52, 0.1);
}

.vp-gallery-toggle:hover {
    background: #b74134;
    color: #fff;
    box-shadow: 0 6px 15px rgba(183, 65, 52, 0.2);
    transform: translateY(-2px);
}

/* Extra Profiles Section */
.vp-extra-profiles-container {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px dashed #eee;
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* Increased spacing */
}

.vp-ref-list {
    margin: 15px 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.vp-ref-list li {
    margin-bottom: 8px;
    color: #444;
    font-size: 15px;
    font-family: 'Noto Sans', sans-serif;
}

.vp-profile-content {
    padding: 35px 40px 35px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vp-profile-main-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vp-name-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vp-profile-name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
    font-family: 'Noto Serif', serif;
}

.vp-profile-role {
    font-size: 14px;
    color: #b74134;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 0;
    font-family: 'Noto Sans', sans-serif;
}

.vp-profile-bio {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b74134;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 20px;
    max-width: 90%;
}

.vp-profile-bio p {
    margin: 0;
    font-family: inherit;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
}

.vp-profile-bio p a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.vp-profile-bio p a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.vp-bio-icon {
    color: inherit;
    opacity: 1;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    top: 1px;
    /* Optical adjustment for FontAwesome envelope */
}

.vp-article-meta {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-align: center;
}

.vp-place {
    color: #b74134;
}

.vp-date {
    color: #888;
}

.vp-meta-separator {
    color: #eee;
}

.vp-article-title {
    font-family: 'Noto Serif', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
    margin: 0 0 40px 0;
    letter-spacing: -1px;
    text-align: center;
    border-bottom: none;
}

.vp-profile-photo-container {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.vp-profile-photo {
    width: 100%;
    height: auto;
    flex: 1;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.vp-author-tag {
    font-size: 11px;
    font-weight: 700;
    background: #b74134;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Noto Sans', sans-serif;
    box-shadow: 0 2px 8px rgba(183, 65, 52, 0.3);
}

@media (max-width: 768px) {
    .vp-article-title {
        font-size: 36px;
    }

    .vp-profile-card {
        flex-direction: column;
        gap: 0;
    }

    .vp-profile-photo-container {
        width: 100%;
        justify-content: center;
    }

    .vp-profile-photo {
        width: 120px;
        height: 120px;
        border-radius: 16px;
        margin-top: 30px;
        flex: none;
    }

    .vp-profile-content {
        padding: 20px 30px 30px 30px;
    }

    .vp-contributors-display {
        padding: 30px;
    }

    .vp-gallery-toggle-wrapper {
        position: static;
        margin-top: 15px;
    }

    .vp-profile-bio {
        max-width: 100%;
    }
}

/* Research Context */
.vp-research-context {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
    max-width: 100%;
    text-align: left;
}

.vp-context-section {
    background: #ffffff;
    border-left: 5px solid var(--brand-accent, var(--secondary, #b74134));
    padding: 35px 45px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vp-context-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.vp-context-section h4 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    color: #b74134;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.vp-context-section p {
    font-size: 16.5px;
    line-height: 1.85;
    color: #333;
    margin: 0;
    font-family: 'Noto Serif', serif;
}

/* References Section */
.vp-references-wrapper {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    text-align: left;
    max-width: 100%;
}

.vp-references-link h4 {
    font-family: 'Noto Serif', serif;
    font-size: 20px;
    color: #111;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.vp-references-link a {
    color: var(--link-color, var(--primary-color, #1a0dab));
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.2s ease;
}

.vp-references-link a:hover {
    color: #b74134;
}