.library-rules {
    max-width: 800px;
    margin: 50px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.library-rules h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-item {
    background: #ecf0f1;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.rules-item:hover {
    background: #ff9736;
    color: #ffffff;
    transform: scale(1.02);
}

@media screen and (max-width: 768px) {
    .library-rules {
        padding: 20px;
    }

    .library-rules h2 {
        font-size: 24px;
    }

    .rules-item {
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .library-rules {
        padding: 15px;
    }

    .library-rules h2 {
        font-size: 20px;
    }

    .rules-item {
        padding: 10px;
    }
}