* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.scientist-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.scientist-header {
    text-align: center;
    margin-bottom: 3rem;
}

.scientist-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgb(var(--color-dark-blue));
    margin-bottom: 0.5rem;
}

.scientist-name-en {
    font-size: 1.5rem;
    color: rgb(var(--color-dark) / 0.65);
    font-weight: normal;
}

.photo-carousel {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    height: 500px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.quote-section {
    background: rgb(var(--color-dark-blue));
    color: white;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quote-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -30px;
    top: -20px;
    opacity: 0.3;
}

.quote-text::after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    right: -30px;
    bottom: -40px;
    opacity: 0.3;
}

.bio-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.bio-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(var(--color-dark));
    margin-bottom: 1rem;
}

.interview-section {
    margin-top: 4rem;
}

.interview-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: rgb(var(--color-dark));
    position: relative;
}

.interview-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgb(var(--color-blue));
}

.interview-entry {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.interview-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.interview-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgb(var(--color-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.interview-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.interview-name {
    font-weight: bold;
    color: rgb(var(--color-dark) / 0.65);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.interview-text {
    color: rgb(var(--color-dark));
    line-height: 1.7;
    font-size: 1rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Alternating style for interview entries */
.interview-entry:nth-child(even) {
    flex-direction: row-reverse;
}

.interview-entry:nth-child(even) .interview-avatar {
    background: rgb(var(--color-dark-blue));
}

@media (max-width: 768px) {
    .scientist-detail-container {
        padding: 1rem 0.5rem;
    }

    .scientist-name {
        font-size: 1.8rem;
    }

    .scientist-name-en {
        font-size: 1.2rem;
    }

    .photo-carousel {
        height: 300px;
    }

    .quote-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .quote-text {
        font-size: 1.2rem;
    }

    .quote-text::before,
    .quote-text::after {
        font-size: 2.5rem;
    }

    .bio-section {
        padding: 1.5rem 1rem;
    }

    .interview-entry,
    .interview-entry:nth-child(even) {
        flex-direction: column;
        padding: 1rem;
    }

    .interview-avatar {
        width: 50px;
        height: 50px;
    }

    .interview-text {
        font-size: 0.95rem;
    }
}

/* No images placeholder */
.no-images-placeholder {
    height: 200px;
    background: rgb(var(--color-dark-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin: 2rem auto;
    max-width: 600px;
}

.photo-credits {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgb(var(--color-dark) / 0.65);
    line-height: 1.5;
}

/* Footnotes styles */
.footnote-ref {
    color: rgb(var(--color-blue));
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
    vertical-align: super;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footnote-ref:hover {
    color: rgb(var(--color-dark-blue));
}

.footnotes-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgb(var(--color-light-gray));
}

.footnotes-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(var(--color-dark));
    margin-bottom: 1.5rem;
}

.footnotes-list {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
}

.footnote-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footnote-number {
    flex-shrink: 0;
    color: rgb(var(--color-blue));
    font-weight: bold;
    min-width: 25px;
}

.footnote-text {
    flex: 1;
    color: rgb(var(--color-dark) / 0.65);
    word-break: break-word;
}

.footnote-text a {
    color: rgb(var(--color-blue));
    text-decoration: none;
    transition: color 0.3s ease;
}

.footnote-text a:hover {
    color: rgb(var(--color-dark-blue));
    text-decoration: underline;
}
