* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background: rgb(var(--color-light));
}

.bibliography-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.bibliography-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(var(--color-blue));
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.back-button:hover {
    gap: 0.75rem;
}

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

.bibliography-subtitle {
    font-size: 1.1rem;
    color: rgb(var(--color-dark) / 0.65);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.bibliography-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bibliography-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bibliography-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgb(var(--color-light-gray));
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.bibliography-item:last-child {
    border-bottom: none;
}

.bibliography-item:hover {
    background: rgb(var(--color-light-blue) / 0.12);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 8px;
}

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

.item-content {
    flex: 1;
    min-width: 0;
}

.item-text {
    color: rgb(var(--color-dark));
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.item-link {
    color: rgb(var(--color-blue));
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-all;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.item-link i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .bibliography-container {
        padding: 2rem 1rem;
    }

    .bibliography-header {
        text-align: left;
        padding-top: 3rem;
    }

    .back-button {
        left: auto;
        top: -2.5rem;
    }

    .bibliography-title {
        font-size: 1.8rem;
    }

    .bibliography-subtitle {
        font-size: 1rem;
    }

    .bibliography-content {
        padding: 1.5rem;
    }

    .bibliography-item {
        flex-direction: column;
        gap: 1rem;
    }

    .item-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
